CleanRoomsMLClient#
Index > CleanRoomsML > CleanRoomsMLClient
Auto-generated documentation for CleanRoomsML type annotations stubs module mypy-boto3-cleanroomsml.
CleanRoomsMLClient#
Type annotations and code completion for boto3.client("cleanroomsml")
.
boto3 documentation
# CleanRoomsMLClient usage example
from boto3.session import Session
from mypy_boto3_cleanroomsml.client import CleanRoomsMLClient
def get_cleanroomsml_client() -> CleanRoomsMLClient:
return Session().client("cleanroomsml")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("cleanroomsml").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("cleanroomsml")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_cleanroomsml.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("cleanroomsml").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("cleanroomsml").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_audience_model#
Defines the information necessary to create an audience model.
Type annotations and code completion for boto3.client("cleanroomsml").create_audience_model
method.
boto3 documentation
# create_audience_model method definition
def create_audience_model(
self,
*,
name: str,
trainingDatasetArn: str,
trainingDataStartTime: Union[datetime, str] = ...,
trainingDataEndTime: Union[datetime, str] = ...,
kmsKeyArn: str = ...,
tags: Mapping[str, str] = ...,
description: str = ...,
) -> CreateAudienceModelResponseTypeDef: # (1)
...
# create_audience_model method usage example with argument unpacking
kwargs: CreateAudienceModelRequestRequestTypeDef = { # (1)
"name": ...,
"trainingDatasetArn": ...,
}
parent.create_audience_model(**kwargs)
create_configured_audience_model#
Defines the information necessary to create a configured audience model.
Type annotations and code completion for boto3.client("cleanroomsml").create_configured_audience_model
method.
boto3 documentation
# create_configured_audience_model method definition
def create_configured_audience_model(
self,
*,
name: str,
audienceModelArn: str,
outputConfig: ConfiguredAudienceModelOutputConfigTypeDef, # (1)
sharedAudienceMetrics: Sequence[SharedAudienceMetricsType], # (2)
description: str = ...,
minMatchingSeedSize: int = ...,
audienceSizeConfig: Union[AudienceSizeConfigTypeDef, AudienceSizeConfigOutputTypeDef] = ..., # (3)
tags: Mapping[str, str] = ...,
childResourceTagOnCreatePolicy: TagOnCreatePolicyType = ..., # (4)
) -> CreateConfiguredAudienceModelResponseTypeDef: # (5)
...
- See ConfiguredAudienceModelOutputConfigTypeDef
- See SharedAudienceMetricsType
- See AudienceSizeConfigTypeDef AudienceSizeConfigOutputTypeDef
- See TagOnCreatePolicyType
- See CreateConfiguredAudienceModelResponseTypeDef
# create_configured_audience_model method usage example with argument unpacking
kwargs: CreateConfiguredAudienceModelRequestRequestTypeDef = { # (1)
"name": ...,
"audienceModelArn": ...,
"outputConfig": ...,
"sharedAudienceMetrics": ...,
}
parent.create_configured_audience_model(**kwargs)
create_training_dataset#
Defines the information necessary to create a training dataset.
Type annotations and code completion for boto3.client("cleanroomsml").create_training_dataset
method.
boto3 documentation
# create_training_dataset method definition
def create_training_dataset(
self,
*,
name: str,
roleArn: str,
trainingData: Sequence[Union[DatasetTypeDef, DatasetOutputTypeDef]], # (1)
tags: Mapping[str, str] = ...,
description: str = ...,
) -> CreateTrainingDatasetResponseTypeDef: # (2)
...
# create_training_dataset method usage example with argument unpacking
kwargs: CreateTrainingDatasetRequestRequestTypeDef = { # (1)
"name": ...,
"roleArn": ...,
"trainingData": ...,
}
parent.create_training_dataset(**kwargs)
delete_audience_generation_job#
Deletes the specified audience generation job, and removes all data associated with the job.
Type annotations and code completion for boto3.client("cleanroomsml").delete_audience_generation_job
method.
boto3 documentation
# delete_audience_generation_job method definition
def delete_audience_generation_job(
self,
*,
audienceGenerationJobArn: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_audience_generation_job method usage example with argument unpacking
kwargs: DeleteAudienceGenerationJobRequestRequestTypeDef = { # (1)
"audienceGenerationJobArn": ...,
}
parent.delete_audience_generation_job(**kwargs)
delete_audience_model#
Specifies an audience model that you want to delete.
Type annotations and code completion for boto3.client("cleanroomsml").delete_audience_model
method.
boto3 documentation
# delete_audience_model method definition
def delete_audience_model(
self,
*,
audienceModelArn: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_audience_model method usage example with argument unpacking
kwargs: DeleteAudienceModelRequestRequestTypeDef = { # (1)
"audienceModelArn": ...,
}
parent.delete_audience_model(**kwargs)
delete_configured_audience_model#
Deletes the specified configured audience model.
Type annotations and code completion