class Aws::MarketplaceMetering::Types::MeterUsageRequest

@note When making an API call, you may pass MeterUsageRequest

data as a hash:

    {
      product_code: "ProductCode", # required
      timestamp: Time.now, # required
      usage_dimension: "UsageDimension", # required
      usage_quantity: 1,
      dry_run: false,
      usage_allocations: [
        {
          allocated_usage_quantity: 1, # required
          tags: [
            {
              key: "TagKey", # required
              value: "TagValue", # required
            },
          ],
        },
      ],
    }

@!attribute [rw] product_code

Product code is used to uniquely identify a product in AWS
Marketplace. The product code should be the same as the one used
during the publishing of a new product.
@return [String]

@!attribute [rw] timestamp

Timestamp, in UTC, for which the usage is being reported. Your
application can meter usage for up to one hour in the past. Make
sure the timestamp value is not before the start of the software
usage.
@return [Time]

@!attribute [rw] usage_dimension

It will be one of the fcp dimension name provided during the
publishing of the product.
@return [String]

@!attribute [rw] usage_quantity

Consumption value for the hour. Defaults to `0` if not specified.
@return [Integer]

@!attribute [rw] dry_run

Checks whether you have the permissions required for the action, but
does not make the request. If you have the permissions, the request
returns DryRunOperation; otherwise, it returns
UnauthorizedException. Defaults to `false` if not specified.
@return [Boolean]

@!attribute [rw] usage_allocations

The set of UsageAllocations to submit.

The sum of all UsageAllocation quantities must equal the
UsageQuantity of the MeterUsage request, and each UsageAllocation
must have a unique set of tags (include no tags).
@return [Array<Types::UsageAllocation>]

@see docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/MeterUsageRequest AWS API Documentation

Constants

SENSITIVE