Amazon Voice ID

2023/03/27 - Amazon Voice ID - 8 new 10 updated api methods

Changes  Amazon Connect Voice ID now supports multiple fraudster watchlists. Every domain has a default watchlist where all existing fraudsters are placed by default. Custom watchlists may now be created, managed, and evaluated against for known fraudster detection.

AssociateFraudster (new) Link ¶

Associates the fraudsters with the watchlist specified in the same domain.

See also: AWS API Documentation

Request Syntax

client.associate_fraudster(
    DomainId='string',
    FraudsterId='string',
    WatchlistId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain that contains the fraudster.

type FraudsterId

string

param FraudsterId

[REQUIRED]

The identifier of the fraudster to be associated with the watchlist.

type WatchlistId

string

param WatchlistId

[REQUIRED]

The identifier of the watchlist you want to associate with the fraudster.

rtype

dict

returns

Response Syntax

{
    'Fraudster': {
        'CreatedAt': datetime(2015, 1, 1),
        'DomainId': 'string',
        'GeneratedFraudsterId': 'string',
        'WatchlistIds': [
            'string',
        ]
    }
}

Response Structure

  • (dict) --

    • Fraudster (dict) --

      Contains all the information about a fraudster.

      • CreatedAt (datetime) --

        The timestamp of when Voice ID identified the fraudster.

      • DomainId (string) --

        The identifier of the domain that contains the fraudster.

      • GeneratedFraudsterId (string) --

        The service-generated identifier for the fraudster.

      • WatchlistIds (list) --

        The identifier of the watchlists the fraudster is a part of.

        • (string) --

DisassociateFraudster (new) Link ¶

Disassociates the fraudsters from the watchlist specified. Voice ID always expects a fraudster to be a part of at least one watchlist. If you try to disassociate a fraudster from its only watchlist, a ValidationException is thrown.

See also: AWS API Documentation

Request Syntax

client.disassociate_fraudster(
    DomainId='string',
    FraudsterId='string',
    WatchlistId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain that contains the fraudster.

type FraudsterId

string

param FraudsterId

[REQUIRED]

The identifier of the fraudster to be disassociated from the watchlist.

type WatchlistId

string

param WatchlistId

[REQUIRED]

The identifier of the watchlist that you want to disassociate from the fraudster.

rtype

dict

returns

Response Syntax

{
    'Fraudster': {
        'CreatedAt': datetime(2015, 1, 1),
        'DomainId': 'string',
        'GeneratedFraudsterId': 'string',
        'WatchlistIds': [
            'string',
        ]
    }
}

Response Structure

  • (dict) --

    • Fraudster (dict) --

      Contains all the information about a fraudster.

      • CreatedAt (datetime) --

        The timestamp of when Voice ID identified the fraudster.

      • DomainId (string) --

        The identifier of the domain that contains the fraudster.

      • GeneratedFraudsterId (string) --

        The service-generated identifier for the fraudster.

      • WatchlistIds (list) --

        The identifier of the watchlists the fraudster is a part of.

        • (string) --

CreateWatchlist (new) Link ¶

Creates a watchlist that fraudsters can be a part of.

See also: AWS API Documentation

Request Syntax

client.create_watchlist(
    ClientToken='string',
    Description='string',
    DomainId='string',
    Name='string'
)
type ClientToken

string

param ClientToken

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.

type Description

string

param Description

A brief description of this watchlist.

type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain that contains the watchlist.

type Name

string

param Name

[REQUIRED]

The name of the watchlist.

rtype

dict

returns

Response Syntax

{
    'Watchlist': {
        'CreatedAt': datetime(2015, 1, 1),
        'DefaultWatchlist': True|False,
        'Description': 'string',
        'DomainId': 'string',
        'Name': 'string',
        'UpdatedAt': datetime(2015, 1, 1),
        'WatchlistId': 'string'
    }
}

Response Structure

  • (dict) --

    • Watchlist (dict) --

      Information about the newly created watchlist.

      • CreatedAt (datetime) --

        The timestamp of when the watchlist was created.

      • DefaultWatchlist (boolean) --

        Whether the specified watchlist is the default watchlist of a domain.

      • Description (string) --

        The description of the watchlist.

      • DomainId (string) --

        The identifier of the domain that contains the watchlist.

      • Name (string) --

        The name for the watchlist.

      • UpdatedAt (datetime) --

        The timestamp of when the watchlist was updated.

      • WatchlistId (string) --

        The identifier of the watchlist.

UpdateWatchlist (new) Link ¶

Updates the specified watchlist. Every domain has a default watchlist which cannot be updated.

See also: AWS API Documentation

Request Syntax

client.update_watchlist(
    Description='string',
    DomainId='string',
    Name='string',
    WatchlistId='string'
)
type Description

string

param Description

A brief description about this watchlist.

type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain that contains the watchlist.

type Name

string

param Name

The name of the watchlist.

type WatchlistId

string

param WatchlistId

[REQUIRED]

The identifier of the watchlist to be updated.

rtype

dict

returns

Response Syntax

{
    'Watchlist': {
        'CreatedAt': datetime(2015, 1, 1),
        'DefaultWatchlist': True|False,
        'Description': 'string',
        'DomainId': 'string',
        'Name': 'string',
        'UpdatedAt': datetime(2015, 1, 1),
        'WatchlistId': 'string'
    }
}

Response Structure

  • (dict) --

    • Watchlist (dict) --

      Details about the updated watchlist.

      • CreatedAt (datetime) --

        The timestamp of when the watchlist was created.

      • DefaultWatchlist (boolean) --

        Whether the specified watchlist is the default watchlist of a domain.

      • Description (string) --

        The description of the watchlist.

      • DomainId (string) --

        The identifier of the domain that contains the watchlist.

      • Name (string) --

        The name for the watchlist.

      • UpdatedAt (datetime) --

        The timestamp of when the watchlist was updated.

      • WatchlistId (string) --

        The identifier of the watchlist.

ListFraudsters (new) Link ¶

Lists all fraudsters in a specified watchlist or domain.

See also: AWS API Documentation

Request Syntax

client.list_fraudsters(
    DomainId='string',
    MaxResults=123,
    NextToken='string',
    WatchlistId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain.

type MaxResults

integer

param MaxResults

The maximum number of results that are returned per call. You can use NextToken to obtain more 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.

type WatchlistId

string

param WatchlistId

The identifier of the watchlist. If provided, all fraudsters in the watchlist are listed. If not provided, all fraudsters in the domain are listed.

rtype

dict

returns

Response Syntax

{
    'FraudsterSummaries': [
        {
            'CreatedAt': datetime(2015, 1, 1),
            'DomainId': 'string',
            'GeneratedFraudsterId': 'string',
            'WatchlistIds': [
                'string',
            ]
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • FraudsterSummaries (list) --

      A list that contains details about each fraudster in the Amazon Web Services account.

      • (dict) --

        Contains a summary of information about a fraudster.

        • CreatedAt (datetime) --

          The timestamp of when the fraudster summary was created.

        • DomainId (string) --

          The identifier of the domain that contains the fraudster summary.

        • GeneratedFraudsterId (string) --

          The service-generated identifier for the fraudster.

        • WatchlistIds (list) --

          The identifier of the watchlists the fraudster is a part of.

          • (string) --

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

DescribeWatchlist (new) Link ¶

Describes the specified watchlist.

See also: AWS API Documentation

Request Syntax

client.describe_watchlist(
    DomainId='string',
    WatchlistId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain that contains the watchlist.

type WatchlistId

string

param WatchlistId

[REQUIRED]

The identifier of the watchlist that you are describing.

rtype

dict

returns

Response Syntax

{
    'Watchlist': {
        'CreatedAt': datetime(2015, 1, 1),
        'DefaultWatchlist': True|False,
        'Description': 'string',
        'DomainId': 'string',
        'Name': 'string',
        'UpdatedAt': datetime(2015, 1, 1),
        'WatchlistId': 'string'
    }
}

Response Structure

  • (dict) --

    • Watchlist (dict) --

      Information about the specified watchlist.

      • CreatedAt (datetime) --

        The timestamp of when the watchlist was created.

      • DefaultWatchlist (boolean) --

        Whether the specified watchlist is the default watchlist of a domain.

      • Description (string) --

        The description of the watchlist.

      • DomainId (string) --

        The identifier of the domain that contains the watchlist.

      • Name (string) --

        The name for the watchlist.

      • UpdatedAt (datetime) --

        The timestamp of when the watchlist was updated.

      • WatchlistId (string) --

        The identifier of the watchlist.

DeleteWatchlist (new) Link ¶

Deletes the specified watchlist from Voice ID. This API throws an exception when there are fraudsters in the watchlist that you are trying to delete. You must delete the fraudsters, and then delete the watchlist. Every domain has a default watchlist which cannot be deleted.

See also: AWS API Documentation

Request Syntax

client.delete_watchlist(
    DomainId='string',
    WatchlistId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain that contains the watchlist.

type WatchlistId

string

param WatchlistId

[REQUIRED]

The identifier of the watchlist to be deleted.

returns

None

ListWatchlists (new) Link ¶

Lists all watchlists in a specified domain.

See also: AWS API Documentation

Request Syntax

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

string

param DomainId

[REQUIRED]

The identifier of the domain.

type MaxResults

integer

param MaxResults

The maximum number of results that are returned per call. You can use NextToken to obtain more 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

{
    'NextToken': 'string',
    'WatchlistSummaries': [
        {
            'CreatedAt': datetime(2015, 1, 1),
            'DefaultWatchlist': True|False,
            'Description': 'string',
            'DomainId': 'string',
            'Name': 'string',
            'UpdatedAt': datetime(2015, 1, 1),
            'WatchlistId': 'string'
        },
    ]
}

Response Structure

  • (dict) --

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

    • WatchlistSummaries (list) --

      A list that contains details about each watchlist in the Amazon Web Services account.

      • (dict) --

        Contains a summary of information about a watchlist.

        • CreatedAt (datetime) --

          The timestamp of when the watchlist was created.

        • DefaultWatchlist (boolean) --

          Whether the specified watchlist is the default watchlist of a domain.

        • Description (string) --

          The description of the watchlist.

        • DomainId (string) --

          The identifier of the domain that contains the watchlist.

        • Name (string) --

          The name for the watchlist.

        • UpdatedAt (datetime) --

          The timestamp of when the watchlist was last updated.

        • WatchlistId (string) --

          The identifier of the watchlist.

CreateDomain (updated) Link ¶
Changes (response)
{'Domain': {'WatchlistDetails': {'DefaultWatchlistId': 'string'}}}

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

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

string

param ClientToken

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.

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 to use to encrypt data stored by Voice ID. Voice ID doesn't support asymmetric customer managed keys.

type Tags

list

param Tags

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

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),
        '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.

DescribeDomain (updated) Link ¶
Changes (response)
{'Domain': {'WatchlistDetails': {'DefaultWatchlistId': 'string'}}}

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 that 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),
        'WatchlistDetails': {
            'DefaultWatchlistId': 'string'
        }
    }
}

Response Structure

  • (dict) --

    • Domain (dict) --

      Information about the specified 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.

DescribeFraudster (updated) Link ¶
Changes (response)
{'Fraudster': {'WatchlistIds': ['string']}}

Describes the specified fraudster.

See also: AWS API Documentation

Request Syntax

client.describe_fraudster(
    DomainId='string',
    FraudsterId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain that contains the fraudster.

type FraudsterId

string

param FraudsterId

[REQUIRED]

The identifier of the fraudster you are describing.

rtype

dict

returns

Response Syntax

{
    'Fraudster': {
        'CreatedAt': datetime(2015, 1, 1),
        'DomainId': 'string',
        'GeneratedFraudsterId': 'string',
        'WatchlistIds': [
            'string',
        ]
    }
}

Response Structure

  • (dict) --

    • Fraudster (dict) --

      Information about the specified fraudster.

      • CreatedAt (datetime) --

        The timestamp of when Voice ID identified the fraudster.

      • DomainId (string) --

        The identifier of the domain that contains the fraudster.

      • GeneratedFraudsterId (string) --

        The service-generated identifier for the fraudster.

      • WatchlistIds (list) --

        The identifier of the watchlists the fraudster is a part of.

        • (string) --

DescribeFraudsterRegistrationJob (updated) Link ¶
Changes (response)
{'Job': {'RegistrationConfig': {'WatchlistIds': ['string']}}}

Describes the specified fraudster registration job.

See also: AWS API Documentation

Request Syntax

client.describe_fraudster_registration_job(
    DomainId='string',
    JobId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain that contains the fraudster registration job.

type JobId

string

param JobId

[REQUIRED]

The identifier of the fraudster registration job you are describing.

rtype

dict

returns

Response Syntax

{
    'Job': {
        'CreatedAt': datetime(2015, 1, 1),
        'DataAccessRoleArn': 'string',
        'DomainId': 'string',
        'EndedAt': datetime(2015, 1, 1),
        'FailureDetails': {
            'Message': 'string',
            'StatusCode': 123
        },
        'InputDataConfig': {
            'S3Uri': 'string'
        },
        'JobId': 'string',
        'JobName': 'string',
        'JobProgress': {
            'PercentComplete': 123
        },
        'JobStatus': 'SUBMITTED'|'IN_PROGRESS'|'COMPLETED'|'COMPLETED_WITH_ERRORS'|'FAILED',
        'OutputDataConfig': {
            'KmsKeyId': 'string',
            'S3Uri': 'string'
        },
        'RegistrationConfig': {
            'DuplicateRegistrationAction': 'SKIP'|'REGISTER_AS_NEW',
            'FraudsterSimilarityThreshold': 123,
            'WatchlistIds': [
                'string',
            ]
        }
    }
}

Response Structure

  • (dict) --

    • Job (dict) --

      Contains details about the specified fraudster registration job.

      • CreatedAt (datetime) --

        A timestamp of when the fraudster registration job was created.

      • DataAccessRoleArn (string) --

        The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to read the input manifest file and write the job output file.

      • DomainId (string) --

        The identifier of the domain that contains the fraudster registration job.

      • EndedAt (datetime) --

        A timestamp of when the fraudster registration job ended.

      • FailureDetails (dict) --

        Contains details that are populated when an entire batch job fails. In cases of individual registration job failures, the batch job as a whole doesn't fail; it is completed with a JobStatus of COMPLETED_WITH_ERRORS . You can use the job output file to identify the individual registration requests that failed.

        • Message (string) --

          A description of the error that caused the batch job failure.

        • StatusCode (integer) --

          An HTTP status code representing the nature of the error.

      • InputDataConfig (dict) --

        The input data config containing an S3 URI for the input manifest file that contains the list of fraudster registration job requests.

        • S3Uri (string) --

          The S3 location for the input manifest file that contains the list of individual enrollment or registration job requests.

      • JobId (string) --

        The service-generated identifier for the fraudster registration job.

      • JobName (string) --

        The client-provided name for the fraudster registration job.

      • JobProgress (dict) --

        Shows the completed percentage of registration requests listed in the input file.

        • PercentComplete (integer) --

          Shows the completed percentage of enrollment or registration requests listed in the input file.

      • JobStatus (string) --

        The current status of the fraudster registration job.

      • OutputDataConfig (dict) --

        The output data config containing the S3 location where you want Voice ID to write your job output file; you must also include a KMS key ID in order to encrypt the file.

        • KmsKeyId (string) --

          The identifier of the KMS key you want Voice ID to use to encrypt the output file of a speaker enrollment job/fraudster registration job.

        • S3Uri (string) --

          The S3 path of the folder where Voice ID writes the job output file. It has a *.out extension. For example, if the input file name is input-file.json and the output folder path is s3://output-bucket/output-folder , the full output file path is s3://output-bucket/output-folder/job-Id/input-file.json.out .

      • RegistrationConfig (dict) --

        The registration config containing details such as the action to take when a duplicate fraudster is detected, and the similarity threshold to use for detecting a duplicate fraudster.

        • DuplicateRegistrationAction (string) --

          The action to take when a fraudster is identified as a duplicate. The default action is SKIP , which skips registering the duplicate fraudster. Setting the value to REGISTER_AS_NEW always registers a new fraudster into the specified domain.

        • FraudsterSimilarityThreshold (integer) --

          The minimum similarity score between the new and old fraudsters in order to consider the new fraudster a duplicate.

        • WatchlistIds (list) --

          The identifiers of watchlists that a fraudster is registered to. If a watchlist isn't provided, the fraudsters are registered to the default watchlist.

          • (string) --

DescribeSpeakerEnrollmentJob (updated) Link ¶
Changes (response)
{'Job': {'EnrollmentConfig': {'FraudDetectionConfig': {'WatchlistIds': ['string']}}}}

Describes the specified speaker enrollment job.

See also: AWS API Documentation

Request Syntax

client.describe_speaker_enrollment_job(
    DomainId='string',
    JobId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain that contains the speaker enrollment job.

type JobId

string

param JobId

[REQUIRED]

The identifier of the speaker enrollment job you are describing.

rtype

dict

returns

Response Syntax

{
    'Job': {
        'CreatedAt': datetime(2015, 1, 1),
        'DataAccessRoleArn': 'string',
        'DomainId': 'string',
        'EndedAt': datetime(2015, 1, 1),
        'EnrollmentConfig': {
            'ExistingEnrollmentAction': 'SKIP'|'OVERWRITE',
            'FraudDetectionConfig': {
                'FraudDetectionAction': 'IGNORE'|'FAIL',
                'RiskThreshold': 123,
                'WatchlistIds': [
                    'string',
                ]
            }
        },
        'FailureDetails': {
            'Message': 'string',
            'StatusCode': 123
        },
        'InputDataConfig': {
            'S3Uri': 'string'
        },
        'JobId': 'string',
        'JobName': 'string',
        'JobProgress': {
            'PercentComplete': 123
        },
        'JobStatus': 'SUBMITTED'|'IN_PROGRESS'|'COMPLETED'|'COMPLETED_WITH_ERRORS'|'FAILED',
        'OutputDataConfig': {
            'KmsKeyId': 'string',
            'S3Uri': 'string'
        }
    }
}

Response Structure

  • (dict) --

    • Job (dict) --

      Contains details about the specified speaker enrollment job.

      • CreatedAt (datetime) --

        A timestamp of when the speaker enrollment job was created.

      • DataAccessRoleArn (string) --

        The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to read the input manifest file and write the job output file.

      • DomainId (string) --

        The identifier of the domain that contains the speaker enrollment job.

      • EndedAt (datetime) --

        A timestamp of when the speaker enrollment job ended.

      • EnrollmentConfig (dict) --

        The configuration that defines the action to take when the speaker is already enrolled in Voice ID, and the FraudDetectionConfig to use.

        • ExistingEnrollmentAction (string) --

          The action to take when the specified speaker is already enrolled in the specified domain. The default value is SKIP , which skips the enrollment for the existing speaker. Setting the value to OVERWRITE replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio.

        • FraudDetectionConfig (dict) --

          The fraud detection configuration to use for the speaker enrollment job.

          • FraudDetectionAction (string) --

            The action to take when the given speaker is flagged by the fraud detection system. The default value is FAIL , which fails the speaker enrollment. Changing this value to IGNORE results in the speaker being enrolled even if they are flagged by the fraud detection system.

          • RiskThreshold (integer) --

            Threshold value for determining whether the speaker is a high risk to be fraudulent. If the detected risk score calculated by Voice ID is greater than or equal to the threshold, the speaker is considered a fraudster.

          • WatchlistIds (list) --

            The identifier of watchlists against which fraud detection is performed.

            • (string) --

      • FailureDetails (dict) --

        Contains details that are populated when an entire batch job fails. In cases of individual registration job failures, the batch job as a whole doesn't fail; it is completed with a JobStatus of COMPLETED_WITH_ERRORS . You can use the job output file to identify the individual registration requests that failed.

        • Message (string) --

          A description of the error that caused the batch job failure.

        • StatusCode (integer) --

          An HTTP status code representing the nature of the error.

      • InputDataConfig (dict) --

        The input data config containing an S3 URI for the input manifest file that contains the list of speaker enrollment job requests.

        • S3Uri (string) --

          The S3 location for the input manifest file that contains the list of individual enrollment or registration job requests.

      • JobId (string) --

        The service-generated identifier for the speaker enrollment job.

      • JobName (string) --

        The client-provided name for the speaker enrollment job.

      • JobProgress (dict) --

        Provides details on job progress. This field shows the completed percentage of registration requests listed in the input file.

        • PercentComplete (integer) --

          Shows the completed percentage of enrollment or registration requests listed in the input file.

      • JobStatus (string) --

        The current status of the speaker enrollment job.

      • OutputDataConfig (dict) --

        The output data config containing the S3 location where Voice ID writes the job output file; you must also include a KMS key ID to encrypt the file.

        • KmsKeyId (string) --

          The identifier of the KMS key you want Voice ID to use to encrypt the output file of a speaker enrollment job/fraudster registration job.

        • S3Uri (string) --

          The S3 path of the folder where Voice ID writes the job output file. It has a *.out extension. For example, if the input file name is input-file.json and the output folder path is s3://output-bucket/output-folder , the full output file path is s3://output-bucket/output-folder/job-Id/input-file.json.out .

EvaluateSession (updated) Link ¶
Changes (response)
{'FraudDetectionResult': {'Configuration': {'WatchlistId': 'string'}}}

Evaluates a specified session based on audio data accumulated during a streaming Amazon Connect Voice ID call.

See also: AWS API Documentation

Request Syntax

client.evaluate_session(
    DomainId='string',
    SessionNameOrId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain where the session started.

type SessionNameOrId

string

param SessionNameOrId

[REQUIRED]

The session identifier, or name of the session, that you want to evaluate. In Voice ID integration, this is the Contact-Id.

rtype

dict

returns

Response Syntax

{
    'AuthenticationResult': {
        'AudioAggregationEndedAt': datetime(2015, 1, 1),
        'AudioAggregationStartedAt': datetime(2015, 1, 1),
        'AuthenticationResultId': 'string',
        'Configuration': {
            'AcceptanceThreshold': 123
        },
        'CustomerSpeakerId': 'string',
        'Decision': 'ACCEPT'|'REJECT'|'NOT_ENOUGH_SPEECH'|'SPEAKER_NOT_ENROLLED'|'SPEAKER_OPTED_OUT'|'SPEAKER_ID_NOT_PROVIDED'|'SPEAKER_EXPIRED',
        'GeneratedSpeakerId': 'string',
        'Score': 123
    },
    'DomainId': 'string',
    'FraudDetectionResult': {
        'AudioAggregationEndedAt': datetime(2015, 1, 1),
        'AudioAggregationStartedAt': datetime(2015, 1, 1),
        'Configuration': {
            'RiskThreshold': 123,
            'WatchlistId': 'string'
        },
        'Decision': 'HIGH_RISK'|'LOW_RISK'|'NOT_ENOUGH_SPEECH',
        'FraudDetectionResultId': 'string',
        'Reasons': [
            'KNOWN_FRAUDSTER'|'VOICE_SPOOFING',
        ],
        'RiskDetails': {
            'KnownFraudsterRisk': {
                'GeneratedFraudsterId': 'string',
                'RiskScore': 123
            },
            'VoiceSpoofingRisk': {
                'RiskScore': 123
            }
        }
    },
    'SessionId': 'string',
    'SessionName': 'string',
    'StreamingStatus': 'PENDING_CONFIGURATION'|'ONGOING'|'ENDED'
}

Response Structure

  • (dict) --

    • AuthenticationResult (dict) --

      Details resulting from the authentication process, such as authentication decision and authentication score.

      • AudioAggregationEndedAt (datetime) --

        A timestamp of when audio aggregation ended for this authentication result.

      • AudioAggregationStartedAt (datetime) --

        A timestamp of when audio aggregation started for this authentication result.

      • AuthenticationResultId (string) --

        The unique identifier for this authentication result. Because there can be multiple authentications for a given session, this field helps to identify if the returned result is from a previous streaming activity or a new result. Note that in absence of any new streaming activity, AcceptanceThreshold changes, or SpeakerId changes, Voice ID always returns cached Authentication Result for this API.

      • Configuration (dict) --

        The AuthenticationConfiguration used to generate this authentication result.

        • AcceptanceThreshold (integer) --

          The minimum threshold needed to successfully authenticate a speaker.

      • CustomerSpeakerId (string) --

        The client-provided identifier for the speaker whose authentication result is produced. Only present if a SpeakerId is provided for the session.

      • Decision (string) --

        The authentication decision produced by Voice ID, processed against the current session state and streamed audio of the speaker.

      • GeneratedSpeakerId (string) --

        The service-generated identifier for the speaker whose authentication result is produced.

      • Score (integer) --

        The authentication score for the speaker whose authentication result is produced. This value is only present if the authentication decision is either ACCEPT or REJECT .

    • DomainId (string) --

      The identifier of the domain that contains the session.

    • FraudDetectionResult (dict) --

      Details resulting from the fraud detection process, such as fraud detection decision and risk score.

      • AudioAggregationEndedAt (datetime) --

        A timestamp of when audio aggregation ended for this fraud detection result.

      • AudioAggregationStartedAt (datetime) --

        A timestamp of when audio aggregation started for this fraud detection result.

      • Configuration (dict) --

        The FraudDetectionConfiguration used to generate this fraud detection result.

        • RiskThreshold (integer) --

          Threshold value for determining whether the speaker is a fraudster. If the detected risk score calculated by Voice ID is higher than the threshold, the speaker is considered a fraudster.

        • WatchlistId (string) --

          The identifier of the watchlist against which fraud detection is performed.

      • Decision (string) --

        The fraud detection decision produced by Voice ID, processed against the current session state and streamed audio of the speaker.

      • FraudDetectionResultId (string) --

        The unique identifier for this fraud detection result. Given there can be multiple fraud detections for a given session, this field helps in identifying if the returned result is from previous streaming activity or a new result. Note that in the absence of any new streaming activity or risk threshold changes, Voice ID always returns cached Fraud Detection result for this API.

      • Reasons (list) --

        The reason speaker was flagged by the fraud detection system. This is only be populated if fraud detection Decision is HIGH_RISK , and the following possible values: KNOWN_FRAUDSTER and VOICE_SPOOFING .

        • (string) --

      • RiskDetails (dict) --

        Details about each risk analyzed for this speaker. Currently, this contains KnownFraudsterRisk and VoiceSpoofingRisk details.

        • KnownFraudsterRisk (dict) --

          The details resulting from 'Known Fraudster Risk' analysis of the speaker.

          • GeneratedFraudsterId (string) --

            The identifier of the fraudster that is the closest match to the speaker. If there are no fraudsters registered in a given domain, or if there are no fraudsters with a non-zero RiskScore, this value is null .

          • RiskScore (integer) --

            The score indicating the likelihood the speaker is a known fraudster.

        • VoiceSpoofingRisk (dict) --

          The details resulting from 'Voice Spoofing Risk' analysis of the speaker.

          • RiskScore (integer) --

            The score indicating the likelihood of speaker’s voice being spoofed.

    • SessionId (string) --

      The service-generated identifier of the session.

    • SessionName (string) --

      The client-provided name of the session.

    • StreamingStatus (string) --

      The current status of audio streaming for this session. This field is useful to infer next steps when the Authentication or Fraud Detection results are empty or the decision is NOT_ENOUGH_SPEECH . In this situation, if the StreamingStatus is ONGOING/PENDING_CONFIGURATION , it can mean that the client should call the API again later, after Voice ID has enough audio to produce a result. If the decision remains NOT_ENOUGH_SPEECH even after StreamingStatus is ENDED , it means that the previously streamed session did not have enough speech to perform evaluation, and a new streaming session is needed to try again.

ListDomains (updated) Link ¶
Changes (response)
{'DomainSummaries': {'WatchlistDetails': {'DefaultWatchlistId': 'string'}}}

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 more 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),
            'WatchlistDetails': {
                'DefaultWatchlistId': 'string'
            }
        },
    ],
    '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 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 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 of when the domain was last updated.

        • WatchlistDetails (dict) --

          Provides information about watchlistDetails and DefaultWatchlistID .

          • DefaultWatchlistId (string) --

            The identifier of the default watchlist.

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

StartFraudsterRegistrationJob (updated) Link ¶
Changes (request, response)
Request
{'RegistrationConfig': {'WatchlistIds': ['string']}}
Response
{'Job': {'RegistrationConfig': {'WatchlistIds': ['string']}}}

Starts a new batch fraudster registration job using provided details.

See also: AWS API Documentation

Request Syntax

client.start_fraudster_registration_job(
    ClientToken='string',
    DataAccessRoleArn='string',
    DomainId='string',
    InputDataConfig={
        'S3Uri': 'string'
    },
    JobName='string',
    OutputDataConfig={
        'KmsKeyId': 'string',
        'S3Uri': 'string'
    },
    RegistrationConfig={
        'DuplicateRegistrationAction': 'SKIP'|'REGISTER_AS_NEW',
        'FraudsterSimilarityThreshold': 123,
        'WatchlistIds': [
            'string',
        ]
    }
)
type ClientToken

string

param ClientToken

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.

type DataAccessRoleArn

string

param DataAccessRoleArn

[REQUIRED]

The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to read the input manifest file and write the Job output file. Refer to the Create and edit a fraudster watchlist documentation for the permissions needed in this role.

type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain that contains the fraudster registration job and in which the fraudsters are registered.

type InputDataConfig

dict

param InputDataConfig

[REQUIRED]

The input data config containing an S3 URI for the input manifest file that contains the list of fraudster registration requests.

  • S3Uri (string) -- [REQUIRED]

    The S3 location for the input manifest file that contains the list of individual enrollment or registration job requests.

type JobName

string

param JobName

The name of the new fraudster registration job.

type OutputDataConfig

dict

param OutputDataConfig

[REQUIRED]

The output data config containing the S3 location where Voice ID writes the job output file; you must also include a KMS key ID to encrypt the file.

  • KmsKeyId (string) --

    The identifier of the KMS key you want Voice ID to use to encrypt the output file of a speaker enrollment job/fraudster registration job.

  • S3Uri (string) -- [REQUIRED]

    The S3 path of the folder where Voice ID writes the job output file. It has a *.out extension. For example, if the input file name is input-file.json and the output folder path is s3://output-bucket/output-folder , the full output file path is s3://output-bucket/output-folder/job-Id/input-file.json.out .

type RegistrationConfig

dict

param RegistrationConfig

The registration config containing details such as the action to take when a duplicate fraudster is detected, and the similarity threshold to use for detecting a duplicate fraudster.

  • DuplicateRegistrationAction (string) --

    The action to take when a fraudster is identified as a duplicate. The default action is SKIP , which skips registering the duplicate fraudster. Setting the value to REGISTER_AS_NEW always registers a new fraudster into the specified domain.

  • FraudsterSimilarityThreshold (integer) --

    The minimum similarity score between the new and old fraudsters in order to consider the new fraudster a duplicate.

  • WatchlistIds (list) --

    The identifiers of watchlists that a fraudster is registered to. If a watchlist isn't provided, the fraudsters are registered to the default watchlist.

    • (string) --

rtype

dict

returns

Response Syntax

{
    'Job': {
        'CreatedAt': datetime(2015, 1, 1),
        'DataAccessRoleArn': 'string',
        'DomainId': 'string',
        'EndedAt': datetime(2015, 1, 1),
        'FailureDetails': {
            'Message': 'string',
            'StatusCode': 123
        },
        'InputDataConfig': {
            'S3Uri': 'string'
        },
        'JobId': 'string',
        'JobName': 'string',
        'JobProgress': {
            'PercentComplete': 123
        },
        'JobStatus': 'SUBMITTED'|'IN_PROGRESS'|'COMPLETED'|'COMPLETED_WITH_ERRORS'|'FAILED',
        'OutputDataConfig': {
            'KmsKeyId': 'string',
            'S3Uri': 'string'
        },
        'RegistrationConfig': {
            'DuplicateRegistrationAction': 'SKIP'|'REGISTER_AS_NEW',
            'FraudsterSimilarityThreshold': 123,
            'WatchlistIds': [
                'string',
            ]
        }
    }
}

Response Structure

  • (dict) --

    • Job (dict) --

      Details about the started fraudster registration job.

      • CreatedAt (datetime) --

        A timestamp of when the fraudster registration job was created.

      • DataAccessRoleArn (string) --

        The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to read the input manifest file and write the job output file.

      • DomainId (string) --

        The identifier of the domain that contains the fraudster registration job.

      • EndedAt (datetime) --

        A timestamp of when the fraudster registration job ended.

      • FailureDetails (dict) --

        Contains details that are populated when an entire batch job fails. In cases of individual registration job failures, the batch job as a whole doesn't fail; it is completed with a JobStatus of COMPLETED_WITH_ERRORS . You can use the job output file to identify the individual registration requests that failed.

        • Message (string) --

          A description of the error that caused the batch job failure.

        • StatusCode (integer) --

          An HTTP status code representing the nature of the error.

      • InputDataConfig (dict) --

        The input data config containing an S3 URI for the input manifest file that contains the list of fraudster registration job requests.

        • S3Uri (string) --

          The S3 location for the input manifest file that contains the list of individual enrollment or registration job requests.

      • JobId (string) --

        The service-generated identifier for the fraudster registration job.

      • JobName (string) --

        The client-provided name for the fraudster registration job.

      • JobProgress (dict) --

        Shows the completed percentage of registration requests listed in the input file.

        • PercentComplete (integer) --

          Shows the completed percentage of enrollment or registration requests listed in the input file.

      • JobStatus (string) --

        The current status of the fraudster registration job.

      • OutputDataConfig (dict) --

        The output data config containing the S3 location where you want Voice ID to write your job output file; you must also include a KMS key ID in order to encrypt the file.

        • KmsKeyId (string) --

          The identifier of the KMS key you want Voice ID to use to encrypt the output file of a speaker enrollment job/fraudster registration job.

        • S3Uri (string) --

          The S3 path of the folder where Voice ID writes the job output file. It has a *.out extension. For example, if the input file name is input-file.json and the output folder path is s3://output-bucket/output-folder , the full output file path is s3://output-bucket/output-folder/job-Id/input-file.json.out .

      • RegistrationConfig (dict) --

        The registration config containing details such as the action to take when a duplicate fraudster is detected, and the similarity threshold to use for detecting a duplicate fraudster.

        • DuplicateRegistrationAction (string) --

          The action to take when a fraudster is identified as a duplicate. The default action is SKIP , which skips registering the duplicate fraudster. Setting the value to REGISTER_AS_NEW always registers a new fraudster into the specified domain.

        • FraudsterSimilarityThreshold (integer) --

          The minimum similarity score between the new and old fraudsters in order to consider the new fraudster a duplicate.

        • WatchlistIds (list) --

          The identifiers of watchlists that a fraudster is registered to. If a watchlist isn't provided, the fraudsters are registered to the default watchlist.

          • (string) --

StartSpeakerEnrollmentJob (updated) Link ¶
Changes (request, response)
Request
{'EnrollmentConfig': {'FraudDetectionConfig': {'WatchlistIds': ['string']}}}
Response
{'Job': {'EnrollmentConfig': {'FraudDetectionConfig': {'WatchlistIds': ['string']}}}}

Starts a new batch speaker enrollment job using specified details.

See also: AWS API Documentation

Request Syntax

client.start_speaker_enrollment_job(
    ClientToken='string',
    DataAccessRoleArn='string',
    DomainId='string',
    EnrollmentConfig={
        'ExistingEnrollmentAction': 'SKIP'|'OVERWRITE',
        'FraudDetectionConfig': {
            'FraudDetectionAction': 'IGNORE'|'FAIL',
            'RiskThreshold': 123,
            'WatchlistIds': [
                'string',
            ]
        }
    },
    InputDataConfig={
        'S3Uri': 'string'
    },
    JobName='string',
    OutputDataConfig={
        'KmsKeyId': 'string',
        'S3Uri': 'string'
    }
)
type ClientToken

string

param ClientToken

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.

type DataAccessRoleArn

string

param DataAccessRoleArn

[REQUIRED]

The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to read the input manifest file and write the job output file. Refer to Batch enrollment using audio data from prior calls for the permissions needed in this role.

type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain that contains the speaker enrollment job and in which the speakers are enrolled.

type EnrollmentConfig

dict

param EnrollmentConfig

The enrollment config that contains details such as the action to take when a speaker is already enrolled in Voice ID or when a speaker is identified as a fraudster.

  • ExistingEnrollmentAction (string) --

    The action to take when the specified speaker is already enrolled in the specified domain. The default value is SKIP , which skips the enrollment for the existing speaker. Setting the value to OVERWRITE replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio.

  • FraudDetectionConfig (dict) --

    The fraud detection configuration to use for the speaker enrollment job.

    • FraudDetectionAction (string) --

      The action to take when the given speaker is flagged by the fraud detection system. The default value is FAIL , which fails the speaker enrollment. Changing this value to IGNORE results in the speaker being enrolled even if they are flagged by the fraud detection system.

    • RiskThreshold (integer) --

      Threshold value for determining whether the speaker is a high risk to be fraudulent. If the detected risk score calculated by Voice ID is greater than or equal to the threshold, the speaker is considered a fraudster.

    • WatchlistIds (list) --

      The identifier of watchlists against which fraud detection is performed.

      • (string) --

type InputDataConfig

dict

param InputDataConfig

[REQUIRED]

The input data config containing the S3 location for the input manifest file that contains the list of speaker enrollment requests.

  • S3Uri (string) -- [REQUIRED]

    The S3 location for the input manifest file that contains the list of individual enrollment or registration job requests.

type JobName

string

param JobName

A name for your speaker enrollment job.

type OutputDataConfig

dict

param OutputDataConfig

[REQUIRED]

The output data config containing the S3 location where Voice ID writes the job output file; you must also include a KMS key ID to encrypt the file.

  • KmsKeyId (string) --

    The identifier of the KMS key you want Voice ID to use to encrypt the output file of a speaker enrollment job/fraudster registration job.

  • S3Uri (string) -- [REQUIRED]

    The S3 path of the folder where Voice ID writes the job output file. It has a *.out extension. For example, if the input file name is input-file.json and the output folder path is s3://output-bucket/output-folder , the full output file path is s3://output-bucket/output-folder/job-Id/input-file.json.out .

rtype

dict

returns

Response Syntax

{
    'Job': {
        'CreatedAt': datetime(2015, 1, 1),
        'DataAccessRoleArn': 'string',
        'DomainId': 'string',
        'EndedAt': datetime(2015, 1, 1),
        'EnrollmentConfig': {
            'ExistingEnrollmentAction': 'SKIP'|'OVERWRITE',
            'FraudDetectionConfig': {
                'FraudDetectionAction': 'IGNORE'|'FAIL',
                'RiskThreshold': 123,
                'WatchlistIds': [
                    'string',
                ]
            }
        },
        'FailureDetails': {
            'Message': 'string',
            'StatusCode': 123
        },
        'InputDataConfig': {
            'S3Uri': 'string'
        },
        'JobId': 'string',
        'JobName': 'string',
        'JobProgress': {
            'PercentComplete': 123
        },
        'JobStatus': 'SUBMITTED'|'IN_PROGRESS'|'COMPLETED'|'COMPLETED_WITH_ERRORS'|'FAILED',
        'OutputDataConfig': {
            'KmsKeyId': 'string',
            'S3Uri': 'string'
        }
    }
}

Response Structure

  • (dict) --

    • Job (dict) --

      Details about the started speaker enrollment job.

      • CreatedAt (datetime) --

        A timestamp of when the speaker enrollment job was created.

      • DataAccessRoleArn (string) --

        The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to read the input manifest file and write the job output file.

      • DomainId (string) --

        The identifier of the domain that contains the speaker enrollment job.

      • EndedAt (datetime) --

        A timestamp of when the speaker enrollment job ended.

      • EnrollmentConfig (dict) --

        The configuration that defines the action to take when the speaker is already enrolled in Voice ID, and the FraudDetectionConfig to use.

        • ExistingEnrollmentAction (string) --

          The action to take when the specified speaker is already enrolled in the specified domain. The default value is SKIP , which skips the enrollment for the existing speaker. Setting the value to OVERWRITE replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio.

        • FraudDetectionConfig (dict) --

          The fraud detection configuration to use for the speaker enrollment job.

          • FraudDetectionAction (string) --

            The action to take when the given speaker is flagged by the fraud detection system. The default value is FAIL , which fails the speaker enrollment. Changing this value to IGNORE results in the speaker being enrolled even if they are flagged by the fraud detection system.

          • RiskThreshold (integer) --

            Threshold value for determining whether the speaker is a high risk to be fraudulent. If the detected risk score calculated by Voice ID is greater than or equal to the threshold, the speaker is considered a fraudster.

          • WatchlistIds (list) --

            The identifier of watchlists against which fraud detection is performed.

            • (string) --

      • FailureDetails (dict) --

        Contains details that are populated when an entire batch job fails. In cases of individual registration job failures, the batch job as a whole doesn't fail; it is completed with a JobStatus of COMPLETED_WITH_ERRORS . You can use the job output file to identify the individual registration requests that failed.

        • Message (string) --

          A description of the error that caused the batch job failure.

        • StatusCode (integer) --

          An HTTP status code representing the nature of the error.

      • InputDataConfig (dict) --

        The input data config containing an S3 URI for the input manifest file that contains the list of speaker enrollment job requests.

        • S3Uri (string) --

          The S3 location for the input manifest file that contains the list of individual enrollment or registration job requests.

      • JobId (string) --

        The service-generated identifier for the speaker enrollment job.

      • JobName (string) --

        The client-provided name for the speaker enrollment job.

      • JobProgress (dict) --

        Provides details on job progress. This field shows the completed percentage of registration requests listed in the input file.

        • PercentComplete (integer) --

          Shows the completed percentage of enrollment or registration requests listed in the input file.

      • JobStatus (string) --

        The current status of the speaker enrollment job.

      • OutputDataConfig (dict) --

        The output data config containing the S3 location where Voice ID writes the job output file; you must also include a KMS key ID to encrypt the file.

        • KmsKeyId (string) --

          The identifier of the KMS key you want Voice ID to use to encrypt the output file of a speaker enrollment job/fraudster registration job.

        • S3Uri (string) --

          The S3 path of the folder where Voice ID writes the job output file. It has a *.out extension. For example, if the input file name is input-file.json and the output folder path is s3://output-bucket/output-folder , the full output file path is s3://output-bucket/output-folder/job-Id/input-file.json.out .

UpdateDomain (updated) Link ¶
Changes (response)
{'Domain': {'WatchlistDetails': {'DefaultWatchlistId': 'string'}}}

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. Changing the domain's associated KMS key immediately triggers an asynchronous process to remove dependency on the old KMS key, such that the domain's data can only be accessed using the new KMS key. The domain's ServerSideEncryptionUpdateDetails contains the details for this process.

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

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),
        'WatchlistDetails': {
            'DefaultWatchlistId': 'string'
        }
    }
}

Response Structure

  • (dict) --

    • Domain (dict) --

      Details about the updated 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.