We announced the upcoming end-of-support for AWS SDK for JavaScript v2.
We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Class: AWS.CleanRoomsML

Inherits:
AWS.Service show all
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

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, 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.
  • 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 to true.

  • 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

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

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: {})
    • description — (String)

      The description of the 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.

    • name — (String)

      The name of the audience model resource.

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

    • trainingDataEndTime — (Date)

      The end date and time of the training window.

    • trainingDataStartTime — (Date)

      The start date and time of the training window.

    • trainingDatasetArn — (String)

      The Amazon Resource Name (ARN) of the training dataset for this 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. The data object has the following properties:

      • audienceModelArn — (String)

        The Amazon Resource Name (ARN) of the audience model.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • audienceModelArn — (String)

      The Amazon Resource Name (ARN) of the audience model to use for the configured audience model.

    • 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 the ABSOLUTE AudienceSize to configure out audience sizes using the count of identifiers in the output. You can use the Percentage AudienceSize to configure sizes in the range 1-100 percent.

      • audienceSizeBinsrequired — (Array<Integer>)

        An array of the different audience output sizes.

      • audienceSizeTyperequired — (String)

        Whether the audience output sizes are defined as an absolute number or a percentage.

        Possible values include:
        • "ABSOLUTE"
        • "PERCENTAGE"
    • 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 specify FROM_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"
    • description — (String)

      The description of the configured audience model.

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

    • name — (String)

      The name of 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.

      • destinationrequired — (map)

        Defines the Amazon S3 bucket where the configured audience is stored.

        • s3Destinationrequired — (map)

          The Amazon S3 bucket and path for the configured audience.

          • s3Urirequired — (String)

            The Amazon S3 location URI.

      • roleArnrequired — (String)

        The ARN of the IAM role that can write the Amazon S3 bucket.

    • sharedAudienceMetrics — (Array<String>)

      Whether audience metrics are shared.

    • 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. The data object has the following properties:

      • configuredAudienceModelArn — (String)

        The Amazon Resource Name (ARN) of the configured audience model.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • description — (String)

      The description of the training dataset.

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

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

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

      • inputConfigrequired — (map)

        A DatasetInputConfig object that defines the data source and schema mapping.

        • dataSourcerequired — (map)

          A DataSource object that specifies the Glue data source for the training data.

          • glueDataSourcerequired — (map)

            A GlueDataSource object that defines the catalog ID, database name, and table name for the training data.

            • catalogId — (String)

              The Glue catalog that contains the training data.

            • databaseNamerequired — (String)

              The Glue database that contains the training data.

            • tableNamerequired — (String)

              The Glue table that contains the training data.

        • schemarequired — (Array<map>)

          The schema information for the training data.

          • columnNamerequired — (String)

            The name of a column.

          • columnTypesrequired — (Array<String>)

            The data type of column.

      • typerequired — (String)

        What type of information is found in the dataset.

        Possible values include:
        • "INTERACTIONS"

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. The data object has the following properties:

      • trainingDatasetArn — (String)

        The Amazon Resource Name (ARN) of the training dataset resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteConfiguredAudienceModelPolicy(params = {}, callback) ⇒ AWS.Request

Deletes the specified configured audience model policy.

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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. The data object has the following properties:

      • audienceGenerationJobArn — (String)

        The Amazon Resource Name (ARN) of the audience generation job.

      • collaborationId — (String)

        The identifier of the collaboration that this audience generation job is associated with.

      • configuredAudienceModelArn — (String)

        The Amazon Resource Name (ARN) of the configured audience model used for this audience generation job.

      • createTime — (Date)

        The time at which the audience generation job was created.

      • description — (String)

        The description of the audience generation job.

      • 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 first minimumSeedSize count of users are from the seed.

      • metrics — (map)

        The relevance scores for different audience sizes and the recall 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.

        • relevanceMetricsrequired — (Array<map>)

          The relevance scores of the generated audience.

          • audienceSizerequired — (map)

            The size of the generated audience. Must match one of the sizes in the configured audience model.

            • typerequired — (String)

              Whether the audience size is defined in absolute terms or as a percentage. You can use the ABSOLUTE AudienceSize to configure out audience sizes using the count of identifiers in the output. You can use the Percentage AudienceSize to configure sizes in the range 1-100 percent.

              Possible values include:
              • "ABSOLUTE"
              • "PERCENTAGE"
            • valuerequired — (Integer)

              Specify an audience size value.

          • score — (Float)

            The relevance score of the generated audience.

      • name — (String)

        The name of the 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.

        • dataSourcerequired — (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"}

          ...

          • s3Urirequired — (String)

            The Amazon S3 location URI.

        • roleArnrequired — (String)

          The ARN of the IAM role that can read the Amazon S3 bucket where the training data is stored.

      • startedBy — (String)

        The AWS account that started this 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.

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

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

      • tags — (map<String>)

        The tags that are associated to this audience generation job.

      • updateTime — (Date)

        The most recent time at which the audience generation job was updated.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. The data object has the following properties:

      • audienceModelArn — (String)

        The Amazon Resource Name (ARN) of the audience model.

      • createTime — (Date)

        The time at which the audience model was created.

      • description — (String)

        The description of the audience model.

      • kmsKeyArn — (String)

        The KMS key ARN used for the audience model.

      • name — (String)

        The name of the 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.

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

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

      • tags — (map<String>)

        The tags that are assigned to the audience model.

      • trainingDataEndTime — (Date)

        The end date specified for the training window.

      • trainingDataStartTime — (Date)

        The start date specified for the training window.

      • trainingDatasetArn — (String)

        The Amazon Resource Name (ARN) of the training dataset that was used for this audience model.

      • updateTime — (Date)

        The most recent time at which the audience model was updated.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. The data object has the following properties:

      • audienceModelArn — (String)

        The Amazon Resource Name (ARN) of the audience model used for this configured 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 the ABSOLUTE AudienceSize to configure out audience sizes using the count of identifiers in the output. You can use the Percentage AudienceSize to configure sizes in the range 1-100 percent.

        • audienceSizeBinsrequired — (Array<Integer>)

          An array of the different audience output sizes.

        • audienceSizeTyperequired — (String)

          Whether the audience output sizes are defined as an absolute number or a percentage.

          Possible values include:
          • "ABSOLUTE"
          • "PERCENTAGE"
      • childResourceTagOnCreatePolicy — (String)

        Provides the childResourceTagOnCreatePolicy that was used for this configured audience model.

        Possible values include:
        • "FROM_PARENT_RESOURCE"
        • "NONE"
      • configuredAudienceModelArn — (String)

        The Amazon Resource Name (ARN) of the configured audience model.

      • createTime — (Date)

        The time at which the configured audience model was created.

      • description — (String)

        The description of the configured audience model.

      • minMatchingSeedSize — (Integer)

        The minimum number of users from the seed audience that must match with users in the training data of the audience model.

      • name — (String)

        The name of the configured audience model.

      • outputConfig — (map)

        The output configuration of the configured audience model

        • destinationrequired — (map)

          Defines the Amazon S3 bucket where the configured audience is stored.

          • s3Destinationrequired — (map)

            The Amazon S3 bucket and path for the configured audience.

            • s3Urirequired — (String)

              The Amazon S3 location URI.

        • roleArnrequired — (String)

          The ARN of the IAM role that can write the Amazon S3 bucket.

      • sharedAudienceMetrics — (Array<String>)

        Whether audience metrics are shared.

      • status — (String)

        The status of the configured audience model.

        Possible values include:
        • "ACTIVE"
      • tags — (map<String>)

        The tags that are associated to this configured audience model.

      • updateTime — (Date)

        The most recent time at which the configured audience model was updated.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getConfiguredAudienceModelPolicy(params = {}, callback) ⇒ AWS.Request

Returns information about a configured audience model policy.

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. The data object has the following properties:

      • createTime — (Date)

        The time at which the training dataset was created.

      • description — (String)

        The description of the training dataset.

      • name — (String)

        The name of the training dataset.

      • roleArn — (String)

        The IAM role used to read the training data.

      • status — (String)

        The status of the training dataset.

        Possible values include:
        • "ACTIVE"
      • tags — (map<String>)

        The tags that are assigned to this training dataset.

      • trainingData — (Array<map>)

        Metadata about the requested training data.

        • inputConfigrequired — (map)

          A DatasetInputConfig object that defines the data source and schema mapping.

          • dataSourcerequired — (map)

            A DataSource object that specifies the Glue data source for the training data.

            • glueDataSourcerequired — (map)

              A GlueDataSource object that defines the catalog ID, database name, and table name for the training data.

              • catalogId — (String)

                The Glue catalog that contains the training data.

              • databaseNamerequired — (String)

                The Glue database that contains the training data.

              • tableNamerequired — (String)

                The Glue table that contains the training data.

          • schemarequired — (Array<map>)

            The schema information for the training data.

            • columnNamerequired — (String)

              The name of a column.

            • columnTypesrequired — (Array<String>)

              The data type of column.

        • typerequired — (String)

          What type of information is found in the dataset.

          Possible values include:
          • "INTERACTIONS"
      • trainingDatasetArn — (String)

        The Amazon Resource Name (ARN) of the training dataset.

      • updateTime — (Date)

        The most recent time at which the training dataset was updated.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • audienceGenerationJobArn — (String)

      The Amazon Resource Name (ARN) of the audience generation job that you are interested in.

    • maxResults — (Integer)

      The maximum size of the results that is returned per call.

    • nextToken — (String)

      The token value retrieved from a previous call to access the next page of results.

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. The data object has the following properties:

      • audienceExportJobs — (Array<map>)

        The audience export jobs that match the request.

        • audienceGenerationJobArnrequired — (String)

          The Amazon Resource Name (ARN) of the audience generation job that was exported.

        • audienceSizerequired — (map)

          The size of the generated audience. Must match one of the sizes in the configured audience model.

          • typerequired — (String)

            Whether the audience size is defined in absolute terms or as a percentage. You can use the ABSOLUTE AudienceSize to configure out audience sizes using the count of identifiers in the output. You can use the Percentage AudienceSize to configure sizes in the range 1-100 percent.

            Possible values include:
            • "ABSOLUTE"
            • "PERCENTAGE"
          • valuerequired — (Integer)

            Specify an audience size value.

        • createTimerequired — (Date)

          The time at which the audience export job was created.

        • description — (String)

          The description of the audience export job.

        • namerequired — (String)

          The name of the audience export job.

        • outputLocation — (String)

          The Amazon S3 bucket where the audience export is stored.

        • statusrequired — (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.

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

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

        • updateTimerequired — (Date)

          The most recent time at which the audience export job was updated.

      • nextToken — (String)

        The token value retrieved from a previous call to access the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • collaborationId — (String)

      The identifier of the collaboration that contains the audience generation jobs that you are interested in.

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

    • maxResults — (Integer)

      The maximum size of the results that is returned per call.

    • nextToken — (String)

      The token value retrieved from a previous call to access the next page of results.

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. The data object has the following properties:

      • audienceGenerationJobs — (Array<map>)

        The audience generation jobs that match the request.

        • audienceGenerationJobArnrequired — (String)

          The Amazon Resource Name (ARN) of the audience generation job.

        • collaborationId — (String)

          The identifier of the collaboration that contains this audience generation job.

        • configuredAudienceModelArnrequired — (String)

          The Amazon Resource Name (ARN) of the configured audience model that was used for this audience generation job.

        • createTimerequired — (Date)

          The time at which the audience generation job was created.

        • description — (String)

          The description of the audience generation job.

        • namerequired — (String)

          The name of the audience generation job.

        • startedBy — (String)

          The AWS Account that submitted the job.

        • statusrequired — (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"
        • updateTimerequired — (Date)

          The most recent time at which the audience generation job was updated.

      • nextToken — (String)

        The token value retrieved from a previous call to access the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • maxResults — (Integer)

      The maximum size of the results that is returned per call.

    • nextToken — (String)

      The token value retrieved from a previous call to access the next page of results.

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. The data object has the following properties:

      • audienceModels — (Array<map>)

        The audience models that match the request.

        • audienceModelArnrequired — (String)

          The Amazon Resource Name (ARN) of the audience model.

        • createTimerequired — (Date)

          The time at which the audience model was created.

        • description — (String)

          The description of the audience model.

        • namerequired — (String)

          The name of the audience model.

        • statusrequired — (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"
        • trainingDatasetArnrequired — (String)

          The Amazon Resource Name (ARN) of the training dataset that was used for the audience model.

        • updateTimerequired — (Date)

          The most recent time at which the audience model was updated.

      • nextToken — (String)

        The token value retrieved from a previous call to access the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • maxResults — (Integer)

      The maximum size of the results that is returned per call.

    • nextToken — (String)

      The token value retrieved from a previous call to access the next page of results.

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. The data object has the following properties:

      • configuredAudienceModels — (Array<map>)

        The configured audience models.

        • audienceModelArnrequired — (String)

          The Amazon Resource Name (ARN) of the audience model that was used to create the configured audience model.

        • configuredAudienceModelArnrequired — (String)

          The Amazon Resource Name (ARN) of the configured audience model that you are interested in.

        • createTimerequired — (Date)

          The time at which the configured audience model was created.

        • description — (String)

          The description of the configured audience model.

        • namerequired — (String)

          The name of the configured audience model.

        • outputConfigrequired — (map)

          The output configuration of the configured audience model.

          • destinationrequired — (map)

            Defines the Amazon S3 bucket where the configured audience is stored.

            • s3Destinationrequired — (map)

              The Amazon S3 bucket and path for the configured audience.

              • s3Urirequired — (String)

                The Amazon S3 location URI.

          • roleArnrequired — (String)

            The ARN of the IAM role that can write the Amazon S3 bucket.

        • statusrequired — (String)

          The status of the configured audience model.

          Possible values include:
          • "ACTIVE"
        • updateTimerequired — (Date)

          The most recent time at which the configured audience model was updated.

      • nextToken — (String)

        The token value retrieved from a previous call to access the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. The data object has the following properties:

      • tags — (map<String>)

        The tags that are associated with the resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • maxResults — (Integer)

      The maximum size of the results that is returned per call.

    • nextToken — (String)

      The token value retrieved from a previous call to access the next page of results.

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

        • createTimerequired — (Date)

          The time at which the training dataset was created.

        • description — (String)

          The description of the training dataset.

        • namerequired — (String)

          The name of the training dataset.

        • statusrequired — (String)

          The status of the training dataset.

          Possible values include:
          • "ACTIVE"
        • trainingDatasetArnrequired — (String)

          The Amazon Resource Name (ARN) of the training dataset.

        • updateTimerequired — (Date)

          The most recent time at which the training dataset was updated.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putConfiguredAudienceModelPolicy(params = {}, callback) ⇒ AWS.Request

Create or update the resource policy for a configured audience model.

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.

    • policyExistenceCondition — (String)

      Use this to prevent unexpected concurrent modification of the policy.

      Possible values include:
      • "POLICY_MUST_EXIST"
      • "POLICY_MUST_NOT_EXIST"
    • previousPolicyHash — (String)

      A cryptographic hash of the contents of the policy used to prevent unexpected concurrent modification of the policy.

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • 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.

      • typerequired — (String)

        Whether the audience size is defined in absolute terms or as a percentage. You can use the ABSOLUTE AudienceSize to configure out audience sizes using the count of identifiers in the output. You can use the Percentage AudienceSize to configure sizes in the range 1-100 percent.

        Possible values include:
        • "ABSOLUTE"
        • "PERCENTAGE"
      • valuerequired — (Integer)

        Specify an audience size value.

    • description — (String)

      The description of the audience export job.

    • name — (String)

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 */
    dataSource: { /* required */
      s3Uri: 'STRING_VALUE' /* required */
    },
    roleArn: 'STRING_VALUE' /* required */
  },
  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: {})
    • collaborationId — (String)

      The identifier of the collaboration that contains the audience generation job.

    • configuredAudienceModelArn — (String)

      The Amazon Resource Name (ARN) of the configured audience model that is used for this audience generation job.

    • description — (String)

      The description of the audience generation job.

    • includeSeedInOutput — (Boolean)

      Whether the seed audience is included in the audience generation output.

    • name — (String)

      The name of the audience generation job.

    • seedAudience — (map)

      The seed audience that is used to generate the audience.

      • dataSourcerequired — (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"}

        ...

        • s3Urirequired — (String)

          The Amazon S3 location URI.

      • roleArnrequired — (String)

        The ARN of the IAM role that can read the Amazon S3 bucket where the training data is stored.

    • 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. The data object has the following properties:

      • audienceGenerationJobArn — (String)

        The Amazon Resource Name (ARN) of the audience generation job.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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: {})
    • audienceModelArn — (String)

      The Amazon Resource Name (ARN) of the new audience model that you want to use.

    • audienceSizeConfig — (map)

      The new audience size configuration.

      • audienceSizeBinsrequired — (Array<Integer>)

        An array of the different audience output sizes.

      • audienceSizeTyperequired — (String)

        Whether the audience output sizes are defined as an absolute number or a percentage.

        Possible values include:
        • "ABSOLUTE"
        • "PERCENTAGE"
    • configuredAudienceModelArn — (String)

      The Amazon Resource Name (ARN) of the configured audience model that you want to update.

    • description — (String)

      The new description of the configured audience model.

    • minMatchingSeedSize — (Integer)

      The minimum number of users from the seed audience that must match with users in the training data of the audience model.

    • outputConfig — (map)

      The new output configuration.

      • destinationrequired — (map)

        Defines the Amazon S3 bucket where the configured audience is stored.

        • s3Destinationrequired — (map)

          The Amazon S3 bucket and path for the configured audience.

          • s3Urirequired — (String)

            The Amazon S3 location URI.

      • roleArnrequired — (String)

        The ARN of the IAM role that can write the Amazon S3 bucket.

    • sharedAudienceMetrics — (Array<String>)

      The new value for whether to share audience metrics.

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. The data object has the following properties:

      • configuredAudienceModelArn — (String)

        The Amazon Resource Name (ARN) of the configured audience model that was updated.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.