Type definitions#
Index > MarketplaceMetering > Type definitions
Auto-generated documentation for MarketplaceMetering type annotations stubs module mypy-boto3-meteringmarketplace.
TimestampTypeDef#
# TimestampTypeDef definition
TimestampTypeDef = Union[
datetime,
str,
]
UsageAllocationUnionTypeDef#
# UsageAllocationUnionTypeDef definition
UsageAllocationUnionTypeDef = Union[
UsageAllocationTypeDef, # (1)
UsageAllocationOutputTypeDef, # (2)
]
UsageRecordUnionTypeDef#
# UsageRecordUnionTypeDef definition
UsageRecordUnionTypeDef = Union[
UsageRecordTypeDef, # (1)
UsageRecordOutputTypeDef, # (2)
]
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
HostId: NotRequired[str],
RegisterUsageRequestRequestTypeDef#
# RegisterUsageRequestRequestTypeDef definition
class RegisterUsageRequestRequestTypeDef(TypedDict):
ProductCode: str,
PublicKeyVersion: int,
Nonce: NotRequired[str],
ResolveCustomerRequestRequestTypeDef#
# ResolveCustomerRequestRequestTypeDef definition
class ResolveCustomerRequestRequestTypeDef(TypedDict):
RegistrationToken: str,
TagTypeDef#
# TagTypeDef definition
class TagTypeDef(TypedDict):
Key: str,
Value: str,
MeterUsageResultTypeDef#
# MeterUsageResultTypeDef definition
class MeterUsageResultTypeDef(TypedDict):
MeteringRecordId: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
RegisterUsageResultTypeDef#
# RegisterUsageResultTypeDef definition
class RegisterUsageResultTypeDef(TypedDict):
PublicKeyRotationTimestamp: datetime,
Signature: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
ResolveCustomerResultTypeDef#
# ResolveCustomerResultTypeDef definition
class ResolveCustomerResultTypeDef(TypedDict):
CustomerIdentifier: str,
ProductCode: str,
CustomerAWSAccountId: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
UsageAllocationOutputTypeDef#
# UsageAllocationOutputTypeDef definition
class UsageAllocationOutputTypeDef(TypedDict):
AllocatedUsageQuantity: int,
Tags: NotRequired[List[TagTypeDef]], # (1)
- See TagTypeDef
UsageAllocationTypeDef#
# UsageAllocationTypeDef definition
class UsageAllocationTypeDef(TypedDict):
AllocatedUsageQuantity: int,
Tags: NotRequired[Sequence[TagTypeDef]], # (1)
- See TagTypeDef
UsageRecordOutputTypeDef#
# UsageRecordOutputTypeDef definition
class UsageRecordOutputTypeDef(TypedDict):
Timestamp: datetime,
CustomerIdentifier: str,
Dimension: str,
Quantity: NotRequired[int],
UsageAllocations: NotRequired[List[UsageAllocationOutputTypeDef]], # (1)
UsageRecordTypeDef#
# UsageRecordTypeDef definition
class UsageRecordTypeDef(TypedDict):
Timestamp: Union[datetime, str],
CustomerIdentifier: str,
Dimension: str,
Quantity: NotRequired[int],
UsageAllocations: NotRequired[Sequence[UsageAllocationTypeDef]], # (1)
UsageRecordResultTypeDef#
# UsageRecordResultTypeDef definition
class UsageRecordResultTypeDef(TypedDict):
UsageRecord: NotRequired[UsageRecordOutputTypeDef], # (1)
MeteringRecordId: NotRequired[str],
Status: NotRequired[UsageRecordResultStatusType], # (2)
MeterUsageRequestRequestTypeDef#
# MeterUsageRequestRequestTypeDef definition
class MeterUsageRequestRequestTypeDef(TypedDict):
ProductCode: str,
Timestamp: Union[datetime, str],
UsageDimension: str,
UsageQuantity: NotRequired[int],
DryRun: NotRequired[bool],
UsageAllocations: NotRequired[Sequence[Union[UsageAllocationTypeDef, UsageAllocationOutputTypeDef]]], # (1)
BatchMeterUsageResultTypeDef#
# BatchMeterUsageResultTypeDef definition
class BatchMeterUsageResultTypeDef(TypedDict):
Results: List[UsageRecordResultTypeDef], # (1)
UnprocessedRecords: List[UsageRecordOutputTypeDef], # (2)
ResponseMetadata: ResponseMetadataTypeDef, # (3)
BatchMeterUsageRequestRequestTypeDef#
# BatchMeterUsageRequestRequestTypeDef definition
class BatchMeterUsageRequestRequestTypeDef(TypedDict):
UsageRecords: Sequence[Union[UsageRecordTypeDef, UsageRecordOutputTypeDef]], # (1)
ProductCode: str,