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)
]
AmountTypeDef#
# AmountTypeDef TypedDict usage example
from types_boto3_billing.type_defs import AmountTypeDef
def get_value() -> AmountTypeDef:
return {
"currencyCode": ...,
}
# AmountTypeDef definition
class AmountTypeDef(TypedDict):
currencyCode: str,
currencyAmount: str,
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],
BillingFeatureFilterTypeDef#
# BillingFeatureFilterTypeDef TypedDict usage example
from types_boto3_billing.type_defs import BillingFeatureFilterTypeDef
def get_value() -> BillingFeatureFilterTypeDef:
return {
"name": ...,
}
# BillingFeatureFilterTypeDef definition
class BillingFeatureFilterTypeDef(TypedDict):
name: NotRequired[BillingFeatureFilterNameType], # (1)
value: NotRequired[Sequence[str]],
BillingPeriodTypeDef#
# BillingPeriodTypeDef TypedDict usage example
from types_boto3_billing.type_defs import BillingPeriodTypeDef
def get_value() -> BillingPeriodTypeDef:
return {
"year": ...,
}
# BillingPeriodTypeDef definition
class BillingPeriodTypeDef(TypedDict):
year: int,
month: int,
BillingPreferenceForKeyTypeDef#
# BillingPreferenceForKeyTypeDef TypedDict usage example
from types_boto3_billing.type_defs import BillingPreferenceForKeyTypeDef
def get_value() -> BillingPreferenceForKeyTypeDef:
return {
"key": ...,
}
# BillingPreferenceForKeyTypeDef definition
class BillingPreferenceForKeyTypeDef(TypedDict):
key: str,
value: PreferenceValueType, # (1)
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]
CostCategoryValuesOutputTypeDef#
# CostCategoryValuesOutputTypeDef TypedDict usage example
from types_boto3_billing.type_defs import CostCategoryValuesOutputTypeDef
def get_value() -> CostCategoryValuesOutputTypeDef:
return {
"key": ...,
}
# CostCategoryValuesOutputTypeDef definition
class CostCategoryValuesOutputTypeDef(TypedDict):
key: str,
values: list[str],
CostCategoryValuesTypeDef#
# CostCategoryValuesTypeDef TypedDict usage example
from types_boto3_billing.type_defs import CostCategoryValuesTypeDef
def get_value() -> CostCategoryValuesTypeDef:
return {
"key": ...,
}
# CostCategoryValuesTypeDef definition
class CostCategoryValuesTypeDef(TypedDict):
key: str,
values: Sequence[str],
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,
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],
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,
StringSearchTypeDef#
# StringSearchTypeDef TypedDict usage example
from types_boto3_billing.type_defs import StringSearchTypeDef
def get_value() -> StringSearchTypeDef:
return {
"searchOption": ...,
}
# StringSearchTypeDef definition
class StringSearchTypeDef(TypedDict):
searchOption: SearchOptionType, # (1)
searchValue: str,
- See SearchOptionType
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,
RedeemCreditsRequestTypeDef#
# RedeemCreditsRequestTypeDef TypedDict usage example
from types_boto3_billing.type_defs import RedeemCreditsRequestTypeDef
def get_value() -> RedeemCreditsRequestTypeDef:
return {
"promoCode": ...,
}
# RedeemCreditsRequestTypeDef definition
class RedeemCreditsRequestTypeDef(TypedDict):
promoCode: 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,
GetCreditAllocationHistoryRequestTypeDef#
# GetCreditAllocationHistoryRequestTypeDef TypedDict usage example
from types_boto3_billing.type_defs import GetCreditAllocationHistoryRequestTypeDef
def get_value() -> GetCreditAllocationHistoryRequestTypeDef:
return {
"accountId": ...,
}
# GetCreditAllocationHistoryRequestTypeDef definition
class GetCreditAllocationHistoryRequestTypeDef(TypedDict):
accountId: str,
startDate: TimestampTypeDef,
endDate: TimestampTypeDef,
creditId: NotRequired[int],
nextToken: NotRequired[str],
maxResults: NotRequired[int],
GetCreditsRequestTypeDef#
# GetCreditsRequestTypeDef TypedDict usage example
from types_boto3_billing.type_defs import GetCreditsRequestTypeDef
def get_value() -> GetCreditsRequestTypeDef:
return {
"accountId": ...,
}
# GetCreditsRequestTypeDef definition
class GetCreditsRequestTypeDef(TypedDict):
accountId: str,
startDate: TimestampTypeDef,
endDate: NotRequired[TimestampTypeDef],
payerAccountFlag: NotRequired[bool],
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],
CreditAllocationHistoryEntryTypeDef#
# CreditAllocationHistoryEntryTypeDef TypedDict usage example
from types_boto3_billing.type_defs import CreditAllocationHistoryEntryTypeDef
def get_value() -> CreditAllocationHistoryEntryTypeDef:
return {
"creditId": ...,
}
# CreditAllocationHistoryEntryTypeDef definition
class CreditAllocationHistoryEntryTypeDef(TypedDict):
creditId: str,
creditAmount: AmountTypeDef, # (1)
accountId: str,
appliedServiceName: str,
billingMonth: str,
isEstimatedBill: bool,
description: NotRequired[str],
- See AmountTypeDef
CreditDataTypeDef#
# CreditDataTypeDef TypedDict usage example
from types_boto3_billing.type_defs import CreditDataTypeDef
def get_value() -> CreditDataTypeDef:
return {
"creditId": ...,
}
# CreditDataTypeDef definition
class CreditDataTypeDef(TypedDict):
creditId: str,
accountId: str,
creditType: str,
initialAmount: AmountTypeDef, # (1)
remainingAmount: AmountTypeDef, # (1)
description: str,
startDate: datetime.datetime,
estimatedAmount: NotRequired[AmountTypeDef], # (1)
applicableProductNames: NotRequired[list[str]],
endDate: NotRequired[datetime.datetime],
exhaustDate: NotRequired[datetime.datetime],
applicationType: NotRequired[ApplicationTypeType], # (4)
shareableAccounts: NotRequired[list[str]],
accountHasCreditSharingEnabled: NotRequired[bool],
creditConsoleVisibility: NotRequired[str],
creditSharingType: NotRequired[CreditSharingTypeType], # (5)
costCategoryArn: NotRequired[str],
ruleName: NotRequired[str],
creditStatus: NotRequired[CreditStatusType], # (6)
purchaseTypeApplications: NotRequired[list[str]],
- See AmountTypeDef
- See AmountTypeDef
- See AmountTypeDef
- See ApplicationTypeType
- See CreditSharingTypeType
- See CreditStatusType
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)
GetBillingPreferencesRequestTypeDef#
# GetBillingPreferencesRequestTypeDef TypedDict usage example
from types_boto3_billing.type_defs import GetBillingPreferencesRequestTypeDef
def get_value() -> GetBillingPreferencesRequestTypeDef:
return {
"features": ...,
}
# GetBillingPreferencesRequestTypeDef definition
class GetBillingPreferencesRequestTypeDef(TypedDict):
features: Sequence[BillingFeatureType], # (1)
nextToken: NotRequired[str],
maxResults: NotRequired[int],
filters: NotRequired[Sequence[BillingFeatureFilterTypeDef]], # (2)
- See
Sequence[BillingFeatureType] - See
Sequence[BillingFeatureFilterTypeDef]
BillingPreferenceSummaryTypeDef#
# BillingPreferenceSummaryTypeDef TypedDict usage example
from types_boto3_billing.type_defs import BillingPreferenceSummaryTypeDef
def get_value() -> BillingPreferenceSummaryTypeDef:
return {
"feature": ...,
}
# BillingPreferenceSummaryTypeDef definition
class BillingPreferenceSummaryTypeDef(TypedDict):
feature: BillingFeatureType, # (1)
key: str,
value: PreferenceValueType, # (2)
accountName: NotRequired[str],
accountId: NotRequired[str],
billingPeriod: NotRequired[BillingPeriodTypeDef], # (3)
UpdateBillingPreferencesRequestTypeDef#
# UpdateBillingPreferencesRequestTypeDef TypedDict usage example
from types_boto3_billing.type_defs import UpdateBillingPreferencesRequestTypeDef
def get_value() -> UpdateBillingPreferencesRequestTypeDef:
return {
"feature": ...,
}
# UpdateBillingPreferencesRequestTypeDef definition
class UpdateBillingPreferencesRequestTypeDef(TypedDict):
feature: BillingFeatureType, # (1)
billingPreferencesPerKey: Sequence[BillingPreferenceForKeyTypeDef], # (2)
- See BillingFeatureType
- See
Sequence[BillingPreferenceForKeyTypeDef]
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)
costCategories: NotRequired[CostCategoryValuesOutputTypeDef], # (3)
timeRange: NotRequired[TimeRangeOutputTypeDef], # (4)
- See DimensionValuesOutputTypeDef
- See TagValuesOutputTypeDef
- See CostCategoryValuesOutputTypeDef
- See TimeRangeOutputTypeDef
GetCreditAllocationHistoryRequestPaginateTypeDef#
# GetCreditAllocationHistoryRequestPaginateTypeDef TypedDict usage example
from types_boto3_billing.type_defs import GetCreditAllocationHistoryRequestPaginateTypeDef
def get_value() -> GetCreditAllocationHistoryRequestPaginateTypeDef:
return {
"accountId": ...,
}
# GetCreditAllocationHistoryRequestPaginateTypeDef definition
class GetCreditAllocationHistoryRequestPaginateTypeDef(TypedDict):
accountId: str,
startDate: TimestampTypeDef,
endDate: TimestampTypeDef,
creditId: NotRequired[int],
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
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)
names: NotRequired[Sequence[StringSearchTypeDef]], # (3)
ownerAccountId: NotRequired[str],
sourceAccountId: NotRequired[str],
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (4)
- See ActiveTimeRangeTypeDef
- See
Sequence[BillingViewTypeType] - See
Sequence[StringSearchTypeDef] - 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)
names: NotRequired[Sequence[StringSearchTypeDef]], # (3)
ownerAccountId: NotRequired[str],
sourceAccountId: NotRequired[str],
maxResults: NotRequired[int],
nextToken: NotRequired[str],
- See ActiveTimeRangeTypeDef
- See
Sequence[BillingViewTypeType] - See
Sequence[StringSearchTypeDef]
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)
costCategories: NotRequired[CostCategoryValuesTypeDef], # (3)
timeRange: NotRequired[TimeRangeTypeDef], # (4)
GetCreditAllocationHistoryResponseTypeDef#
# GetCreditAllocationHistoryResponseTypeDef TypedDict usage example
from types_boto3_billing.type_defs import GetCreditAllocationHistoryResponseTypeDef
def get_value() -> GetCreditAllocationHistoryResponseTypeDef:
return {
"creditAllocationHistoryList": ...,
}
# GetCreditAllocationHistoryResponseTypeDef definition
class GetCreditAllocationHistoryResponseTypeDef(TypedDict):
creditAllocationHistoryList: list[CreditAllocationHistoryEntryTypeDef], # (1)
partialResults: bool,
failedMonths: list[str],
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
- See
list[CreditAllocationHistoryEntryTypeDef] - See ResponseMetadataTypeDef
GetCreditsResponseTypeDef#
# GetCreditsResponseTypeDef TypedDict usage example
from types_boto3_billing.type_defs import GetCreditsResponseTypeDef
def get_value() -> GetCreditsResponseTypeDef:
return {
"credits": ...,
}
# GetCreditsResponseTypeDef definition
class GetCreditsResponseTypeDef(TypedDict):
credits: list[CreditDataTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
- See
list[CreditDataTypeDef] - See ResponseMetadataTypeDef
GetBillingPreferencesResponseTypeDef#
# GetBillingPreferencesResponseTypeDef TypedDict usage example
from types_boto3_billing.type_defs import GetBillingPreferencesResponseTypeDef
def get_value() -> GetBillingPreferencesResponseTypeDef:
return {
"billingPreferences": ...,
}
# GetBillingPreferencesResponseTypeDef definition
class GetBillingPreferencesResponseTypeDef(TypedDict):
billingPreferences: list[BillingPreferenceSummaryTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
- See
list[BillingPreferenceSummaryTypeDef] - See ResponseMetadataTypeDef
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)