Skip to content

CustomerManagedEncryption

Source code in docs_src/capo_polly/types/customer_managed_encryption.py
class CustomerManagedEncryption(TypedDict, closed=True):
    kms_key_arn: "capo_polly.types.kms_key_arn.KmsKeyArn"
    """<p>The Amazon Resource Name (ARN) of the key. The key must be a symmetric encryption key in the same Amazon Web Services Region as the voice. To create the voice, you need <code>kms:DescribeKey</code>, <code>kms:GenerateDataKey</code>, and <code>kms:Decrypt</code> permissions on the key. To synthesize speech with the voice, you need <code>kms:Decrypt</code> permission on the key.</p>"""
    encryption_context: NotRequired[
        "capo_polly.types.encryption_context.EncryptionContext"
    ]
    """<p>The key-value pairs that Amazon Polly includes as the encryption context when it encrypts or decrypts the voice with the key. You can use these pairs in key policy conditions. Don't use keys that start with <code>aws:</code>, which are reserved.</p>"""

encryption_context instance-attribute

encryption_context: NotRequired[EncryptionContext]

The key-value pairs that Amazon Polly includes as the encryption context when it encrypts or decrypts the voice with the key. You can use these pairs in key policy conditions. Don't use keys that start with aws:, which are reserved.

kms_key_arn instance-attribute

kms_key_arn: KmsKeyArn

The Amazon Resource Name (ARN) of the key. The key must be a symmetric encryption key in the same Amazon Web Services Region as the voice. To create the voice, you need kms:DescribeKey, kms:GenerateDataKey, and kms:Decrypt permissions on the key. To synthesize speech with the voice, you need kms:Decrypt permission on the key.