Class CrossAccountZoneDelegationRecordProps
Construction properties for a CrossAccountZoneDelegationRecord.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CrossAccountZoneDelegationRecordProps : Object, ICrossAccountZoneDelegationRecordProps
Syntax (vb)
Public Class CrossAccountZoneDelegationRecordProps
Inherits Object
Implements ICrossAccountZoneDelegationRecordProps
Remarks
ExampleMetadata: infused
Examples
var subZone = new PublicHostedZone(this, "SubZone", new PublicHostedZoneProps {
ZoneName = "sub.someexample.com"
});
// import the delegation role by constructing the roleArn
var delegationRoleArn = Stack.Of(this).FormatArn(new ArnComponents {
Region = "", // IAM is global in each partition
Service = "iam",
Account = "parent-account-id",
Resource = "role",
ResourceName = "MyDelegationRole"
});
var delegationRole = Role.FromRoleArn(this, "DelegationRole", delegationRoleArn);
// create the record
// create the record
new CrossAccountZoneDelegationRecord(this, "delegate", new CrossAccountZoneDelegationRecordProps {
DelegatedZone = subZone,
ParentHostedZoneName = "someexample.com", // or you can use parentHostedZoneId
DelegationRole = delegationRole
});
Synopsis
Constructors
CrossAccountZoneDelegationRecordProps() |
Properties
AssumeRoleRegion | Region from which to obtain temporary credentials. |
DelegatedZone | The zone to be delegated. |
DelegationRole | The delegation role in the parent account. |
ParentHostedZoneId | The hosted zone id in the parent account. |
ParentHostedZoneName | The hosted zone name in the parent account. |
RemovalPolicy | The removal policy to apply to the record set. |
Ttl | The resource record cache time to live (TTL). |
Constructors
CrossAccountZoneDelegationRecordProps()
public CrossAccountZoneDelegationRecordProps()
Properties
AssumeRoleRegion
Region from which to obtain temporary credentials.
public string AssumeRoleRegion { get; set; }
Property Value
System.String
Remarks
Default: - the Route53 signing region in the current partition
DelegatedZone
DelegationRole
The delegation role in the parent account.
public IRole DelegationRole { get; set; }
Property Value
ParentHostedZoneId
The hosted zone id in the parent account.
public string ParentHostedZoneId { get; set; }
Property Value
System.String
Remarks
Default: - no zone id
ParentHostedZoneName
The hosted zone name in the parent account.
public string ParentHostedZoneName { get; set; }
Property Value
System.String
Remarks
Default: - no zone name
RemovalPolicy
The removal policy to apply to the record set.
public Nullable<RemovalPolicy> RemovalPolicy { get; set; }
Property Value
System.Nullable<RemovalPolicy>
Remarks
Default: RemovalPolicy.DESTROY
Ttl
The resource record cache time to live (TTL).
public Duration Ttl { get; set; }
Property Value
Remarks
Default: Duration.days(2)