Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpsRedirect_IsConstruct ¶
func HttpsRedirect_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func NewHttpsRedirect_Override ¶
func NewHttpsRedirect_Override(h HttpsRedirect, scope constructs.Construct, id *string, props *HttpsRedirectProps)
Types ¶
type HttpsRedirect ¶
type HttpsRedirect interface {
constructs.Construct
Node() constructs.Node
ToString() *string
}
Allows creating a domainA -> domainB redirect using CloudFront and S3.
You can specify multiple domains to be redirected.
TODO: EXAMPLE
func NewHttpsRedirect ¶
func NewHttpsRedirect(scope constructs.Construct, id *string, props *HttpsRedirectProps) HttpsRedirect
type HttpsRedirectProps ¶
type HttpsRedirectProps struct {
// The redirect target fully qualified domain name (FQDN).
//
// An alias record
// will be created that points to your CloudFront distribution. Root domain
// or sub-domain can be supplied.
TargetDomain *string `json:"targetDomain"`
// Hosted zone of the domain which will be used to create alias record(s) from domain names in the hosted zone to the target domain.
//
// The hosted zone must
// contain entries for the domain name(s) supplied through `recordNames` that
// will redirect to the target domain.
//
// Domain names in the hosted zone can include a specific domain (example.com)
// and its subdomains (acme.example.com, zenith.example.com).
Zone awsroute53.IHostedZone `json:"zone"`
// The AWS Certificate Manager (ACM) certificate that will be associated with the CloudFront distribution that will be created.
//
// If provided, the certificate must be
// stored in us-east-1 (N. Virginia)
Certificate awscertificatemanager.ICertificate `json:"certificate"`
// The domain names that will redirect to `targetDomain`.
RecordNames *[]*string `json:"recordNames"`
}
Properties to configure an HTTPS Redirect.
TODO: EXAMPLE
Click to show internal directories.
Click to hide internal directories.