dynamodb_encryption_sdk.internal.identifiers

Unique identifiers for internal use only.

Warning

No guarantee is provided on the modules and APIs within this namespace staying consistent. Directly reference at your own risk.

Module Attributes

TEXT_ENCODING

Encoding to use for all text values.

Classes

MaterialDescriptionKeys(value)

Static keys for use when building and reading material descriptions.

MaterialDescriptionValues(value)

Static default values for use when building material descriptions.

MinimumKeySizes(value)

Minimum safe key sizes for algorithms.

ReservedAttributes(value)

Item attributes reserved for use by DynamoDBEncryptionClient

SignatureValues(value)

Values used when building the string to sign.

Tag(value)

Attribute data type identifiers used for serialization and deserialization of attributes.

TagValues(value)

Static values to use when serializing attribute values.

class dynamodb_encryption_sdk.internal.identifiers.ReservedAttributes(value)[source]

Bases: enum.Enum

Item attributes reserved for use by DynamoDBEncryptionClient

class dynamodb_encryption_sdk.internal.identifiers.Tag(value)[source]

Bases: enum.Enum

Attribute data type identifiers used for serialization and deserialization of attributes.

Sets up new Tag object.

Parameters
  • tag (bytes) – DynamoDB Encryption SDK tag

  • dynamodb_tag (str) – DynamoDB tag

  • element_tag (bytes) – The type of tag contained within attributes of this type

class dynamodb_encryption_sdk.internal.identifiers.TagValues(value)[source]

Bases: enum.Enum

Static values to use when serializing attribute values.

dynamodb_encryption_sdk.internal.identifiers.TEXT_ENCODING = 'utf-8'

Encoding to use for all text values. This is noted here for consistency but should not be changed.

class dynamodb_encryption_sdk.internal.identifiers.SignatureValues(value)[source]

Bases: enum.Enum

Values used when building the string to sign.

Note

The only time we actually use these values, we use the SHA256 hash of the value, so we pre-compute these hashes here.

Set up a new SignatureValues object.

Parameters
  • raw (bytes) – Raw value

  • sha256 (bytes) – SHA256 hash of raw value

class dynamodb_encryption_sdk.internal.identifiers.MaterialDescriptionKeys(value)[source]

Bases: enum.Enum

Static keys for use when building and reading material descriptions.

class dynamodb_encryption_sdk.internal.identifiers.MaterialDescriptionValues(value)[source]

Bases: enum.Enum

Static default values for use when building material descriptions.

class dynamodb_encryption_sdk.internal.identifiers.MinimumKeySizes(value)[source]

Bases: enum.Enum

Minimum safe key sizes for algorithms.