Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

UsageRecordResult

import type { UsageRecordResult } from "https://aws-api.deno.dev/v0.4/services/marketplacemetering.ts?docs=full";

A UsageRecordResult indicates the status of a given UsageRecord processed by BatchMeterUsage.

interface UsageRecordResult {
MeteringRecordId?: string | null;
Status?: UsageRecordResultStatus | null;
UsageRecord?: UsageRecord | null;
}

§Properties

§
MeteringRecordId?: string | null
[src]

The MeteringRecordId is a unique identifier for this metering event.

§

The UsageRecordResult Status indicates the status of an individual UsageRecord processed by BatchMeterUsage.

  • Success- The UsageRecord was accepted and honored by BatchMeterUsage.
  • CustomerNotSubscribed- The CustomerIdentifier specified is not able to use your product. The UsageRecord was not honored. There are three causes for this result:
    • The customer identifier is invalid.
    • The customer identifier provided in the metering record does not have an active agreement or subscription with this product. Future UsageRecords for this customer will fail until the customer subscribes to your product.
    • The customer's AWS account was suspended.
  • DuplicateRecord- Indicates that the UsageRecord was invalid and not honored. A previously metered UsageRecord had the same customer, dimension, and time, but a different quantity.
§
UsageRecord?: UsageRecord | null
[src]

The UsageRecord that was part of the BatchMeterUsage request.