Module Smaws_Client_MarketplaceMetering.MeterUsage

As 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.

The handling of MeterUsage requests varies between Amazon Bedrock AgentCore Runtime and non-Amazon Bedrock AgentCore deployments.

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 ] -> string
val 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.result
val 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