Show / Hide Table of Contents

Class CfnConditionProps

Inheritance
object
CfnConditionProps
Implements
ICfnConditionProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

ICfnConditionExpression

Remarks

Default: - None.

Implements

ICfnConditionProps
Back to top Generated by DocFX