HostedZoneGrants

class aws_cdk.aws_route53.HostedZoneGrants(*args: Any, **kwargs)

Bases: object

Collection of grant methods for a INamedHostedZoneRef.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_route53 as route53

# named_hosted_zone_ref: route53.INamedHostedZoneRef

hosted_zone_grants = route53.HostedZoneGrants.from_hosted_zone(named_hosted_zone_ref)

Methods

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:

Grant

Static Methods

classmethod from_hosted_zone(hosted_zone)

Creates grants for INamedHostedZoneRef.

Parameters:

hosted_zone (INamedHostedZoneRef)

Return type:

HostedZoneGrants