@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-28T18:14:31.810Z") @Stability(value=Stable) public abstract class CfnElement extends Construct
software.constructs.Construct.Builder
software.amazon.jsii.JsiiObject.InitializationMode
IConstruct.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
CfnElement(software.constructs.Construct scope,
String id)
Creates an entity and binds it to a tree.
|
protected |
CfnElement(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnElement(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getCreationStack() |
String |
getLogicalId()
The logical ID for this CloudFormation stack element.
|
Stack |
getStack()
The stack in which this element is defined.
|
static Boolean |
isCfnElement(Object x)
Returns `true` if a construct is a stack element (i.e.
|
void |
overrideLogicalId(String newLogicalId)
Overrides the auto-generated logical ID with a specific ID.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected CfnElement(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnElement(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) protected CfnElement(@NotNull software.constructs.Construct scope, @NotNull 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.@Stability(value=Stable) @NotNull public static Boolean isCfnElement(@NotNull 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.@Stability(value=Stable) public void overrideLogicalId(@NotNull String newLogicalId)
newLogicalId
- The new logical ID to use for this stack element. This parameter is required.@Stability(value=Stable) @NotNull public List<String> getCreationStack()
@Stability(value=Stable) @NotNull public 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)
.
@Stability(value=Stable) @NotNull public Stack getStack()
CfnElements must be defined within a stack scope (directly or indirectly).
Copyright © 2022. All rights reserved.