Class HostedZoneAttributes
Reference to a hosted zone.
Inheritance
System.Object
HostedZoneAttributes
Implements
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class HostedZoneAttributes : Object, IHostedZoneAttributes
Syntax (vb)
Public Class HostedZoneAttributes
Inherits Object
Implements 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
Constructors
HostedZoneAttributes() |
Properties
HostedZoneId | Identifier of the hosted zone. |
ZoneName | Name of the hosted zone. |
Constructors
HostedZoneAttributes()
public HostedZoneAttributes()
Properties
HostedZoneId
Identifier of the hosted zone.
public string HostedZoneId { get; set; }
Property Value
System.String
ZoneName
Name of the hosted zone.
public string ZoneName { get; set; }
Property Value
System.String