CfnConditionProps
- class aws_cdk.core.CfnConditionProps(*, expression=None)
Bases:
object
- Parameters:
expression (
Optional
[ICfnConditionExpression
]) – The expression that the condition will evaluate. Default: - None.- ExampleMetadata:
infused
Example:
raw_bucket = s3.CfnBucket(self, "Bucket") # -or- raw_bucket_alt = my_bucket.node.default_child # then raw_bucket.cfn_options.condition = CfnCondition(self, "EnableBucket") raw_bucket.cfn_options.metadata = { "metadata_key": "MetadataValue" }
Attributes
- expression
The expression that the condition will evaluate.
- Default:
None.