AttributeValue - Amazon Verified Permissions

AttributeValue

The value of an attribute.

Contains information about the runtime context for a request for which an authorization decision is made.

This data type is used as a member of the ContextDefinition structure which is uses as a request parameter for the IsAuthorized, BatchIsAuthorized, and IsAuthorizedWithToken operations.

Contents

Note

In the following list, the required parameters are described first.

Important

This data type is a UNION, so only one of the following members can be specified when used or returned.

boolean

An attribute value of Boolean type.

Example: {"boolean": true}

Type: Boolean

Required: No

decimal

An attribute value of decimal type.

Example: {"decimal": "1.1"}

Type: String

Length Constraints: Minimum length of 3. Maximum length of 23.

Pattern: -?\d{1,15}\.\d{1,4}

Required: No

entityIdentifier

An attribute value of type EntityIdentifier.

Example: "entityIdentifier": { "entityId": "<id>", "entityType": "<entity type>"}

Type: EntityIdentifier object

Required: No

ipaddr

An attribute value of ipaddr type.

Example: {"ip": "192.168.1.100"}

Type: String

Length Constraints: Minimum length of 1. Maximum length of 44.

Pattern: [0-9a-fA-F\.:\/]*

Required: No

long

An attribute value of Long type.

Example: {"long": 0}

Type: Long

Required: No

record

An attribute value of Record type.

Example: {"record": { "keyName": {} } }

Type: String to AttributeValue object map

Required: No

set

An attribute value of Set type.

Example: {"set": [ {} ] }

Type: Array of AttributeValue objects

Required: No

string

An attribute value of String type.

Example: {"string": "abc"}

Type: String

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: