Skip to content

FreeTierClient#

Index > FreeTier > FreeTierClient

Auto-generated documentation for FreeTier type annotations stubs module types-aiobotocore-freetier.

FreeTierClient#

Type annotations and code completion for session.client("freetier") boto3 documentation

# FreeTierClient usage example

from aioboto3.session import Session
from types_aiobotocore_freetier.client import FreeTierClient

session = Session()
async with session.client("freetier") as client:
    client: FreeTierClient

Exceptions#

aioboto3 client exceptions are generated in runtime. This class provides code completion for session.client("freetier").exceptions structure.

# FreeTierClient.exceptions usage example

async with session.client("freetier") as client:
    try:
        do_something(client)
    except (
            client.exceptions.ClientError,
        client.exceptions.InternalServerException,
        client.exceptions.ThrottlingException,
        client.exceptions.ValidationException,
    ) as e:
        print(e)
# FreeTierClient.exceptions type checking example

from types_aiobotocore_freetier.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.client("freetier").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.client("freetier").close method. boto3 documentation

# close method definition

await def close(
    self,
) -> None:
    ...

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

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

get_free_tier_usage#

Returns a list of all Free Tier usage objects that match your filters.

Type annotations and code completion for session.client("freetier").get_free_tier_usage method. boto3 documentation

# get_free_tier_usage method definition

await def get_free_tier_usage(
    self,
    *,
    filter: ExpressionTypeDef = ...,  # (1)
    maxResults: int = ...,
    nextToken: str = ...,
) -> GetFreeTierUsageResponseTypeDef:  # (2)
    ...
  1. See ExpressionTypeDef
  2. See GetFreeTierUsageResponseTypeDef
# get_free_tier_usage method usage example with argument unpacking

kwargs: GetFreeTierUsageRequestRequestTypeDef = {  # (1)
    "filter": ...,
}

parent.get_free_tier_usage(**kwargs)
  1. See GetFreeTierUsageRequestRequestTypeDef

__aenter__#

Type annotations and code completion for session.client("freetier").__aenter__ method. boto3 documentation

# __aenter__ method definition

await def __aenter__(
    self,
) -> FreeTierClient:
    ...

__aexit__#

Type annotations and code completion for session.client("freetier").__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.client("freetier").get_paginator method with overloads.