PricingClient
Auto-generated documentation for Pricing type annotations stubs module types-aiobotocore-pricing.
PricingClient
Type annotations and code completion for session.client("pricing")
boto3 documentation
from aioboto3.session import Session
from types_aiobotocore_pricing.client import PricingClient
session = Session()
async with session.client("pricing") as client:
client: PricingClient
Exceptions
aioboto3
client exceptions are generated in runtime.
This class provides code completion for session.client("pricing").exceptions
structure.
async with session.client("pricing") as client:
try:
do_something(client)
except (
client.ClientError,
client.ExpiredNextTokenException,
client.InternalErrorException,
client.InvalidNextTokenException,
client.InvalidParameterException,
client.NotFoundException,
) as e:
print(e)
from types_aiobotocore_pricing.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("pricing").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for session.client("pricing").close
method.
boto3 documentation
describe_services
Returns the metadata for one service or a list of the metadata for all services.
Type annotations and code completion for session.client("pricing").describe_services
method.
boto3 documentation
await def describe_services(
self,
*,
ServiceCode: str = ...,
FormatVersion: str = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeServicesResponseTypeDef: # (1)
...
kwargs: DescribeServicesRequestRequestTypeDef = { # (1)
"ServiceCode": ...,
}
parent.describe_services(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.client("pricing").generate_presigned_url
method.
boto3 documentation
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.client("pricing").get_attribute_values
method.
boto3 documentation
await def get_attribute_values(
self,
*,
ServiceCode: str,
AttributeName: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> GetAttributeValuesResponseTypeDef: # (1)
...
kwargs: GetAttributeValuesRequestRequestTypeDef = { # (1)
"ServiceCode": ...,
"AttributeName": ...,
}
parent.get_attribute_values(**kwargs)
get_products
Returns a list of all products that match the filter criteria.
Type annotations and code completion for session.client("pricing").get_products
method.
boto3 documentation
await def get_products(
self,
*,
ServiceCode: str,
Filters: Sequence[FilterTypeDef] = ..., # (1)
FormatVersion: str = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> GetProductsResponseTypeDef: # (2)
...
kwargs: GetProductsRequestRequestTypeDef = { # (1)
"ServiceCode": ...,
}
parent.get_products(**kwargs)
__aenter__
Type annotations and code completion for session.client("pricing").__aenter__
method.
boto3 documentation
__aexit__
Type annotations and code completion for session.client("pricing").__aexit__
method.
boto3 documentation
get_paginator
Type annotations and code completion for session.client("pricing").get_paginator
method with overloads.
client.get_paginator("describe_services")
-> DescribeServicesPaginatorclient.get_paginator("get_attribute_values")
-> GetAttributeValuesPaginatorclient.get_paginator("get_products")
-> GetProductsPaginator