CleanRoomsML / Client / get_audience_generation_job

get_audience_generation_job#

CleanRoomsML.Client.get_audience_generation_job(**kwargs)#

Returns information about an audience generation job.

See also: AWS API Documentation

Request Syntax

response = client.get_audience_generation_job(
    audienceGenerationJobArn='string'
)
Parameters:

audienceGenerationJobArn (string) –

[REQUIRED]

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

Return type:

dict

Returns:

Response Syntax

{
    'audienceGenerationJobArn': 'string',
    'collaborationId': 'string',
    'configuredAudienceModelArn': 'string',
    'createTime': datetime(2015, 1, 1),
    'description': 'string',
    'includeSeedInOutput': True|False,
    'metrics': {
        'relevanceMetrics': [
            {
                'audienceSize': {
                    'type': 'ABSOLUTE'|'PERCENTAGE',
                    'value': 123
                },
                'score': 123.0
            },
        ]
    },
    'name': 'string',
    'seedAudience': {
        'dataSource': {
            's3Uri': 'string'
        },
        'roleArn': 'string'
    },
    'startedBy': 'string',
    'status': 'CREATE_PENDING'|'CREATE_IN_PROGRESS'|'CREATE_FAILED'|'ACTIVE'|'DELETE_PENDING'|'DELETE_IN_PROGRESS'|'DELETE_FAILED',
    'statusDetails': {
        'message': 'string',
        'statusCode': 'string'
    },
    'tags': {
        'string': 'string'
    },
    'updateTime': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • 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 (datetime) –

      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 (dict) –

      The relevance scores for different audience sizes.

      • relevanceMetrics (list) –

        The relevance scores of the generated audience.

        • (dict) –

          The relevance score of a generated audience.

          • audienceSize (dict) –

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

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

            • value (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 (dict) –

      The seed audience that was used for this audience generation job. This field will be null if the account calling the API is the account that started this audience generation job.

      • dataSource (dict) –

        The Amazon S3 bucket where the training data for the configured audience is stored.

        • s3Uri (string) –

          The Amazon S3 location URI.

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

    • statusDetails (dict) –

      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 (dict) –

      The tags that are associated to this audience generation job.

      • (string) –

        • (string) –

    • updateTime (datetime) –

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

Exceptions

  • CleanRoomsML.Client.exceptions.ValidationException

  • CleanRoomsML.Client.exceptions.AccessDeniedException

  • CleanRoomsML.Client.exceptions.ResourceNotFoundException