Skip to content

Typed dictionaries#

Index > Pricing > Typed dictionaries

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

AttributeValueTypeDef#

# AttributeValueTypeDef usage example

from mypy_boto3_pricing.type_defs import AttributeValueTypeDef

def get_value() -> AttributeValueTypeDef:
    return {
        "Value": ...,
    }
# AttributeValueTypeDef definition

class AttributeValueTypeDef(TypedDict):
    Value: NotRequired[str],

DescribeServicesRequestDescribeServicesPaginateTypeDef#

# DescribeServicesRequestDescribeServicesPaginateTypeDef usage example

from mypy_boto3_pricing.type_defs import DescribeServicesRequestDescribeServicesPaginateTypeDef

def get_value() -> DescribeServicesRequestDescribeServicesPaginateTypeDef:
    return {
        "ServiceCode": ...,
    }
# DescribeServicesRequestDescribeServicesPaginateTypeDef definition

class DescribeServicesRequestDescribeServicesPaginateTypeDef(TypedDict):
    ServiceCode: NotRequired[str],
    FormatVersion: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

DescribeServicesRequestRequestTypeDef#

# DescribeServicesRequestRequestTypeDef usage example

from mypy_boto3_pricing.type_defs import DescribeServicesRequestRequestTypeDef

def get_value() -> DescribeServicesRequestRequestTypeDef:
    return {
        "ServiceCode": ...,
    }
# DescribeServicesRequestRequestTypeDef definition

class DescribeServicesRequestRequestTypeDef(TypedDict):
    ServiceCode: NotRequired[str],
    FormatVersion: NotRequired[str],
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],

ServiceTypeDef#

# ServiceTypeDef usage example

from mypy_boto3_pricing.type_defs import ServiceTypeDef

def get_value() -> ServiceTypeDef:
    return {
        "ServiceCode": ...,
    }
# ServiceTypeDef definition

class ServiceTypeDef(TypedDict):
    ServiceCode: str,
    AttributeNames: NotRequired[List[str]],

FilterTypeDef#

# FilterTypeDef usage example

from mypy_boto3_pricing.type_defs import FilterTypeDef

def get_value() -> FilterTypeDef:
    return {
        "Type": ...,
        "Field": ...,
        "Value": ...,
    }
# FilterTypeDef definition

class FilterTypeDef(TypedDict):
    Type: FilterTypeType,  # (1)
    Field: str,
    Value: str,
  1. See FilterTypeType

GetAttributeValuesRequestGetAttributeValuesPaginateTypeDef#

# GetAttributeValuesRequestGetAttributeValuesPaginateTypeDef usage example

from mypy_boto3_pricing.type_defs import GetAttributeValuesRequestGetAttributeValuesPaginateTypeDef

def get_value() -> GetAttributeValuesRequestGetAttributeValuesPaginateTypeDef:
    return {
        "ServiceCode": ...,
        "AttributeName": ...,
    }
# GetAttributeValuesRequestGetAttributeValuesPaginateTypeDef definition

class GetAttributeValuesRequestGetAttributeValuesPaginateTypeDef(TypedDict):
    ServiceCode: str,
    AttributeName: str,
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

GetAttributeValuesRequestRequestTypeDef#

# GetAttributeValuesRequestRequestTypeDef usage example

from mypy_boto3_pricing.type_defs import GetAttributeValuesRequestRequestTypeDef

def get_value() -> GetAttributeValuesRequestRequestTypeDef:
    return {
        "ServiceCode": ...,
        "AttributeName": ...,
    }
# GetAttributeValuesRequestRequestTypeDef definition

class GetAttributeValuesRequestRequestTypeDef(TypedDict):
    ServiceCode: str,
    AttributeName: str,
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],

GetPriceListFileUrlRequestRequestTypeDef#

# GetPriceListFileUrlRequestRequestTypeDef usage example

from mypy_boto3_pricing.type_defs import GetPriceListFileUrlRequestRequestTypeDef

def get_value() -> GetPriceListFileUrlRequestRequestTypeDef:
    return {
        "PriceListArn": ...,
        "FileFormat": ...,
    }
# GetPriceListFileUrlRequestRequestTypeDef definition

class GetPriceListFileUrlRequestRequestTypeDef(TypedDict):
    PriceListArn: str,
    FileFormat: str,

GetPriceListFileUrlResponseTypeDef#

# GetPriceListFileUrlResponseTypeDef usage example

from mypy_boto3_pricing.type_defs import GetPriceListFileUrlResponseTypeDef

def get_value() -> GetPriceListFileUrlResponseTypeDef:
    return {
        "Url": ...,
        "ResponseMetadata": ...,
    }
# GetPriceListFileUrlResponseTypeDef definition

class GetPriceListFileUrlResponseTypeDef(TypedDict):
    Url: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetProductsResponseTypeDef#

# GetProductsResponseTypeDef usage example

from mypy_boto3_pricing.type_defs import GetProductsResponseTypeDef

def get_value() -> GetProductsResponseTypeDef:
    return {
        "FormatVersion": ...,
        "PriceList": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
# GetProductsResponseTypeDef definition

class GetProductsResponseTypeDef(TypedDict):
    FormatVersion: str,
    PriceList: List[str],
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

ListPriceListsRequestListPriceListsPaginateTypeDef#

# ListPriceListsRequestListPriceListsPaginateTypeDef usage example

from mypy_boto3_pricing.type_defs import ListPriceListsRequestListPriceListsPaginateTypeDef

def get_value() -> ListPriceListsRequestListPriceListsPaginateTypeDef:
    return {
        "ServiceCode": ...,
        "EffectiveDate": ...,
        "CurrencyCode": ...,
    }
# ListPriceListsRequestListPriceListsPaginateTypeDef definition

class ListPriceListsRequestListPriceListsPaginateTypeDef(TypedDict):
    ServiceCode: str,
    EffectiveDate: Union[datetime, str],
    CurrencyCode: str,
    RegionCode: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListPriceListsRequestRequestTypeDef#

# ListPriceListsRequestRequestTypeDef usage example

from mypy_boto3_pricing.type_defs import ListPriceListsRequestRequestTypeDef

def get_value() -> ListPriceListsRequestRequestTypeDef:
    return {
        "ServiceCode": ...,
        "EffectiveDate": ...,
        "CurrencyCode": ...,
    }
# ListPriceListsRequestRequestTypeDef definition

class ListPriceListsRequestRequestTypeDef(TypedDict):
    ServiceCode: str,
    EffectiveDate: Union[datetime, str],
    CurrencyCode: str,
    RegionCode: NotRequired[str],
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],

PriceListTypeDef#

# PriceListTypeDef usage example

from mypy_boto3_pricing.type_defs import PriceListTypeDef

def get_value() -> PriceListTypeDef:
    return {
        "PriceListArn": ...,
    }
# PriceListTypeDef definition

class PriceListTypeDef(TypedDict):
    PriceListArn: NotRequired[str],
    RegionCode: NotRequired[str],
    CurrencyCode: NotRequired[str],
    FileFormats: NotRequired[List[str]],

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef usage example

from mypy_boto3_pricing.type_defs import PaginatorConfigTypeDef

def get_value() -> PaginatorConfigTypeDef:
    return {
        "MaxItems": ...,
    }
# PaginatorConfigTypeDef definition

class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef usage example

from mypy_boto3_pricing.type_defs import ResponseMetadataTypeDef

def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
        "HostId": ...,
        "HTTPStatusCode": ...,
        "HTTPHeaders": ...,
        "RetryAttempts": ...,
    }
# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HostId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,

GetAttributeValuesResponseTypeDef#

# GetAttributeValuesResponseTypeDef usage example

from mypy_boto3_pricing.type_defs import GetAttributeValuesResponseTypeDef

def get_value() -> GetAttributeValuesResponseTypeDef:
    return {
        "AttributeValues": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
# GetAttributeValuesResponseTypeDef definition

class GetAttributeValuesResponseTypeDef(TypedDict):
    AttributeValues: List[AttributeValueTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See AttributeValueTypeDef
  2. See ResponseMetadataTypeDef

DescribeServicesResponseTypeDef#

# DescribeServicesResponseTypeDef usage example

from mypy_boto3_pricing.type_defs import DescribeServicesResponseTypeDef

def get_value() -> DescribeServicesResponseTypeDef:
    return {
        "Services": ...,
        "FormatVersion": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
# DescribeServicesResponseTypeDef definition

class DescribeServicesResponseTypeDef(TypedDict):
    Services: List[ServiceTypeDef],  # (1)
    FormatVersion: str,
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ServiceTypeDef
  2. See ResponseMetadataTypeDef

GetProductsRequestGetProductsPaginateTypeDef#

# GetProductsRequestGetProductsPaginateTypeDef usage example

from mypy_boto3_pricing.type_defs import GetProductsRequestGetProductsPaginateTypeDef

def get_value() -> GetProductsRequestGetProductsPaginateTypeDef:
    return {
        "ServiceCode": ...,
    }
# GetProductsRequestGetProductsPaginateTypeDef 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#

# GetProductsRequestRequestTypeDef usage example

from mypy_boto3_pricing.type_defs import GetProductsRequestRequestTypeDef

def get_value() -> GetProductsRequestRequestTypeDef:
    return {
        "ServiceCode": ...,
    }
# GetProductsRequestRequestTypeDef definition

class GetProductsRequestRequestTypeDef(TypedDict):
    ServiceCode: str,
    Filters: NotRequired[Sequence[FilterTypeDef]],  # (1)
    FormatVersion: NotRequired[str],
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],
  1. See FilterTypeDef

ListPriceListsResponseTypeDef#

# ListPriceListsResponseTypeDef usage example

from mypy_boto3_pricing.type_defs import ListPriceListsResponseTypeDef

def get_value() -> ListPriceListsResponseTypeDef:
    return {
        "PriceLists": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
# ListPriceListsResponseTypeDef definition

class ListPriceListsResponseTypeDef(TypedDict):
    PriceLists: List[PriceListTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See PriceListTypeDef
  2. See ResponseMetadataTypeDef