AWS::AmplifyUIBuilder::Component ComponentConditionProperty - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

AWS::AmplifyUIBuilder::Component ComponentConditionProperty

The ComponentConditionProperty property specifies a conditional expression for setting a component property. Use ComponentConditionProperty to set a property to different values conditionally, based on the value of another property.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "Else" : ComponentProperty, "Field" : String, "Operand" : String, "OperandType" : String, "Operator" : String, "Property" : String, "Then" : ComponentProperty }

YAML

Else: ComponentProperty Field: String Operand: String OperandType: String Operator: String Property: String Then: ComponentProperty

Properties

Else

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

Required: No

Type: ComponentProperty

Update requires: No interruption

Field

The name of a field. Specify this when the property is a data model.

Required: No

Type: String

Update requires: No interruption

Operand

The value of the property to evaluate.

Required: No

Type: String

Update requires: No interruption

OperandType

The type of the property to evaluate.

Required: No

Type: String

Update requires: No interruption

Operator

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

Required: No

Type: String

Update requires: No interruption

Property

The name of the conditional property.

Required: No

Type: String

Update requires: No interruption

Then

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

Required: No

Type: ComponentProperty

Update requires: No interruption