PricingClient#
Auto-generated documentation for Pricing type annotations stubs module types-boto3-pricing.
PricingClient#
Type annotations and code completion for boto3.client("pricing").
 boto3 documentation
# PricingClient usage example
from boto3.session import Session
from types_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 types_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.
 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_services#
Returns the metadata for one service or a list of the metadata for all services.
Type annotations and code completion for boto3.client("pricing").describe_services method.
 boto3 documentation
# describe_services method definition
def describe_services(
    self,
    *,
    ServiceCode: str = ...,
    FormatVersion: str = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeServicesResponseTypeDef:  # (1)
    ...# describe_services method usage example with argument unpacking
kwargs: DescribeServicesRequestTypeDef = {  # (1)
    "ServiceCode": ...,
}
parent.describe_services(**kwargs)get_attribute_values#
Returns a list of attribute values.
Type annotations and code completion for boto3.client("pricing").get_attribute_values method.
 boto3 documentation
# get_attribute_values method definition
def get_attribute_values(
    self,
    *,
    ServiceCode: str,
    AttributeName: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetAttributeValuesResponseTypeDef:  # (1)
    ...# get_attribute_values method usage example with argument unpacking
kwargs: GetAttributeValuesRequestTypeDef = {  # (1)
    "ServiceCode": ...,
    "AttributeName": ...,
}
parent.get_attribute_values(**kwargs)get_price_list_file_url#
This feature is in preview release and is subject to change.
Type annotations and code completion for boto3.client("pricing").get_price_list_file_url method.
 boto3 documentation
# get_price_list_file_url method definition
def get_price_list_file_url(
    self,
    *,
    PriceListArn: str,
    FileFormat: str,
) -> GetPriceListFileUrlResponseTypeDef:  # (1)
    ...# get_price_list_file_url method usage example with argument unpacking
kwargs: GetPriceListFileUrlRequestTypeDef = {  # (1)
    "PriceListArn": ...,
    "FileFormat": ...,
}
parent.get_price_list_file_url(**kwargs)get_products#
Returns a list of all products that match the filter criteria.
Type annotations and code completion for boto3.client("pricing").get_products method.
 boto3 documentation
# get_products method definition
def get_products(
    self,
    *,
    ServiceCode: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    FormatVersion: str = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetProductsResponseTypeDef:  # (2)
    ...- See Sequence[FilterTypeDef]
- See GetProductsResponseTypeDef
# get_products method usage example with argument unpacking
kwargs: GetProductsRequestTypeDef = {  # (1)
    "ServiceCode": ...,
}
parent.get_products(**kwargs)list_price_lists#
This feature is in preview release and is subject to change.
Type annotations and code completion for boto3.client("pricing").list_price_lists method.
 boto3 documentation
# list_price_lists method definition
def list_price_lists(
    self,
    *,
    ServiceCode: str,
    EffectiveDate: TimestampTypeDef,
    CurrencyCode: str,
    RegionCode: str = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListPriceListsResponseTypeDef:  # (1)
    ...# list_price_lists method usage example with argument unpacking
kwargs: ListPriceListsRequestTypeDef = {  # (1)
    "ServiceCode": ...,
    "EffectiveDate": ...,
    "CurrencyCode": ...,
}
parent.list_price_lists(**kwargs)get_paginator#
Type annotations and code completion for boto3.client("pricing").get_paginator method with overloads.
- client.get_paginator("describe_services")-> DescribeServicesPaginator
- client.get_paginator("get_attribute_values")-> GetAttributeValuesPaginator
- client.get_paginator("get_products")-> GetProductsPaginator
- client.get_paginator("list_price_lists")-> ListPriceListsPaginator