Class: AWS.CleanRoomsML
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.CleanRoomsML
- Identifier:
- cleanroomsml
- API Version:
- 2023-09-06
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Welcome to the Amazon Web Services Clean Rooms ML API Reference.
Amazon Web Services Clean Rooms ML provides a privacy-enhancing method for two parties to identify similar users in their data without the need to share their data with each other. The first party brings the training data to Clean Rooms so that they can create and configure an audience model (lookalike model) and associate it with a collaboration. The second party then brings their seed data to Clean Rooms and generates an audience (lookalike segment) that resembles the training data.
To learn more about Amazon Web Services Clean Rooms ML concepts, procedures, and best practices, see the Clean Rooms User Guide.
To learn more about SQL commands, functions, and conditions supported in Clean Rooms, see the Clean Rooms SQL Reference.
Sending a Request Using CleanRoomsML
var cleanroomsml = new AWS.CleanRoomsML();
cleanroomsml.createAudienceModel(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 CleanRoomsML object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var cleanroomsml = new AWS.CleanRoomsML({apiVersion: '2023-09-06'});
You can also set the API version globally in AWS.config.apiVersions
using
the cleanroomsml service identifier:
AWS.config.apiVersions = {
cleanroomsml: '2023-09-06',
// other service API versions
};
var cleanroomsml = new AWS.CleanRoomsML();
Version:
-
2023-09-06
Constructor Summary collapse
-
new AWS.CleanRoomsML(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
-
createAudienceModel(params = {}, callback) ⇒ AWS.Request
Defines the information necessary to create an audience model.
-
createConfiguredAudienceModel(params = {}, callback) ⇒ AWS.Request
Defines the information necessary to create a configured audience model.
.
-
createTrainingDataset(params = {}, callback) ⇒ AWS.Request
Defines the information necessary to create a training dataset.
-
deleteAudienceGenerationJob(params = {}, callback) ⇒ AWS.Request
Deletes the specified audience generation job, and removes all data associated with the job.
.
-
deleteAudienceModel(params = {}, callback) ⇒ AWS.Request
Specifies an audience model that you want to delete.
-
deleteConfiguredAudienceModel(params = {}, callback) ⇒ AWS.Request
Deletes the specified configured audience model.
-
deleteConfiguredAudienceModelPolicy(params = {}, callback) ⇒ AWS.Request
Deletes the specified configured audience model policy.
.
-
deleteTrainingDataset(params = {}, callback) ⇒ AWS.Request
Specifies a training dataset that you want to delete.
-
getAudienceGenerationJob(params = {}, callback) ⇒ AWS.Request
Returns information about an audience generation job.
.
-
getAudienceModel(params = {}, callback) ⇒ AWS.Request
Returns information about an audience model
.
-
getConfiguredAudienceModel(params = {}, callback) ⇒ AWS.Request
Returns information about a specified configured audience model.
.
-
getConfiguredAudienceModelPolicy(params = {}, callback) ⇒ AWS.Request
Returns information about a configured audience model policy.
.
-
getTrainingDataset(params = {}, callback) ⇒ AWS.Request
Returns information about a training dataset.
.
-
listAudienceExportJobs(params = {}, callback) ⇒ AWS.Request
Returns a list of the audience export jobs.
.
-
listAudienceGenerationJobs(params = {}, callback) ⇒ AWS.Request
Returns a list of audience generation jobs.
.
-
listAudienceModels(params = {}, callback) ⇒ AWS.Request
Returns a list of audience models.
.
-
listConfiguredAudienceModels(params = {}, callback) ⇒ AWS.Request
Returns a list of the configured audience models.
.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Returns a list of tags for a provided resource.
.
-
listTrainingDatasets(params = {}, callback) ⇒ AWS.Request
Returns a list of training datasets.
.
-
putConfiguredAudienceModelPolicy(params = {}, callback) ⇒ AWS.Request
Create or update the resource policy for a configured audience model.
.
-
startAudienceExportJob(params = {}, callback) ⇒ AWS.Request
Export an audience of a specified size after you have generated an audience.
.
-
startAudienceGenerationJob(params = {}, callback) ⇒ AWS.Request
Information necessary to start the audience generation job.
.
-
tagResource(params = {}, callback) ⇒ AWS.Request
Adds metadata tags to a specified resource.
.
-
untagResource(params = {}, callback) ⇒ AWS.Request
Removes metadata tags from a specified resource.
.
-
updateConfiguredAudienceModel(params = {}, callback) ⇒ AWS.Request
Provides the information necessary to update a configured audience model.
-
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given CleanRoomsML resource.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, setupRequestListeners, defineService
Constructor Details
new AWS.CleanRoomsML(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Examples:
Constructing a CleanRoomsML object
var cleanroomsml = new AWS.CleanRoomsML({apiVersion: '2023-09-06'});
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.CleanRoomsML.region for more information.
-
maxRetries
(Integer)
—
the maximum amount of retries to attempt with a request. See AWS.CleanRoomsML.maxRetries for more information.
-
maxRedirects
(Integer)
—
the maximum amount of redirects to follow with a request. See AWS.CleanRoomsML.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
createAudienceModel(params = {}, callback) ⇒ AWS.Request
Defines the information necessary to create an audience model. An audience model is a machine learning model that Clean Rooms ML trains to measure similarity between users. Clean Rooms ML manages training and storing the audience model. The audience model can be used in multiple calls to the StartAudienceGenerationJob API.
Service Reference:
Examples:
Calling the createAudienceModel operation
var params = {
name: 'STRING_VALUE', /* required */
trainingDatasetArn: 'STRING_VALUE', /* required */
description: 'STRING_VALUE',
kmsKeyArn: 'STRING_VALUE',
tags: {
'<TagKey>': 'STRING_VALUE',
/* '<TagKey>': ... */
},
trainingDataEndTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
trainingDataStartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
};
cleanroomsml.createAudienceModel(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: {})
—
trainingDataStartTime
— (Date
)The start date and time of the training window.
trainingDataEndTime
— (Date
)The end date and time of the training window.
name
— (String
)The name of the audience model resource.
trainingDatasetArn
— (String
)The Amazon Resource Name (ARN) of the training dataset for this audience model.
kmsKeyArn
— (String
)The Amazon Resource Name (ARN) of the KMS key. This key is used to encrypt and decrypt customer-owned data in the trained ML model and the associated data.
tags
— (map<String>
)The optional metadata that you apply to the resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50.
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8.
-
Maximum value length - 256 Unicode characters in UTF-8.
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case sensitive.
-
Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Clean Rooms ML considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.
-
description
— (String
)The description of the audience model.
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:audienceModelArn
— (String
)The Amazon Resource Name (ARN) of the audience model.
-
(AWS.Response)
—
Returns:
createConfiguredAudienceModel(params = {}, callback) ⇒ AWS.Request
Defines the information necessary to create a configured audience model.
Service Reference:
Examples:
Calling the createConfiguredAudienceModel operation
var params = {
audienceModelArn: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
outputConfig: { /* required */
destination: { /* required */
s3Destination: { /* required */
s3Uri: 'STRING_VALUE' /* required */
}
},
roleArn: 'STRING_VALUE' /* required */
},
sharedAudienceMetrics: [ /* required */
ALL | NONE,
/* more items */
],
audienceSizeConfig: {
audienceSizeBins: [ /* required */
'NUMBER_VALUE',
/* more items */
],
audienceSizeType: ABSOLUTE | PERCENTAGE /* required */
},
childResourceTagOnCreatePolicy: FROM_PARENT_RESOURCE | NONE,
description: 'STRING_VALUE',
minMatchingSeedSize: 'NUMBER_VALUE',
tags: {
'<TagKey>': 'STRING_VALUE',
/* '<TagKey>': ... */
}
};
cleanroomsml.createConfiguredAudienceModel(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: {})
—
name
— (String
)The name of the configured audience model.
audienceModelArn
— (String
)The Amazon Resource Name (ARN) of the audience model to use for the configured audience model.
outputConfig
— (map
)Configure the Amazon S3 location and IAM Role for audiences created using this configured audience model. Each audience will have a unique location. The IAM Role must have
s3:PutObject
permission on the destination Amazon S3 location. If the destination is protected with Amazon S3 KMS-SSE, then the Role must also have the required KMS permissions.destination
— required — (map
)Defines the Amazon S3 bucket where the configured audience is stored.
s3Destination
— required — (map
)The Amazon S3 bucket and path for the configured audience.
s3Uri
— required — (String
)The Amazon S3 location URI.
roleArn
— required — (String
)The ARN of the IAM role that can write the Amazon S3 bucket.
description
— (String
)The description of the configured audience model.
sharedAudienceMetrics
— (Array<String>
)Whether audience metrics are shared.
minMatchingSeedSize
— (Integer
)The minimum number of users from the seed audience that must match with users in the training data of the audience model. The default value is 500.
audienceSizeConfig
— (map
)Configure the list of output sizes of audiences that can be created using this configured audience model. A request to StartAudienceGenerationJob that uses this configured audience model must have an
audienceSize
selected from this list. You can use theABSOLUTE
AudienceSize to configure out audience sizes using the count of identifiers in the output. You can use thePercentage
AudienceSize to configure sizes in the range 1-100 percent.audienceSizeType
— required — (String
)Whether the audience output sizes are defined as an absolute number or a percentage.
Possible values include:"ABSOLUTE"
"PERCENTAGE"
audienceSizeBins
— required — (Array<Integer>
)An array of the different audience output sizes.
tags
— (map<String>
)The optional metadata that you apply to the resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50.
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8.
-
Maximum value length - 256 Unicode characters in UTF-8.
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case sensitive.
-
Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Clean Rooms ML considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.
-
childResourceTagOnCreatePolicy
— (String
)Configure how the service tags audience generation jobs created using this configured audience model. If you specify
NONE
, the tags from the StartAudienceGenerationJob request determine the tags of the audience generation job. If you specifyFROM_PARENT_RESOURCE
, the audience generation job inherits the tags from the configured audience model, by default. Tags in the StartAudienceGenerationJob will override the default.When the client is in a different account than the configured audience model, the tags from the client are never applied to a resource in the caller's account.
Possible values include:"FROM_PARENT_RESOURCE"
"NONE"
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:configuredAudienceModelArn
— (String
)The Amazon Resource Name (ARN) of the configured audience model.
-
(AWS.Response)
—
Returns:
createTrainingDataset(params = {}, callback) ⇒ AWS.Request
Defines the information necessary to create a training dataset. In Clean Rooms ML, the TrainingDataset
is metadata that points to a Glue table, which is read only during AudienceModel
creation.
Service Reference:
Examples:
Calling the createTrainingDataset operation
var params = {
name: 'STRING_VALUE', /* required */
roleArn: 'STRING_VALUE', /* required */
trainingData: [ /* required */
{
inputConfig: { /* required */
dataSource: { /* required */
glueDataSource: { /* required */
databaseName: 'STRING_VALUE', /* required */
tableName: 'STRING_VALUE', /* required */
catalogId: 'STRING_VALUE'
}
},
schema: [ /* required */
{
columnName: 'STRING_VALUE', /* required */
columnTypes: [ /* required */
USER_ID | ITEM_ID | TIMESTAMP | CATEGORICAL_FEATURE | NUMERICAL_FEATURE,
/* more items */
]
},
/* more items */
]
},
type: INTERACTIONS /* required */
},
/* more items */
],
description: 'STRING_VALUE',
tags: {
'<TagKey>': 'STRING_VALUE',
/* '<TagKey>': ... */
}
};
cleanroomsml.createTrainingDataset(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: {})
—
name
— (String
)The name of the training dataset. This name must be unique in your account and region.
roleArn
— (String
)The ARN of the IAM role that Clean Rooms ML can assume to read the data referred to in the
dataSource
field of each dataset.Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an
AccessDeniedException
error.trainingData
— (Array<map>
)An array of information that lists the Dataset objects, which specifies the dataset type and details on its location and schema. You must provide a role that has read access to these tables.
type
— required — (String
)What type of information is found in the dataset.
Possible values include:"INTERACTIONS"
inputConfig
— required — (map
)A DatasetInputConfig object that defines the data source and schema mapping.
schema
— required — (Array<map>
)The schema information for the training data.
columnName
— required — (String
)The name of a column.
columnTypes
— required — (Array<String>
)The data type of column.
dataSource
— required — (map
)A DataSource object that specifies the Glue data source for the training data.
glueDataSource
— required — (map
)A GlueDataSource object that defines the catalog ID, database name, and table name for the training data.
tableName
— required — (String
)The Glue table that contains the training data.
databaseName
— required — (String
)The Glue database that contains the training data.
catalogId
— (String
)The Glue catalog that contains the training data.
tags
— (map<String>
)The optional metadata that you apply to the resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50.
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8.
-
Maximum value length - 256 Unicode characters in UTF-8.
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case sensitive.
-
Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Clean Rooms ML considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.
-
description
— (String
)The description of the training dataset.
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:trainingDatasetArn
— (String
)The Amazon Resource Name (ARN) of the training dataset resource.
-
(AWS.Response)
—
Returns:
deleteAudienceGenerationJob(params = {}, callback) ⇒ AWS.Request
Deletes the specified audience generation job, and removes all data associated with the job.
Service Reference:
Examples:
Calling the deleteAudienceGenerationJob operation
var params = {
audienceGenerationJobArn: 'STRING_VALUE' /* required */
};
cleanroomsml.deleteAudienceGenerationJob(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: {})
—
audienceGenerationJobArn
— (String
)The Amazon Resource Name (ARN) of the audience generation job that 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:
deleteAudienceModel(params = {}, callback) ⇒ AWS.Request
Specifies an audience model that you want to delete. You can't delete an audience model if there are any configured audience models that depend on the audience model.
Service Reference:
Examples:
Calling the deleteAudienceModel operation
var params = {
audienceModelArn: 'STRING_VALUE' /* required */
};
cleanroomsml.deleteAudienceModel(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: {})
—
audienceModelArn
— (String
)The Amazon Resource Name (ARN) of the audience model that 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:
deleteConfiguredAudienceModel(params = {}, callback) ⇒ AWS.Request
Deletes the specified configured audience model. You can't delete a configured audience model if there are any lookalike models that use the configured audience model. If you delete a configured audience model, it will be removed from any collaborations that it is associated to.
Service Reference:
Examples:
Calling the deleteConfiguredAudienceModel operation
var params = {
configuredAudienceModelArn: 'STRING_VALUE' /* required */
};
cleanroomsml.deleteConfiguredAudienceModel(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: {})
—
configuredAudienceModelArn
— (String
)The Amazon Resource Name (ARN) of the configured audience model that 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:
deleteConfiguredAudienceModelPolicy(params = {}, callback) ⇒ AWS.Request
Deletes the specified configured audience model policy.
Service Reference:
Examples:
Calling the deleteConfiguredAudienceModelPolicy operation
var params = {
configuredAudienceModelArn: 'STRING_VALUE' /* required */
};
cleanroomsml.deleteConfiguredAudienceModelPolicy(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: {})
—
configuredAudienceModelArn
— (String
)The Amazon Resource Name (ARN) of the configured audience model policy that 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:
deleteTrainingDataset(params = {}, callback) ⇒ AWS.Request
Specifies a training dataset that you want to delete. You can't delete a training dataset if there are any audience models that depend on the training dataset. In Clean Rooms ML, the TrainingDataset
is metadata that points to a Glue table, which is read only during AudienceModel
creation. This action deletes the metadata.
Service Reference:
Examples:
Calling the deleteTrainingDataset operation
var params = {
trainingDatasetArn: 'STRING_VALUE' /* required */
};
cleanroomsml.deleteTrainingDataset(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: {})
—
trainingDatasetArn
— (String
)The Amazon Resource Name (ARN) of the training dataset that 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:
getAudienceGenerationJob(params = {}, callback) ⇒ AWS.Request
Returns information about an audience generation job.
Service Reference:
Examples:
Calling the getAudienceGenerationJob operation
var params = {
audienceGenerationJobArn: 'STRING_VALUE' /* required */
};
cleanroomsml.getAudienceGenerationJob(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: {})
—
audienceGenerationJobArn
— (String
)The Amazon Resource Name (ARN) of the audience generation job that you are interested in.
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:createTime
— (Date
)The time at which the audience generation job was created.
updateTime
— (Date
)The most recent time at which the audience generation job was updated.
audienceGenerationJobArn
— (String
)The Amazon Resource Name (ARN) of the audience generation job.
name
— (String
)The name of the audience generation job.
description
— (String
)The description of the audience generation job.
status
— (String
)The status of the audience generation job.
Possible values include:"CREATE_PENDING"
"CREATE_IN_PROGRESS"
"CREATE_FAILED"
"ACTIVE"
"DELETE_PENDING"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
statusDetails
— (map
)Details about the status of the audience generation job.
statusCode
— (String
)The status code that was returned. The status code is intended for programmatic error handling. Clean Rooms ML will not change the status code for existing error conditions.
message
— (String
)The error message that was returned. The message is intended for human consumption and can change at any time. Use the
statusCode
for programmatic error handling.
configuredAudienceModelArn
— (String
)The Amazon Resource Name (ARN) of the configured audience model used for this audience generation job.
seedAudience
— (map
)The seed audience that was used for this audience generation job. This field will be null if the account calling the API is the account that started this audience generation job.
dataSource
— (map
)Defines the Amazon S3 bucket where the seed audience for the generating audience is stored. A valid data source is a JSON line file in the following format:
{"user_id": "111111"}
{"user_id": "222222"}
...
s3Uri
— required — (String
)The Amazon S3 location URI.
roleArn
— required — (String
)The ARN of the IAM role that can read the Amazon S3 bucket where the seed audience is stored.
sqlParameters
— (map
)The protected SQL query parameters.
queryString
— (String
)The query string to be submitted.
analysisTemplateArn
— (String
)The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.
parameters
— (map<String>
)The protected query SQL parameters.
includeSeedInOutput
— (Boolean
)Configure whether the seed users are included in the output audience. By default, Clean Rooms ML removes seed users from the output audience. If you specify
TRUE
, the seed users will appear first in the output. Clean Rooms ML does not explicitly reveal whether a user was in the seed, but the recipient of the audience will know that the firstminimumSeedSize
count of users are from the seed.collaborationId
— (String
)The identifier of the collaboration that this audience generation job is associated with.
metrics
— (map
)The relevance scores for different audience sizes and the recall score of the generated audience.
relevanceMetrics
— required — (Array<map>
)The relevance scores of the generated audience.
audienceSize
— required — (map
)The size of the generated audience. Must match one of the sizes in the configured audience model.
type
— required — (String
)Whether the audience size is defined in absolute terms or as a percentage. You can use the
Possible values include:ABSOLUTE
AudienceSize to configure out audience sizes using the count of identifiers in the output. You can use thePercentage
AudienceSize to configure sizes in the range 1-100 percent."ABSOLUTE"
"PERCENTAGE"
value
— required — (Integer
)Specify an audience size value.
score
— (Float
)The relevance score of the generated audience.
recallMetric
— (Float
)The recall score of the generated audience. Recall is the percentage of the most similar users (by default, the most similar 20%) from a sample of the training data that are included in the seed audience by the audience generation job. Values range from 0-1, larger values indicate a better audience. A recall value approximately equal to the maximum bin size indicates that the audience model is equivalent to random selection.
startedBy
— (String
)The AWS account that started this audience generation job.
tags
— (map<String>
)The tags that are associated to this audience generation job.
protectedQueryIdentifier
— (String
)The unique identifier of the protected query for this audience generation job.
-
(AWS.Response)
—
Returns:
getAudienceModel(params = {}, callback) ⇒ AWS.Request
Returns information about an audience model
Service Reference:
Examples:
Calling the getAudienceModel operation
var params = {
audienceModelArn: 'STRING_VALUE' /* required */
};
cleanroomsml.getAudienceModel(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: {})
—
audienceModelArn
— (String
)The Amazon Resource Name (ARN) of the audience model that you are interested in.
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:createTime
— (Date
)The time at which the audience model was created.
updateTime
— (Date
)The most recent time at which the audience model was updated.
trainingDataStartTime
— (Date
)The start date specified for the training window.
trainingDataEndTime
— (Date
)The end date specified for the training window.
audienceModelArn
— (String
)The Amazon Resource Name (ARN) of the audience model.
name
— (String
)The name of the audience model.
trainingDatasetArn
— (String
)The Amazon Resource Name (ARN) of the training dataset that was used for this audience model.
status
— (String
)The status of the audience model.
Possible values include:"CREATE_PENDING"
"CREATE_IN_PROGRESS"
"CREATE_FAILED"
"ACTIVE"
"DELETE_PENDING"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
statusDetails
— (map
)Details about the status of the audience model.
statusCode
— (String
)The status code that was returned. The status code is intended for programmatic error handling. Clean Rooms ML will not change the status code for existing error conditions.
message
— (String
)The error message that was returned. The message is intended for human consumption and can change at any time. Use the
statusCode
for programmatic error handling.
kmsKeyArn
— (String
)The KMS key ARN used for the audience model.
tags
— (map<String>
)The tags that are assigned to the audience model.
description
— (String
)The description of the audience model.
-
(AWS.Response)
—
Returns:
getConfiguredAudienceModel(params = {}, callback) ⇒ AWS.Request
Returns information about a specified configured audience model.
Service Reference:
Examples:
Calling the getConfiguredAudienceModel operation
var params = {
configuredAudienceModelArn: 'STRING_VALUE' /* required */
};
cleanroomsml.getConfiguredAudienceModel(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: {})
—
configuredAudienceModelArn
— (String
)The Amazon Resource Name (ARN) of the configured audience model that you are interested in.
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:createTime
— (Date
)The time at which the configured audience model was created.
updateTime
— (Date
)The most recent time at which the configured audience model was updated.
configuredAudienceModelArn
— (String
)The Amazon Resource Name (ARN) of the configured audience model.
name
— (String
)The name of the configured audience model.
audienceModelArn
— (String
)The Amazon Resource Name (ARN) of the audience model used for this configured audience model.
outputConfig
— (map
)The output configuration of the configured audience model
destination
— required — (map
)Defines the Amazon S3 bucket where the configured audience is stored.
s3Destination
— required — (map
)The Amazon S3 bucket and path for the configured audience.
s3Uri
— required — (String
)The Amazon S3 location URI.
roleArn
— required — (String
)The ARN of the IAM role that can write the Amazon S3 bucket.
description
— (String
)The description of the configured audience model.
status
— (String
)The status of the configured audience model.
Possible values include:"ACTIVE"
sharedAudienceMetrics
— (Array<String>
)Whether audience metrics are shared.
minMatchingSeedSize
— (Integer
)The minimum number of users from the seed audience that must match with users in the training data of the audience model.
audienceSizeConfig
— (map
)The list of output sizes of audiences that can be created using this configured audience model. A request to StartAudienceGenerationJob that uses this configured audience model must have an
audienceSize
selected from this list. You can use theABSOLUTE
AudienceSize to configure out audience sizes using the count of identifiers in the output. You can use thePercentage
AudienceSize to configure sizes in the range 1-100 percent.audienceSizeType
— required — (String
)Whether the audience output sizes are defined as an absolute number or a percentage.
Possible values include:"ABSOLUTE"
"PERCENTAGE"
audienceSizeBins
— required — (Array<Integer>
)An array of the different audience output sizes.
tags
— (map<String>
)The tags that are associated to this configured audience model.
childResourceTagOnCreatePolicy
— (String
)Provides the
Possible values include:childResourceTagOnCreatePolicy
that was used for this configured audience model."FROM_PARENT_RESOURCE"
"NONE"
-
(AWS.Response)
—
Returns:
getConfiguredAudienceModelPolicy(params = {}, callback) ⇒ AWS.Request
Returns information about a configured audience model policy.
Service Reference:
Examples:
Calling the getConfiguredAudienceModelPolicy operation
var params = {
configuredAudienceModelArn: 'STRING_VALUE' /* required */
};
cleanroomsml.getConfiguredAudienceModelPolicy(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: {})
—
configuredAudienceModelArn
— (String
)The Amazon Resource Name (ARN) of the configured audience model that you are interested in.
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:configuredAudienceModelArn
— (String
)The Amazon Resource Name (ARN) of the configured audience model.
configuredAudienceModelPolicy
— (String
)The configured audience model policy. This is a JSON IAM resource policy.
policyHash
— (String
)A cryptographic hash of the contents of the policy used to prevent unexpected concurrent modification of the policy.
-
(AWS.Response)
—
Returns:
getTrainingDataset(params = {}, callback) ⇒ AWS.Request
Returns information about a training dataset.
Service Reference:
Examples:
Calling the getTrainingDataset operation
var params = {
trainingDatasetArn: 'STRING_VALUE' /* required */
};
cleanroomsml.getTrainingDataset(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: {})
—
trainingDatasetArn
— (String
)The Amazon Resource Name (ARN) of the training dataset that you are interested in.
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:createTime
— (Date
)The time at which the training dataset was created.
updateTime
— (Date
)The most recent time at which the training dataset was updated.
trainingDatasetArn
— (String
)The Amazon Resource Name (ARN) of the training dataset.
name
— (String
)The name of the training dataset.
trainingData
— (Array<map>
)Metadata about the requested training data.
type
— required — (String
)What type of information is found in the dataset.
Possible values include:"INTERACTIONS"
inputConfig
— required — (map
)A DatasetInputConfig object that defines the data source and schema mapping.
schema
— required — (Array<map>
)The schema information for the training data.
columnName
— required — (String
)The name of a column.
columnTypes
— required — (Array<String>
)The data type of column.
dataSource
— required — (map
)A DataSource object that specifies the Glue data source for the training data.
glueDataSource
— required — (map
)A GlueDataSource object that defines the catalog ID, database name, and table name for the training data.
tableName
— required — (String
)The Glue table that contains the training data.
databaseName
— required — (String
)The Glue database that contains the training data.
catalogId
— (String
)The Glue catalog that contains the training data.
status
— (String
)The status of the training dataset.
Possible values include:"ACTIVE"
roleArn
— (String
)The IAM role used to read the training data.
tags
— (map<String>
)The tags that are assigned to this training dataset.
description
— (String
)The description of the training dataset.
-
(AWS.Response)
—
Returns:
listAudienceExportJobs(params = {}, callback) ⇒ AWS.Request
Returns a list of the audience export jobs.
Service Reference:
Examples:
Calling the listAudienceExportJobs operation
var params = {
audienceGenerationJobArn: 'STRING_VALUE',
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
cleanroomsml.listAudienceExportJobs(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: {})
—
nextToken
— (String
)The token value retrieved from a previous call to access the next page of results.
maxResults
— (Integer
)The maximum size of the results that is returned per call.
audienceGenerationJobArn
— (String
)The Amazon Resource Name (ARN) of the audience generation job that you are interested in.
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
)The token value retrieved from a previous call to access the next page of results.
audienceExportJobs
— (Array<map>
)The audience export jobs that match the request.
createTime
— required — (Date
)The time at which the audience export job was created.
updateTime
— required — (Date
)The most recent time at which the audience export job was updated.
name
— required — (String
)The name of the audience export job.
audienceGenerationJobArn
— required — (String
)The Amazon Resource Name (ARN) of the audience generation job that was exported.
audienceSize
— required — (map
)The size of the generated audience. Must match one of the sizes in the configured audience model.
type
— required — (String
)Whether the audience size is defined in absolute terms or as a percentage. You can use the
Possible values include:ABSOLUTE
AudienceSize to configure out audience sizes using the count of identifiers in the output. You can use thePercentage
AudienceSize to configure sizes in the range 1-100 percent."ABSOLUTE"
"PERCENTAGE"
value
— required — (Integer
)Specify an audience size value.
description
— (String
)The description of the audience export job.
status
— required — (String
)The status of the audience export job.
Possible values include:"CREATE_PENDING"
"CREATE_IN_PROGRESS"
"CREATE_FAILED"
"ACTIVE"
statusDetails
— (map
)Details about the status of a resource.
statusCode
— (String
)The status code that was returned. The status code is intended for programmatic error handling. Clean Rooms ML will not change the status code for existing error conditions.
message
— (String
)The error message that was returned. The message is intended for human consumption and can change at any time. Use the
statusCode
for programmatic error handling.
outputLocation
— (String
)The Amazon S3 bucket where the audience export is stored.
-
(AWS.Response)
—
Returns:
listAudienceGenerationJobs(params = {}, callback) ⇒ AWS.Request
Returns a list of audience generation jobs.
Service Reference:
Examples:
Calling the listAudienceGenerationJobs operation
var params = {
collaborationId: 'STRING_VALUE',
configuredAudienceModelArn: 'STRING_VALUE',
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
cleanroomsml.listAudienceGenerationJobs(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: {})
—
nextToken
— (String
)The token value retrieved from a previous call to access the next page of results.
maxResults
— (Integer
)The maximum size of the results that is returned per call.
configuredAudienceModelArn
— (String
)The Amazon Resource Name (ARN) of the configured audience model that was used for the audience generation jobs that you are interested in.
collaborationId
— (String
)The identifier of the collaboration that contains the audience generation jobs that you are interested in.
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
)The token value retrieved from a previous call to access the next page of results.
audienceGenerationJobs
— (Array<map>
)The audience generation jobs that match the request.
createTime
— required — (Date
)The time at which the audience generation job was created.
updateTime
— required — (Date
)The most recent time at which the audience generation job was updated.
audienceGenerationJobArn
— required — (String
)The Amazon Resource Name (ARN) of the audience generation job.
name
— required — (String
)The name of the audience generation job.
description
— (String
)The description of the audience generation job.
status
— required — (String
)The status of the audience generation job.
Possible values include:"CREATE_PENDING"
"CREATE_IN_PROGRESS"
"CREATE_FAILED"
"ACTIVE"
"DELETE_PENDING"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
configuredAudienceModelArn
— required — (String
)The Amazon Resource Name (ARN) of the configured audience model that was used for this audience generation job.
collaborationId
— (String
)The identifier of the collaboration that contains this audience generation job.
startedBy
— (String
)The AWS Account that submitted the job.
-
(AWS.Response)
—
Returns:
listAudienceModels(params = {}, callback) ⇒ AWS.Request
Returns a list of audience models.
Service Reference:
Examples:
Calling the listAudienceModels operation
var params = {
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
cleanroomsml.listAudienceModels(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: {})
—
nextToken
— (String
)The token value retrieved from a previous call to access the next page of results.
maxResults
— (Integer
)The maximum size of the results that is returned per call.
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
)The token value retrieved from a previous call to access the next page of results.
audienceModels
— (Array<map>
)The audience models that match the request.
createTime
— required — (Date
)The time at which the audience model was created.
updateTime
— required — (Date
)The most recent time at which the audience model was updated.
audienceModelArn
— required — (String
)The Amazon Resource Name (ARN) of the audience model.
name
— required — (String
)The name of the audience model.
trainingDatasetArn
— required — (String
)The Amazon Resource Name (ARN) of the training dataset that was used for the audience model.
status
— required — (String
)The status of the audience model.
Possible values include:"CREATE_PENDING"
"CREATE_IN_PROGRESS"
"CREATE_FAILED"
"ACTIVE"
"DELETE_PENDING"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
description
— (String
)The description of the audience model.
-
(AWS.Response)
—
Returns:
listConfiguredAudienceModels(params = {}, callback) ⇒ AWS.Request
Returns a list of the configured audience models.
Service Reference:
Examples:
Calling the listConfiguredAudienceModels operation
var params = {
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
cleanroomsml.listConfiguredAudienceModels(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: {})
—
nextToken
— (String
)The token value retrieved from a previous call to access the next page of results.
maxResults
— (Integer
)The maximum size of the results that is returned per call.
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
)The token value retrieved from a previous call to access the next page of results.
configuredAudienceModels
— (Array<map>
)The configured audience models.
createTime
— required — (Date
)The time at which the configured audience model was created.
updateTime
— required — (Date
)The most recent time at which the configured audience model was updated.
name
— required — (String
)The name of the configured audience model.
audienceModelArn
— required — (String
)The Amazon Resource Name (ARN) of the audience model that was used to create the configured audience model.
outputConfig
— required — (map
)The output configuration of the configured audience model.
destination
— required — (map
)Defines the Amazon S3 bucket where the configured audience is stored.
s3Destination
— required — (map
)The Amazon S3 bucket and path for the configured audience.
s3Uri
— required — (String
)The Amazon S3 location URI.
roleArn
— required — (String
)The ARN of the IAM role that can write the Amazon S3 bucket.
description
— (String
)The description of the configured audience model.
configuredAudienceModelArn
— required — (String
)The Amazon Resource Name (ARN) of the configured audience model that you are interested in.
status
— required — (String
)The status of the configured audience model.
Possible values include:"ACTIVE"
-
(AWS.Response)
—
Returns:
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Returns a list of tags for a provided resource.
Service Reference:
Examples:
Calling the listTagsForResource operation
var params = {
resourceArn: 'STRING_VALUE' /* required */
};
cleanroomsml.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 resource that you are interested in.
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
— (map<String>
)The tags that are associated with the resource.
-
(AWS.Response)
—
Returns:
listTrainingDatasets(params = {}, callback) ⇒ AWS.Request
Returns a list of training datasets.
Service Reference:
Examples:
Calling the listTrainingDatasets operation
var params = {
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
cleanroomsml.listTrainingDatasets(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: {})
—
nextToken
— (String
)The token value retrieved from a previous call to access the next page of results.
maxResults
— (Integer
)The maximum size of the results that is returned per call.
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
)The token value retrieved from a previous call to access the next page of results.
trainingDatasets
— (Array<map>
)The training datasets that match the request.
createTime
— required — (Date
)The time at which the training dataset was created.
updateTime
— required — (Date
)The most recent time at which the training dataset was updated.
trainingDatasetArn
— required — (String
)The Amazon Resource Name (ARN) of the training dataset.
name
— required — (String
)The name of the training dataset.
status
— required — (String
)The status of the training dataset.
Possible values include:"ACTIVE"
description
— (String
)The description of the training dataset.
-
(AWS.Response)
—
Returns:
putConfiguredAudienceModelPolicy(params = {}, callback) ⇒ AWS.Request
Create or update the resource policy for a configured audience model.
Service Reference:
Examples:
Calling the putConfiguredAudienceModelPolicy operation
var params = {
configuredAudienceModelArn: 'STRING_VALUE', /* required */
configuredAudienceModelPolicy: 'STRING_VALUE', /* required */
policyExistenceCondition: POLICY_MUST_EXIST | POLICY_MUST_NOT_EXIST,
previousPolicyHash: 'STRING_VALUE'
};
cleanroomsml.putConfiguredAudienceModelPolicy(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: {})
—
configuredAudienceModelArn
— (String
)The Amazon Resource Name (ARN) of the configured audience model that the resource policy will govern.
configuredAudienceModelPolicy
— (String
)The IAM resource policy.
previousPolicyHash
— (String
)A cryptographic hash of the contents of the policy used to prevent unexpected concurrent modification of the policy.
policyExistenceCondition
— (String
)Use this to prevent unexpected concurrent modification of the policy.
Possible values include:"POLICY_MUST_EXIST"
"POLICY_MUST_NOT_EXIST"
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:configuredAudienceModelPolicy
— (String
)The IAM resource policy.
policyHash
— (String
)A cryptographic hash of the contents of the policy used to prevent unexpected concurrent modification of the policy.
-
(AWS.Response)
—
Returns:
startAudienceExportJob(params = {}, callback) ⇒ AWS.Request
Export an audience of a specified size after you have generated an audience.
Service Reference:
Examples:
Calling the startAudienceExportJob operation
var params = {
audienceGenerationJobArn: 'STRING_VALUE', /* required */
audienceSize: { /* required */
type: ABSOLUTE | PERCENTAGE, /* required */
value: 'NUMBER_VALUE' /* required */
},
name: 'STRING_VALUE', /* required */
description: 'STRING_VALUE'
};
cleanroomsml.startAudienceExportJob(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: {})
—
name
— (String
)The name of the audience export job.
audienceGenerationJobArn
— (String
)The Amazon Resource Name (ARN) of the audience generation job that you want to export.
audienceSize
— (map
)The size of the generated audience. Must match one of the sizes in the configured audience model.
type
— required — (String
)Whether the audience size is defined in absolute terms or as a percentage. You can use the
Possible values include:ABSOLUTE
AudienceSize to configure out audience sizes using the count of identifiers in the output. You can use thePercentage
AudienceSize to configure sizes in the range 1-100 percent."ABSOLUTE"
"PERCENTAGE"
value
— required — (Integer
)Specify an audience size value.
description
— (String
)The description of the audience export job.
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:
startAudienceGenerationJob(params = {}, callback) ⇒ AWS.Request
Information necessary to start the audience generation job.
Service Reference:
Examples:
Calling the startAudienceGenerationJob operation
var params = {
configuredAudienceModelArn: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
seedAudience: { /* required */
roleArn: 'STRING_VALUE', /* required */
dataSource: {
s3Uri: 'STRING_VALUE' /* required */
},
sqlParameters: {
analysisTemplateArn: 'STRING_VALUE',
parameters: {
'<ParameterKey>': 'STRING_VALUE',
/* '<ParameterKey>': ... */
},
queryString: 'STRING_VALUE'
}
},
collaborationId: 'STRING_VALUE',
description: 'STRING_VALUE',
includeSeedInOutput: true || false,
tags: {
'<TagKey>': 'STRING_VALUE',
/* '<TagKey>': ... */
}
};
cleanroomsml.startAudienceGenerationJob(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: {})
—
name
— (String
)The name of the audience generation job.
configuredAudienceModelArn
— (String
)The Amazon Resource Name (ARN) of the configured audience model that is used for this audience generation job.
seedAudience
— (map
)The seed audience that is used to generate the audience.
dataSource
— (map
)Defines the Amazon S3 bucket where the seed audience for the generating audience is stored. A valid data source is a JSON line file in the following format:
{"user_id": "111111"}
{"user_id": "222222"}
...
s3Uri
— required — (String
)The Amazon S3 location URI.
roleArn
— required — (String
)The ARN of the IAM role that can read the Amazon S3 bucket where the seed audience is stored.
sqlParameters
— (map
)The protected SQL query parameters.
queryString
— (String
)The query string to be submitted.
analysisTemplateArn
— (String
)The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.
parameters
— (map<String>
)The protected query SQL parameters.
includeSeedInOutput
— (Boolean
)Whether the seed audience is included in the audience generation output.
collaborationId
— (String
)The identifier of the collaboration that contains the audience generation job.
description
— (String
)The description of the audience generation job.
tags
— (map<String>
)The optional metadata that you apply to the resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50.
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8.
-
Maximum value length - 256 Unicode characters in UTF-8.
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case sensitive.
-
Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Clean Rooms ML considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.
-
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:audienceGenerationJobArn
— (String
)The Amazon Resource Name (ARN) of the audience generation job.
-
(AWS.Response)
—
Returns:
tagResource(params = {}, callback) ⇒ AWS.Request
Adds metadata tags to a specified resource.
Service Reference:
Examples:
Calling the tagResource operation
var params = {
resourceArn: 'STRING_VALUE', /* required */
tags: { /* required */
'<TagKey>': 'STRING_VALUE',
/* '<TagKey>': ... */
}
};
cleanroomsml.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 resource that you want to assign tags.
tags
— (map<String>
)The optional metadata that you apply to the resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50.
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8.
-
Maximum value length - 256 Unicode characters in UTF-8.
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case sensitive.
-
Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Clean Rooms considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.
-
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 metadata tags from a specified resource.
Service Reference:
Examples:
Calling the untagResource operation
var params = {
resourceArn: 'STRING_VALUE', /* required */
tagKeys: [ /* required */
'STRING_VALUE',
/* more items */
]
};
cleanroomsml.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 resource that you want to remove tags from.
tagKeys
— (Array<String>
)The key values of tags that you want to remove.
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:
updateConfiguredAudienceModel(params = {}, callback) ⇒ AWS.Request
Provides the information necessary to update a configured audience model. Updates that impact audience generation jobs take effect when a new job starts, but do not impact currently running jobs.
Service Reference:
Examples:
Calling the updateConfiguredAudienceModel operation
var params = {
configuredAudienceModelArn: 'STRING_VALUE', /* required */
audienceModelArn: 'STRING_VALUE',
audienceSizeConfig: {
audienceSizeBins: [ /* required */
'NUMBER_VALUE',
/* more items */
],
audienceSizeType: ABSOLUTE | PERCENTAGE /* required */
},
description: 'STRING_VALUE',
minMatchingSeedSize: 'NUMBER_VALUE',
outputConfig: {
destination: { /* required */
s3Destination: { /* required */
s3Uri: 'STRING_VALUE' /* required */
}
},
roleArn: 'STRING_VALUE' /* required */
},
sharedAudienceMetrics: [
ALL | NONE,
/* more items */
]
};
cleanroomsml.updateConfiguredAudienceModel(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: {})
—
configuredAudienceModelArn
— (String
)The Amazon Resource Name (ARN) of the configured audience model that you want to update.
outputConfig
— (map
)The new output configuration.
destination
— required — (map
)Defines the Amazon S3 bucket where the configured audience is stored.
s3Destination
— required — (map
)The Amazon S3 bucket and path for the configured audience.
s3Uri
— required — (String
)The Amazon S3 location URI.
roleArn
— required — (String
)The ARN of the IAM role that can write the Amazon S3 bucket.
audienceModelArn
— (String
)The Amazon Resource Name (ARN) of the new audience model that you want to use.
sharedAudienceMetrics
— (Array<String>
)The new value for whether to share audience metrics.
minMatchingSeedSize
— (Integer
)The minimum number of users from the seed audience that must match with users in the training data of the audience model.
audienceSizeConfig
— (map
)The new audience size configuration.
audienceSizeType
— required — (String
)Whether the audience output sizes are defined as an absolute number or a percentage.
Possible values include:"ABSOLUTE"
"PERCENTAGE"
audienceSizeBins
— required — (Array<Integer>
)An array of the different audience output sizes.
description
— (String
)The new description of the configured audience model.
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:configuredAudienceModelArn
— (String
)The Amazon Resource Name (ARN) of the configured audience model that was updated.
-
(AWS.Response)
—
Returns:
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given CleanRoomsML resource. The final callback or 'complete' event will be fired only when the resource is either in its final state or the waiter has timed out and stopped polling for the final state.
Parameters:
-
state
(String)
—
the resource state to wait for. Available states for this service are listed in "Waiter Resource States" below.
-
params
(map)
(defaults to: {})
—
a list of parameters for the given state. See each waiter resource state for required parameters.
Callback (callback):
-
function(err, data) { ... }
Callback containing error and data information. See the respective resource state for the expected error or data information.
If the waiter times out its requests, it will return a
ResourceNotReady
error.
Returns: