@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.790Z") @Stability(value=Stable) public interface ArnComponents extends software.amazon.jsii.JsiiSerializable
PublicHostedZone subZone = PublicHostedZone.Builder.create(this, "SubZone")
.zoneName("sub.someexample.com")
.build();
// import the delegation role by constructing the roleArn
String delegationRoleArn = Stack.of(this).formatArn(ArnComponents.builder()
.region("") // IAM is global in each partition
.service("iam")
.account("parent-account-id")
.resource("role")
.resourceName("MyDelegationRole")
.build());
IRole delegationRole = Role.fromRoleArn(this, "DelegationRole", delegationRoleArn);
// create the record
// create the record
CrossAccountZoneDelegationRecord.Builder.create(this, "delegate")
.delegatedZone(subZone)
.parentHostedZoneName("someexample.com") // or you can use parentHostedZoneId
.delegationRole(delegationRole)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ArnComponents.Builder
A builder for
ArnComponents |
static class |
ArnComponents.Jsii$Proxy
An implementation for
ArnComponents |
| Modifier and Type | Method and Description |
|---|---|
static ArnComponents.Builder |
builder() |
default String |
getAccount()
The ID of the AWS account that owns the resource, without the hyphens.
|
default ArnFormat |
getArnFormat()
The specific ARN format to use for this ARN value.
|
default String |
getPartition()
The partition that the resource is in.
|
default String |
getRegion()
The region the resource resides in.
|
String |
getResource()
Resource type (e.g.
|
default String |
getResourceName()
Resource name or path within the resource (i.e.
|
String |
getService()
The service namespace that identifies the AWS product (for example, 's3', 'iam', 'codepipline').
|
@Stability(value=Stable) @NotNull String getResource()
@Stability(value=Stable) @NotNull String getService()
@Stability(value=Stable) @Nullable default String getAccount()
For example, 123456789012. Note that the ARNs for some resources don't require an account number, so this component might be omitted.
Default: The account the stack is deployed to.
@Stability(value=Stable) @Nullable default ArnFormat getArnFormat()
Default: - uses value of `sep` as the separator for formatting, `ArnFormat.SLASH_RESOURCE_NAME` if that property was also not provided
@Stability(value=Stable) @Nullable default String getPartition()
For standard AWS regions, the partition is aws. If you have resources in other partitions, the partition is aws-partitionname. For example, the partition for resources in the China (Beijing) region is aws-cn.
Default: The AWS partition the stack is deployed to.
@Stability(value=Stable) @Nullable default String getRegion()
Note that the ARNs for some resources do not require a region, so this component might be omitted.
Default: The region the stack is deployed to.
@Stability(value=Stable) @Nullable default String getResourceName()
@Stability(value=Stable) static ArnComponents.Builder builder()
ArnComponents.Builder of ArnComponentsCopyright © 2022. All rights reserved.