IPublicHostedZone
- class aws_cdk.aws_route53.IPublicHostedZone(*args, **kwargs)
Bases:
IHostedZone,ProtocolRepresents a Route 53 public hosted zone.
Methods
- apply_removal_policy(policy)
Apply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you’ve removed it from the CDK application or because you’ve made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).- Parameters:
policy (
RemovalPolicy)- Return type:
None
- grant_delegation(grantee, *, delegated_zone_names=None)
Grant permissions to add delegation records to this zone.
- Parameters:
grantee (
IGrantable)delegated_zone_names (
Optional[Sequence[str]]) – List of hosted zone names to allow delegation to in the grant permissions. If the delegated zone name contains an unresolved token, it must resolve to a zone name that satisfies the requirements according to the documentation: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/specifying-conditions-route53.html#route53_rrset_conditionkeys_normalization .. epigraph:: All letters must be lowercase. The DNS name must be without the trailing dot. Characters other than a–z, 0–9, - (hyphen), _ (underscore), and . (period, as a delimiter between labels) must use escape codes in the format three-digit octal code. For example, 052 is the octal code for character *. Default: the grant allows delegation to any hosted zone
- Return type:
Attributes
- env
The environment this resource belongs to.
For resources that are created and managed in a Stack (those created by creating new class instances like
new Role(),new Bucket(), etc.), this is always the same as the environment of the stack they belong to.For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(),Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.
- hosted_zone_arn
route53:::hostedzone/${Id}.
- Attribute:
true
- Type:
ARN of this hosted zone, such as arn
- Type:
${Partition}
- hosted_zone_id
ID of this hosted zone, such as “Z23ABC4XYZL05B”.
- Attribute:
true
- hosted_zone_name_servers
ns1.example.com.
This attribute will be undefined for private hosted zones or hosted zones imported from another stack.
- Attribute:
true
- Type:
Returns the set of name servers for the specific hosted zone. For example
- node
The tree node.
- stack
The stack in which this resource is defined.
- zone_name
FQDN of this hosted zone.