Class CfnConditionProps
Implements
Inherited Members
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnConditionProps : ICfnConditionProps
Syntax (vb)
Public Class CfnConditionProps Implements ICfnConditionProps
Remarks
ExampleMetadata: infused
Examples
var rawBucket = new CfnBucket(this, "Bucket", new CfnBucketProps { });
// -or-
var rawBucketAlt = (CfnBucket)myBucket.Node.DefaultChild;
// then
rawBucket.CfnOptions.Condition = new CfnCondition(this, "EnableBucket", new CfnConditionProps { });
rawBucket.CfnOptions.Metadata = new Dictionary<string, object> {
{ "metadataKey", "MetadataValue" }
};
Synopsis
Constructors
| CfnConditionProps() |
Properties
| Expression | The expression that the condition will evaluate. |
Constructors
CfnConditionProps()
public CfnConditionProps()
Remarks
ExampleMetadata: infused
Examples
var rawBucket = new CfnBucket(this, "Bucket", new CfnBucketProps { });
// -or-
var rawBucketAlt = (CfnBucket)myBucket.Node.DefaultChild;
// then
rawBucket.CfnOptions.Condition = new CfnCondition(this, "EnableBucket", new CfnConditionProps { });
rawBucket.CfnOptions.Metadata = new Dictionary<string, object> {
{ "metadataKey", "MetadataValue" }
};
Properties
Expression
The expression that the condition will evaluate.
public ICfnConditionExpression? Expression { get; set; }
Property Value
Remarks
Default: - None.