Skip to content

PricingClient#

Index > Pricing > PricingClient

Auto-generated documentation for Pricing type annotations stubs module types-aiobotocore-pricing.

PricingClient#

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

PricingClient usage example

from aiobotocore.session import get_session
from types_aiobotocore_pricing.client import PricingClient

session = get_session()
async with session.create_client("pricing") as client:
    client: PricingClient

Exceptions#

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

PricingClient.exceptions usage example

async with session.create_client("pricing") as client:
    try:
        do_something(client)
    except (
            client.AccessDeniedException,
        client.ClientError,
        client.ExpiredNextTokenException,
        client.InternalErrorException,
        client.InvalidNextTokenException,
        client.InvalidParameterException,
        client.NotFoundException,
    ) as e:
        print(e)
PricingClient usage type checking example

from types_aiobotocore_pricing.client import Exceptions

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

Methods#

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for session.create_client("pricing").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.create_client("pricing").close method. boto3 documentation

# close method definition

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

describe_services#

Returns the metadata for one service or a list of the metadata for all services.

Type annotations and code completion for session.create_client("pricing").describe_services method. boto3 documentation

# describe_services method definition

await def describe_services(
    self,
    *,
    ServiceCode: str = ...,
    FormatVersion: str = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeServicesResponseTypeDef:  # (1)
    ...
  1. See DescribeServicesResponseTypeDef
# describe_services method usage example with argument unpacking

kwargs: DescribeServicesRequestRequestTypeDef = {  # (1)
    "ServiceCode": ...,
}

parent.describe_services(**kwargs)
  1. See DescribeServicesRequestRequestTypeDef

generate_presigned_url#

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

Type annotations and code completion for session.create_client("pricing").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_attribute_values#

Returns a list of attribute values.

Type annotations and code completion for session.create_client("pricing").get_attribute_values method. boto3 documentation

# get_attribute_values method definition

await def get_attribute_values(
    self,
    *,
    ServiceCode: str,
    AttributeName: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetAttributeValuesResponseTypeDef:  # (1)
    ...
  1. See GetAttributeValuesResponseTypeDef
# get_attribute_values method usage example with argument unpacking

kwargs: GetAttributeValuesRequestRequestTypeDef = {  # (1)
    "ServiceCode": ...,
    "AttributeName": ...,
}

parent.get_attribute_values(**kwargs)
  1. See GetAttributeValuesRequestRequestTypeDef

get_price_list_file_url#

This feature is in preview release and is subject to change.

Type annotations and code completion for session.create_client("pricing").get_price_list_file_url method. boto3 documentation

# get_price_list_file_url method definition

await def get_price_list_file_url(
    self,
    *,
    PriceListArn: str,
    FileFormat: str,
) -> GetPriceListFileUrlResponseTypeDef:  # (1)
    ...
  1. See GetPriceListFileUrlResponseTypeDef
# get_price_list_file_url method usage example with argument unpacking

kwargs: GetPriceListFileUrlRequestRequestTypeDef = {  # (1)
    "PriceListArn": ...,
    "FileFormat": ...,
}

parent.get_price_list_file_url(**kwargs)
  1. See GetPriceListFileUrlRequestRequestTypeDef

get_products#

Returns a list of all products that match the filter criteria.

Type annotations and code completion for session.create_client("pricing").get_products method. boto3 documentation

# get_products method definition

await def get_products(
    self,
    *,
    ServiceCode: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    FormatVersion: str = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetProductsResponseTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetProductsResponseTypeDef
# get_products method usage example with argument unpacking

kwargs: GetProductsRequestRequestTypeDef = {  # (1)
    "ServiceCode": ...,
}

parent.get_products(**kwargs)
  1. See GetProductsRequestRequestTypeDef

list_price_lists#

This feature is in preview release and is subject to change.

Type annotations and code completion for session.create_client("pricing").list_price_lists method. boto3 documentation

# list_price_lists method definition

await def list_price_lists(
    self,
    *,
    ServiceCode: str,
    EffectiveDate: Union[datetime, str],
    CurrencyCode: str,
    RegionCode: str = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListPriceListsResponseTypeDef:  # (1)
    ...
  1. See ListPriceListsResponseTypeDef
# list_price_lists method usage example with argument unpacking

kwargs: ListPriceListsRequestRequestTypeDef = {  # (1)
    "ServiceCode": ...,
    "EffectiveDate": ...,
    "CurrencyCode": ...,
}

parent.list_price_lists(**kwargs)
  1. See ListPriceListsRequestRequestTypeDef

__aenter__#

Type annotations and code completion for session.create_client("pricing").__aenter__ method. boto3 documentation

# __aenter__ method definition

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

__aexit__#

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