class Aws::CloudDirectory::Types::FacetAttribute

An attribute that is associated with the Facet.

@note When making an API call, you may pass FacetAttribute

data as a hash:

    {
      name: "AttributeName", # required
      attribute_definition: {
        type: "STRING", # required, accepts STRING, BINARY, BOOLEAN, NUMBER, DATETIME, VARIANT
        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",
            },
          },
        },
      },
      attribute_reference: {
        target_facet_name: "FacetName", # required
        target_attribute_name: "AttributeName", # required
      },
      required_behavior: "REQUIRED_ALWAYS", # accepts REQUIRED_ALWAYS, NOT_REQUIRED
    }

@!attribute [rw] name

The name of the facet attribute.
@return [String]

@!attribute [rw] attribute_definition

A facet attribute consists of either a definition or a reference.
This structure contains the attribute definition. See [Attribute
References][1] for more information.

[1]: https://docs.aws.amazon.com/clouddirectory/latest/developerguide/schemas_attributereferences.html
@return [Types::FacetAttributeDefinition]

@!attribute [rw] attribute_reference

An attribute reference that is associated with the attribute. See
[Attribute References][1] for more information.

[1]: https://docs.aws.amazon.com/clouddirectory/latest/developerguide/schemas_attributereferences.html
@return [Types::FacetAttributeReference]

@!attribute [rw] required_behavior

The required behavior of the `FacetAttribute`.
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/FacetAttribute AWS API Documentation

Constants

SENSITIVE