Interface IHostedZone

All Superinterfaces:
software.constructs.IConstruct, software.constructs.IDependable, IEnvironmentAware, IHostedZoneRef, INamedHostedZoneRef, IResource, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IHostedZone.Jsii$Default, IPrivateHostedZone, IPrivateHostedZone.Jsii$Default, IPublicHostedZone, IPublicHostedZone.Jsii$Default
All Known Implementing Classes:
HostedZone, IHostedZone.Jsii$Proxy, IPrivateHostedZone.Jsii$Proxy, IPublicHostedZone.Jsii$Proxy, PrivateHostedZone, PublicHostedZone

@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)", date="2025-12-05T22:26:44.268Z") @Stability(Stable) public interface IHostedZone extends software.amazon.jsii.JsiiSerializable, IResource, INamedHostedZoneRef
Imported or created hosted zone.
  • Method Details

    • getHostedZoneArn

      @Stability(Stable) @NotNull String getHostedZoneArn()
      ARN of this hosted zone, such as arn:${Partition}:route53:::hostedzone/${Id}.
    • getHostedZoneId

      @Stability(Stable) @NotNull String getHostedZoneId()
      ID of this hosted zone, such as "Z23ABC4XYZL05B".
    • getZoneName

      @Stability(Stable) @NotNull String getZoneName()
      FQDN of this hosted zone.
    • getHostedZoneNameServers

      @Stability(Stable) @Nullable default List<String> getHostedZoneNameServers()
      Returns the set of name servers for the specific hosted zone. For example: ns1.example.com.

      This attribute will be undefined for private hosted zones or hosted zones imported from another stack.

    • grantDelegation

      @Stability(Stable) @NotNull Grant grantDelegation(@NotNull IGrantable grantee, @Nullable GrantDelegationOptions options)
      Grant permissions to add delegation records to this zone.

      Parameters:
      grantee - This parameter is required.
      options -
    • grantDelegation

      @Stability(Stable) @NotNull Grant grantDelegation(@NotNull IGrantable grantee)
      Grant permissions to add delegation records to this zone.

      Parameters:
      grantee - This parameter is required.
    • getNode

      @Stability(Stable) @NotNull software.constructs.Node getNode()
      The tree node.
      Specified by:
      getNode in interface software.constructs.IConstruct
    • getEnv

      @Stability(Stable) @NotNull ResourceEnvironment getEnv()
      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.

      Specified by:
      getEnv in interface IEnvironmentAware