create_audience_model
¶
create_audience_model(
name: NameString,
training_dataset_arn: TrainingDatasetArn,
*,
config_overrides: Optional[CleanRoomsMLClientConfig] = None,
training_data_start_time: Optional[datetime] = None,
training_data_end_time: Optional[datetime] = None,
kms_key_arn: Optional[KmsKeyArn] = None,
tags: Optional[TagMap] = None,
description: Optional[ResourceDescription] = None,
) -> CreateAudienceModelResponse
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.
Parameters:
-
training_data_start_time(Optional[datetime], default:None) –The start date and time of the training window.
-
training_data_end_time(Optional[datetime], default:None) –The end date and time of the training window.
-
name(NameString) –The name of the audience model resource.
-
training_dataset_arn(TrainingDatasetArn) –The Amazon Resource Name (ARN) of the training dataset for this audience model.
-
kms_key_arn(Optional[KmsKeyArn], default:None) –The Amazon Resource Name (ARN) of the KMS key. This key is used to encrypt and decrypt customer-owned data in the trained ML model and the associated data.
-
tags(Optional[TagMap], default:None) –The optional metadata that you apply to the resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50.
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8.
-
Maximum value length - 256 Unicode characters in UTF-8.
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case sensitive.
-
Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Clean Rooms ML considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.
-
-
description(Optional[ResourceDescription], default:None) –The description of the audience model.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–You can't complete this action because another resource depends on this resource.
-
ResourceNotFoundException–The resource you are requesting does not exist.
-
ServiceQuotaExceededException–You have exceeded your service quota.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request parameters for this request are incorrect.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cleanroomsml/_services/clean_rooms_ml.py
1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 | |