You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::CloudDirectory::Types::FacetAttributeDefinition

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

Overview

Note:

When making an API call, you may pass FacetAttributeDefinition data as a hash:

{
  type: "STRING", # required, accepts STRING, BINARY, BOOLEAN, NUMBER, DATETIME
  default_value: {
    string_value: "StringAttributeValue",
    binary_value: "data",
    boolean_value: false,
    number_value: "NumberAttributeValue",
    datetime_value: Time.now,
  },
  is_immutable: false,
  rules: {
    "RuleKey" => {
      type: "BINARY_LENGTH", # accepts BINARY_LENGTH, NUMBER_COMPARISON, STRING_FROM_SET, STRING_LENGTH
      parameters: {
        "RuleParameterKey" => "RuleParameterValue",
      },
    },
  },
}

A facet attribute definition. See Attribute References for more information.

Instance Attribute Summary collapse

Instance Attribute Details

#default_valueTypes::TypedAttributeValue

The default value of the attribute (if configured).



4063
4064
4065
4066
4067
4068
4069
# File 'gems/aws-sdk-clouddirectory/lib/aws-sdk-clouddirectory/types.rb', line 4063

class FacetAttributeDefinition < Struct.new(
  :type,
  :default_value,
  :is_immutable,
  :rules)
  include Aws::Structure
end

#is_immutableBoolean

Whether the attribute is mutable or not.

Returns:

  • (Boolean)


4063
4064
4065
4066
4067
4068
4069
# File 'gems/aws-sdk-clouddirectory/lib/aws-sdk-clouddirectory/types.rb', line 4063

class FacetAttributeDefinition < Struct.new(
  :type,
  :default_value,
  :is_immutable,
  :rules)
  include Aws::Structure
end

#rulesHash<String,Types::Rule>

Validation rules attached to the attribute definition.

Returns:



4063
4064
4065
4066
4067
4068
4069
# File 'gems/aws-sdk-clouddirectory/lib/aws-sdk-clouddirectory/types.rb', line 4063

class FacetAttributeDefinition < Struct.new(
  :type,
  :default_value,
  :is_immutable,
  :rules)
  include Aws::Structure
end

#typeString

The type of the attribute.

Returns:

  • (String)


4063
4064
4065
4066
4067
4068
4069
# File 'gems/aws-sdk-clouddirectory/lib/aws-sdk-clouddirectory/types.rb', line 4063

class FacetAttributeDefinition < Struct.new(
  :type,
  :default_value,
  :is_immutable,
  :rules)
  include Aws::Structure
end