@Stability(value=Experimental) public static final class ResourceProps.Builder extends Object implements software.amazon.jsii.Builder<ResourceProps>
ResourceProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ResourceProps.Builder |
account(String account)
Sets the value of
ResourceProps.getAccount() |
ResourceProps |
build()
Builds the configured instance.
|
ResourceProps.Builder |
environmentFromArn(String environmentFromArn)
Sets the value of
ResourceProps.getEnvironmentFromArn() |
ResourceProps.Builder |
physicalName(String physicalName)
Sets the value of
ResourceProps.getPhysicalName() |
ResourceProps.Builder |
region(String region)
Sets the value of
ResourceProps.getRegion() |
@Stability(value=Experimental) public ResourceProps.Builder account(String account)
ResourceProps.getAccount()account - The AWS account ID this resource belongs to.this@Stability(value=Experimental) public ResourceProps.Builder environmentFromArn(String environmentFromArn)
ResourceProps.getEnvironmentFromArn()environmentFromArn - ARN to deduce region and account from.
The ARN is parsed and the account and region are taken from the ARN.
This should be used for imported resources.
Cannot be supplied together with either account or region.
this@Stability(value=Experimental) public ResourceProps.Builder physicalName(String physicalName)
ResourceProps.getPhysicalName()physicalName - The value passed in by users to the physical name prop of the resource.
undefined implies that a physical name will be allocated by
CloudFormation during deployment.PhysicalName.GENERATE_IF_NEEDED is a marker that indicates that a physical will only be generated
by the CDK if it is needed for cross-environment references. Otherwise, it will be allocated by CloudFormation.this@Stability(value=Experimental) public ResourceProps.Builder region(String region)
ResourceProps.getRegion()region - The AWS region this resource belongs to.this@Stability(value=Experimental) public ResourceProps build()
build in interface software.amazon.jsii.Builder<ResourceProps>ResourcePropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.