@Generated(value="jsii-pacmak/0.20.11 (build d4fd44f)", date="2019-12-17T13:05:19.644Z") @Stability(value=Stable) public abstract class Resource extends Construct implements IResource
| Modifier | Constructor and Description |
|---|---|
protected |
Resource(Construct scope,
String id) |
protected |
Resource(Construct scope,
String id,
ResourceProps props) |
protected |
Resource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Resource(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
generatePhysicalName() |
protected String |
getPhysicalName()
Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
|
protected String |
getResourceArnAttribute(String arnAttr,
ArnComponents arnComponents)
Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g.
|
protected String |
getResourceNameAttribute(String nameAttr)
Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g.
|
Stack |
getStack()
The stack in which this resource is defined.
|
getNode, isConstruct, prepare, synthesize, toString, validatejsiiAsyncCall, jsiiCall, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticGet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNodeprotected Resource(software.amazon.jsii.JsiiObjectRef objRef)
protected Resource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) protected Resource(Construct scope, String id, ResourceProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Stable) protected String generatePhysicalName()
@Stability(value=Experimental) protected String getResourceArnAttribute(String arnAttr, ArnComponents arnComponents)
Normally, this token will resolve to arnAttr, but if the resource is
referenced across environments, arnComponents will be used to synthesize
a concrete ARN with the resource's physical name. Make sure to reference
this.physicalName in arnComponents.
arnAttr - The CFN attribute which resolves to the ARN of the resource. Commonly it will be called "Arn" (e.g. `resource.attrArn`), but sometimes it's the CFN resource's `ref`. This parameter is required.arnComponents - The format of the ARN of this resource. This parameter is required.@Stability(value=Experimental) protected String getResourceNameAttribute(String nameAttr)
Normally, this token will resolve to nameAttr, but if the resource is
referenced across environments, it will be resolved to this.physicalName,
which will be a concrete name.
nameAttr - The CFN attribute which resolves to the resource's name. Commonly this is the resource's `ref`. This parameter is required.@Stability(value=Experimental) protected String getPhysicalName()
This value will resolve to one of the following:
"my-awesome-bucket")undefined, when a name should be generated by CloudFormationCopyright © 2019. All rights reserved.