Interface IHttpsRedirectProps
Properties to configure an HTTPS Redirect.
Namespace: Amazon.CDK.AWS.Route53.Patterns
Assembly: Amazon.CDK.AWS.Route53.Patterns.dll
Syntax (csharp)
public interface IHttpsRedirectProps
Syntax (vb)
Public Interface IHttpsRedirectProps
Remarks
ExampleMetadata: infused
Examples
new HttpsRedirect(this, "Redirect", new HttpsRedirectProps {
RecordNames = new [] { "foo.example.com" },
TargetDomain = "bar.example.com",
Zone = HostedZone.FromHostedZoneAttributes(this, "HostedZone", new HostedZoneAttributes {
HostedZoneId = "ID",
ZoneName = "example.com"
})
});
Synopsis
Properties
Certificate | The AWS Certificate Manager (ACM) certificate that will be associated with the CloudFront distribution that will be created. |
RecordNames | The domain names that will redirect to |
TargetDomain | The redirect target fully qualified domain name (FQDN). |
Zone | 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. |
Properties
Certificate
The AWS Certificate Manager (ACM) certificate that will be associated with the CloudFront distribution that will be created.
virtual ICertificate Certificate { get; }
Property Value
Remarks
If provided, the certificate must be stored in us-east-1 (N. Virginia)
Default: - A new certificate is created in us-east-1 (N. Virginia)
RecordNames
The domain names that will redirect to targetDomain
.
virtual string[] RecordNames { get; }
Property Value
System.String[]
Remarks
Default: - the domain name of the hosted zone
TargetDomain
The redirect target fully qualified domain name (FQDN).
string TargetDomain { get; }
Property Value
System.String
Remarks
An alias record will be created that points to your CloudFront distribution. Root domain or sub-domain can be supplied.
Zone
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.
IHostedZone Zone { get; }
Property Value
Remarks
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).