Skip to content

PricingClient#

Index > Pricing > PricingClient

Auto-generated documentation for Pricing type annotations stubs module mypy-boto3-pricing.

PricingClient#

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

# PricingClient usage example

from boto3.session import Session
from mypy_boto3_pricing.client import PricingClient

def get_pricing_client() -> PricingClient:
    return Session().client("pricing")

Exceptions#

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

# Exceptions.exceptions usage example

client = boto3.client("pricing")

try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.ExpiredNextTokenException,
    client.exceptions.InternalErrorException,
    client.exceptions.InvalidNextTokenException,
    client.exceptions.InvalidParameterException,
    client.exceptions.NotFoundException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ThrottlingException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_pricing.client import Exceptions

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

Methods#

can_paginate#

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