CloudWatchEvidentlyClient#
Index > CloudWatchEvidently > CloudWatchEvidentlyClient
Auto-generated documentation for CloudWatchEvidently type annotations stubs module mypy-boto3-evidently.
CloudWatchEvidentlyClient#
Type annotations and code completion for boto3.client("evidently")
.
boto3 documentation
# CloudWatchEvidentlyClient usage example
from boto3.session import Session
from mypy_boto3_evidently.client import CloudWatchEvidentlyClient
def get_evidently_client() -> CloudWatchEvidentlyClient:
return Session().client("evidently")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("evidently").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("evidently")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ServiceUnavailableException,
client.exceptions.ThrottlingException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_evidently.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
batch_evaluate_feature#
This operation assigns feature variation to user sessions.
Type annotations and code completion for boto3.client("evidently").batch_evaluate_feature
method.
boto3 documentation
# batch_evaluate_feature method definition
def batch_evaluate_feature(
self,
*,
project: str,
requests: Sequence[EvaluationRequestTypeDef], # (1)
) -> BatchEvaluateFeatureResponseTypeDef: # (2)
...
# batch_evaluate_feature method usage example with argument unpacking
kwargs: BatchEvaluateFeatureRequestRequestTypeDef = { # (1)
"project": ...,
"requests": ...,
}
parent.batch_evaluate_feature(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("evidently").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("evidently").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_experiment#
Creates an Evidently experiment.
Type annotations and code completion for boto3.client("evidently").create_experiment
method.
boto3 documentation
# create_experiment method definition
def create_experiment(
self,
*,
metricGoals: Sequence[MetricGoalConfigTypeDef], # (1)
name: str,
project: str,
treatments: Sequence[TreatmentConfigTypeDef], # (2)
description: str = ...,
onlineAbConfig: OnlineAbConfigTypeDef = ..., # (3)
randomizationSalt: str = ...,
samplingRate: int = ...,
segment: str = ...,
tags: Mapping[str, str] = ...,
) -> CreateExperimentResponseTypeDef: # (4)
...
- See MetricGoalConfigTypeDef
- See TreatmentConfigTypeDef
- See OnlineAbConfigTypeDef
- See CreateExperimentResponseTypeDef
# create_experiment method usage example with argument unpacking
kwargs: CreateExperimentRequestRequestTypeDef = { # (1)
"metricGoals": ...,
"name": ...,
"project": ...,
"treatments": ...,
}
parent.create_experiment(**kwargs)
create_feature#
Creates an Evidently feature that you want to launch or test.
Type annotations and code completion for boto3.client("evidently").create_feature
method.
boto3 documentation
# create_feature method definition
def create_feature(
self,
*,
name: str,
project: str,
variations: Sequence[VariationConfigTypeDef], # (1)
defaultVariation: str = ...,
description: str = ...,
entityOverrides: Mapping[str, str] = ...,
evaluationStrategy: FeatureEvaluationStrategyType = ..., # (2)
tags: Mapping[str, str] = ...,
) -> CreateFeatureResponseTypeDef: # (3)
...
# create_feature method usage example with argument unpacking
kwargs: CreateFeatureRequestRequestTypeDef = { # (1)
"name": ...,
"project": ...,
"variations": ...,
}
parent.create_feature(**kwargs)
create_launch#
Creates a launch of a given feature.
Type annotations and code completion for boto3.client("evidently").create_launch
method.