Smaws_Client_MarketplaceMetering.MeterUsageAs a seller, your software hosted in the buyer's Amazon Web Services account uses this API action to emit metering records directly to Amazon Web Services Marketplace. You must use the following buyer Amazon Web Services account credentials to sign the API request.
MeterUsage API operation.MeterUsage API operation. Using EKS Pod Identity, the node role, or long-term access keys is not supported.MeterUsage API operation. Using the node role or long-term access keys are not supported.MeterUsage API operation. Long-term access keys are not supported.The handling of MeterUsage requests varies between Amazon Bedrock AgentCore Runtime and non-Amazon Bedrock AgentCore deployments.
Timestamp request parameter is rounded down to the hour and used to enforce this once-per-hour rule for idempotency. For requests that are identical after the Timestamp is rounded down, the API is idempotent and returns the metering record ID.ClientToken request parameter. If using an Amazon SDK or the Amazon Web Services CLI, you must use the latest version which automatically includes an idempotency token in the ClientToken request parameter so that the request is processed successfully. The Timestamp request parameter is not rounded down to the hour and is not used for duplicate validation. Requests with duplicate Timestamps are aggregated as long as the ClientToken is unique.If you submit records more than six hours after events occur, the records won't be accepted. The timestamp in your request determines when an event is recorded.
You can optionally include multiple usage allocations, to provide customers with usage data split into buckets by tags that you define or allow the customer to define.
For Amazon Web Services Regions that support MeterUsage, see MeterUsage Region support for Amazon EC2 and MeterUsage Region support for Amazon ECS and Amazon EKS.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `CustomerNotEntitledException of Types.customer_not_entitled_exception
| `DuplicateRequestException of Types.duplicate_request_exception
| `IdempotencyConflictException of Types.idempotency_conflict_exception
| `InternalServiceErrorException of Types.internal_service_error_exception
| `InvalidEndpointRegionException of Types.invalid_endpoint_region_exception
| `InvalidProductCodeException of Types.invalid_product_code_exception
| `InvalidTagException of Types.invalid_tag_exception
| `InvalidUsageAllocationsException of
Types.invalid_usage_allocations_exception
| `InvalidUsageDimensionException of Types.invalid_usage_dimension_exception
| `ThrottlingException of Types.throttling_exception
| `TimestampOutOfBoundsException of Types.timestamp_out_of_bounds_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.meter_usage_request ->
(Types.meter_usage_result,
[> Smaws_Lib.Protocols.AwsJson.error
| `CustomerNotEntitledException of Types.customer_not_entitled_exception
| `DuplicateRequestException of Types.duplicate_request_exception
| `IdempotencyConflictException of Types.idempotency_conflict_exception
| `InternalServiceErrorException of Types.internal_service_error_exception
| `InvalidEndpointRegionException of
Types.invalid_endpoint_region_exception
| `InvalidProductCodeException of Types.invalid_product_code_exception
| `InvalidTagException of Types.invalid_tag_exception
| `InvalidUsageAllocationsException of
Types.invalid_usage_allocations_exception
| `InvalidUsageDimensionException of
Types.invalid_usage_dimension_exception
| `ThrottlingException of Types.throttling_exception
| `TimestampOutOfBoundsException of Types.timestamp_out_of_bounds_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.meter_usage_request ->
(Types.meter_usage_result Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `CustomerNotEntitledException of Types.customer_not_entitled_exception
| `DuplicateRequestException of Types.duplicate_request_exception
| `IdempotencyConflictException of Types.idempotency_conflict_exception
| `InternalServiceErrorException of Types.internal_service_error_exception
| `InvalidEndpointRegionException of
Types.invalid_endpoint_region_exception
| `InvalidProductCodeException of Types.invalid_product_code_exception
| `InvalidTagException of Types.invalid_tag_exception
| `InvalidUsageAllocationsException of
Types.invalid_usage_allocations_exception
| `InvalidUsageDimensionException of
Types.invalid_usage_dimension_exception
| `ThrottlingException of Types.throttling_exception
| `TimestampOutOfBoundsException of Types.timestamp_out_of_bounds_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result