Class HttpsRedirect
Allows creating a domainA -> domainB redirect using CloudFront and S3.
Inherited Members
Namespace: Amazon.CDK.AWS.Route53.Patterns
Assembly: Amazon.CDK.AWS.Route53.Patterns.dll
Syntax (csharp)
public class HttpsRedirect : Construct, IConstruct, IDependable
Syntax (vb)
Public Class HttpsRedirect
Inherits Construct
Implements IConstruct, IDependable
Remarks
You can specify multiple domains to be redirected.
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
Constructors
HttpsRedirect(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
HttpsRedirect(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
HttpsRedirect(Construct, String, IHttpsRedirectProps) |
Constructors
HttpsRedirect(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected HttpsRedirect(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
HttpsRedirect(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected HttpsRedirect(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
HttpsRedirect(Construct, String, IHttpsRedirectProps)
public HttpsRedirect(Construct scope, string id, IHttpsRedirectProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IHttpsRedirectProps
Implements
Constructs.IConstruct