ElasticInferenceClient
Index > ElasticInference > ElasticInferenceClient
Auto-generated documentation for ElasticInference type annotations stubs module mypy-boto3-elastic-inference.
ElasticInferenceClient
Type annotations and code completion for boto3.client("elastic-inference")
.
boto3 documentation
from boto3.session import Session
from mypy_boto3_elastic_inference.client import ElasticInferenceClient
def get_elastic-inference_client() -> ElasticInferenceClient:
return Session().client("elastic-inference")
Exceptions
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("elastic-inference").exceptions
structure.
client = boto3.client("elastic-inference")
try:
do_something(client)
except (
client.BadRequestException,
client.ClientError,
client.InternalServerException,
client.ResourceNotFoundException,
) as e:
print(e)
from mypy_boto3_elastic_inference.client import Exceptions
def handle_error(exc: Exceptions.BadRequestException) -> None:
...
Methods
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("elastic-inference").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("elastic-inference").close
method.
boto3 documentation
describe_accelerator_offerings
Describes the locations in which a given accelerator type or set of types is present in a given region.
Type annotations and code completion for boto3.client("elastic-inference").describe_accelerator_offerings
method.
boto3 documentation
def describe_accelerator_offerings(
self,
*,
locationType: LocationTypeType, # (1)
acceleratorTypes: Sequence[str] = ...,
) -> DescribeAcceleratorOfferingsResponseTypeDef: # (2)
...
kwargs: DescribeAcceleratorOfferingsRequestRequestTypeDef = { # (1)
"locationType": ...,
}
parent.describe_accelerator_offerings(**kwargs)
describe_accelerator_types
Describes the accelerator types available in a given region, as well as their characteristics, such as memory and throughput.
Type annotations and code completion for boto3.client("elastic-inference").describe_accelerator_types
method.
boto3 documentation
def describe_accelerator_types(
self,
) -> DescribeAcceleratorTypesResponseTypeDef: # (1)
...
describe_accelerators
Describes information over a provided set of accelerators belonging to an account.
Type annotations and code completion for boto3.client("elastic-inference").describe_accelerators
method.
boto3 documentation
def describe_accelerators(
self,
*,
acceleratorIds: Sequence[str] = ...,
filters: Sequence[FilterTypeDef] = ..., # (1)
maxResults: int = ...,
nextToken: str = ...,
) -> DescribeAcceleratorsResponseTypeDef: # (2)
...
kwargs: DescribeAcceleratorsRequestRequestTypeDef = { # (1)
"acceleratorIds": ...,
}
parent.describe_accelerators(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("elastic-inference").generate_presigned_url
method.
boto3 documentation
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
list_tags_for_resource
Returns all tags of an Elastic Inference Accelerator.
Type annotations and code completion for boto3.client("elastic-inference").list_tags_for_resource
method.
boto3 documentation
def list_tags_for_resource(
self,
*,
resourceArn: str,
) -> ListTagsForResourceResultTypeDef: # (1)
...
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
tag_resource
Adds the specified tags to an Elastic Inference Accelerator.
Type annotations and code completion for boto3.client("elastic-inference").tag_resource
method.
boto3 documentation
def tag_resource(
self,
*,
resourceArn: str,
tags: Mapping[str, str],
) -> Dict[str, Any]:
...
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
"tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource
Removes the specified tags from an Elastic Inference Accelerator.
Type annotations and code completion for boto3.client("elastic-inference").untag_resource
method.
boto3 documentation
def untag_resource(
self,
*,
resourceArn: str,
tagKeys: Sequence[str],
) -> Dict[str, Any]:
...
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
"tagKeys": ...,
}
parent.untag_resource(**kwargs)
get_paginator
Type annotations and code completion for boto3.client("elastic-inference").get_paginator
method with overloads.
client.get_paginator("describe_accelerators")
-> DescribeAcceleratorsPaginator