Class: AWS.VoiceID
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.VoiceID
- Identifier:
- voiceid
- API Version:
- 2021-09-27
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Amazon Connect Voice ID provides real-time caller authentication and fraud risk detection, which make voice interactions in contact centers more secure and efficient.
Sending a Request Using VoiceID
var voiceid = new AWS.VoiceID();
voiceid.createWatchlist(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the VoiceID object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var voiceid = new AWS.VoiceID({apiVersion: '2021-09-27'});
You can also set the API version globally in AWS.config.apiVersions
using
the voiceid service identifier:
AWS.config.apiVersions = {
voiceid: '2021-09-27',
// other service API versions
};
var voiceid = new AWS.VoiceID();
Version:
-
2021-09-27
Constructor Summary collapse
-
new AWS.VoiceID(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
associateFraudster(params = {}, callback) ⇒ AWS.Request
Associates the fraudsters with the watchlist specified in the same domain.
-
createDomain(params = {}, callback) ⇒ AWS.Request
Creates a domain that contains all Amazon Connect Voice ID data, such as speakers, fraudsters, customer audio, and voiceprints.
-
createWatchlist(params = {}, callback) ⇒ AWS.Request
Creates a watchlist that fraudsters can be a part of.
.
-
deleteDomain(params = {}, callback) ⇒ AWS.Request
Deletes the specified domain from Voice ID.
.
-
deleteFraudster(params = {}, callback) ⇒ AWS.Request
Deletes the specified fraudster from Voice ID.
-
deleteSpeaker(params = {}, callback) ⇒ AWS.Request
Deletes the specified speaker from Voice ID.
.
-
deleteWatchlist(params = {}, callback) ⇒ AWS.Request
Deletes the specified watchlist from Voice ID.
-
describeDomain(params = {}, callback) ⇒ AWS.Request
Describes the specified domain.
.
-
describeFraudster(params = {}, callback) ⇒ AWS.Request
Describes the specified fraudster.
.
-
describeFraudsterRegistrationJob(params = {}, callback) ⇒ AWS.Request
Describes the specified fraudster registration job.
.
-
describeSpeaker(params = {}, callback) ⇒ AWS.Request
Describes the specified speaker.
.
-
describeSpeakerEnrollmentJob(params = {}, callback) ⇒ AWS.Request
Describes the specified speaker enrollment job.
.
-
describeWatchlist(params = {}, callback) ⇒ AWS.Request
Describes the specified watchlist.
.
-
disassociateFraudster(params = {}, callback) ⇒ AWS.Request
Disassociates the fraudsters from the watchlist specified.
-
evaluateSession(params = {}, callback) ⇒ AWS.Request
Evaluates a specified session based on audio data accumulated during a streaming Amazon Connect Voice ID call.
.
-
listDomains(params = {}, callback) ⇒ AWS.Request
Lists all the domains in the Amazon Web Services account.
-
listFraudsterRegistrationJobs(params = {}, callback) ⇒ AWS.Request
Lists all the fraudster registration jobs in the domain with the given
JobStatus
. -
listFraudsters(params = {}, callback) ⇒ AWS.Request
Lists all fraudsters in a specified watchlist or domain.
.
-
listSpeakerEnrollmentJobs(params = {}, callback) ⇒ AWS.Request
Lists all the speaker enrollment jobs in the domain with the specified
JobStatus
. -
listSpeakers(params = {}, callback) ⇒ AWS.Request
Lists all speakers in a specified domain.
.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Lists all tags associated with a specified Voice ID resource.
.
-
listWatchlists(params = {}, callback) ⇒ AWS.Request
Lists all watchlists in a specified domain.
.
-
optOutSpeaker(params = {}, callback) ⇒ AWS.Request
Opts out a speaker from Voice ID.
-
startFraudsterRegistrationJob(params = {}, callback) ⇒ AWS.Request
Starts a new batch fraudster registration job using provided details.
.
-
startSpeakerEnrollmentJob(params = {}, callback) ⇒ AWS.Request
Starts a new batch speaker enrollment job using specified details.
.
-
tagResource(params = {}, callback) ⇒ AWS.Request
Tags a Voice ID resource with the provided list of tags.
.
-
untagResource(params = {}, callback) ⇒ AWS.Request
Removes specified tags from a specified Amazon Connect Voice ID resource.
.
-
updateDomain(params = {}, callback) ⇒ AWS.Request
Updates the specified domain.
-
updateWatchlist(params = {}, callback) ⇒ AWS.Request
Updates the specified watchlist.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.VoiceID(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Examples:
Constructing a VoiceID object
var voiceid = new AWS.VoiceID({apiVersion: '2021-09-27'});
Options Hash (options):
-
params
(map)
—
An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.
-
endpoint
(String|AWS.Endpoint)
—
The endpoint URI to send requests to. The default endpoint is built from the configured
region
. The endpoint should be a string like'https://{service}.{region}.amazonaws.com'
or an Endpoint object. -
accessKeyId
(String)
—
your AWS access key ID.
-
secretAccessKey
(String)
—
your AWS secret access key.
-
sessionToken
(AWS.Credentials)
—
the optional AWS session token to sign requests with.
-
credentials
(AWS.Credentials)
—
the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.
-
credentialProvider
(AWS.CredentialProviderChain)
—
the provider chain used to resolve credentials if no static
credentials
property is set. -
region
(String)
—
the region to send service requests to. See AWS.VoiceID.region for more information.
-
maxRetries
(Integer)
—
the maximum amount of retries to attempt with a request. See AWS.VoiceID.maxRetries for more information.
-
maxRedirects
(Integer)
—
the maximum amount of redirects to follow with a request. See AWS.VoiceID.maxRedirects for more information.
-
sslEnabled
(Boolean)
—
whether to enable SSL for requests.
-
paramValidation
(Boolean|map)
—
whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
true
. - max [Boolean] — Validates that a value meets the max constraint.
- pattern [Boolean] — Validates that a string value matches a regular expression.
- enum [Boolean] — Validates that a string value matches one of the allowable enum values.
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
-
computeChecksums
(Boolean)
—
whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)
-
convertResponseTypes
(Boolean)
—
whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to
true
. -
correctClockSkew
(Boolean)
—
whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to
false
. -
s3ForcePathStyle
(Boolean)
—
whether to force path style URLs for S3 objects.
-
s3BucketEndpoint
(Boolean)
—
whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an
endpoint
to be provided explicitly to the service constructor. -
s3DisableBodySigning
(Boolean)
—
whether S3 body signing should be disabled when using signature version
v4
. Body signing can only be disabled when using https. Defaults totrue
. -
s3UsEast1RegionalEndpoint
('legacy'|'regional')
—
when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to
legacy
-
s3UseArnRegion
(Boolean)
—
whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to
true
-
retryDelayOptions
(map)
—
A set of options to configure the retry delay on retryable errors. Currently supported options are:
- base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
- customBackoff [function] — A custom function that accepts a
retry count and error and returns the amount of time to delay in
milliseconds. If the result is a non-zero negative value, no further
retry attempts will be made. The
base
option will be ignored if this option is supplied. The function is only called for retryable errors.
-
httpOptions
(map)
—
A set of options to pass to the low-level HTTP request. Currently supported options are:
- proxy [String] — the URL to proxy requests through
- agent [http.Agent, https.Agent] — the Agent object to perform
HTTP requests with. Used for connection pooling. Defaults to the global
agent (
http.globalAgent
) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment. - connectTimeout [Integer] — Sets the socket to timeout after
failing to establish a connection with the server after
connectTimeout
milliseconds. This timeout has no effect once a socket connection has been established. - timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
- xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
- xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
-
apiVersion
(String, Date)
—
a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by
apiVersions
). Specify 'latest' to use the latest possible version. -
apiVersions
(map<String, String|Date>)
—
a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.
-
logger
(#write, #log)
—
an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests
-
systemClockOffset
(Number)
—
an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global
AWS.config
object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds. -
signatureVersion
(String)
—
the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.
-
signatureCache
(Boolean)
—
whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to
true
. -
dynamoDbCrc32
(Boolean)
—
whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default:
true
. -
useAccelerateEndpoint
(Boolean)
—
Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default:
false
. -
clientSideMonitoring
(Boolean)
—
whether to collect and publish this client's performance metrics of all its API requests.
-
endpointDiscoveryEnabled
(Boolean|undefined)
—
whether to call operations with endpoints given by service dynamically. Setting this
-
endpointCacheSize
(Number)
—
the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000
-
hostPrefixEnabled
(Boolean)
—
whether to marshal request parameters to the prefix of hostname. Defaults to
true
. -
stsRegionalEndpoints
('legacy'|'regional')
—
whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.
-
useFipsEndpoint
(Boolean)
—
Enables FIPS compatible endpoints. Defaults to
false
. -
useDualstackEndpoint
(Boolean)
—
Enables IPv6 dualstack endpoint. Defaults to
false
.
Property Details
Method Details
associateFraudster(params = {}, callback) ⇒ AWS.Request
Associates the fraudsters with the watchlist specified in the same domain.
Service Reference:
Examples:
Calling the associateFraudster operation
var params = {
DomainId: 'STRING_VALUE', /* required */
FraudsterId: 'STRING_VALUE', /* required */
WatchlistId: 'STRING_VALUE' /* required */
};
voiceid.associateFraudster(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain that contains the fraudster.
FraudsterId
— (String
)The identifier of the fraudster to be associated with the watchlist.
WatchlistId
— (String
)The identifier of the watchlist you want to associate with the fraudster.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Fraudster
— (map
)Contains all the information about a fraudster.
CreatedAt
— (Date
)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
— (Array<String>
)The identifier of the watchlists the fraudster is a part of.
-
(AWS.Response)
—
Returns:
createDomain(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the createDomain operation
var params = {
Name: 'STRING_VALUE', /* required */
ServerSideEncryptionConfiguration: { /* required */
KmsKeyId: 'STRING_VALUE' /* required */
},
ClientToken: 'STRING_VALUE',
Description: 'STRING_VALUE',
Tags: [
{
Key: 'STRING_VALUE', /* required */
Value: 'STRING_VALUE' /* required */
},
/* more items */
]
};
voiceid.createDomain(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ClientToken
— (String
)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
If a token is not provided, the SDK will use a version 4 UUID.Description
— (String
)A brief description of this domain.
Name
— (String
)The name of the domain.
ServerSideEncryptionConfiguration
— (map
)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
— required — (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.
Tags
— (Array<map>
)A list of tags you want added to the domain.
Key
— required — (String
)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
— required — (String
)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'.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Domain
— (map
)Information about the newly created domain.
Arn
— (String
)The Amazon Resource Name (ARN) for the domain.
CreatedAt
— (Date
)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.
Possible values include:"ACTIVE"
"PENDING"
"SUSPENDED"
Name
— (String
)The name for the domain.
ServerSideEncryptionConfiguration
— (map
)The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt your data.
KmsKeyId
— required — (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
— (map
)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.
Possible values include:"IN_PROGRESS"
"COMPLETED"
"FAILED"
UpdatedAt
— (Date
)The timestamp of when the domain was last update.
WatchlistDetails
— (map
)The watchlist details of a domain. Contains the default watchlist ID of the domain.
DefaultWatchlistId
— required — (String
)The identifier of the default watchlist.
-
(AWS.Response)
—
Returns:
createWatchlist(params = {}, callback) ⇒ AWS.Request
Creates a watchlist that fraudsters can be a part of.
Service Reference:
Examples:
Calling the createWatchlist operation
var params = {
DomainId: 'STRING_VALUE', /* required */
Name: 'STRING_VALUE', /* required */
ClientToken: 'STRING_VALUE',
Description: 'STRING_VALUE'
};
voiceid.createWatchlist(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ClientToken
— (String
)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
If a token is not provided, the SDK will use a version 4 UUID.Description
— (String
)A brief description of this watchlist.
DomainId
— (String
)The identifier of the domain that contains the watchlist.
Name
— (String
)The name of the watchlist.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Watchlist
— (map
)Information about the newly created watchlist.
CreatedAt
— (Date
)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
— (Date
)The timestamp of when the watchlist was updated.
WatchlistId
— (String
)The identifier of the watchlist.
-
(AWS.Response)
—
Returns:
deleteDomain(params = {}, callback) ⇒ AWS.Request
Deletes the specified domain from Voice ID.
Service Reference:
Examples:
Calling the deleteDomain operation
var params = {
DomainId: 'STRING_VALUE' /* required */
};
voiceid.deleteDomain(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain you want to delete.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteFraudster(params = {}, callback) ⇒ AWS.Request
Deletes the specified fraudster from Voice ID. This action disassociates the fraudster from any watchlists it is a part of.
Service Reference:
Examples:
Calling the deleteFraudster operation
var params = {
DomainId: 'STRING_VALUE', /* required */
FraudsterId: 'STRING_VALUE' /* required */
};
voiceid.deleteFraudster(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain that contains the fraudster.
FraudsterId
— (String
)The identifier of the fraudster you want to delete.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteSpeaker(params = {}, callback) ⇒ AWS.Request
Deletes the specified speaker from Voice ID.
Service Reference:
Examples:
Calling the deleteSpeaker operation
var params = {
DomainId: 'STRING_VALUE', /* required */
SpeakerId: 'STRING_VALUE' /* required */
};
voiceid.deleteSpeaker(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain that contains the speaker.
SpeakerId
— (String
)The identifier of the speaker you want to delete.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteWatchlist(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the deleteWatchlist operation
var params = {
DomainId: 'STRING_VALUE', /* required */
WatchlistId: 'STRING_VALUE' /* required */
};
voiceid.deleteWatchlist(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain that contains the watchlist.
WatchlistId
— (String
)The identifier of the watchlist to be deleted.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
describeDomain(params = {}, callback) ⇒ AWS.Request
Describes the specified domain.
Service Reference:
Examples:
Calling the describeDomain operation
var params = {
DomainId: 'STRING_VALUE' /* required */
};
voiceid.describeDomain(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain that you are describing.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Domain
— (map
)Information about the specified domain.
Arn
— (String
)The Amazon Resource Name (ARN) for the domain.
CreatedAt
— (Date
)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.
Possible values include:"ACTIVE"
"PENDING"
"SUSPENDED"
Name
— (String
)The name for the domain.
ServerSideEncryptionConfiguration
— (map
)The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt your data.
KmsKeyId
— required — (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
— (map
)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.
Possible values include:"IN_PROGRESS"
"COMPLETED"
"FAILED"
UpdatedAt
— (Date
)The timestamp of when the domain was last update.
WatchlistDetails
— (map
)The watchlist details of a domain. Contains the default watchlist ID of the domain.
DefaultWatchlistId
— required — (String
)The identifier of the default watchlist.
-
(AWS.Response)
—
Returns:
describeFraudster(params = {}, callback) ⇒ AWS.Request
Describes the specified fraudster.
Service Reference:
Examples:
Calling the describeFraudster operation
var params = {
DomainId: 'STRING_VALUE', /* required */
FraudsterId: 'STRING_VALUE' /* required */
};
voiceid.describeFraudster(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain that contains the fraudster.
FraudsterId
— (String
)The identifier of the fraudster you are describing.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Fraudster
— (map
)Information about the specified fraudster.
CreatedAt
— (Date
)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
— (Array<String>
)The identifier of the watchlists the fraudster is a part of.
-
(AWS.Response)
—
Returns:
describeFraudsterRegistrationJob(params = {}, callback) ⇒ AWS.Request
Describes the specified fraudster registration job.
Service Reference:
Examples:
Calling the describeFraudsterRegistrationJob operation
var params = {
DomainId: 'STRING_VALUE', /* required */
JobId: 'STRING_VALUE' /* required */
};
voiceid.describeFraudsterRegistrationJob(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain that contains the fraudster registration job.
JobId
— (String
)The identifier of the fraudster registration job you are describing.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Job
— (map
)Contains details about the specified fraudster registration job.
CreatedAt
— (Date
)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
— (Date
)A timestamp of when the fraudster registration job ended.
FailureDetails
— (map
)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
ofCOMPLETED_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
— (map
)The input data config containing an S3 URI for the input manifest file that contains the list of fraudster registration job requests.
S3Uri
— required — (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
— (map
)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.
Possible values include:"SUBMITTED"
"IN_PROGRESS"
"COMPLETED"
"COMPLETED_WITH_ERRORS"
"FAILED"
OutputDataConfig
— (map
)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
— required — (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 isinput-file.json
and the output folder path iss3://output-bucket/output-folder
, the full output file path iss3://output-bucket/output-folder/job-Id/input-file.json.out
.
RegistrationConfig
— (map
)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
Possible values include:SKIP
, which skips registering the duplicate fraudster. Setting the value toREGISTER_AS_NEW
always registers a new fraudster into the specified domain."SKIP"
"REGISTER_AS_NEW"
FraudsterSimilarityThreshold
— (Integer
)The minimum similarity score between the new and old fraudsters in order to consider the new fraudster a duplicate.
WatchlistIds
— (Array<String>
)The identifiers of watchlists that a fraudster is registered to. If a watchlist isn't provided, the fraudsters are registered to the default watchlist.
-
(AWS.Response)
—
Returns:
describeSpeaker(params = {}, callback) ⇒ AWS.Request
Describes the specified speaker.
Service Reference:
Examples:
Calling the describeSpeaker operation
var params = {
DomainId: 'STRING_VALUE', /* required */
SpeakerId: 'STRING_VALUE' /* required */
};
voiceid.describeSpeaker(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain that contains the speaker.
SpeakerId
— (String
)The identifier of the speaker you are describing.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Speaker
— (map
)Information about the specified speaker.
CreatedAt
— (Date
)A timestamp of when the speaker was created.
CustomerSpeakerId
— (String
)The client-provided identifier for the speaker.
DomainId
— (String
)The identifier of the domain that contains the speaker.
GeneratedSpeakerId
— (String
)The service-generated identifier for the speaker.
LastAccessedAt
— (Date
)The timestamp of when the speaker was last accessed for enrollment, re-enrollment or a successful authentication. This timestamp is accurate to one hour.
Status
— (String
)The current status of the speaker.
Possible values include:"ENROLLED"
"EXPIRED"
"OPTED_OUT"
"PENDING"
UpdatedAt
— (Date
)A timestamp of the speaker's last update.
-
(AWS.Response)
—
Returns:
describeSpeakerEnrollmentJob(params = {}, callback) ⇒ AWS.Request
Describes the specified speaker enrollment job.
Service Reference:
Examples:
Calling the describeSpeakerEnrollmentJob operation
var params = {
DomainId: 'STRING_VALUE', /* required */
JobId: 'STRING_VALUE' /* required */
};
voiceid.describeSpeakerEnrollmentJob(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain that contains the speaker enrollment job.
JobId
— (String
)The identifier of the speaker enrollment job you are describing.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Job
— (map
)Contains details about the specified speaker enrollment job.
CreatedAt
— (Date
)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
— (Date
)A timestamp of when the speaker enrollment job ended.
EnrollmentConfig
— (map
)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
Possible values include:SKIP
, which skips the enrollment for the existing speaker. Setting the value toOVERWRITE
replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio."SKIP"
"OVERWRITE"
FraudDetectionConfig
— (map
)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
Possible values include:FAIL
, which fails the speaker enrollment. Changing this value toIGNORE
results in the speaker being enrolled even if they are flagged by the fraud detection system."IGNORE"
"FAIL"
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
— (Array<String>
)The identifier of watchlists against which fraud detection is performed.
FailureDetails
— (map
)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
ofCOMPLETED_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
— (map
)The input data config containing an S3 URI for the input manifest file that contains the list of speaker enrollment job requests.
S3Uri
— required — (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
— (map
)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.
Possible values include:"SUBMITTED"
"IN_PROGRESS"
"COMPLETED"
"COMPLETED_WITH_ERRORS"
"FAILED"
OutputDataConfig
— (map
)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
— required — (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 isinput-file.json
and the output folder path iss3://output-bucket/output-folder
, the full output file path iss3://output-bucket/output-folder/job-Id/input-file.json.out
.
-
(AWS.Response)
—
Returns:
describeWatchlist(params = {}, callback) ⇒ AWS.Request
Describes the specified watchlist.
Service Reference:
Examples:
Calling the describeWatchlist operation
var params = {
DomainId: 'STRING_VALUE', /* required */
WatchlistId: 'STRING_VALUE' /* required */
};
voiceid.describeWatchlist(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain that contains the watchlist.
WatchlistId
— (String
)The identifier of the watchlist that you are describing.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Watchlist
— (map
)Information about the specified watchlist.
CreatedAt
— (Date
)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
— (Date
)The timestamp of when the watchlist was updated.
WatchlistId
— (String
)The identifier of the watchlist.
-
(AWS.Response)
—
Returns:
disassociateFraudster(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the disassociateFraudster operation
var params = {
DomainId: 'STRING_VALUE', /* required */
FraudsterId: 'STRING_VALUE', /* required */
WatchlistId: 'STRING_VALUE' /* required */
};
voiceid.disassociateFraudster(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain that contains the fraudster.
FraudsterId
— (String
)The identifier of the fraudster to be disassociated from the watchlist.
WatchlistId
— (String
)The identifier of the watchlist that you want to disassociate from the fraudster.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Fraudster
— (map
)Contains all the information about a fraudster.
CreatedAt
— (Date
)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
— (Array<String>
)The identifier of the watchlists the fraudster is a part of.
-
(AWS.Response)
—
Returns:
evaluateSession(params = {}, callback) ⇒ AWS.Request
Evaluates a specified session based on audio data accumulated during a streaming Amazon Connect Voice ID call.
Service Reference:
Examples:
Calling the evaluateSession operation
var params = {
DomainId: 'STRING_VALUE', /* required */
SessionNameOrId: 'STRING_VALUE' /* required */
};
voiceid.evaluateSession(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain where the session started.
SessionNameOrId
— (String
)The session identifier, or name of the session, that you want to evaluate. In Voice ID integration, this is the Contact-Id.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:AuthenticationResult
— (map
)Details resulting from the authentication process, such as authentication decision and authentication score.
AudioAggregationEndedAt
— (Date
)A timestamp of when audio aggregation ended for this authentication result.
AudioAggregationStartedAt
— (Date
)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, orSpeakerId
changes, Voice ID always returns cached Authentication Result for this API.Configuration
— (map
)The
AuthenticationConfiguration
used to generate this authentication result.AcceptanceThreshold
— required — (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.
Possible values include:"ACCEPT"
"REJECT"
"NOT_ENOUGH_SPEECH"
"SPEAKER_NOT_ENROLLED"
"SPEAKER_OPTED_OUT"
"SPEAKER_ID_NOT_PROVIDED"
"SPEAKER_EXPIRED"
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
orREJECT
.
DomainId
— (String
)The identifier of the domain that contains the session.
FraudDetectionResult
— (map
)Details resulting from the fraud detection process, such as fraud detection decision and risk score.
AudioAggregationEndedAt
— (Date
)A timestamp of when audio aggregation ended for this fraud detection result.
AudioAggregationStartedAt
— (Date
)A timestamp of when audio aggregation started for this fraud detection result.
Configuration
— (map
)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.
Possible values include:"HIGH_RISK"
"LOW_RISK"
"NOT_ENOUGH_SPEECH"
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
— (Array<String>
)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
andVOICE_SPOOFING
.RiskDetails
— (map
)Details about each risk analyzed for this speaker. Currently, this contains KnownFraudsterRisk and VoiceSpoofingRisk details.
KnownFraudsterRisk
— required — (map
)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
— required — (Integer
)The score indicating the likelihood the speaker is a known fraudster.
VoiceSpoofingRisk
— required — (map
)The details resulting from 'Voice Spoofing Risk' analysis of the speaker.
RiskScore
— required — (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
Possible values include:NOT_ENOUGH_SPEECH
. In this situation, if theStreamingStatus
isONGOING/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 remainsNOT_ENOUGH_SPEECH
even afterStreamingStatus
isENDED
, 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."PENDING_CONFIGURATION"
"ONGOING"
"ENDED"
-
(AWS.Response)
—
Returns:
listDomains(params = {}, callback) ⇒ AWS.Request
Lists all the domains in the Amazon Web Services account.
Service Reference:
Examples:
Calling the listDomains operation
var params = {
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
voiceid.listDomains(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
MaxResults
— (Integer
)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.NextToken
— (String
)If
NextToken
is returned, there are more results available. The value ofNextToken
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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:DomainSummaries
— (Array<map>
)A list containing details about each domain in the Amazon Web Services account.
Arn
— (String
)The Amazon Resource Name (ARN) for the domain.
CreatedAt
— (Date
)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.
Possible values include:"ACTIVE"
"PENDING"
"SUSPENDED"
Name
— (String
)The client-provided name for the domain.
ServerSideEncryptionConfiguration
— (map
)The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt your data.
KmsKeyId
— required — (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
— (map
)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.
Possible values include:"IN_PROGRESS"
"COMPLETED"
"FAILED"
UpdatedAt
— (Date
)The timestamp of when the domain was last updated.
WatchlistDetails
— (map
)Provides information about
watchlistDetails
andDefaultWatchlistID
.DefaultWatchlistId
— required — (String
)The identifier of the default watchlist.
NextToken
— (String
)If
NextToken
is returned, there are more results available. The value ofNextToken
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.
-
(AWS.Response)
—
Returns:
listFraudsterRegistrationJobs(params = {}, callback) ⇒ AWS.Request
Lists all the fraudster registration jobs in the domain with the given JobStatus
. If JobStatus
is not provided, this lists all fraudster registration jobs in the given domain.
Service Reference:
Examples:
Calling the listFraudsterRegistrationJobs operation
var params = {
DomainId: 'STRING_VALUE', /* required */
JobStatus: SUBMITTED | IN_PROGRESS | COMPLETED | COMPLETED_WITH_ERRORS | FAILED,
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
voiceid.listFraudsterRegistrationJobs(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain that contains the fraudster registration Jobs.
JobStatus
— (String
)Provides the status of your fraudster registration job.
Possible values include:"SUBMITTED"
"IN_PROGRESS"
"COMPLETED"
"COMPLETED_WITH_ERRORS"
"FAILED"
MaxResults
— (Integer
)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.NextToken
— (String
)If
NextToken
is returned, there are more results available. The value ofNextToken
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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:JobSummaries
— (Array<map>
)A list containing details about each specified fraudster registration job.
CreatedAt
— (Date
)A timestamp of when the fraudster registration job was created.
DomainId
— (String
)The identifier of the domain that contains the fraudster registration job.
EndedAt
— (Date
)A timestamp of when the fraudster registration job ended.
FailureDetails
— (map
)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
ofCOMPLETED_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.
JobId
— (String
)The service-generated identifier for the fraudster registration job.
JobName
— (String
)The client-provided name for the fraudster registration job.
JobProgress
— (map
)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.
Possible values include:"SUBMITTED"
"IN_PROGRESS"
"COMPLETED"
"COMPLETED_WITH_ERRORS"
"FAILED"
NextToken
— (String
)If
NextToken
is returned, there are more results available. The value ofNextToken
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.
-
(AWS.Response)
—
Returns:
listFraudsters(params = {}, callback) ⇒ AWS.Request
Lists all fraudsters in a specified watchlist or domain.
Service Reference:
Examples:
Calling the listFraudsters operation
var params = {
DomainId: 'STRING_VALUE', /* required */
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE',
WatchlistId: 'STRING_VALUE'
};
voiceid.listFraudsters(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain.
MaxResults
— (Integer
)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.NextToken
— (String
)If
NextToken
is returned, there are more results available. The value ofNextToken
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.WatchlistId
— (String
)The identifier of the watchlist. If provided, all fraudsters in the watchlist are listed. If not provided, all fraudsters in the domain are listed.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:FraudsterSummaries
— (Array<map>
)A list that contains details about each fraudster in the Amazon Web Services account.
CreatedAt
— (Date
)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
— (Array<String>
)The identifier of the watchlists the fraudster is a part of.
NextToken
— (String
)If
NextToken
is returned, there are more results available. The value ofNextToken
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.
-
(AWS.Response)
—
Returns:
listSpeakerEnrollmentJobs(params = {}, callback) ⇒ AWS.Request
Lists all the speaker enrollment jobs in the domain with the specified JobStatus
. If JobStatus
is not provided, this lists all jobs with all possible speaker enrollment job statuses.
Service Reference:
Examples:
Calling the listSpeakerEnrollmentJobs operation
var params = {
DomainId: 'STRING_VALUE', /* required */
JobStatus: SUBMITTED | IN_PROGRESS | COMPLETED | COMPLETED_WITH_ERRORS | FAILED,
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
voiceid.listSpeakerEnrollmentJobs(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain that contains the speaker enrollment jobs.
JobStatus
— (String
)Provides the status of your speaker enrollment Job.
Possible values include:"SUBMITTED"
"IN_PROGRESS"
"COMPLETED"
"COMPLETED_WITH_ERRORS"
"FAILED"
MaxResults
— (Integer
)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.NextToken
— (String
)If
NextToken
is returned, there are more results available. The value ofNextToken
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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:JobSummaries
— (Array<map>
)A list containing details about each specified speaker enrollment job.
CreatedAt
— (Date
)A timestamp of when of the speaker enrollment job was created.
DomainId
— (String
)The identifier of the domain that contains the speaker enrollment job.
EndedAt
— (Date
)A timestamp of when the speaker enrollment job ended.
FailureDetails
— (map
)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
ofCOMPLETED_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.
JobId
— (String
)The service-generated identifier for the speaker enrollment job.
JobName
— (String
)The client-provided name for the speaker enrollment job.
JobProgress
— (map
)Provides details regarding job progress. This field shows the completed percentage of enrollment 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.
Possible values include:"SUBMITTED"
"IN_PROGRESS"
"COMPLETED"
"COMPLETED_WITH_ERRORS"
"FAILED"
NextToken
— (String
)If
NextToken
is returned, there are more results available. The value ofNextToken
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.
-
(AWS.Response)
—
Returns:
listSpeakers(params = {}, callback) ⇒ AWS.Request
Lists all speakers in a specified domain.
Service Reference:
Examples:
Calling the listSpeakers operation
var params = {
DomainId: 'STRING_VALUE', /* required */
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
voiceid.listSpeakers(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain.
MaxResults
— (Integer
)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.NextToken
— (String
)If
NextToken
is returned, there are more results available. The value ofNextToken
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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:NextToken
— (String
)If
NextToken
is returned, there are more results available. The value ofNextToken
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.SpeakerSummaries
— (Array<map>
)A list containing details about each speaker in the Amazon Web Services account.
CreatedAt
— (Date
)A timestamp showing the speaker's creation time.
CustomerSpeakerId
— (String
)The client-provided identifier for the speaker.
DomainId
— (String
)The identifier of the domain that contains the speaker.
GeneratedSpeakerId
— (String
)The service-generated identifier for the speaker.
LastAccessedAt
— (Date
)The timestamp when the speaker was last accessed for enrollment, re-enrollment or a successful authentication. This timestamp is accurate to one hour.
Status
— (String
)The current status of the speaker.
Possible values include:"ENROLLED"
"EXPIRED"
"OPTED_OUT"
"PENDING"
UpdatedAt
— (Date
)A timestamp showing the speaker's last update.
-
(AWS.Response)
—
Returns:
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Lists all tags associated with a specified Voice ID resource.
Service Reference:
Examples:
Calling the listTagsForResource operation
var params = {
ResourceArn: 'STRING_VALUE' /* required */
};
voiceid.listTagsForResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)The Amazon Resource Name (ARN) of the Voice ID resource for which you want to list the tags.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Tags
— (Array<map>
)The list of tags associated with the specified resource.
Key
— required — (String
)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
— required — (String
)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'.
-
(AWS.Response)
—
Returns:
listWatchlists(params = {}, callback) ⇒ AWS.Request
Lists all watchlists in a specified domain.
Service Reference:
Examples:
Calling the listWatchlists operation
var params = {
DomainId: 'STRING_VALUE', /* required */
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE'
};
voiceid.listWatchlists(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain.
MaxResults
— (Integer
)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.NextToken
— (String
)If
NextToken
is returned, there are more results available. The value ofNextToken
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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:NextToken
— (String
)If
NextToken
is returned, there are more results available. The value ofNextToken
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
— (Array<map>
)A list that contains details about each watchlist in the Amazon Web Services account.
CreatedAt
— (Date
)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
— (Date
)The timestamp of when the watchlist was last updated.
WatchlistId
— (String
)The identifier of the watchlist.
-
(AWS.Response)
—
Returns:
optOutSpeaker(params = {}, callback) ⇒ AWS.Request
Opts out a speaker from Voice ID. A speaker can be opted out regardless of whether or not they already exist in Voice ID. If they don't yet exist, a new speaker is created in an opted out state. If they already exist, their existing status is overridden and they are opted out. Enrollment and evaluation authentication requests are rejected for opted out speakers, and opted out speakers have no voice embeddings stored in Voice ID.
Service Reference:
Examples:
Calling the optOutSpeaker operation
var params = {
DomainId: 'STRING_VALUE', /* required */
SpeakerId: 'STRING_VALUE' /* required */
};
voiceid.optOutSpeaker(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
DomainId
— (String
)The identifier of the domain that contains the speaker.
SpeakerId
— (String
)The identifier of the speaker you want opted-out.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Speaker
— (map
)Details about the opted-out speaker.
CreatedAt
— (Date
)A timestamp of when the speaker was created.
CustomerSpeakerId
— (String
)The client-provided identifier for the speaker.
DomainId
— (String
)The identifier of the domain that contains the speaker.
GeneratedSpeakerId
— (String
)The service-generated identifier for the speaker.
LastAccessedAt
— (Date
)The timestamp of when the speaker was last accessed for enrollment, re-enrollment or a successful authentication. This timestamp is accurate to one hour.
Status
— (String
)The current status of the speaker.
Possible values include:"ENROLLED"
"EXPIRED"
"OPTED_OUT"
"PENDING"
UpdatedAt
— (Date
)A timestamp of the speaker's last update.
-
(AWS.Response)
—
Returns:
startFraudsterRegistrationJob(params = {}, callback) ⇒ AWS.Request
Starts a new batch fraudster registration job using provided details.
Service Reference:
Examples:
Calling the startFraudsterRegistrationJob operation
var params = {
DataAccessRoleArn: 'STRING_VALUE', /* required */
DomainId: 'STRING_VALUE', /* required */
InputDataConfig: { /* required */
S3Uri: 'STRING_VALUE' /* required */
},
OutputDataConfig: { /* required */
S3Uri: 'STRING_VALUE', /* required */
KmsKeyId: 'STRING_VALUE'
},
ClientToken: 'STRING_VALUE',
JobName: 'STRING_VALUE',
RegistrationConfig: {
DuplicateRegistrationAction: SKIP | REGISTER_AS_NEW,
FraudsterSimilarityThreshold: 'NUMBER_VALUE',
WatchlistIds: [
'STRING_VALUE',
/* more items */
]
}
};
voiceid.startFraudsterRegistrationJob(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ClientToken
— (String
)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
If a token is not provided, the SDK will use a version 4 UUID.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. Refer to the Create and edit a fraudster watchlist documentation for the permissions needed in this role.
DomainId
— (String
)The identifier of the domain that contains the fraudster registration job and in which the fraudsters are registered.
InputDataConfig
— (map
)The input data config containing an S3 URI for the input manifest file that contains the list of fraudster registration requests.
S3Uri
— required — (String
)The S3 location for the input manifest file that contains the list of individual enrollment or registration job requests.
JobName
— (String
)The name of the new fraudster registration job.
OutputDataConfig
— (map
)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
— required — (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 isinput-file.json
and the output folder path iss3://output-bucket/output-folder
, the full output file path iss3://output-bucket/output-folder/job-Id/input-file.json.out
.
RegistrationConfig
— (map
)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
Possible values include:SKIP
, which skips registering the duplicate fraudster. Setting the value toREGISTER_AS_NEW
always registers a new fraudster into the specified domain."SKIP"
"REGISTER_AS_NEW"
FraudsterSimilarityThreshold
— (Integer
)The minimum similarity score between the new and old fraudsters in order to consider the new fraudster a duplicate.
WatchlistIds
— (Array<String>
)The identifiers of watchlists that a fraudster is registered to. If a watchlist isn't provided, the fraudsters are registered to the default watchlist.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Job
— (map
)Details about the started fraudster registration job.
CreatedAt
— (Date
)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
— (Date
)A timestamp of when the fraudster registration job ended.
FailureDetails
— (map
)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
ofCOMPLETED_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
— (map
)The input data config containing an S3 URI for the input manifest file that contains the list of fraudster registration job requests.
S3Uri
— required — (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
— (map
)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.
Possible values include:"SUBMITTED"
"IN_PROGRESS"
"COMPLETED"
"COMPLETED_WITH_ERRORS"
"FAILED"
OutputDataConfig
— (map
)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
— required — (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 isinput-file.json
and the output folder path iss3://output-bucket/output-folder
, the full output file path iss3://output-bucket/output-folder/job-Id/input-file.json.out
.
RegistrationConfig
— (map
)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
Possible values include:SKIP
, which skips registering the duplicate fraudster. Setting the value toREGISTER_AS_NEW
always registers a new fraudster into the specified domain."SKIP"
"REGISTER_AS_NEW"
FraudsterSimilarityThreshold
— (Integer
)The minimum similarity score between the new and old fraudsters in order to consider the new fraudster a duplicate.
WatchlistIds
— (Array<String>
)The identifiers of watchlists that a fraudster is registered to. If a watchlist isn't provided, the fraudsters are registered to the default watchlist.
-
(AWS.Response)
—
Returns:
startSpeakerEnrollmentJob(params = {}, callback) ⇒ AWS.Request
Starts a new batch speaker enrollment job using specified details.
Service Reference:
Examples:
Calling the startSpeakerEnrollmentJob operation
var params = {
DataAccessRoleArn: 'STRING_VALUE', /* required */
DomainId: 'STRING_VALUE', /* required */
InputDataConfig: { /* required */
S3Uri: 'STRING_VALUE' /* required */
},
OutputDataConfig: { /* required */
S3Uri: 'STRING_VALUE', /* required */
KmsKeyId: 'STRING_VALUE'
},
ClientToken: 'STRING_VALUE',
EnrollmentConfig: {
ExistingEnrollmentAction: SKIP | OVERWRITE,
FraudDetectionConfig: {
FraudDetectionAction: IGNORE | FAIL,
RiskThreshold: 'NUMBER_VALUE',
WatchlistIds: [
'STRING_VALUE',
/* more items */
]
}
},
JobName: 'STRING_VALUE'
};
voiceid.startSpeakerEnrollmentJob(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ClientToken
— (String
)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
If a token is not provided, the SDK will use a version 4 UUID.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. Refer to Batch enrollment using audio data from prior calls for the permissions needed in this role.
DomainId
— (String
)The identifier of the domain that contains the speaker enrollment job and in which the speakers are enrolled.
EnrollmentConfig
— (map
)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
Possible values include:SKIP
, which skips the enrollment for the existing speaker. Setting the value toOVERWRITE
replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio."SKIP"
"OVERWRITE"
FraudDetectionConfig
— (map
)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
Possible values include:FAIL
, which fails the speaker enrollment. Changing this value toIGNORE
results in the speaker being enrolled even if they are flagged by the fraud detection system."IGNORE"
"FAIL"
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
— (Array<String>
)The identifier of watchlists against which fraud detection is performed.
InputDataConfig
— (map
)The input data config containing the S3 location for the input manifest file that contains the list of speaker enrollment requests.
S3Uri
— required — (String
)The S3 location for the input manifest file that contains the list of individual enrollment or registration job requests.
JobName
— (String
)A name for your speaker enrollment job.
OutputDataConfig
— (map
)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
— required — (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 isinput-file.json
and the output folder path iss3://output-bucket/output-folder
, the full output file path iss3://output-bucket/output-folder/job-Id/input-file.json.out
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Job
— (map
)Details about the started speaker enrollment job.
CreatedAt
— (Date
)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
— (Date
)A timestamp of when the speaker enrollment job ended.
EnrollmentConfig
— (map
)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
Possible values include:SKIP
, which skips the enrollment for the existing speaker. Setting the value toOVERWRITE
replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio."SKIP"
"OVERWRITE"
FraudDetectionConfig
— (map
)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
Possible values include:FAIL
, which fails the speaker enrollment. Changing this value toIGNORE
results in the speaker being enrolled even if they are flagged by the fraud detection system."IGNORE"
"FAIL"
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
— (Array<String>
)The identifier of watchlists against which fraud detection is performed.
FailureDetails
— (map
)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
ofCOMPLETED_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
— (map
)The input data config containing an S3 URI for the input manifest file that contains the list of speaker enrollment job requests.
S3Uri
— required — (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
— (map
)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.
Possible values include:"SUBMITTED"
"IN_PROGRESS"
"COMPLETED"
"COMPLETED_WITH_ERRORS"
"FAILED"
OutputDataConfig
— (map
)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
— required — (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 isinput-file.json
and the output folder path iss3://output-bucket/output-folder
, the full output file path iss3://output-bucket/output-folder/job-Id/input-file.json.out
.
-
(AWS.Response)
—
Returns:
tagResource(params = {}, callback) ⇒ AWS.Request
Tags a Voice ID resource with the provided list of tags.
Service Reference:
Examples:
Calling the tagResource operation
var params = {
ResourceArn: 'STRING_VALUE', /* required */
Tags: [ /* required */
{
Key: 'STRING_VALUE', /* required */
Value: 'STRING_VALUE' /* required */
},
/* more items */
]
};
voiceid.tagResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)The Amazon Resource Name (ARN) of the Voice ID resource you want to tag.
Tags
— (Array<map>
)The list of tags to assign to the specified resource.
Key
— required — (String
)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
— required — (String
)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'.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
untagResource(params = {}, callback) ⇒ AWS.Request
Removes specified tags from a specified Amazon Connect Voice ID resource.
Service Reference:
Examples:
Calling the untagResource operation
var params = {
ResourceArn: 'STRING_VALUE', /* required */
TagKeys: [ /* required */
'STRING_VALUE',
/* more items */
]
};
voiceid.untagResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)The Amazon Resource Name (ARN) of the Voice ID resource you want to remove tags from.
TagKeys
— (Array<String>
)The list of tag keys you want to remove from the specified resource.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateDomain(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the updateDomain operation
var params = {
DomainId: 'STRING_VALUE', /* required */
Name: 'STRING_VALUE', /* required */
ServerSideEncryptionConfiguration: { /* required */
KmsKeyId: 'STRING_VALUE' /* required */
},
Description: 'STRING_VALUE'
};
voiceid.updateDomain(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
Description
— (String
)A brief description about this domain.
DomainId
— (String
)The identifier of the domain to be updated.
Name
— (String
)The name of the domain.
ServerSideEncryptionConfiguration
— (map
)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
— required — (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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Domain
— (map
)Details about the updated domain
Arn
— (String
)The Amazon Resource Name (ARN) for the domain.
CreatedAt
— (Date
)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.
Possible values include:"ACTIVE"
"PENDING"
"SUSPENDED"
Name
— (String
)The name for the domain.
ServerSideEncryptionConfiguration
— (map
)The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt your data.
KmsKeyId
— required — (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
— (map
)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.
Possible values include:"IN_PROGRESS"
"COMPLETED"
"FAILED"
UpdatedAt
— (Date
)The timestamp of when the domain was last update.
WatchlistDetails
— (map
)The watchlist details of a domain. Contains the default watchlist ID of the domain.
DefaultWatchlistId
— required — (String
)The identifier of the default watchlist.
-
(AWS.Response)
—
Returns:
updateWatchlist(params = {}, callback) ⇒ AWS.Request
Updates the specified watchlist. Every domain has a default watchlist which cannot be updated.
Service Reference:
Examples:
Calling the updateWatchlist operation
var params = {
DomainId: 'STRING_VALUE', /* required */
WatchlistId: 'STRING_VALUE', /* required */
Description: 'STRING_VALUE',
Name: 'STRING_VALUE'
};
voiceid.updateWatchlist(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
Description
— (String
)A brief description about this watchlist.
DomainId
— (String
)The identifier of the domain that contains the watchlist.
Name
— (String
)The name of the watchlist.
WatchlistId
— (String
)The identifier of the watchlist to be updated.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Watchlist
— (map
)Details about the updated watchlist.
CreatedAt
— (Date
)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
— (Date
)The timestamp of when the watchlist was updated.
WatchlistId
— (String
)The identifier of the watchlist.
-
(AWS.Response)
—
Returns: