Show / Hide Table of Contents

Interface CfnComponent.IComponentConditionPropertyProperty

The ComponentConditionProperty property specifies a conditional expression for setting a component property.

Namespace: Amazon.CDK.AWS.AmplifyUIBuilder
Assembly: Amazon.CDK.AWS.AmplifyUIBuilder.dll
Syntax (csharp)
public interface IComponentConditionPropertyProperty
Syntax (vb)
Public Interface IComponentConditionPropertyProperty
Remarks

Use ComponentConditionProperty to set a property to different values conditionally, based on the value of another property.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentconditionproperty.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AmplifyUIBuilder;

ComponentPropertyProperty componentPropertyProperty_;

var componentConditionPropertyProperty = new ComponentConditionPropertyProperty {
    Else = new ComponentPropertyProperty {
        BindingProperties = new ComponentPropertyBindingPropertiesProperty {
            Property = "property",

            // the properties below are optional
            Field = "field"
        },
        Bindings = new Dictionary<string, object> {
            { "bindingsKey", new FormBindingElementProperty {
                Element = "element",
                Property = "property"
            } }
        },
        CollectionBindingProperties = new ComponentPropertyBindingPropertiesProperty {
            Property = "property",

            // the properties below are optional
            Field = "field"
        },
        ComponentName = "componentName",
        Concat = new [] { componentPropertyProperty_ },
        Condition = new ComponentConditionPropertyProperty {
            Else = componentPropertyProperty_,
            Field = "field",
            Operand = "operand",
            OperandType = "operandType",
            Operator = "operator",
            Property = "property",
            Then = componentPropertyProperty_
        },
        Configured = false,
        DefaultValue = "defaultValue",
        Event = "event",
        ImportedValue = "importedValue",
        Model = "model",
        Property = "property",
        Type = "type",
        UserAttribute = "userAttribute",
        Value = "value"
    },
    Field = "field",
    Operand = "operand",
    OperandType = "operandType",
    Operator = "operator",
    Property = "property",
    Then = new ComponentPropertyProperty {
        BindingProperties = new ComponentPropertyBindingPropertiesProperty {
            Property = "property",

            // the properties below are optional
            Field = "field"
        },
        Bindings = new Dictionary<string, object> {
            { "bindingsKey", new FormBindingElementProperty {
                Element = "element",
                Property = "property"
            } }
        },
        CollectionBindingProperties = new ComponentPropertyBindingPropertiesProperty {
            Property = "property",

            // the properties below are optional
            Field = "field"
        },
        ComponentName = "componentName",
        Concat = new [] { componentPropertyProperty_ },
        Condition = new ComponentConditionPropertyProperty {
            Else = componentPropertyProperty_,
            Field = "field",
            Operand = "operand",
            OperandType = "operandType",
            Operator = "operator",
            Property = "property",
            Then = componentPropertyProperty_
        },
        Configured = false,
        DefaultValue = "defaultValue",
        Event = "event",
        ImportedValue = "importedValue",
        Model = "model",
        Property = "property",
        Type = "type",
        UserAttribute = "userAttribute",
        Value = "value"
    }
};

Synopsis

Properties

Else

The value to assign to the property if the condition is not met.

Field

The name of a field.

Operand

The value of the property to evaluate.

OperandType

The type of the property to evaluate.

Operator

The operator to use to perform the evaluation, such as eq to represent equals.

Property

The name of the conditional property.

Then

The value to assign to the property if the condition is met.

Properties

Else

The value to assign to the property if the condition is not met.

virtual object Else { get; }
Property Value

System.Object

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentconditionproperty.html#cfn-amplifyuibuilder-component-componentconditionproperty-else

Field

The name of a field.

virtual string Field { get; }
Property Value

System.String

Remarks

Specify this when the property is a data model.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentconditionproperty.html#cfn-amplifyuibuilder-component-componentconditionproperty-field

Operand

The value of the property to evaluate.

virtual string Operand { get; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentconditionproperty.html#cfn-amplifyuibuilder-component-componentconditionproperty-operand

OperandType

The type of the property to evaluate.

virtual string OperandType { get; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentconditionproperty.html#cfn-amplifyuibuilder-component-componentconditionproperty-operandtype

Operator

The operator to use to perform the evaluation, such as eq to represent equals.

virtual string Operator { get; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentconditionproperty.html#cfn-amplifyuibuilder-component-componentconditionproperty-operator

Property

The name of the conditional property.

virtual string Property { get; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentconditionproperty.html#cfn-amplifyuibuilder-component-componentconditionproperty-property

Then

The value to assign to the property if the condition is met.

virtual object Then { get; }
Property Value

System.Object

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentconditionproperty.html#cfn-amplifyuibuilder-component-componentconditionproperty-then

Back to top Generated by DocFX