@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:42.431Z") @Stability(value=Experimental) public abstract class CfnRefElement extends CfnElement
These constructs are things like Conditions and Parameters, can be
referenced by taking the .ref
attribute.
Resource constructs do not inherit from CfnRefElement because they have their own, more specific types returned from the .ref attribute. Also, some resources aren't referenceable at all (such as BucketPolicies or GatewayAttachments).
Modifier | Constructor and Description |
---|---|
protected |
CfnRefElement(software.constructs.Construct scope,
String id)
(experimental) Creates an entity and binds it to a tree.
|
protected |
CfnRefElement(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnRefElement(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
String |
getRef()
(experimental) Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
|
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected CfnRefElement(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnRefElement(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) protected CfnRefElement(@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=Experimental) @NotNull public String getRef()
If, by any chance, the intrinsic reference of a resource is not a string, you could
coerce it to an IResolvable through Lazy.any({ produce: resource.ref })
.
Copyright © 2021. All rights reserved.