class Aws::CloudDirectory::Types::TypedLinkAttributeDefinition

A typed link attribute definition.

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

data as a hash:

    {
      name: "AttributeName", # required
      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",
          },
        },
      },
      required_behavior: "REQUIRED_ALWAYS", # required, accepts REQUIRED_ALWAYS, NOT_REQUIRED
    }

@!attribute [rw] name

The unique name of the typed link attribute.
@return [String]

@!attribute [rw] type

The type of the attribute.
@return [String]

@!attribute [rw] default_value

The default value of the attribute (if configured).
@return [Types::TypedAttributeValue]

@!attribute [rw] is_immutable

Whether the attribute is mutable or not.
@return [Boolean]

@!attribute [rw] rules

Validation rules that are attached to the attribute definition.
@return [Hash<String,Types::Rule>]

@!attribute [rw] required_behavior

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

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

Constants

SENSITIVE