Class: Aws::AmplifyUIBuilder::Types::ComponentConditionProperty

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/types.rb

Overview

Note:

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

Instance Attribute Details

#elseTypes::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

#fieldString

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

Returns:

  • (String)


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

#operandString

The value of the property to evaluate.

Returns:

  • (String)


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_typeString

The type of the property to evaluate.

Returns:

  • (String)


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

#operatorString

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

Returns:

  • (String)


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

#propertyString

The name of the conditional property.

Returns:

  • (String)


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

#thenTypes::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