atoti_aws.client_side_encryption module

class atoti_aws.AwsKeyPair

Key pair to use for client side encryption.

Example

>>> from atoti_aws import AwsKeyPair
>>> client_side_encryption_config = (
...     AwsKeyPair(
...         region="eu-west-3",
...         private_key="private_key",
...         public_key="public_key",
...     ),
... )
private_key: str

The private key.

public_key: str

The public key.

region: str

The AWS region to interact with.

class atoti_aws.AwsKmsConfig

KMS configuration to use for client side encryption.

The AWS KMS CMK must have been created in the same AWS region as the destination bucket (Cf. AWS documentation).

Example

>>> from atoti_aws import AwsKmsConfig
>>> client_side_encryption_config = (
...     AwsKmsConfig(
...         region="eu-west-3",
...         key_id="key_id",
...     ),
... )
key_id: str

The ID to identify the key in KMS.

region: str

The AWS region to interact with.