Class: Aws::AmplifyUIBuilder::Types::ComponentConditionProperty
- Inherits:
-
Struct
- Object
- Struct
- Aws::AmplifyUIBuilder::Types::ComponentConditionProperty
- Defined in:
- gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/types.rb
Overview
When making an API call, you may pass ComponentConditionProperty data as a hash:
{
else: {
binding_properties: {
field: "String",
property: "String", # required
},
bindings: {
"String" => {
element: "String", # required
property: "String", # required
},
},
collection_binding_properties: {
field: "String",
property: "String", # required
},
component_name: "String",
concat: [
{
# recursive ComponentProperty
},
],
condition: {
else: {
# recursive ComponentProperty
},
field: "String",
operand: "String",
operand_type: "String",
operator: "String",
property: "String",
then: {
# recursive ComponentProperty
},
},
configured: false,
default_value: "String",
event: "String",
imported_value: "String",
model: "String",
property: "String",
type: "String",
user_attribute: "String",
value: "String",
},
field: "String",
operand: "String",
operand_type: "String",
operator: "String",
property: "String",
then: {
binding_properties: {
field: "String",
property: "String", # required
},
bindings: {
"String" => {
element: "String", # required
property: "String", # required
},
},
collection_binding_properties: {
field: "String",
property: "String", # required
},
component_name: "String",
concat: [
{
# recursive ComponentProperty
},
],
condition: {
else: {
# recursive ComponentProperty
},
field: "String",
operand: "String",
operand_type: "String",
operator: "String",
property: "String",
then: {
# recursive ComponentProperty
},
},
configured: false,
default_value: "String",
event: "String",
imported_value: "String",
model: "String",
property: "String",
type: "String",
user_attribute: "String",
value: "String",
},
}
Represents a conditional expression to set a component property. Use
ComponentConditionProperty
to set a property to different values
conditionally, based on the value of another property.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#else ⇒ Types::ComponentProperty
The value to assign to the property if the condition is not met.
-
#field ⇒ String
The name of a field.
-
#operand ⇒ String
The value of the property to evaluate.
-
#operand_type ⇒ String
The type of the property to evaluate.
-
#operator ⇒ String
The operator to use to perform the evaluation, such as
eq
to represent equals. -
#property ⇒ String
The name of the conditional property.
-
#then ⇒ Types::ComponentProperty
The value to assign to the property if the condition is met.
Instance Attribute Details
#else ⇒ Types::ComponentProperty
The value to assign to the property if the condition is not met.
1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 |
# File 'gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/types.rb', line 1707 class ComponentConditionProperty < Struct.new( :else, :field, :operand, :operand_type, :operator, :property, :then) SENSITIVE = [] include Aws::Structure end |
#field ⇒ String
The name of a field. Specify this when the property is a data model.
1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 |
# File 'gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/types.rb', line 1707 class ComponentConditionProperty < Struct.new( :else, :field, :operand, :operand_type, :operator, :property, :then) SENSITIVE = [] include Aws::Structure end |
#operand ⇒ String
The value of the property to evaluate.
1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 |
# File 'gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/types.rb', line 1707 class ComponentConditionProperty < Struct.new( :else, :field, :operand, :operand_type, :operator, :property, :then) SENSITIVE = [] include Aws::Structure end |
#operand_type ⇒ String
The type of the property to evaluate.
1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 |
# File 'gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/types.rb', line 1707 class ComponentConditionProperty < Struct.new( :else, :field, :operand, :operand_type, :operator, :property, :then) SENSITIVE = [] include Aws::Structure end |
#operator ⇒ String
The operator to use to perform the evaluation, such as eq
to
represent equals.
1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 |
# File 'gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/types.rb', line 1707 class ComponentConditionProperty < Struct.new( :else, :field, :operand, :operand_type, :operator, :property, :then) SENSITIVE = [] include Aws::Structure end |
#property ⇒ String
The name of the conditional property.
1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 |
# File 'gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/types.rb', line 1707 class ComponentConditionProperty < Struct.new( :else, :field, :operand, :operand_type, :operator, :property, :then) SENSITIVE = [] include Aws::Structure end |
#then ⇒ Types::ComponentProperty
The value to assign to the property if the condition is met.
1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 |
# File 'gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/types.rb', line 1707 class ComponentConditionProperty < Struct.new( :else, :field, :operand, :operand_type, :operator, :property, :then) SENSITIVE = [] include Aws::Structure end |