Interface IHostedZoneAttributes
Reference to a hosted zone.
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IHostedZoneAttributes
Syntax (vb)
Public Interface IHostedZoneAttributes
Remarks
ExampleMetadata: infused
Examples
App app;
var stack = new Stack(app, "Stack", new StackProps {
CrossRegionReferences = true,
Env = new Environment {
Region = "us-east-2"
}
});
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
HostedZoneId | Identifier of the hosted zone. |
ZoneName | Name of the hosted zone. |
Properties
HostedZoneId
Identifier of the hosted zone.
string HostedZoneId { get; }
Property Value
System.String
ZoneName
Name of the hosted zone.
string ZoneName { get; }
Property Value
System.String