Class HostedZoneProps
Properties of a new hosted zone.
Inherited Members
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class HostedZoneProps : IHostedZoneProps, ICommonHostedZoneProps
Syntax (vb)
Public Class HostedZoneProps 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 of a new hosted zone. |
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()
Properties of a new hosted zone.
public HostedZoneProps()
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 }
}
});
Properties
AddTrailingDot
Whether to add a trailing dot to the zone name.
public bool? AddTrailingDot { get; set; }
Property Value
bool?
Remarks
Default: true
Comment
Any comments that you want to include about the hosted zone.
public string? Comment { get; set; }
Property Value
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
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
Remarks
For resource record types that include a domain name, specify a fully qualified domain name.