Skip to content

Type definitions#

Index > Billing > Type definitions

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

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

DimensionValuesUnionTypeDef#

# DimensionValuesUnionTypeDef definition

DimensionValuesUnionTypeDef = Union[
    DimensionValuesTypeDef,  # (1)
    DimensionValuesOutputTypeDef,  # (2)
]
  1. See DimensionValuesTypeDef
  2. See DimensionValuesOutputTypeDef

TagValuesUnionTypeDef#

# TagValuesUnionTypeDef definition

TagValuesUnionTypeDef = Union[
    TagValuesTypeDef,  # (1)
    TagValuesOutputTypeDef,  # (2)
]
  1. See TagValuesTypeDef
  2. See TagValuesOutputTypeDef

BillingViewListElementTypeDef#

# 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 definition

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

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

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

DeleteBillingViewRequestRequestTypeDef#

# DeleteBillingViewRequestRequestTypeDef definition

class DeleteBillingViewRequestRequestTypeDef(TypedDict):
    arn: str,

DimensionValuesOutputTypeDef#

# DimensionValuesOutputTypeDef definition

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

DimensionValuesTypeDef#

# DimensionValuesTypeDef definition

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

TagValuesOutputTypeDef#

# TagValuesOutputTypeDef definition

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

GetBillingViewRequestRequestTypeDef#

# GetBillingViewRequestRequestTypeDef definition

class GetBillingViewRequestRequestTypeDef(TypedDict):
    arn: str,

GetResourcePolicyRequestRequestTypeDef#

# GetResourcePolicyRequestRequestTypeDef definition

class GetResourcePolicyRequestRequestTypeDef(TypedDict):
    resourceArn: str,

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef definition

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

ListSourceViewsForBillingViewRequestRequestTypeDef#

# ListSourceViewsForBillingViewRequestRequestTypeDef definition

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

ListTagsForResourceRequestRequestTypeDef#

# ListTagsForResourceRequestRequestTypeDef definition

class ListTagsForResourceRequestRequestTypeDef(TypedDict):
    resourceArn: str,

TagValuesTypeDef#

# TagValuesTypeDef definition

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

UntagResourceRequestRequestTypeDef#

# UntagResourceRequestRequestTypeDef definition

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

ActiveTimeRangeTypeDef#

# ActiveTimeRangeTypeDef definition

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

TagResourceRequestRequestTypeDef#

# TagResourceRequestRequestTypeDef definition

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

CreateBillingViewResponseTypeDef#

# CreateBillingViewResponseTypeDef definition

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

DeleteBillingViewResponseTypeDef#

# DeleteBillingViewResponseTypeDef definition

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

GetResourcePolicyResponseTypeDef#

# GetResourcePolicyResponseTypeDef definition

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

ListBillingViewsResponseTypeDef#

# ListBillingViewsResponseTypeDef definition

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

ListSourceViewsForBillingViewResponseTypeDef#

# ListSourceViewsForBillingViewResponseTypeDef definition

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

ListTagsForResourceResponseTypeDef#

# ListTagsForResourceResponseTypeDef definition

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

UpdateBillingViewResponseTypeDef#

# UpdateBillingViewResponseTypeDef definition

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

ExpressionOutputTypeDef#

# ExpressionOutputTypeDef definition

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

ListSourceViewsForBillingViewRequestPaginateTypeDef#

# ListSourceViewsForBillingViewRequestPaginateTypeDef definition

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

ListBillingViewsRequestPaginateTypeDef#

# 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

ListBillingViewsRequestRequestTypeDef#

# ListBillingViewsRequestRequestTypeDef definition

class ListBillingViewsRequestRequestTypeDef(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 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

ExpressionTypeDef#

# ExpressionTypeDef definition

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

GetBillingViewResponseTypeDef#

# GetBillingViewResponseTypeDef definition

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

CreateBillingViewRequestRequestTypeDef#

# CreateBillingViewRequestRequestTypeDef definition

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

UpdateBillingViewRequestRequestTypeDef#

# UpdateBillingViewRequestRequestTypeDef definition

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