aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb_itemencryptor.models

Classes

DecryptItemInput(*, encrypted_item)

Inputs for decrypting a DynamoDB Item.

DecryptItemOutput(*, plaintext_item[, ...])

Outputs for decrypting a DynamoDB Item.

EncryptItemInput(*, plaintext_item)

Inputs for encrypting a DynamoDB Item.

EncryptItemOutput(*, encrypted_item[, ...])

Outputs for encrypting a DynamoDB Item.

ParsedHeader(*, ...)

A parsed version of the header that was written with or read on an encrypted DynamoDB item.

Unit()

class aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb_itemencryptor.models.DecryptItemInput(*, encrypted_item: dict[str, dict[str, Any]])

Bases: object

Inputs for decrypting a DynamoDB Item.

Parameters:

encrypted_item – The encrypted DynamoDB item to decrypt.

__init__(*, encrypted_item: dict[str, dict[str, Any]])

Inputs for decrypting a DynamoDB Item.

Parameters:

encrypted_item – The encrypted DynamoDB item to decrypt.

encrypted_item: dict[str, dict[str, Any]]
as_dict() Dict[str, Any]

Converts the DecryptItemInput to a dictionary.

static from_dict(d: Dict[str, Any]) DecryptItemInput

Creates a DecryptItemInput from a dictionary.

class aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb_itemencryptor.models.EncryptItemInput(*, plaintext_item: dict[str, dict[str, Any]])

Bases: object

Inputs for encrypting a DynamoDB Item.

Parameters:

plaintext_item – The DynamoDB item to encrypt.

__init__(*, plaintext_item: dict[str, dict[str, Any]])

Inputs for encrypting a DynamoDB Item.

Parameters:

plaintext_item – The DynamoDB item to encrypt.

plaintext_item: dict[str, dict[str, Any]]
as_dict() Dict[str, Any]

Converts the EncryptItemInput to a dictionary.

static from_dict(d: Dict[str, Any]) EncryptItemInput

Creates a EncryptItemInput from a dictionary.

class aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb_itemencryptor.models.ParsedHeader(*, attribute_actions_on_encrypt: dict[str, str], algorithm_suite_id: str, encrypted_data_keys: list[EncryptedDataKey], stored_encryption_context: dict[str, str], encryption_context: dict[str, str], selector_context: dict[str, dict[str, Any]])

Bases: object

A parsed version of the header that was written with or read on an encrypted DynamoDB item.

Parameters:
  • attribute_actions_on_encrypt – The non-DO_NOTHING Crypto Actions that were configured when this item was originally encrypted.

  • algorithm_suite_id – The ID of the algorithm suite that was used to encrypt this item.

  • encrypted_data_keys – The encrypted data keys that are stored in the header of this item.

  • stored_encryption_context – The portion of the encryption context that was stored in the header of this item.

  • encryption_context – The full encryption context.

  • selector_context – The encryption context as presented to the branch key selector.

__init__(*, attribute_actions_on_encrypt: dict[str, str], algorithm_suite_id: str, encrypted_data_keys: list[EncryptedDataKey], stored_encryption_context: dict[str, str], encryption_context: dict[str, str], selector_context: dict[str, dict[str, Any]])

A parsed version of the header that was written with or read on an encrypted DynamoDB item.

Parameters:
  • attribute_actions_on_encrypt – The non-DO_NOTHING Crypto Actions that were configured when this item was originally encrypted.

  • algorithm_suite_id – The ID of the algorithm suite that was used to encrypt this item.

  • encrypted_data_keys – The encrypted data keys that are stored in the header of this item.

  • stored_encryption_context – The portion of the encryption context that was stored in the header of this item.

  • encryption_context – The full encryption context.

  • selector_context – The encryption context as presented to the branch key selector.

attribute_actions_on_encrypt: dict[str, str]
algorithm_suite_id: str
encrypted_data_keys: list[EncryptedDataKey]
stored_encryption_context: dict[str, str]
encryption_context: dict[str, str]
selector_context: dict[str, dict[str, Any]]
as_dict() Dict[str, Any]

Converts the ParsedHeader to a dictionary.

static from_dict(d: Dict[str, Any]) ParsedHeader

Creates a ParsedHeader from a dictionary.

class aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb_itemencryptor.models.DecryptItemOutput(*, plaintext_item: dict[str, dict[str, Any]], parsed_header: ParsedHeader | None = None)

Bases: object

Outputs for decrypting a DynamoDB Item.

Parameters:
  • plaintext_item – The decrypted DynamoDB item.

  • parsed_header – A parsed version of the header on the encrypted DynamoDB item.

__init__(*, plaintext_item: dict[str, dict[str, Any]], parsed_header: ParsedHeader | None = None)

Outputs for decrypting a DynamoDB Item.

Parameters:
  • plaintext_item – The decrypted DynamoDB item.

  • parsed_header – A parsed version of the header on the encrypted DynamoDB item.

plaintext_item: dict[str, dict[str, Any]]
parsed_header: ParsedHeader | None
as_dict() Dict[str, Any]

Converts the DecryptItemOutput to a dictionary.

static from_dict(d: Dict[str, Any]) DecryptItemOutput

Creates a DecryptItemOutput from a dictionary.

class aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb_itemencryptor.models.EncryptItemOutput(*, encrypted_item: dict[str, dict[str, Any]], parsed_header: ParsedHeader | None = None)

Bases: object

Outputs for encrypting a DynamoDB Item.

Parameters:
  • encrypted_item – The encrypted DynamoDB item.

  • parsed_header – A parsed version of the header written with the encrypted DynamoDB item.

__init__(*, encrypted_item: dict[str, dict[str, Any]], parsed_header: ParsedHeader | None = None)

Outputs for encrypting a DynamoDB Item.

Parameters:
  • encrypted_item – The encrypted DynamoDB item.

  • parsed_header – A parsed version of the header written with the encrypted DynamoDB item.

encrypted_item: dict[str, dict[str, Any]]
parsed_header: ParsedHeader | None
as_dict() Dict[str, Any]

Converts the EncryptItemOutput to a dictionary.

static from_dict(d: Dict[str, Any]) EncryptItemOutput

Creates a EncryptItemOutput from a dictionary.

class aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb_itemencryptor.models.Unit

Bases: object