Amazon Voice ID

2022/06/02 - Amazon Voice ID - 4 updated api methods

Changes  Added a new attribute ServerSideEncryptionUpdateDetails to Domain and DomainSummary.

CreateDomain (updated) Link ¶
Changes (response)
{'Domain': {'ServerSideEncryptionUpdateDetails': {'Message': 'string',
                                                  'OldKmsKeyId': 'string',
                                                  'UpdateStatus': 'IN_PROGRESS '
                                                                  '| COMPLETED '
                                                                  '| FAILED'}}}

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

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

string

param ClientToken

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.

type Description

string

param Description

A brief description of this domain.

type Name

string

param Name

[REQUIRED]

The name of the domain.

type ServerSideEncryptionConfiguration

dict

param ServerSideEncryptionConfiguration

[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 you want Voice ID to use to encrypt your data.

type Tags

list

param Tags

A list of tags you want added to the domain.

  • (dict) --

    A tag that can be assigned to a Voice ID resource.

    • 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'.

rtype

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 you want Voice ID to use to encrypt your data.

      • 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.

DescribeDomain (updated) Link ¶
Changes (response)
{'Domain': {'ServerSideEncryptionUpdateDetails': {'Message': 'string',
                                                  'OldKmsKeyId': 'string',
                                                  'UpdateStatus': 'IN_PROGRESS '
                                                                  '| COMPLETED '
                                                                  '| FAILED'}}}

Describes the specified domain.

See also: AWS API Documentation

Request Syntax

client.describe_domain(
    DomainId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain you are describing.

rtype

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 specified 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 you want Voice ID to use to encrypt your data.

      • 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.

ListDomains (updated) Link ¶
Changes (response)
{'DomainSummaries': {'ServerSideEncryptionUpdateDetails': {'Message': 'string',
                                                           'OldKmsKeyId': 'string',
                                                           'UpdateStatus': 'IN_PROGRESS '
                                                                           '| '
                                                                           'COMPLETED '
                                                                           '| '
                                                                           'FAILED'}}}

Lists all the domains in the Amazon Web Services account.

See also: AWS API Documentation

Request Syntax

client.list_domains(
    MaxResults=123,
    NextToken='string'
)
type MaxResults

integer

param MaxResults

The maximum number of results that are returned per call. You can use NextToken to obtain further pages of results. The default is 100; the maximum allowed page size is also 100.

type NextToken

string

param NextToken

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.

rtype

dict

returns

Response Syntax

{
    'DomainSummaries': [
        {
            '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)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • DomainSummaries (list) --

      A list containing details about each domain in the Amazon Web Services account.

      • (dict) --

        Contains a summary of information about a domain.

        • Arn (string) --

          The Amazon Resource Name (ARN) for the domain.

        • CreatedAt (datetime) --

          The timestamp showing when 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 you want Voice ID to use to encrypt your data.

        • 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.

    • NextToken (string) --

      If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.

UpdateDomain (updated) Link ¶
Changes (response)
{'Domain': {'ServerSideEncryptionUpdateDetails': {'Message': 'string',
                                                  'OldKmsKeyId': 'string',
                                                  'UpdateStatus': 'IN_PROGRESS '
                                                                  '| COMPLETED '
                                                                  '| FAILED'}}}

Updates the specified domain. This API has clobber behavior, and clears and replaces all attributes. If an optional field, such as 'Description' is not provided, it is removed from the domain.

See also: AWS API Documentation

Request Syntax

client.update_domain(
    Description='string',
    DomainId='string',
    Name='string',
    ServerSideEncryptionConfiguration={
        'KmsKeyId': 'string'
    }
)
type Description

string

param Description

A brief description about this domain.

type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain to be updated.

type Name

string

param Name

[REQUIRED]

The name of the domain.

type ServerSideEncryptionConfiguration

dict

param ServerSideEncryptionConfiguration

[REQUIRED]

The configuration, containing the KMS key identifier, to be used by Voice ID for the server-side encryption of your data. Note that all the existing data in the domain are still encrypted using the existing key, only the data added to domain after updating the key is encrypted using the new key.

  • KmsKeyId (string) -- [REQUIRED]

    The identifier of the KMS key you want Voice ID to use to encrypt your data.

rtype

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

      Details about the updated 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 you want Voice ID to use to encrypt your data.

      • 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.