Type definitions#
Auto-generated documentation for Billing type annotations stubs module types-boto3-billing.
TimestampTypeDef#
# TimestampTypeDef Union usage example
from types_boto3_billing.type_defs import TimestampTypeDef
def get_value() -> TimestampTypeDef:
    return ...
# TimestampTypeDef definition
TimestampTypeDef = Union[
    datetime.datetime,
    str,
]ExpressionUnionTypeDef#
# ExpressionUnionTypeDef Union usage example
from types_boto3_billing.type_defs import ExpressionUnionTypeDef
def get_value() -> ExpressionUnionTypeDef:
    return ...
# ExpressionUnionTypeDef definition
ExpressionUnionTypeDef = Union[
    ExpressionTypeDef,  # (1)
    ExpressionOutputTypeDef,  # (2)
]AssociateSourceViewsRequestTypeDef#
# AssociateSourceViewsRequestTypeDef TypedDict usage example
from types_boto3_billing.type_defs import AssociateSourceViewsRequestTypeDef
def get_value() -> AssociateSourceViewsRequestTypeDef:
    return {
        "arn": ...,
    }
# AssociateSourceViewsRequestTypeDef definition
class AssociateSourceViewsRequestTypeDef(TypedDict):
    arn: str,
    sourceViews: Sequence[str],ResponseMetadataTypeDef#
# ResponseMetadataTypeDef TypedDict usage example
from types_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],BillingViewHealthStatusTypeDef#
# BillingViewHealthStatusTypeDef TypedDict usage example
from types_boto3_billing.type_defs import BillingViewHealthStatusTypeDef
def get_value() -> BillingViewHealthStatusTypeDef:
    return {
        "statusCode": ...,
    }
# BillingViewHealthStatusTypeDef definition
class BillingViewHealthStatusTypeDef(TypedDict):
    statusCode: NotRequired[BillingViewStatusType],  # (1)
    statusReasons: NotRequired[List[BillingViewStatusReasonType]],  # (2)- See BillingViewStatusType
- See List[BillingViewStatusReasonType]
ResourceTagTypeDef#
# ResourceTagTypeDef TypedDict usage example
from types_boto3_billing.type_defs import ResourceTagTypeDef
def get_value() -> ResourceTagTypeDef:
    return {
        "key": ...,
    }
# ResourceTagTypeDef definition
class ResourceTagTypeDef(TypedDict):
    key: str,
    value: NotRequired[str],DeleteBillingViewRequestTypeDef#
# DeleteBillingViewRequestTypeDef TypedDict usage example
from types_boto3_billing.type_defs import DeleteBillingViewRequestTypeDef
def get_value() -> DeleteBillingViewRequestTypeDef:
    return {
        "arn": ...,
    }
# DeleteBillingViewRequestTypeDef definition
class DeleteBillingViewRequestTypeDef(TypedDict):
    arn: str,
    force: NotRequired[bool],DimensionValuesOutputTypeDef#
# DimensionValuesOutputTypeDef TypedDict usage example
from types_boto3_billing.type_defs import DimensionValuesOutputTypeDef
def get_value() -> DimensionValuesOutputTypeDef:
    return {
        "key": ...,
    }
# DimensionValuesOutputTypeDef definition
class DimensionValuesOutputTypeDef(TypedDict):
    key: DimensionType,  # (1)
    values: List[str],- See DimensionType
DimensionValuesTypeDef#
# DimensionValuesTypeDef TypedDict usage example
from types_boto3_billing.type_defs import DimensionValuesTypeDef
def get_value() -> DimensionValuesTypeDef:
    return {
        "key": ...,
    }
# DimensionValuesTypeDef definition
class DimensionValuesTypeDef(TypedDict):
    key: DimensionType,  # (1)
    values: Sequence[str],- See DimensionType
DisassociateSourceViewsRequestTypeDef#
# DisassociateSourceViewsRequestTypeDef TypedDict usage example
from types_boto3_billing.type_defs import DisassociateSourceViewsRequestTypeDef
def get_value() -> DisassociateSourceViewsRequestTypeDef:
    return {
        "arn": ...,
    }
# DisassociateSourceViewsRequestTypeDef definition
class DisassociateSourceViewsRequestTypeDef(TypedDict):
    arn: str,
    sourceViews: Sequence[str],TagValuesOutputTypeDef#
# TagValuesOutputTypeDef TypedDict usage example
from types_boto3_billing.type_defs import TagValuesOutputTypeDef
def get_value() -> TagValuesOutputTypeDef:
    return {
        "key": ...,
    }
# TagValuesOutputTypeDef definition
class TagValuesOutputTypeDef(TypedDict):
    key: str,
    values: List[str],TimeRangeOutputTypeDef#
# TimeRangeOutputTypeDef TypedDict usage example
from types_boto3_billing.type_defs import TimeRangeOutputTypeDef
def get_value() -> TimeRangeOutputTypeDef:
    return {
        "beginDateInclusive": ...,
    }
# TimeRangeOutputTypeDef definition
class TimeRangeOutputTypeDef(TypedDict):
    beginDateInclusive: NotRequired[datetime.datetime],
    endDateInclusive: NotRequired[datetime.datetime],TagValuesTypeDef#
# TagValuesTypeDef TypedDict usage example
from types_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 types_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 types_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 types_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 types_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 types_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 types_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 types_boto3_billing.type_defs import ActiveTimeRangeTypeDef
def get_value() -> ActiveTimeRangeTypeDef:
    return {
        "activeAfterInclusive": ...,
    }
# ActiveTimeRangeTypeDef definition
class ActiveTimeRangeTypeDef(TypedDict):
    activeAfterInclusive: TimestampTypeDef,
    activeBeforeInclusive: TimestampTypeDef,TimeRangeTypeDef#
# TimeRangeTypeDef TypedDict usage example
from types_boto3_billing.type_defs import TimeRangeTypeDef
def get_value() -> TimeRangeTypeDef:
    return {
        "beginDateInclusive": ...,
    }
# TimeRangeTypeDef definition
class TimeRangeTypeDef(TypedDict):
    beginDateInclusive: NotRequired[TimestampTypeDef],
    endDateInclusive: NotRequired[TimestampTypeDef],AssociateSourceViewsResponseTypeDef#
# AssociateSourceViewsResponseTypeDef TypedDict usage example
from types_boto3_billing.type_defs import AssociateSourceViewsResponseTypeDef
def get_value() -> AssociateSourceViewsResponseTypeDef:
    return {
        "arn": ...,
    }
# AssociateSourceViewsResponseTypeDef definition
class AssociateSourceViewsResponseTypeDef(TypedDict):
    arn: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)CreateBillingViewResponseTypeDef#
# CreateBillingViewResponseTypeDef TypedDict usage example
from types_boto3_billing.type_defs import CreateBillingViewResponseTypeDef
def get_value() -> CreateBillingViewResponseTypeDef:
    return {
        "arn": ...,
    }
# CreateBillingViewResponseTypeDef definition
class CreateBillingViewResponseTypeDef(TypedDict):
    arn: str,
    createdAt: datetime.datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)DeleteBillingViewResponseTypeDef#
# DeleteBillingViewResponseTypeDef TypedDict usage example
from types_boto3_billing.type_defs import DeleteBillingViewResponseTypeDef
def get_value() -> DeleteBillingViewResponseTypeDef:
    return {
        "arn": ...,
    }
# DeleteBillingViewResponseTypeDef definition
class DeleteBillingViewResponseTypeDef(TypedDict):
    arn: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)DisassociateSourceViewsResponseTypeDef#
# DisassociateSourceViewsResponseTypeDef TypedDict usage example
from types_boto3_billing.type_defs import DisassociateSourceViewsResponseTypeDef
def get_value() -> DisassociateSourceViewsResponseTypeDef:
    return {
        "arn": ...,
    }
# DisassociateSourceViewsResponseTypeDef definition
class DisassociateSourceViewsResponseTypeDef(TypedDict):
    arn: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)GetResourcePolicyResponseTypeDef#
# GetResourcePolicyResponseTypeDef TypedDict usage example
from types_boto3_billing.type_defs import GetResourcePolicyResponseTypeDef
def get_value() -> GetResourcePolicyResponseTypeDef:
    return {
        "resourceArn": ...,
    }
# GetResourcePolicyResponseTypeDef definition
class GetResourcePolicyResponseTypeDef(TypedDict):
    resourceArn: str,
    policy: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)ListSourceViewsForBillingViewResponseTypeDef#
# ListSourceViewsForBillingViewResponseTypeDef TypedDict usage example
from types_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],UpdateBillingViewResponseTypeDef#
# UpdateBillingViewResponseTypeDef TypedDict usage example
from types_boto3_billing.type_defs import UpdateBillingViewResponseTypeDef
def get_value() -> UpdateBillingViewResponseTypeDef:
    return {
        "arn": ...,
    }
# UpdateBillingViewResponseTypeDef definition
class UpdateBillingViewResponseTypeDef(TypedDict):
    arn: str,
    updatedAt: datetime.datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)BillingViewListElementTypeDef#
# BillingViewListElementTypeDef TypedDict usage example
from types_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],
    sourceAccountId: NotRequired[str],
    billingViewType: NotRequired[BillingViewTypeType],  # (1)
    healthStatus: NotRequired[BillingViewHealthStatusTypeDef],  # (2)ListTagsForResourceResponseTypeDef#
# ListTagsForResourceResponseTypeDef TypedDict usage example
from types_boto3_billing.type_defs import ListTagsForResourceResponseTypeDef
def get_value() -> ListTagsForResourceResponseTypeDef:
    return {
        "resourceTags": ...,
    }
# ListTagsForResourceResponseTypeDef definition
class ListTagsForResourceResponseTypeDef(TypedDict):
    resourceTags: List[ResourceTagTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)- See List[ResourceTagTypeDef]
- See ResponseMetadataTypeDef
TagResourceRequestTypeDef#
# TagResourceRequestTypeDef TypedDict usage example
from types_boto3_billing.type_defs import TagResourceRequestTypeDef
def get_value() -> TagResourceRequestTypeDef:
    return {
        "resourceArn": ...,
    }
# TagResourceRequestTypeDef definition
class TagResourceRequestTypeDef(TypedDict):
    resourceArn: str,
    resourceTags: Sequence[ResourceTagTypeDef],  # (1)- See Sequence[ResourceTagTypeDef]
ExpressionOutputTypeDef#
# ExpressionOutputTypeDef TypedDict usage example
from types_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)
    timeRange: NotRequired[TimeRangeOutputTypeDef],  # (3)ListSourceViewsForBillingViewRequestPaginateTypeDef#
# ListSourceViewsForBillingViewRequestPaginateTypeDef TypedDict usage example
from types_boto3_billing.type_defs import ListSourceViewsForBillingViewRequestPaginateTypeDef
def get_value() -> ListSourceViewsForBillingViewRequestPaginateTypeDef:
    return {
        "arn": ...,
    }
# ListSourceViewsForBillingViewRequestPaginateTypeDef definition
class ListSourceViewsForBillingViewRequestPaginateTypeDef(TypedDict):
    arn: str,
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)ListBillingViewsRequestPaginateTypeDef#
# ListBillingViewsRequestPaginateTypeDef TypedDict usage example
from types_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],
    sourceAccountId: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)- See ActiveTimeRangeTypeDef
- See Sequence[BillingViewTypeType]
- See PaginatorConfigTypeDef
ListBillingViewsRequestTypeDef#
# ListBillingViewsRequestTypeDef TypedDict usage example
from types_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],
    sourceAccountId: NotRequired[str],
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],- See ActiveTimeRangeTypeDef
- See Sequence[BillingViewTypeType]
ExpressionTypeDef#
# ExpressionTypeDef TypedDict usage example
from types_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)
    timeRange: NotRequired[TimeRangeTypeDef],  # (3)- See DimensionValuesTypeDef
- See TagValuesTypeDef
- See TimeRangeTypeDef
ListBillingViewsResponseTypeDef#
# ListBillingViewsResponseTypeDef TypedDict usage example
from types_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],- See List[BillingViewListElementTypeDef]
- See ResponseMetadataTypeDef
BillingViewElementTypeDef#
# BillingViewElementTypeDef TypedDict usage example
from types_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],
    sourceAccountId: NotRequired[str],
    dataFilterExpression: NotRequired[ExpressionOutputTypeDef],  # (2)
    createdAt: NotRequired[datetime.datetime],
    updatedAt: NotRequired[datetime.datetime],
    derivedViewCount: NotRequired[int],
    sourceViewCount: NotRequired[int],
    viewDefinitionLastUpdatedAt: NotRequired[datetime.datetime],
    healthStatus: NotRequired[BillingViewHealthStatusTypeDef],  # (3)GetBillingViewResponseTypeDef#
# GetBillingViewResponseTypeDef TypedDict usage example
from types_boto3_billing.type_defs import GetBillingViewResponseTypeDef
def get_value() -> GetBillingViewResponseTypeDef:
    return {
        "billingView": ...,
    }
# GetBillingViewResponseTypeDef definition
class GetBillingViewResponseTypeDef(TypedDict):
    billingView: BillingViewElementTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)CreateBillingViewRequestTypeDef#
# CreateBillingViewRequestTypeDef TypedDict usage example
from types_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)- See ExpressionUnionTypeDef
- See Sequence[ResourceTagTypeDef]
UpdateBillingViewRequestTypeDef#
# UpdateBillingViewRequestTypeDef TypedDict usage example
from types_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)