@Stability(value=Stable) public static final class CfnHostedZone.Builder extends Object implements software.amazon.jsii.Builder<CfnHostedZone>
CfnHostedZone.| Modifier and Type | Method and Description |
|---|---|
CfnHostedZone |
build() |
static CfnHostedZone.Builder |
create(Construct scope,
String id) |
CfnHostedZone.Builder |
hostedZoneConfig(CfnHostedZone.HostedZoneConfigProperty hostedZoneConfig)
A complex type that contains an optional comment.
|
CfnHostedZone.Builder |
hostedZoneConfig(IResolvable hostedZoneConfig)
A complex type that contains an optional comment.
|
CfnHostedZone.Builder |
hostedZoneTags(List<? extends CfnHostedZone.HostedZoneTagProperty> hostedZoneTags)
Adds, edits, or deletes tags for a health check or a hosted zone.
|
CfnHostedZone.Builder |
name(String name)
The name of the domain.
|
CfnHostedZone.Builder |
queryLoggingConfig(CfnHostedZone.QueryLoggingConfigProperty queryLoggingConfig)
Creates a configuration for DNS query logging.
|
CfnHostedZone.Builder |
queryLoggingConfig(IResolvable queryLoggingConfig)
Creates a configuration for DNS query logging.
|
CfnHostedZone.Builder |
vpcs(IResolvable vpcs)
*Private hosted zones:* A complex type that contains information about the VPCs that are associated with the specified hosted zone.
|
CfnHostedZone.Builder |
vpcs(List<? extends Object> vpcs)
*Private hosted zones:* A complex type that contains information about the VPCs that are associated with the specified hosted zone.
|
@Stability(value=Stable) public static CfnHostedZone.Builder create(Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnHostedZone.HostedZoneConfigProperty.Builder.@Stability(value=Stable) public CfnHostedZone.Builder hostedZoneConfig(IResolvable hostedZoneConfig)
If you don't want to specify a comment, omit the HostedZoneConfig and Comment elements.
hostedZoneConfig - A complex type that contains an optional comment. This parameter is required.this@Stability(value=Stable) public CfnHostedZone.Builder hostedZoneConfig(CfnHostedZone.HostedZoneConfigProperty hostedZoneConfig)
If you don't want to specify a comment, omit the HostedZoneConfig and Comment elements.
hostedZoneConfig - A complex type that contains an optional comment. This parameter is required.this@Stability(value=Stable) public CfnHostedZone.Builder hostedZoneTags(List<? extends CfnHostedZone.HostedZoneTagProperty> hostedZoneTags)
For information about using tags for cost allocation, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .
hostedZoneTags - Adds, edits, or deletes tags for a health check or a hosted zone. This parameter is required.this@Stability(value=Stable) public CfnHostedZone.Builder name(String name)
Specify a fully qualified domain name, for example, www.example.com . The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.
If you're creating a public hosted zone, this is the name you have registered with your DNS registrar. If your domain name is registered with a registrar other than Route 53, change the name servers for your domain to the set of NameServers that are returned by the Fn::GetAtt intrinsic function.
name - The name of the domain. This parameter is required.this@Stability(value=Stable) public CfnHostedZone.Builder queryLoggingConfig(IResolvable queryLoggingConfig)
After you create a query logging configuration, Amazon Route 53 begins to publish log data to an Amazon CloudWatch Logs log group.
DNS query logs contain information about the queries that Route 53 receives for a specified public hosted zone, such as the following:
NoError or ServFail
If you create a query logging configuration using the Route 53 console, Route 53 performs these operations automatically.
/aws/route53/ *hosted zone name*
In the next step, you'll create a resource policy, which controls access to one or more log groups and the associated AWS resources, such as Route 53 hosted zones. There's a limit on the number of resource policies that you can create, so we recommend that you use a consistent prefix so you can use the same resource policy for all the log groups that you create for query logging.
Resource , specify the ARN for the log group that you created in the previous step. To use the same resource policy for all the CloudWatch Logs log groups that you created for query logging configurations, replace the hosted zone name with * , for example:
arn:aws:logs:us-east-1:123412341234:log-group:/aws/route53/*
To avoid the confused deputy problem, a security issue where an entity without a permission for an action can coerce a more-privileged entity to perform it, you can optionally limit the permissions that a service has to a resource in a resource-based policy by supplying the following values:
aws:SourceArn , supply the hosted zone ARN used in creating the query logging configuration. For example, aws:SourceArn: arn:aws:route53:::hostedzone/hosted zone ID .aws:SourceAccount , supply the account ID for the account that creates the query logging configuration. For example, aws:SourceAccount:111111111111 .For more information, see The confused deputy problem in the AWS IAM User Guide .
You can't use the CloudWatch console to create or edit a resource policy. You must use the CloudWatch API, one of the AWS SDKs, or the AWS CLI .
The name of each log stream is in the following format:
*hosted zone ID* / *edge location code*
The edge location code is a three-letter code and an arbitrarily assigned number, for example, DFW3. The three-letter code typically corresponds with the International Air Transport Association airport code for an airport near the edge location. (These abbreviations might change in the future.) For a list of edge locations, see "The Route 53 Global Network" on the Route 53 Product Details page.
queryLoggingConfig - Creates a configuration for DNS query logging. This parameter is required.this@Stability(value=Stable) public CfnHostedZone.Builder queryLoggingConfig(CfnHostedZone.QueryLoggingConfigProperty queryLoggingConfig)
After you create a query logging configuration, Amazon Route 53 begins to publish log data to an Amazon CloudWatch Logs log group.
DNS query logs contain information about the queries that Route 53 receives for a specified public hosted zone, such as the following:
NoError or ServFail
If you create a query logging configuration using the Route 53 console, Route 53 performs these operations automatically.
/aws/route53/ *hosted zone name*
In the next step, you'll create a resource policy, which controls access to one or more log groups and the associated AWS resources, such as Route 53 hosted zones. There's a limit on the number of resource policies that you can create, so we recommend that you use a consistent prefix so you can use the same resource policy for all the log groups that you create for query logging.
Resource , specify the ARN for the log group that you created in the previous step. To use the same resource policy for all the CloudWatch Logs log groups that you created for query logging configurations, replace the hosted zone name with * , for example:
arn:aws:logs:us-east-1:123412341234:log-group:/aws/route53/*
To avoid the confused deputy problem, a security issue where an entity without a permission for an action can coerce a more-privileged entity to perform it, you can optionally limit the permissions that a service has to a resource in a resource-based policy by supplying the following values:
aws:SourceArn , supply the hosted zone ARN used in creating the query logging configuration. For example, aws:SourceArn: arn:aws:route53:::hostedzone/hosted zone ID .aws:SourceAccount , supply the account ID for the account that creates the query logging configuration. For example, aws:SourceAccount:111111111111 .For more information, see The confused deputy problem in the AWS IAM User Guide .
You can't use the CloudWatch console to create or edit a resource policy. You must use the CloudWatch API, one of the AWS SDKs, or the AWS CLI .
The name of each log stream is in the following format:
*hosted zone ID* / *edge location code*
The edge location code is a three-letter code and an arbitrarily assigned number, for example, DFW3. The three-letter code typically corresponds with the International Air Transport Association airport code for an airport near the edge location. (These abbreviations might change in the future.) For a list of edge locations, see "The Route 53 Global Network" on the Route 53 Product Details page.
queryLoggingConfig - Creates a configuration for DNS query logging. This parameter is required.this@Stability(value=Stable) public CfnHostedZone.Builder vpcs(IResolvable vpcs)
For public hosted zones, omit
VPCs,VPCId, andVPCRegion.
vpcs - *Private hosted zones:* A complex type that contains information about the VPCs that are associated with the specified hosted zone. This parameter is required.this@Stability(value=Stable) public CfnHostedZone.Builder vpcs(List<? extends Object> vpcs)
For public hosted zones, omit
VPCs,VPCId, andVPCRegion.
vpcs - *Private hosted zones:* A complex type that contains information about the VPCs that are associated with the specified hosted zone. This parameter is required.this@Stability(value=Stable) public CfnHostedZone build()
build in interface software.amazon.jsii.Builder<CfnHostedZone>Copyright © 2022. All rights reserved.