Skip to content

S3  >  Structures  >  Encryption

Encryption

Structure Class

Encryption dataclass

Bases: _SerdeShape

Contains the type of server-side encryption used.

Attributes

encryption_type instance-attribute
encryption_type: str

The server-side encryption algorithm used when storing job results in Amazon S3 (for example, AES256, aws:kms).

kms_context class-attribute instance-attribute
kms_context: str | None = ...

If the encryption type is aws:kms, this optional value can be used to specify the encryption context for the restore results.

kms_key_id class-attribute instance-attribute
kms_key_id: str | None = ...

If the encryption type is aws:kms, this optional value specifies the ID of the symmetric encryption customer managed key to use for encryption of job results. Amazon S3 only supports symmetric encryption KMS keys. For more information, see Asymmetric keys in KMS in the Amazon Web Services Key Management Service Developer Guide.