Skip to content

Typed dictionaries

Index > Pricing > Typed dictionaries

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

AttributeValueTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import AttributeValueTypeDef

def get_value() -> AttributeValueTypeDef:
    return {
        "Value": ...,
    }
Definition
class AttributeValueTypeDef(TypedDict):
    Value: NotRequired[str],

PaginatorConfigTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import PaginatorConfigTypeDef

def get_value() -> PaginatorConfigTypeDef:
    return {
        "MaxItems": ...,
    }
Definition
class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

DescribeServicesRequestRequestTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import DescribeServicesRequestRequestTypeDef

def get_value() -> DescribeServicesRequestRequestTypeDef:
    return {
        "ServiceCode": ...,
    }
Definition
class DescribeServicesRequestRequestTypeDef(TypedDict):
    ServiceCode: NotRequired[str],
    FormatVersion: NotRequired[str],
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],

ResponseMetadataTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import ResponseMetadataTypeDef

def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
        "HostId": ...,
        "HTTPStatusCode": ...,
        "HTTPHeaders": ...,
        "RetryAttempts": ...,
    }
Definition
class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HostId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,

ServiceTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import ServiceTypeDef

def get_value() -> ServiceTypeDef:
    return {
        "ServiceCode": ...,
    }
Definition
class ServiceTypeDef(TypedDict):
    ServiceCode: str,
    AttributeNames: NotRequired[List[str]],

FilterTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import FilterTypeDef

def get_value() -> FilterTypeDef:
    return {
        "Type": ...,
        "Field": ...,
        "Value": ...,
    }
Definition
class FilterTypeDef(TypedDict):
    Type: FilterTypeType,  # (1)
    Field: str,
    Value: str,
  1. See FilterTypeType

GetAttributeValuesRequestRequestTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import GetAttributeValuesRequestRequestTypeDef

def get_value() -> GetAttributeValuesRequestRequestTypeDef:
    return {
        "ServiceCode": ...,
        "AttributeName": ...,
    }
Definition
class GetAttributeValuesRequestRequestTypeDef(TypedDict):
    ServiceCode: str,
    AttributeName: str,
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],

GetPriceListFileUrlRequestRequestTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import GetPriceListFileUrlRequestRequestTypeDef

def get_value() -> GetPriceListFileUrlRequestRequestTypeDef:
    return {
        "PriceListArn": ...,
        "FileFormat": ...,
    }
Definition
class GetPriceListFileUrlRequestRequestTypeDef(TypedDict):
    PriceListArn: str,
    FileFormat: str,

ListPriceListsRequestRequestTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import ListPriceListsRequestRequestTypeDef

def get_value() -> ListPriceListsRequestRequestTypeDef:
    return {
        "ServiceCode": ...,
        "EffectiveDate": ...,
        "CurrencyCode": ...,
    }
Definition
class ListPriceListsRequestRequestTypeDef(TypedDict):
    ServiceCode: str,
    EffectiveDate: Union[datetime, str],
    CurrencyCode: str,
    RegionCode: NotRequired[str],
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],

PriceListTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import PriceListTypeDef

def get_value() -> PriceListTypeDef:
    return {
        "PriceListArn": ...,
    }
Definition
class PriceListTypeDef(TypedDict):
    PriceListArn: NotRequired[str],
    RegionCode: NotRequired[str],
    CurrencyCode: NotRequired[str],
    FileFormats: NotRequired[List[str]],

DescribeServicesRequestDescribeServicesPaginateTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import DescribeServicesRequestDescribeServicesPaginateTypeDef

def get_value() -> DescribeServicesRequestDescribeServicesPaginateTypeDef:
    return {
        "ServiceCode": ...,
    }
Definition
class DescribeServicesRequestDescribeServicesPaginateTypeDef(TypedDict):
    ServiceCode: NotRequired[str],
    FormatVersion: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

GetAttributeValuesRequestGetAttributeValuesPaginateTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import GetAttributeValuesRequestGetAttributeValuesPaginateTypeDef

def get_value() -> GetAttributeValuesRequestGetAttributeValuesPaginateTypeDef:
    return {
        "ServiceCode": ...,
        "AttributeName": ...,
    }
Definition
class GetAttributeValuesRequestGetAttributeValuesPaginateTypeDef(TypedDict):
    ServiceCode: str,
    AttributeName: str,
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListPriceListsRequestListPriceListsPaginateTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import ListPriceListsRequestListPriceListsPaginateTypeDef

def get_value() -> ListPriceListsRequestListPriceListsPaginateTypeDef:
    return {
        "ServiceCode": ...,
        "EffectiveDate": ...,
        "CurrencyCode": ...,
    }
Definition
class ListPriceListsRequestListPriceListsPaginateTypeDef(TypedDict):
    ServiceCode: str,
    EffectiveDate: Union[datetime, str],
    CurrencyCode: str,
    RegionCode: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

GetAttributeValuesResponseTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import GetAttributeValuesResponseTypeDef

def get_value() -> GetAttributeValuesResponseTypeDef:
    return {
        "AttributeValues": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetAttributeValuesResponseTypeDef(TypedDict):
    AttributeValues: List[AttributeValueTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See AttributeValueTypeDef
  2. See ResponseMetadataTypeDef

GetPriceListFileUrlResponseTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import GetPriceListFileUrlResponseTypeDef

def get_value() -> GetPriceListFileUrlResponseTypeDef:
    return {
        "Url": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetPriceListFileUrlResponseTypeDef(TypedDict):
    Url: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetProductsResponseTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import GetProductsResponseTypeDef

def get_value() -> GetProductsResponseTypeDef:
    return {
        "FormatVersion": ...,
        "PriceList": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetProductsResponseTypeDef(TypedDict):
    FormatVersion: str,
    PriceList: List[str],
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DescribeServicesResponseTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import DescribeServicesResponseTypeDef

def get_value() -> DescribeServicesResponseTypeDef:
    return {
        "Services": ...,
        "FormatVersion": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class DescribeServicesResponseTypeDef(TypedDict):
    Services: List[ServiceTypeDef],  # (1)
    FormatVersion: str,
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ServiceTypeDef
  2. See ResponseMetadataTypeDef

GetProductsRequestGetProductsPaginateTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import GetProductsRequestGetProductsPaginateTypeDef

def get_value() -> GetProductsRequestGetProductsPaginateTypeDef:
    return {
        "ServiceCode": ...,
    }
Definition
class GetProductsRequestGetProductsPaginateTypeDef(TypedDict):
    ServiceCode: str,
    Filters: NotRequired[Sequence[FilterTypeDef]],  # (1)
    FormatVersion: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See FilterTypeDef
  2. See PaginatorConfigTypeDef

GetProductsRequestRequestTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import GetProductsRequestRequestTypeDef

def get_value() -> GetProductsRequestRequestTypeDef:
    return {
        "ServiceCode": ...,
    }
Definition
class GetProductsRequestRequestTypeDef(TypedDict):
    ServiceCode: str,
    Filters: NotRequired[Sequence[FilterTypeDef]],  # (1)
    FormatVersion: NotRequired[str],
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],
  1. See FilterTypeDef

ListPriceListsResponseTypeDef

Usage Example
from mypy_boto3_pricing.type_defs import ListPriceListsResponseTypeDef

def get_value() -> ListPriceListsResponseTypeDef:
    return {
        "PriceLists": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListPriceListsResponseTypeDef(TypedDict):
    PriceLists: List[PriceListTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See PriceListTypeDef
  2. See ResponseMetadataTypeDef