Interface CrossAccountZoneDelegationRecordProps

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.009Z") @Stability(Stable) public interface CrossAccountZoneDelegationRecordProps extends
Construction properties for a CrossAccountZoneDelegationRecord.


 PublicHostedZone subZone = PublicHostedZone.Builder.create(this, "SubZone")
 // import the delegation role by constructing the roleArn
 String delegationRoleArn = Stack.of(this).formatArn(ArnComponents.builder()
         .region("") // IAM is global in each partition
 IRole delegationRole = Role.fromRoleArn(this, "DelegationRole", delegationRoleArn);
 // create the record
 // create the record
 CrossAccountZoneDelegationRecord.Builder.create(this, "delegate")
         .parentHostedZoneName("") // or you can use parentHostedZoneId
  • Method Details

    • getDelegatedZone

      @Stability(Stable) @NotNull IHostedZone getDelegatedZone()
      The zone to be delegated.
    • getDelegationRole

      @Stability(Stable) @NotNull IRole getDelegationRole()
      The delegation role in the parent account.
    • getParentHostedZoneId

      @Stability(Stable) @Nullable default String getParentHostedZoneId()
      The hosted zone id in the parent account.

      Default: - no zone id

    • getParentHostedZoneName

      @Stability(Stable) @Nullable default String getParentHostedZoneName()
      The hosted zone name in the parent account.

      Default: - no zone name

    • getRemovalPolicy

      @Stability(Stable) @Nullable default RemovalPolicy getRemovalPolicy()
      The removal policy to apply to the record set.

      Default: RemovalPolicy.DESTROY

    • getTtl

      @Stability(Stable) @Nullable default Duration getTtl()
      The resource record cache time to live (TTL).

      Default: Duration.days(2)

    • builder

      @Stability(Stable) static CrossAccountZoneDelegationRecordProps.Builder builder()
      a CrossAccountZoneDelegationRecordProps.Builder of CrossAccountZoneDelegationRecordProps