@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-25T18:28:55.940Z") public abstract class CfnElement extends Construct
IConstruct.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
CfnElement(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnElement(software.amazon.jsii.JsiiObjectRef objRef) |
protected |
CfnElement(software.constructs.Construct scope,
java.lang.String id)
Creates an entity and binds it to a tree.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getCreationStack() |
java.lang.String |
getLogicalId()
The logical ID for this CloudFormation stack element.
|
Stack |
getStack()
The stack in which this element is defined.
|
static java.lang.Boolean |
isCfnElement(java.lang.Object x)
Returns `true` if a construct is a stack element (i.e.
|
void |
overrideLogicalId(java.lang.String newLogicalId)
Overrides the auto-generated logical ID with a specific ID.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
protected CfnElement(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnElement(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected CfnElement(software.constructs.Construct scope, java.lang.String id)
Note that the root of the tree must be a Stack object (not just any Root).
scope
- The parent construct. This parameter is required.id
- This parameter is required.public static java.lang.Boolean isCfnElement(java.lang.Object x)
Uses duck-typing instead of instanceof
to allow stack elements from different
versions of this library to be included in the same stack.
x
- This parameter is required.public void overrideLogicalId(java.lang.String newLogicalId)
newLogicalId
- The new logical ID to use for this stack element. This parameter is required.public java.util.List<java.lang.String> getCreationStack()
public java.lang.String getLogicalId()
The logical ID of the element is calculated from the path of the resource node in the construct tree.
To override this value, use overrideLogicalId(newLogicalId)
.
public Stack getStack()
CfnElements must be defined within a stack scope (directly or indirectly).