Skip to content

FreeTierClient#

Index > FreeTier > FreeTierClient

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

FreeTierClient#

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

# FreeTierClient usage example

from boto3.session import Session
from types_boto3_freetier.client import FreeTierClient

def get_freetier_client() -> FreeTierClient:
    return Session().client("freetier")

Exceptions#

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

# Exceptions.exceptions usage example

client = boto3.client("freetier")

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

from types_boto3_freetier.client import Exceptions

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

Methods#

can_paginate#

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

get_free_tier_usage#

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

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

# get_free_tier_usage method definition

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

get_paginator#

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