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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-marketplacemetering/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

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`. Defaults to `false` if not specified.

Returns:

  • (Boolean)


299
300
301
302
303
304
305
306
307
308
# File 'lib/aws-sdk-marketplacemetering/types.rb', line 299

class MeterUsageRequest < Struct.new(
  :product_code,
  :timestamp,
  :usage_dimension,
  :usage_quantity,
  :dry_run,
  :usage_allocations)
  SENSITIVE = []
  include Aws::Structure
end

#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)


299
300
301
302
303
304
305
306
307
308
# File 'lib/aws-sdk-marketplacemetering/types.rb', line 299

class MeterUsageRequest < Struct.new(
  :product_code,
  :timestamp,
  :usage_dimension,
  :usage_quantity,
  :dry_run,
  :usage_allocations)
  SENSITIVE = []
  include Aws::Structure
end

#timestampTime

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.

Returns:

  • (Time)


299
300
301
302
303
304
305
306
307
308
# File 'lib/aws-sdk-marketplacemetering/types.rb', line 299

class MeterUsageRequest < Struct.new(
  :product_code,
  :timestamp,
  :usage_dimension,
  :usage_quantity,
  :dry_run,
  :usage_allocations)
  SENSITIVE = []
  include Aws::Structure
end

#usage_allocationsArray<Types::UsageAllocation>

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

Returns:



299
300
301
302
303
304
305
306
307
308
# File 'lib/aws-sdk-marketplacemetering/types.rb', line 299

class MeterUsageRequest < Struct.new(
  :product_code,
  :timestamp,
  :usage_dimension,
  :usage_quantity,
  :dry_run,
  :usage_allocations)
  SENSITIVE = []
  include Aws::Structure
end

#usage_dimensionString

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

Returns:

  • (String)


299
300
301
302
303
304
305
306
307
308
# File 'lib/aws-sdk-marketplacemetering/types.rb', line 299

class MeterUsageRequest < Struct.new(
  :product_code,
  :timestamp,
  :usage_dimension,
  :usage_quantity,
  :dry_run,
  :usage_allocations)
  SENSITIVE = []
  include Aws::Structure
end

#usage_quantityInteger

Consumption value for the hour. Defaults to ‘0` if not specified.

Returns:

  • (Integer)


299
300
301
302
303
304
305
306
307
308
# File 'lib/aws-sdk-marketplacemetering/types.rb', line 299

class MeterUsageRequest < Struct.new(
  :product_code,
  :timestamp,
  :usage_dimension,
  :usage_quantity,
  :dry_run,
  :usage_allocations)
  SENSITIVE = []
  include Aws::Structure
end