VoiceID / Client / list_domains

list_domains#

VoiceID.Client.list_domains(**kwargs)#

Lists all the domains in the Amazon Web Services account.

See also: AWS API Documentation

Request Syntax

response = client.list_domains(
    MaxResults=123,
    NextToken='string'
)
Parameters:
  • MaxResults (integer) – The maximum number of domains to list per API call.

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

Return type:

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

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

Exceptions

  • VoiceID.Client.exceptions.ValidationException

  • VoiceID.Client.exceptions.InternalServerException

  • VoiceID.Client.exceptions.ThrottlingException

  • VoiceID.Client.exceptions.AccessDeniedException