@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.801Z") @Stability(value=Stable) public class CfnCondition extends CfnElement implements ICfnConditionExpression, IResolvable
Example:
// Example automatically generated from non-compiling source. May contain errors.
CfnBucket rawBucket = CfnBucket.Builder.create(this, "Bucket").build();
// -or-
CfnBucket rawBucketAlt = (CfnBucket)myBucket.getNode().getDefaultChild();
// then
rawBucket.getCfnOptions().getCondition() = CfnCondition.Builder.create(this, "EnableBucket").build();
rawBucket.getCfnOptions().getMetadata() = Map.of(
"metadataKey", "MetadataValue");
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnCondition.Builder
A fluent builder for
CfnCondition. |
software.amazon.jsii.JsiiObject.InitializationModeICfnConditionExpression.Jsii$Default, ICfnConditionExpression.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
CfnCondition(software.constructs.Construct scope,
String id)
Build a new condition.
|
|
CfnCondition(software.constructs.Construct scope,
String id,
CfnConditionProps props)
Build a new condition.
|
protected |
CfnCondition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnCondition(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
ICfnConditionExpression |
getExpression()
The condition statement.
|
Object |
resolve(IResolveContext _context)
Synthesizes the condition.
|
void |
setExpression(ICfnConditionExpression value)
The condition statement.
|
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCreationStack, toStringprotected CfnCondition(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnCondition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnCondition(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnConditionProps props)
The condition must be constructed with a condition token, that the condition is based on.
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Stable)
public CfnCondition(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
The condition must be constructed with a condition token, that the condition is based on.
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public Object resolve(@NotNull IResolveContext _context)
resolve in interface IResolvable_context - This parameter is required.@Stability(value=Stable) @Nullable public ICfnConditionExpression getExpression()
@Stability(value=Stable)
public void setExpression(@Nullable
ICfnConditionExpression value)
Copyright © 2022. All rights reserved.