VoiceID / Client / create_domain

create_domain#

VoiceID.Client.create_domain(**kwargs)#

Creates a domain that contains all Amazon Connect Voice ID data, such as speakers, fraudsters, customer audio, and voiceprints. Every domain is created with a default watchlist that fraudsters can be a part of.

See also: AWS API Documentation

Request Syntax

response = client.create_domain(
    ClientToken='string',
    Description='string',
    Name='string',
    ServerSideEncryptionConfiguration={
        'KmsKeyId': 'string'
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • ClientToken (string) –

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

    This field is autopopulated if not provided.

  • Description (string) – A brief description of this domain.

  • Name (string) –

    [REQUIRED]

    The name of the domain.

  • ServerSideEncryptionConfiguration (dict) –

    [REQUIRED]

    The configuration, containing the KMS key identifier, to be used by Voice ID for the server-side encryption of your data. Refer to Amazon Connect Voice ID encryption at rest for more details on how the KMS key is used.

    • KmsKeyId (string) – [REQUIRED]

      The identifier of the KMS key to use to encrypt data stored by Voice ID. Voice ID doesn’t support asymmetric customer managed keys.

  • Tags (list) –

    A list of tags you want added to the domain.

    • (dict) –

      The tags used to organize, track, or control access for this resource. For example, { “tags”: {“key1”:”value1”, “key2”:”value2”} }.

      • Key (string) – [REQUIRED]

        The first part of a key:value pair that forms a tag associated with a given resource. For example, in the tag ‘Department’:’Sales’, the key is ‘Department’.

      • Value (string) – [REQUIRED]

        The second part of a key:value pair that forms a tag associated with a given resource. For example, in the tag ‘Department’:’Sales’, the value is ‘Sales’.

Return type:

dict

Returns:

Response Syntax

{
    'Domain': {
        'Arn': 'string',
        'CreatedAt': datetime(2015, 1, 1),
        'Description': 'string',
        'DomainId': 'string',
        'DomainStatus': 'ACTIVE'|'PENDING'|'SUSPENDED',
        'Name': 'string',
        'ServerSideEncryptionConfiguration': {
            'KmsKeyId': 'string'
        },
        'ServerSideEncryptionUpdateDetails': {
            'Message': 'string',
            'OldKmsKeyId': 'string',
            'UpdateStatus': 'IN_PROGRESS'|'COMPLETED'|'FAILED'
        },
        'UpdatedAt': datetime(2015, 1, 1),
        'WatchlistDetails': {
            'DefaultWatchlistId': 'string'
        }
    }
}

Response Structure

  • (dict) –

    • Domain (dict) –

      Information about the newly created domain.

      • Arn (string) –

        The Amazon Resource Name (ARN) for the domain.

      • CreatedAt (datetime) –

        The timestamp of when the domain was created.

      • Description (string) –

        The description of the domain.

      • DomainId (string) –

        The identifier of the domain.

      • DomainStatus (string) –

        The current status of the domain.

      • Name (string) –

        The name for the domain.

      • ServerSideEncryptionConfiguration (dict) –

        The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt your data.

        • KmsKeyId (string) –

          The identifier of the KMS key to use to encrypt data stored by Voice ID. Voice ID doesn’t support asymmetric customer managed keys.

      • ServerSideEncryptionUpdateDetails (dict) –

        Details about the most recent server-side encryption configuration update. When the server-side encryption configuration is changed, dependency on the old KMS key is removed through an asynchronous process. When this update is complete, the domain’s data can only be accessed using the new KMS key.

        • Message (string) –

          Message explaining the current UpdateStatus. When the UpdateStatus is FAILED, this message explains the cause of the failure.

        • OldKmsKeyId (string) –

          The previous KMS key ID the domain was encrypted with, before ServerSideEncryptionConfiguration was updated to a new KMS key ID.

        • UpdateStatus (string) –

          Status of the server-side encryption update. During an update, if there is an issue with the domain’s current or old KMS key ID, such as an inaccessible or disabled key, then the status is FAILED. In order to resolve this, the key needs to be made accessible, and then an UpdateDomain call with the existing server-side encryption configuration will re-attempt this update process.

      • UpdatedAt (datetime) –

        The timestamp of when the domain was last update.

      • WatchlistDetails (dict) –

        The watchlist details of a domain. Contains the default watchlist ID of the domain.

        • DefaultWatchlistId (string) –

          The identifier of the default watchlist.

Exceptions