Skip to main content

audience_generation_jobs

Creates, updates, deletes, gets or lists an audience_generation_jobs resource.

Overview

Nameaudience_generation_jobs
TypeResource
Idaws.cleanroomsml.audience_generation_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the audience generation job. (pattern: <code>(?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t]*</code>)
audience_generation_job_arnstringThe Amazon Resource Name (ARN) of the audience generation job. (pattern: <code>arn:aws[-a-z]*:cleanrooms-ml:[-a-z0-9]+:[0-9]{12}:audience-generation-job/[-a-zA-Z0-9_/.]+</code>)
collaboration_idstringThe identifier of the collaboration that this audience generation job is associated with. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
configured_audience_model_arnstringThe Amazon Resource Name (ARN) of the configured audience model used for this audience generation job. (pattern: <code>arn:aws[-a-z]*:cleanrooms-ml:[-a-z0-9]+:[0-9]{12}:configured-audience-model/[-a-zA-Z0-9_/.]+</code>)
create_timestring (date-time)The time at which the audience generation job was created.
descriptionstringThe description of the audience generation job. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]*</code>)
include_seed_in_outputbooleanConfigure 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.
metricsobjectThe relevance scores for different audience sizes and the recall score of the generated audience.
protected_query_identifierstringThe unique identifier of the protected query for this audience generation job.
seed_audienceobjectThe 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.
started_bystringThe AWS account that started this audience generation job. (pattern: <code>[0-9]{12}</code>)
statusstringThe status of the audience generation job. (CREATE_PENDING, CREATE_IN_PROGRESS, CREATE_FAILED, ACTIVE, DELETE_PENDING, DELETE_IN_PROGRESS, DELETE_FAILED)
status_detailsobjectDetails about the status of a resource.
tagsobjectThe tags that are associated to this audience generation job.
update_timestring (date-time)The most recent time at which the audience generation job was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_audience_generation_jobselectaudience_generation_job_arn, regionReturns information about an audience generation job.
list_audience_generation_jobsselectregionnextToken, maxResults, configuredAudienceModelArn, collaborationIdReturns a list of audience generation jobs.
delete_audience_generation_jobdeleteaudience_generation_job_arn, regionDeletes the specified audience generation job, and removes all data associated with the job.
start_audience_export_jobexecregion, name, audienceGenerationJobArn, audienceSizeExport an audience of a specified size after you have generated an audience.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
audience_generation_job_arnstringThe Amazon Resource Name (ARN) of the audience generation job that you want to delete.
regionstringAWS region (default: us-east-1)
collaborationIdstringThe identifier of the collaboration that contains the audience generation jobs that you are interested in.
configuredAudienceModelArnstringThe Amazon Resource Name (ARN) of the configured audience model that was used for the audience generation jobs that you are interested in.
maxResultsintegerThe maximum size of the results that is returned per call.
nextTokenstringThe token value retrieved from a previous call to access the next page of results.

SELECT examples

Returns information about an audience generation job.

SELECT
name,
audience_generation_job_arn,
collaboration_id,
configured_audience_model_arn,
create_time,
description,
include_seed_in_output,
metrics,
protected_query_identifier,
seed_audience,
started_by,
status,
status_details,
tags,
update_time
FROM aws.cleanroomsml.audience_generation_jobs
WHERE audience_generation_job_arn = '{{ audience_generation_job_arn }}' -- required
AND region = '{{ region }}' -- required
;

DELETE examples

Deletes the specified audience generation job, and removes all data associated with the job.

DELETE FROM aws.cleanroomsml.audience_generation_jobs
WHERE audience_generation_job_arn = '{{ audience_generation_job_arn }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Export an audience of a specified size after you have generated an audience.

EXEC aws.cleanroomsml.audience_generation_jobs.start_audience_export_job
@region='{{ region }}' --required
@@json=
'{
"name": "{{ name }}",
"audienceGenerationJobArn": "{{ audienceGenerationJobArn }}",
"audienceSize": "{{ audienceSize }}",
"description": "{{ description }}"
}'
;