Show / Hide Table of Contents

Class CfnComponentPropsMixin.ComponentConditionPropertyProperty

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

Inheritance
object
CfnComponentPropsMixin.ComponentConditionPropertyProperty
Implements
CfnComponentPropsMixin.IComponentConditionPropertyProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.Mixins.Preview.AWS.AmplifyUIBuilder.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnComponentPropsMixin.ComponentConditionPropertyProperty : CfnComponentPropsMixin.IComponentConditionPropertyProperty
Syntax (vb)
Public Class CfnComponentPropsMixin.ComponentConditionPropertyProperty Implements CfnComponentPropsMixin.IComponentConditionPropertyProperty
Remarks

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

See: 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.Mixins.Preview.AWS.AmplifyUIBuilder.Mixins;

             ComponentConditionPropertyProperty componentConditionPropertyProperty_;
             ComponentPropertyProperty componentPropertyProperty_;

             var componentConditionPropertyProperty = new ComponentConditionPropertyProperty {
                 Else = new ComponentPropertyProperty {
                     BindingProperties = new ComponentPropertyBindingPropertiesProperty {
                         Field = "field",
                         Property = "property"
                     },
                     Bindings = new Dictionary<string, object> {
                         { "bindingsKey", new FormBindingElementProperty {
                             Element = "element",
                             Property = "property"
                         } }
                     },
                     CollectionBindingProperties = new ComponentPropertyBindingPropertiesProperty {
                         Field = "field",
                         Property = "property"
                     },
                     ComponentName = "componentName",
                     Concat = new [] { componentPropertyProperty_ },
                     Condition = componentConditionPropertyProperty_,
                     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 {
                         Field = "field",
                         Property = "property"
                     },
                     Bindings = new Dictionary<string, object> {
                         { "bindingsKey", new FormBindingElementProperty {
                             Element = "element",
                             Property = "property"
                         } }
                     },
                     CollectionBindingProperties = new ComponentPropertyBindingPropertiesProperty {
                         Field = "field",
                         Property = "property"
                     },
                     ComponentName = "componentName",
                     Concat = new [] { componentPropertyProperty_ },
                     Condition = componentConditionPropertyProperty_,
                     Configured = false,
                     DefaultValue = "defaultValue",
                     Event = "event",
                     ImportedValue = "importedValue",
                     Model = "model",
                     Property = "property",
                     Type = "type",
                     UserAttribute = "userAttribute",
                     Value = "value"
                 }
             };

Synopsis

Constructors

ComponentConditionPropertyProperty()

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

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.

Constructors

ComponentConditionPropertyProperty()

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

public ComponentConditionPropertyProperty()
Remarks

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

See: 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.Mixins.Preview.AWS.AmplifyUIBuilder.Mixins;

             ComponentConditionPropertyProperty componentConditionPropertyProperty_;
             ComponentPropertyProperty componentPropertyProperty_;

             var componentConditionPropertyProperty = new ComponentConditionPropertyProperty {
                 Else = new ComponentPropertyProperty {
                     BindingProperties = new ComponentPropertyBindingPropertiesProperty {
                         Field = "field",
                         Property = "property"
                     },
                     Bindings = new Dictionary<string, object> {
                         { "bindingsKey", new FormBindingElementProperty {
                             Element = "element",
                             Property = "property"
                         } }
                     },
                     CollectionBindingProperties = new ComponentPropertyBindingPropertiesProperty {
                         Field = "field",
                         Property = "property"
                     },
                     ComponentName = "componentName",
                     Concat = new [] { componentPropertyProperty_ },
                     Condition = componentConditionPropertyProperty_,
                     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 {
                         Field = "field",
                         Property = "property"
                     },
                     Bindings = new Dictionary<string, object> {
                         { "bindingsKey", new FormBindingElementProperty {
                             Element = "element",
                             Property = "property"
                         } }
                     },
                     CollectionBindingProperties = new ComponentPropertyBindingPropertiesProperty {
                         Field = "field",
                         Property = "property"
                     },
                     ComponentName = "componentName",
                     Concat = new [] { componentPropertyProperty_ },
                     Condition = componentConditionPropertyProperty_,
                     Configured = false,
                     DefaultValue = "defaultValue",
                     Event = "event",
                     ImportedValue = "importedValue",
                     Model = "model",
                     Property = "property",
                     Type = "type",
                     UserAttribute = "userAttribute",
                     Value = "value"
                 }
             };

Properties

Else

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

public object? Else { get; set; }
Property Value

object

Remarks

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

Type union: either IResolvable or CfnComponentPropsMixin.IComponentPropertyProperty

Field

The name of a field.

public string? Field { get; set; }
Property Value

string

Remarks

Specify this when the property is a data model.

See: 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.

public string? Operand { get; set; }
Property Value

string

Remarks

See: 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.

public string? OperandType { get; set; }
Property Value

string

Remarks

See: 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.

public string? Operator { get; set; }
Property Value

string

Remarks

See: 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.

public string? Property { get; set; }
Property Value

string

Remarks

See: 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.

public object? Then { get; set; }
Property Value

object

Remarks

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

Type union: either IResolvable or CfnComponentPropsMixin.IComponentPropertyProperty

Implements

CfnComponentPropsMixin.IComponentConditionPropertyProperty
Back to top Generated by DocFX