Skip to content

Type definitions#

Index > Billing > Type definitions

Auto-generated documentation for Billing type annotations stubs module mypy-boto3-billing.

TimestampTypeDef#

# TimestampTypeDef Union usage example

from mypy_boto3_billing.type_defs import TimestampTypeDef


def get_value() -> TimestampTypeDef:
    return ...


# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

ExpressionUnionTypeDef#

# ExpressionUnionTypeDef Union usage example

from mypy_boto3_billing.type_defs import ExpressionUnionTypeDef


def get_value() -> ExpressionUnionTypeDef:
    return ...


# ExpressionUnionTypeDef definition

ExpressionUnionTypeDef = Union[
    ExpressionTypeDef,  # (1)
    ExpressionOutputTypeDef,  # (2)
]
  1. See ExpressionTypeDef
  2. See ExpressionOutputTypeDef

BillingViewListElementTypeDef#

# BillingViewListElementTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import BillingViewListElementTypeDef


def get_value() -> BillingViewListElementTypeDef:
    return {
        "arn": ...,
    }


# BillingViewListElementTypeDef definition

class BillingViewListElementTypeDef(TypedDict):
    arn: NotRequired[str],
    name: NotRequired[str],
    description: NotRequired[str],
    ownerAccountId: NotRequired[str],
    billingViewType: NotRequired[BillingViewTypeType],  # (1)
  1. See BillingViewTypeType

ResourceTagTypeDef#

# ResourceTagTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import ResourceTagTypeDef


def get_value() -> ResourceTagTypeDef:
    return {
        "key": ...,
    }


# ResourceTagTypeDef definition

class ResourceTagTypeDef(TypedDict):
    key: str,
    value: NotRequired[str],

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import ResponseMetadataTypeDef


def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
    }


# ResponseMetadataTypeDef definition

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

DeleteBillingViewRequestTypeDef#

# DeleteBillingViewRequestTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import DeleteBillingViewRequestTypeDef


def get_value() -> DeleteBillingViewRequestTypeDef:
    return {
        "arn": ...,
    }


# DeleteBillingViewRequestTypeDef definition

class DeleteBillingViewRequestTypeDef(TypedDict):
    arn: str,

DimensionValuesOutputTypeDef#

# DimensionValuesOutputTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import DimensionValuesOutputTypeDef


def get_value() -> DimensionValuesOutputTypeDef:
    return {
        "key": ...,
    }


# DimensionValuesOutputTypeDef definition

class DimensionValuesOutputTypeDef(TypedDict):
    key: DimensionType,  # (1)
    values: List[str],
  1. See DimensionType

DimensionValuesTypeDef#

# DimensionValuesTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import DimensionValuesTypeDef


def get_value() -> DimensionValuesTypeDef:
    return {
        "key": ...,
    }


# DimensionValuesTypeDef definition

class DimensionValuesTypeDef(TypedDict):
    key: DimensionType,  # (1)
    values: Sequence[str],
  1. See DimensionType

TagValuesOutputTypeDef#

# TagValuesOutputTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import TagValuesOutputTypeDef


def get_value() -> TagValuesOutputTypeDef:
    return {
        "key": ...,
    }


# TagValuesOutputTypeDef definition

class TagValuesOutputTypeDef(TypedDict):
    key: str,
    values: List[str],

TagValuesTypeDef#

# TagValuesTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import TagValuesTypeDef


def get_value() -> TagValuesTypeDef:
    return {
        "key": ...,
    }


# TagValuesTypeDef definition

class TagValuesTypeDef(TypedDict):
    key: str,
    values: Sequence[str],

GetBillingViewRequestTypeDef#

# GetBillingViewRequestTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import GetBillingViewRequestTypeDef


def get_value() -> GetBillingViewRequestTypeDef:
    return {
        "arn": ...,
    }


# GetBillingViewRequestTypeDef definition

class GetBillingViewRequestTypeDef(TypedDict):
    arn: str,

GetResourcePolicyRequestTypeDef#

# GetResourcePolicyRequestTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import GetResourcePolicyRequestTypeDef


def get_value() -> GetResourcePolicyRequestTypeDef:
    return {
        "resourceArn": ...,
    }


# GetResourcePolicyRequestTypeDef definition

class GetResourcePolicyRequestTypeDef(TypedDict):
    resourceArn: str,

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import PaginatorConfigTypeDef


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


# PaginatorConfigTypeDef definition

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

ListSourceViewsForBillingViewRequestTypeDef#

# ListSourceViewsForBillingViewRequestTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import ListSourceViewsForBillingViewRequestTypeDef


def get_value() -> ListSourceViewsForBillingViewRequestTypeDef:
    return {
        "arn": ...,
    }


# ListSourceViewsForBillingViewRequestTypeDef definition

class ListSourceViewsForBillingViewRequestTypeDef(TypedDict):
    arn: str,
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],

ListTagsForResourceRequestTypeDef#

# ListTagsForResourceRequestTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import ListTagsForResourceRequestTypeDef


def get_value() -> ListTagsForResourceRequestTypeDef:
    return {
        "resourceArn": ...,
    }


# ListTagsForResourceRequestTypeDef definition

class ListTagsForResourceRequestTypeDef(TypedDict):
    resourceArn: str,

UntagResourceRequestTypeDef#

# UntagResourceRequestTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import UntagResourceRequestTypeDef


def get_value() -> UntagResourceRequestTypeDef:
    return {
        "resourceArn": ...,
    }


# UntagResourceRequestTypeDef definition

class UntagResourceRequestTypeDef(TypedDict):
    resourceArn: str,
    resourceTagKeys: Sequence[str],

ActiveTimeRangeTypeDef#

# ActiveTimeRangeTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import ActiveTimeRangeTypeDef


def get_value() -> ActiveTimeRangeTypeDef:
    return {
        "activeAfterInclusive": ...,
    }


# ActiveTimeRangeTypeDef definition

class ActiveTimeRangeTypeDef(TypedDict):
    activeAfterInclusive: TimestampTypeDef,
    activeBeforeInclusive: TimestampTypeDef,

TagResourceRequestTypeDef#

# TagResourceRequestTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import TagResourceRequestTypeDef


def get_value() -> TagResourceRequestTypeDef:
    return {
        "resourceArn": ...,
    }


# TagResourceRequestTypeDef definition

class TagResourceRequestTypeDef(TypedDict):
    resourceArn: str,
    resourceTags: Sequence[ResourceTagTypeDef],  # (1)
  1. See ResourceTagTypeDef

CreateBillingViewResponseTypeDef#

# CreateBillingViewResponseTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import CreateBillingViewResponseTypeDef


def get_value() -> CreateBillingViewResponseTypeDef:
    return {
        "arn": ...,
    }


# CreateBillingViewResponseTypeDef definition

class CreateBillingViewResponseTypeDef(TypedDict):
    arn: str,
    createdAt: datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeleteBillingViewResponseTypeDef#

# DeleteBillingViewResponseTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import DeleteBillingViewResponseTypeDef


def get_value() -> DeleteBillingViewResponseTypeDef:
    return {
        "arn": ...,
    }


# DeleteBillingViewResponseTypeDef definition

class DeleteBillingViewResponseTypeDef(TypedDict):
    arn: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetResourcePolicyResponseTypeDef#

# GetResourcePolicyResponseTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import GetResourcePolicyResponseTypeDef


def get_value() -> GetResourcePolicyResponseTypeDef:
    return {
        "resourceArn": ...,
    }


# GetResourcePolicyResponseTypeDef definition

class GetResourcePolicyResponseTypeDef(TypedDict):
    resourceArn: str,
    policy: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

ListBillingViewsResponseTypeDef#

# ListBillingViewsResponseTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import ListBillingViewsResponseTypeDef


def get_value() -> ListBillingViewsResponseTypeDef:
    return {
        "billingViews": ...,
    }


# ListBillingViewsResponseTypeDef definition

class ListBillingViewsResponseTypeDef(TypedDict):
    billingViews: List[BillingViewListElementTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    nextToken: NotRequired[str],
  1. See BillingViewListElementTypeDef
  2. See ResponseMetadataTypeDef

ListSourceViewsForBillingViewResponseTypeDef#

# ListSourceViewsForBillingViewResponseTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import ListSourceViewsForBillingViewResponseTypeDef


def get_value() -> ListSourceViewsForBillingViewResponseTypeDef:
    return {
        "sourceViews": ...,
    }


# ListSourceViewsForBillingViewResponseTypeDef definition

class ListSourceViewsForBillingViewResponseTypeDef(TypedDict):
    sourceViews: List[str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
    nextToken: NotRequired[str],
  1. See ResponseMetadataTypeDef

ListTagsForResourceResponseTypeDef#

# ListTagsForResourceResponseTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import ListTagsForResourceResponseTypeDef


def get_value() -> ListTagsForResourceResponseTypeDef:
    return {
        "resourceTags": ...,
    }


# ListTagsForResourceResponseTypeDef definition

class ListTagsForResourceResponseTypeDef(TypedDict):
    resourceTags: List[ResourceTagTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ResourceTagTypeDef
  2. See ResponseMetadataTypeDef

UpdateBillingViewResponseTypeDef#

# UpdateBillingViewResponseTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import UpdateBillingViewResponseTypeDef


def get_value() -> UpdateBillingViewResponseTypeDef:
    return {
        "arn": ...,
    }


# UpdateBillingViewResponseTypeDef definition

class UpdateBillingViewResponseTypeDef(TypedDict):
    arn: str,
    updatedAt: datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

ExpressionOutputTypeDef#

# ExpressionOutputTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import ExpressionOutputTypeDef


def get_value() -> ExpressionOutputTypeDef:
    return {
        "dimensions": ...,
    }


# ExpressionOutputTypeDef definition

class ExpressionOutputTypeDef(TypedDict):
    dimensions: NotRequired[DimensionValuesOutputTypeDef],  # (1)
    tags: NotRequired[TagValuesOutputTypeDef],  # (2)
  1. See DimensionValuesOutputTypeDef
  2. See TagValuesOutputTypeDef

ExpressionTypeDef#

# ExpressionTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import ExpressionTypeDef


def get_value() -> ExpressionTypeDef:
    return {
        "dimensions": ...,
    }


# ExpressionTypeDef definition

class ExpressionTypeDef(TypedDict):
    dimensions: NotRequired[DimensionValuesTypeDef],  # (1)
    tags: NotRequired[TagValuesTypeDef],  # (2)
  1. See DimensionValuesTypeDef
  2. See TagValuesTypeDef

ListSourceViewsForBillingViewRequestPaginateTypeDef#

# ListSourceViewsForBillingViewRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import ListSourceViewsForBillingViewRequestPaginateTypeDef


def get_value() -> ListSourceViewsForBillingViewRequestPaginateTypeDef:
    return {
        "arn": ...,
    }


# ListSourceViewsForBillingViewRequestPaginateTypeDef definition

class ListSourceViewsForBillingViewRequestPaginateTypeDef(TypedDict):
    arn: str,
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListBillingViewsRequestPaginateTypeDef#

# ListBillingViewsRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import ListBillingViewsRequestPaginateTypeDef


def get_value() -> ListBillingViewsRequestPaginateTypeDef:
    return {
        "activeTimeRange": ...,
    }


# ListBillingViewsRequestPaginateTypeDef definition

class ListBillingViewsRequestPaginateTypeDef(TypedDict):
    activeTimeRange: NotRequired[ActiveTimeRangeTypeDef],  # (1)
    arns: NotRequired[Sequence[str]],
    billingViewTypes: NotRequired[Sequence[BillingViewTypeType]],  # (2)
    ownerAccountId: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See ActiveTimeRangeTypeDef
  2. See BillingViewTypeType
  3. See PaginatorConfigTypeDef

ListBillingViewsRequestTypeDef#

# ListBillingViewsRequestTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import ListBillingViewsRequestTypeDef


def get_value() -> ListBillingViewsRequestTypeDef:
    return {
        "activeTimeRange": ...,
    }


# ListBillingViewsRequestTypeDef definition

class ListBillingViewsRequestTypeDef(TypedDict):
    activeTimeRange: NotRequired[ActiveTimeRangeTypeDef],  # (1)
    arns: NotRequired[Sequence[str]],
    billingViewTypes: NotRequired[Sequence[BillingViewTypeType]],  # (2)
    ownerAccountId: NotRequired[str],
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],
  1. See ActiveTimeRangeTypeDef
  2. See BillingViewTypeType

BillingViewElementTypeDef#

# BillingViewElementTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import BillingViewElementTypeDef


def get_value() -> BillingViewElementTypeDef:
    return {
        "arn": ...,
    }


# BillingViewElementTypeDef definition

class BillingViewElementTypeDef(TypedDict):
    arn: NotRequired[str],
    name: NotRequired[str],
    description: NotRequired[str],
    billingViewType: NotRequired[BillingViewTypeType],  # (1)
    ownerAccountId: NotRequired[str],
    dataFilterExpression: NotRequired[ExpressionOutputTypeDef],  # (2)
    createdAt: NotRequired[datetime],
    updatedAt: NotRequired[datetime],
  1. See BillingViewTypeType
  2. See ExpressionOutputTypeDef

GetBillingViewResponseTypeDef#

# GetBillingViewResponseTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import GetBillingViewResponseTypeDef


def get_value() -> GetBillingViewResponseTypeDef:
    return {
        "billingView": ...,
    }


# GetBillingViewResponseTypeDef definition

class GetBillingViewResponseTypeDef(TypedDict):
    billingView: BillingViewElementTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See BillingViewElementTypeDef
  2. See ResponseMetadataTypeDef

CreateBillingViewRequestTypeDef#

# CreateBillingViewRequestTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import CreateBillingViewRequestTypeDef


def get_value() -> CreateBillingViewRequestTypeDef:
    return {
        "name": ...,
    }


# CreateBillingViewRequestTypeDef definition

class CreateBillingViewRequestTypeDef(TypedDict):
    name: str,
    sourceViews: Sequence[str],
    description: NotRequired[str],
    dataFilterExpression: NotRequired[ExpressionUnionTypeDef],  # (1)
    clientToken: NotRequired[str],
    resourceTags: NotRequired[Sequence[ResourceTagTypeDef]],  # (2)
  1. See ExpressionTypeDef ExpressionOutputTypeDef
  2. See ResourceTagTypeDef

UpdateBillingViewRequestTypeDef#

# UpdateBillingViewRequestTypeDef TypedDict usage example

from mypy_boto3_billing.type_defs import UpdateBillingViewRequestTypeDef


def get_value() -> UpdateBillingViewRequestTypeDef:
    return {
        "arn": ...,
    }


# UpdateBillingViewRequestTypeDef definition

class UpdateBillingViewRequestTypeDef(TypedDict):
    arn: str,
    name: NotRequired[str],
    description: NotRequired[str],
    dataFilterExpression: NotRequired[ExpressionUnionTypeDef],  # (1)
  1. See ExpressionTypeDef ExpressionOutputTypeDef