Typed dictionaries
Index > MarketplaceMetering > Typed dictionaries
Auto-generated documentation for MarketplaceMetering type annotations stubs module mypy-boto3-meteringmarketplace.
ResponseMetadataTypeDef
Usage Example
from mypy_boto3_meteringmarketplace.type_defs import ResponseMetadataTypeDef
def get_value() -> ResponseMetadataTypeDef:
return {
"RequestId": ...,
"HostId": ...,
"HTTPStatusCode": ...,
"HTTPHeaders": ...,
"RetryAttempts": ...,
}
Definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HostId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
RegisterUsageRequestRequestTypeDef
Usage Example
from mypy_boto3_meteringmarketplace.type_defs import RegisterUsageRequestRequestTypeDef
def get_value() -> RegisterUsageRequestRequestTypeDef:
return {
"ProductCode": ...,
"PublicKeyVersion": ...,
}
Definition
class RegisterUsageRequestRequestTypeDef(TypedDict):
ProductCode: str,
PublicKeyVersion: int,
Nonce: NotRequired[str],
ResolveCustomerRequestRequestTypeDef
Usage Example
from mypy_boto3_meteringmarketplace.type_defs import ResolveCustomerRequestRequestTypeDef
def get_value() -> ResolveCustomerRequestRequestTypeDef:
return {
"RegistrationToken": ...,
}
TagTypeDef
Usage Example
from mypy_boto3_meteringmarketplace.type_defs import TagTypeDef
def get_value() -> TagTypeDef:
return {
"Key": ...,
"Value": ...,
}
MeterUsageResultTypeDef
Usage Example
from mypy_boto3_meteringmarketplace.type_defs import MeterUsageResultTypeDef
def get_value() -> MeterUsageResultTypeDef:
return {
"MeteringRecordId": ...,
"ResponseMetadata": ...,
}
Definition
class MeterUsageResultTypeDef(TypedDict):
MeteringRecordId: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
RegisterUsageResultTypeDef
Usage Example
from mypy_boto3_meteringmarketplace.type_defs import RegisterUsageResultTypeDef
def get_value() -> RegisterUsageResultTypeDef:
return {
"PublicKeyRotationTimestamp": ...,
"Signature": ...,
"ResponseMetadata": ...,
}
Definition
class RegisterUsageResultTypeDef(TypedDict):
PublicKeyRotationTimestamp: datetime,
Signature: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
ResolveCustomerResultTypeDef
Usage Example
from mypy_boto3_meteringmarketplace.type_defs import ResolveCustomerResultTypeDef
def get_value() -> ResolveCustomerResultTypeDef:
return {
"CustomerIdentifier": ...,
"ProductCode": ...,
"CustomerAWSAccountId": ...,
"ResponseMetadata": ...,
}
Definition
class ResolveCustomerResultTypeDef(TypedDict):
CustomerIdentifier: str,
ProductCode: str,
CustomerAWSAccountId: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
UsageAllocationTypeDef
Usage Example
from mypy_boto3_meteringmarketplace.type_defs import UsageAllocationTypeDef
def get_value() -> UsageAllocationTypeDef:
return {
"AllocatedUsageQuantity": ...,
}
Definition
class UsageAllocationTypeDef(TypedDict):
AllocatedUsageQuantity: int,
Tags: NotRequired[Sequence[TagTypeDef]], # (1)
- See TagTypeDef
MeterUsageRequestRequestTypeDef
Usage Example
from mypy_boto3_meteringmarketplace.type_defs import MeterUsageRequestRequestTypeDef
def get_value() -> MeterUsageRequestRequestTypeDef:
return {
"ProductCode": ...,
"Timestamp": ...,
"UsageDimension": ...,
}
Definition
class MeterUsageRequestRequestTypeDef(TypedDict):
ProductCode: str,
Timestamp: Union[datetime, str],
UsageDimension: str,
UsageQuantity: NotRequired[int],
DryRun: NotRequired[bool],
UsageAllocations: NotRequired[Sequence[UsageAllocationTypeDef]], # (1)
UsageRecordTypeDef
Usage Example
from mypy_boto3_meteringmarketplace.type_defs import UsageRecordTypeDef
def get_value() -> UsageRecordTypeDef:
return {
"Timestamp": ...,
"CustomerIdentifier": ...,
"Dimension": ...,
}
Definition
class UsageRecordTypeDef(TypedDict):
Timestamp: Union[datetime, str],
CustomerIdentifier: str,
Dimension: str,
Quantity: NotRequired[int],
UsageAllocations: NotRequired[Sequence[UsageAllocationTypeDef]], # (1)
BatchMeterUsageRequestRequestTypeDef
Usage Example
from mypy_boto3_meteringmarketplace.type_defs import BatchMeterUsageRequestRequestTypeDef
def get_value() -> BatchMeterUsageRequestRequestTypeDef:
return {
"UsageRecords": ...,
"ProductCode": ...,
}
Definition
class BatchMeterUsageRequestRequestTypeDef(TypedDict):
UsageRecords: Sequence[UsageRecordTypeDef], # (1)
ProductCode: str,
UsageRecordResultTypeDef
Usage Example
from mypy_boto3_meteringmarketplace.type_defs import UsageRecordResultTypeDef
def get_value() -> UsageRecordResultTypeDef:
return {
"UsageRecord": ...,
}
Definition
class UsageRecordResultTypeDef(TypedDict):
UsageRecord: NotRequired[UsageRecordTypeDef], # (1)
MeteringRecordId: NotRequired[str],
Status: NotRequired[UsageRecordResultStatusType], # (2)
BatchMeterUsageResultTypeDef
Usage Example
from mypy_boto3_meteringmarketplace.type_defs import BatchMeterUsageResultTypeDef
def get_value() -> BatchMeterUsageResultTypeDef:
return {
"Results": ...,
"UnprocessedRecords": ...,
"ResponseMetadata": ...,
}