You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::MarketplaceMetering::Types::MeterUsageRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing MeterUsageRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  product_code: "ProductCode", # required
  timestamp: Time.now, # required
  usage_dimension: "UsageDimension", # required
  usage_quantity: 1, # required
  dry_run: false, # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#dry_runBoolean

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.

Returns:

  • (Boolean)

    Checks whether you have the permissions required for the action, but does not make the request.

#product_codeString

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.

Returns:

  • (String)

    Product code is used to uniquely identify a product in AWS Marketplace.

#timestampTime

Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.

Returns:

  • (Time)

    Timestamp of the hour, recorded in UTC.

#usage_dimensionString

It will be one of the fcp dimension name provided during the publishing of the product.

Returns:

  • (String)

    It will be one of the fcp dimension name provided during the publishing of the product.

#usage_quantityInteger

Consumption value for the hour.

Returns:

  • (Integer)

    Consumption value for the hour.