interface CfnConditionProps
Language | Type name |
---|---|
.NET | Amazon.CDK.CfnConditionProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2#CfnConditionProps |
Java | software.amazon.awscdk.CfnConditionProps |
Python | aws_cdk.CfnConditionProps |
TypeScript (source) | aws-cdk-lib » CfnConditionProps |
Example
const rawBucket = new s3.CfnBucket(this, 'Bucket', { /* ... */ });
// -or-
const rawBucketAlt = myBucket.node.defaultChild as s3.CfnBucket;
// then
rawBucket.cfnOptions.condition = new CfnCondition(this, 'EnableBucket', { /* ... */ });
rawBucket.cfnOptions.metadata = {
metadataKey: 'MetadataValue',
};
Properties
Name | Type | Description |
---|---|---|
expression? | ICfn | The expression that the condition will evaluate. |
expression?
Type:
ICfn
(optional, default: None.)
The expression that the condition will evaluate.