Class CrossAccountZoneDelegationRecord.Builder
java.lang.Object
software.amazon.awscdk.services.route53.CrossAccountZoneDelegationRecord.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CrossAccountZoneDelegationRecord>
- Enclosing class:
CrossAccountZoneDelegationRecord
@Stability(Stable)
public static final class CrossAccountZoneDelegationRecord.Builder
extends Object
implements software.amazon.jsii.Builder<CrossAccountZoneDelegationRecord>
A fluent builder for
CrossAccountZoneDelegationRecord
.-
Method Summary
Modifier and TypeMethodDescriptionassumeRoleRegion
(String assumeRoleRegion) Region from which to obtain temporary credentials.build()
delegatedZone
(IHostedZone delegatedZone) The zone to be delegated.delegationRole
(IRole delegationRole) The delegation role in the parent account.parentHostedZoneId
(String parentHostedZoneId) The hosted zone id in the parent account.parentHostedZoneName
(String parentHostedZoneName) The hosted zone name in the parent account.removalPolicy
(RemovalPolicy removalPolicy) The removal policy to apply to the record set.The resource record cache time to live (TTL).
-
Method Details
-
create
@Stability(Stable) public static CrossAccountZoneDelegationRecord.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
CrossAccountZoneDelegationRecord.Builder
.
-
delegatedZone
@Stability(Stable) public CrossAccountZoneDelegationRecord.Builder delegatedZone(IHostedZone delegatedZone) The zone to be delegated.- Parameters:
delegatedZone
- The zone to be delegated. This parameter is required.- Returns:
this
-
delegationRole
@Stability(Stable) public CrossAccountZoneDelegationRecord.Builder delegationRole(IRole delegationRole) The delegation role in the parent account.- Parameters:
delegationRole
- The delegation role in the parent account. This parameter is required.- Returns:
this
-
assumeRoleRegion
@Stability(Stable) public CrossAccountZoneDelegationRecord.Builder assumeRoleRegion(String assumeRoleRegion) Region from which to obtain temporary credentials.Default: - the Route53 signing region in the current partition
- Parameters:
assumeRoleRegion
- Region from which to obtain temporary credentials. This parameter is required.- Returns:
this
-
parentHostedZoneId
@Stability(Stable) public CrossAccountZoneDelegationRecord.Builder parentHostedZoneId(String parentHostedZoneId) The hosted zone id in the parent account.Default: - no zone id
- Parameters:
parentHostedZoneId
- The hosted zone id in the parent account. This parameter is required.- Returns:
this
-
parentHostedZoneName
@Stability(Stable) public CrossAccountZoneDelegationRecord.Builder parentHostedZoneName(String parentHostedZoneName) The hosted zone name in the parent account.Default: - no zone name
- Parameters:
parentHostedZoneName
- The hosted zone name in the parent account. This parameter is required.- Returns:
this
-
removalPolicy
@Stability(Stable) public CrossAccountZoneDelegationRecord.Builder removalPolicy(RemovalPolicy removalPolicy) The removal policy to apply to the record set.Default: RemovalPolicy.DESTROY
- Parameters:
removalPolicy
- The removal policy to apply to the record set. This parameter is required.- Returns:
this
-
ttl
The resource record cache time to live (TTL).Default: Duration.days(2)
- Parameters:
ttl
- The resource record cache time to live (TTL). This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CrossAccountZoneDelegationRecord>
- Returns:
- a newly built instance of
CrossAccountZoneDelegationRecord
.
-