Class CrossAccountZoneDelegationRecord
A Cross Account Zone Delegation record.
Inheritance
System.Object
CrossAccountZoneDelegationRecord
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CrossAccountZoneDelegationRecord : Construct
Syntax (vb)
Public Class CrossAccountZoneDelegationRecord
Inherits Construct
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
CrossAccountZoneDelegationRecord(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CrossAccountZoneDelegationRecord(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CrossAccountZoneDelegationRecord(Construct, String, ICrossAccountZoneDelegationRecordProps) |
Constructors
CrossAccountZoneDelegationRecord(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CrossAccountZoneDelegationRecord(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CrossAccountZoneDelegationRecord(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CrossAccountZoneDelegationRecord(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CrossAccountZoneDelegationRecord(Construct, String, ICrossAccountZoneDelegationRecordProps)
public CrossAccountZoneDelegationRecord(Construct scope, string id, ICrossAccountZoneDelegationRecordProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props ICrossAccountZoneDelegationRecordProps