AugmentedAIRuntimeClient#
Index > AugmentedAIRuntime > AugmentedAIRuntimeClient
Auto-generated documentation for AugmentedAIRuntime type annotations stubs module mypy-boto3-sagemaker-a2i-runtime.
AugmentedAIRuntimeClient#
Type annotations and code completion for boto3.client("sagemaker-a2i-runtime")
.
boto3 documentation
# AugmentedAIRuntimeClient usage example
from boto3.session import Session
from mypy_boto3_sagemaker_a2i_runtime.client import AugmentedAIRuntimeClient
def get_sagemaker-a2i-runtime_client() -> AugmentedAIRuntimeClient:
return Session().client("sagemaker-a2i-runtime")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("sagemaker-a2i-runtime").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("sagemaker-a2i-runtime")
try:
do_something(client)
except (
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_sagemaker_a2i_runtime.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods#
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("sagemaker-a2i-runtime").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("sagemaker-a2i-runtime").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
delete_human_loop#
Deletes the specified human loop for a flow definition.
Type annotations and code completion for boto3.client("sagemaker-a2i-runtime").delete_human_loop
method.
boto3 documentation
# delete_human_loop method definition
def delete_human_loop(
self,
*,
HumanLoopName: str,
) -> Dict[str, Any]:
...
# delete_human_loop method usage example with argument unpacking
kwargs: DeleteHumanLoopRequestRequestTypeDef = { # (1)
"HumanLoopName": ...,
}
parent.delete_human_loop(**kwargs)
describe_human_loop#
Returns information about the specified human loop.
Type annotations and code completion for boto3.client("sagemaker-a2i-runtime").describe_human_loop
method.
boto3 documentation
# describe_human_loop method definition
def describe_human_loop(
self,
*,
HumanLoopName: str,
) -> DescribeHumanLoopResponseTypeDef: # (1)
...
# describe_human_loop method usage example with argument unpacking
kwargs: DescribeHumanLoopRequestRequestTypeDef = { # (1)
"HumanLoopName": ...,
}
parent.describe_human_loop(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("sagemaker-a2i-runtime").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
list_human_loops#
Returns information about human loops, given the specified parameters.
Type annotations and code completion for boto3.client("sagemaker-a2i-runtime").list_human_loops
method.
boto3 documentation
# list_human_loops method definition
def list_human_loops(
self,
*,
FlowDefinitionArn: str,
CreationTimeAfter: TimestampTypeDef = ...,
CreationTimeBefore: TimestampTypeDef = ...,
SortOrder: SortOrderType = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListHumanLoopsResponseTypeDef: # (2)
...
# list_human_loops method usage example with argument unpacking
kwargs: ListHumanLoopsRequestRequestTypeDef = { # (1)
"FlowDefinitionArn": ...,
}
parent.list_human_loops(**kwargs)
start_human_loop#
Starts a human loop, provided that at least one activation condition is met.
Type annotations and code completion for boto3.client("sagemaker-a2i-runtime").start_human_loop
method.
boto3 documentation
# start_human_loop method definition
def start_human_loop(
self,
*,
HumanLoopName: str,
FlowDefinitionArn: str,
HumanLoopInput: HumanLoopInputTypeDef, # (1)
DataAttributes: HumanLoopDataAttributesTypeDef = ..., # (2)
) -> StartHumanLoopResponseTypeDef: # (3)
...
# start_human_loop method usage example with argument unpacking
kwargs: StartHumanLoopRequestRequestTypeDef = { # (1)
"HumanLoopName": ...,
"FlowDefinitionArn": ...,
"HumanLoopInput": ...,
}
parent.start_human_loop(**kwargs)
stop_human_loop#
Stops the specified human loop.
Type annotations and code completion for boto3.client("sagemaker-a2i-runtime").stop_human_loop
method.