Package software.amazon.awscdk.core
Interface CfnJsonProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnJsonProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:54.857Z")
@Stability(Stable)
public interface CfnJsonProps
extends software.amazon.jsii.JsiiSerializable
Example:
CfnParameter tagParam = new CfnParameter(this, "TagName");
CfnJson stringEquals = CfnJson.Builder.create(this, "ConditionJson")
.value(Map.of(
String.format("aws:PrincipalTag/%s", tagParam.getValueAsString()), true))
.build();
PrincipalBase principal = new AccountRootPrincipal().withConditions(Map.of(
"StringEquals", stringEquals));
Role.Builder.create(this, "MyRole").assumedBy(principal).build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnJsonPropsstatic final classAn implementation forCfnJsonProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnJsonProps.Builderbuilder()getValue()The value to resolve.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getValue
The value to resolve.Can be any JavaScript object, including tokens and references in keys or values.
-
builder
- Returns:
- a
CfnJsonProps.BuilderofCfnJsonProps
-