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.

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) --

    The idempotency token for creating a new domain. If not provided, Amazon Web Services SDK populates this field.

    This field is autopopulated if not provided.

  • Description (string) -- A brief description of the 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)
    }
}

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 at which the domain is created.

      • Description (string) --

        The client-provided description of the domain.

      • DomainId (string) --

        The service-generated identifier for the domain.

      • DomainStatus (string) --

        The current status of the domain.

      • Name (string) --

        The client-provided 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 showing the domain's last update.

Exceptions

  • VoiceID.Client.exceptions.ServiceQuotaExceededException
  • VoiceID.Client.exceptions.ResourceNotFoundException
  • VoiceID.Client.exceptions.ValidationException
  • VoiceID.Client.exceptions.ConflictException
  • VoiceID.Client.exceptions.InternalServerException
  • VoiceID.Client.exceptions.ThrottlingException
  • VoiceID.Client.exceptions.AccessDeniedException