Skip to content

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

# ElasticInferenceClient usage example

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.

# Exceptions.exceptions usage example

client = boto3.client("elastic-inference")

try:
    do_something(client)
except (
    client.exceptions.BadRequestException,
    client.exceptions.ClientError,
    client.exceptions.InternalServerException,
    client.exceptions.ResourceNotFoundException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_elastic_inference.client import Exceptions

def handle_error(exc: Exceptions.BadRequestException) -> None:
    ...

Methods#

can_paginate#

Type annotations and code completion for boto3.client("elastic-inference").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

generate_presigned_url#

Type annotations and code completion for boto3.client("elastic-inference").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:
    ...

describe_accelerator_offerings#

Amazon Elastic Inference is no longer available.

Type annotations and code completion for boto3.client("elastic-inference").describe_accelerator_offerings method. boto3 documentation

# describe_accelerator_offerings method definition

def describe_accelerator_offerings(
    self,
    *,
    locationType: LocationTypeType,  # (1)
    acceleratorTypes: Sequence[str] = ...,
) -> DescribeAcceleratorOfferingsResponseTypeDef:  # (2)
    ...
  1. See LocationTypeType
  2. See DescribeAcceleratorOfferingsResponseTypeDef
# describe_accelerator_offerings method usage example with argument unpacking

kwargs: DescribeAcceleratorOfferingsRequestRequestTypeDef = {  # (1)
    "locationType": ...,
}

parent.describe_accelerator_offerings(**kwargs)
  1. See DescribeAcceleratorOfferingsRequestRequestTypeDef

describe_accelerator_types#

Amazon Elastic Inference is no longer available.

Type annotations and code completion for boto3.client("elastic-inference").describe_accelerator_types method. boto3 documentation

# describe_accelerator_types method definition

def describe_accelerator_types(
    self,
) -> DescribeAcceleratorTypesResponseTypeDef:  # (1)
    ...
  1. See DescribeAcceleratorTypesResponseTypeDef

describe_accelerators#

Amazon Elastic Inference is no longer available.

Type annotations and code completion for boto3.client("elastic-inference").describe_accelerators method. boto3 documentation

# describe_accelerators method definition

def describe_accelerators(
    self,
    *,
    acceleratorIds: Sequence[str] = ...,
    filters: Sequence[FilterTypeDef] = ...,  # (1)
    maxResults: int = ...,
    nextToken: str = ...,
) -> DescribeAcceleratorsResponseTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeAcceleratorsResponseTypeDef
# describe_accelerators method usage example with argument unpacking

kwargs: DescribeAcceleratorsRequestRequestTypeDef = {  # (1)
    "acceleratorIds": ...,
}

parent.describe_accelerators(**kwargs)
  1. See DescribeAcceleratorsRequestRequestTypeDef

list_tags_for_resource#

Amazon Elastic Inference is no longer available.

Type annotations and code completion for boto3.client("elastic-inference").list_tags_for_resource method. boto3 documentation

# list_tags_for_resource method definition

def list_tags_for_resource(
    self,
    *,
    resourceArn: str,
) -> ListTagsForResourceResultTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResultTypeDef
# list_tags_for_resource method usage example with argument unpacking

kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceRequestRequestTypeDef

tag_resource#

Amazon Elastic Inference is no longer available.

Type annotations and code completion for boto3.client("elastic-inference").tag_resource method. boto3 documentation

# tag_resource method definition

def tag_resource(
    self,
    *,
    resourceArn: str,
    tags: Mapping[str, str],
) -> dict[str, Any]:
    ...
# tag_resource method usage example with argument unpacking

kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

untag_resource#

Amazon Elastic Inference is no longer available.

Type annotations and code completion for boto3.client("elastic-inference").untag_resource method. boto3 documentation

# untag_resource method definition

def untag_resource(
    self,
    *,
    resourceArn: str,
    tagKeys: Sequence[str],
) -> dict[str, Any]:
    ...
# untag_resource method usage example with argument unpacking

kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

get_paginator#

Type annotations and code completion for boto3.client("elastic-inference").get_paginator method with overloads.