Class: Aws::MarketplaceMetering::Types::UsageAllocation

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

Overview

Note:

When making an API call, you may pass UsageAllocation data as a hash:

{
  allocated_usage_quantity: 1, # required
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
}

Usage allocations allow you to split usage into buckets by tags.

Each UsageAllocation indicates the usage quantity for a specific set of tags.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#allocated_usage_quantityInteger

The total quantity allocated to this bucket of usage.

Returns:

  • (Integer)


570
571
572
573
574
575
# File 'gems/aws-sdk-marketplacemetering/lib/aws-sdk-marketplacemetering/types.rb', line 570

class UsageAllocation < Struct.new(
  :allocated_usage_quantity,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#tagsArray<Types::Tag>

The set of tags that define the bucket of usage. For the bucket of items with no tags, this parameter can be left out.

Returns:



570
571
572
573
574
575
# File 'gems/aws-sdk-marketplacemetering/lib/aws-sdk-marketplacemetering/types.rb', line 570

class UsageAllocation < Struct.new(
  :allocated_usage_quantity,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end