AugmentedAIRuntimeClient#
Index > AugmentedAIRuntime > AugmentedAIRuntimeClient
Auto-generated documentation for AugmentedAIRuntime type annotations stubs module types-aiobotocore-sagemaker-a2i-runtime.
AugmentedAIRuntimeClient#
Type annotations and code completion for session.create_client("sagemaker-a2i-runtime")
boto3 documentation
AugmentedAIRuntimeClient usage example
from aiobotocore.session import get_session
from types_aiobotocore_sagemaker_a2i_runtime.client import AugmentedAIRuntimeClient
session = get_session()
async with session.create_client("sagemaker-a2i-runtime") as client:
client: AugmentedAIRuntimeClient
Exceptions#
aiobotocore
client exceptions are generated in runtime.
This class provides code completion for session.create_client("sagemaker-a2i-runtime").exceptions
structure.
AugmentedAIRuntimeClient.exceptions usage example
async with session.create_client("sagemaker-a2i-runtime") as client:
try:
do_something(client)
except (
client.ClientError,
client.ConflictException,
client.InternalServerException,
client.ResourceNotFoundException,
client.ServiceQuotaExceededException,
client.ThrottlingException,
client.ValidationException,
) as e:
print(e)
AugmentedAIRuntimeClient usage type checking example
from types_aiobotocore_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 session.create_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 session.create_client("sagemaker-a2i-runtime").close
method.
boto3 documentation
# close method definition
await def close(
self,
) -> None:
...
delete_human_loop#
Deletes the specified human loop for a flow definition.
Type annotations and code completion for session.create_client("sagemaker-a2i-runtime").delete_human_loop
method.
boto3 documentation
# delete_human_loop method definition
await 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 session.create_client("sagemaker-a2i-runtime").describe_human_loop
method.
boto3 documentation
# describe_human_loop method definition
await 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 session.create_client("sagemaker-a2i-runtime").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
await 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 session.create_client("sagemaker-a2i-runtime").list_human_loops
method.
boto3 documentation
# list_human_loops method definition
await def list_human_loops(
self,
*,
FlowDefinitionArn: str,
CreationTimeAfter: Union[datetime, str] = ...,
CreationTimeBefore: Union[datetime, str] = ...,
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 session.create_client("sagemaker-a2i-runtime").start_human_loop
method.
boto3 documentation
# start_human_loop method definition
await 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 session.create_client("sagemaker-a2i-runtime").stop_human_loop
method.
boto3 documentation
# stop_human_loop method definition
await def stop_human_loop(
self,
*,
HumanLoopName: str,
) -> Dict[str, Any]:
...
# stop_human_loop method usage example with argument unpacking
kwargs: StopHumanLoopRequestRequestTypeDef = { # (1)
"HumanLoopName": ...,
}
parent.stop_human_loop(**kwargs)
__aenter__#
Type annotations and code completion for session.create_client("sagemaker-a2i-runtime").__aenter__
method.
boto3 documentation
# __aenter__ method definition
await def __aenter__(
self,
) -> AugmentedAIRuntimeClient:
...
__aexit__#
Type annotations and code completion for session.create_client("sagemaker-a2i-runtime").__aexit__
method.
boto3 documentation
# __aexit__ method definition
await def __aexit__(
self,
exc_type: Any,
exc_val: Any,
exc_tb: Any,
) -> Any:
...
get_paginator#
Type annotations and code completion for session.create_client("sagemaker-a2i-runtime").get_paginator
method with overloads.
client.get_paginator("list_human_loops")
-> ListHumanLoopsPaginator