Class HostedZoneProps
Properties of a new hosted zone.
Inheritance
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class HostedZoneProps : Object, IHostedZoneProps, ICommonHostedZoneProps
Syntax (vb)
Public Class HostedZoneProps
Inherits Object
Implements IHostedZoneProps, ICommonHostedZoneProps
Remarks
ExampleMetadata: infused
Examples
var hostedZone = new HostedZone(this, "MyHostedZone", new HostedZoneProps { ZoneName = "example.org" });
var metric = new Metric(new MetricProps {
Namespace = "AWS/Route53",
MetricName = "DNSQueries",
DimensionsMap = new Dictionary<string, string> {
{ "HostedZoneId", hostedZone.HostedZoneId }
}
});
Synopsis
Constructors
HostedZoneProps() |
Properties
AddTrailingDot | Whether to add a trailing dot to the zone name. |
Comment | Any comments that you want to include about the hosted zone. |
QueryLogsLogGroupArn | The Amazon Resource Name (ARN) for the log group that you want Amazon Route 53 to send query logs to. |
Vpcs | A VPC that you want to associate with this hosted zone. |
ZoneName | The name of the domain. |
Constructors
HostedZoneProps()
public HostedZoneProps()
Properties
AddTrailingDot
Whether to add a trailing dot to the zone name.
public Nullable<bool> AddTrailingDot { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: true
Comment
Any comments that you want to include about the hosted zone.
public string Comment { get; set; }
Property Value
System.String
Remarks
Default: none
QueryLogsLogGroupArn
The Amazon Resource Name (ARN) for the log group that you want Amazon Route 53 to send query logs to.
public string QueryLogsLogGroupArn { get; set; }
Property Value
System.String
Remarks
Default: disabled
Vpcs
A VPC that you want to associate with this hosted zone.
public IVpc[] Vpcs { get; set; }
Property Value
IVpc[]
Remarks
When you specify this property, a private hosted zone will be created.
You can associate additional VPCs to this private zone using addVpc(vpc)
.
Default: public (no VPCs associated)
ZoneName
The name of the domain.
public string ZoneName { get; set; }
Property Value
System.String
Remarks
For resource record types that include a domain name, specify a fully qualified domain name.