@Generated(value="jsii-pacmak/1.11.0 (build 1e9b8e1)", date="2020-09-03T17:04:05.305Z") @Stability(value=Stable) public class CfnJson extends Construct implements IResolvable
The main use case for this is to overcome a limitation in CloudFormation that
does not allow using intrinsic functions as dictionary keys (because
dictionary keys in JSON must be strings). Specifically this is common in IAM
conditions such as StringEquals: { lhs: "rhs" } where you want "lhs" to be
a reference.
This object is resolvable, so it can be used as a value.
This construct is backed by a custom resource.
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnJson.Builder
A fluent builder for
CfnJson. |
software.amazon.jsii.JsiiObject.InitializationModeIResolvable.Jsii$ProxyIConstruct.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
CfnJson(Construct scope,
String id,
CfnJsonProps props) |
protected |
CfnJson(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnJson(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getCreationStack()
The creation stack of this resolvable which will be appended to errors thrown during resolution.
|
Object |
resolve(IResolveContext _)
Produce the Token's value at resolution time.
|
String |
toJSON()
This is required in case someone JSON.stringifys an object which refrences this object.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringprotected CfnJson(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnJson(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnJson(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnJsonProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public Object resolve(@NotNull IResolveContext _)
resolve in interface IResolvable_ - This parameter is required.@Stability(value=Stable) @NotNull public String toJSON()
@Stability(value=Stable) @NotNull public List<String> getCreationStack()
If this returns an empty array the stack will not be attached.
getCreationStack in interface IResolvableCopyright © 2020. All rights reserved.