Class: Aws::SSM::Types::GetInventoryRequest

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

Overview

Note:

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

{
  filters: [
    {
      key: "InventoryFilterKey", # required
      values: ["InventoryFilterValue"], # required
      type: "Equal", # accepts Equal, NotEqual, BeginWith, LessThan, GreaterThan, Exists
    },
  ],
  aggregators: [
    {
      expression: "InventoryAggregatorExpression",
      aggregators: {
        # recursive InventoryAggregatorList
      },
      groups: [
        {
          name: "InventoryGroupName", # required
          filters: [ # required
            {
              key: "InventoryFilterKey", # required
              values: ["InventoryFilterValue"], # required
              type: "Equal", # accepts Equal, NotEqual, BeginWith, LessThan, GreaterThan, Exists
            },
          ],
        },
      ],
    },
  ],
  result_attributes: [
    {
      type_name: "InventoryItemTypeName", # required
    },
  ],
  next_token: "NextToken",
  max_results: 1,
}

Instance Attribute Summary collapse

Instance Attribute Details

#aggregatorsArray<Types::InventoryAggregator>

Returns counts of inventory types based on one or more expressions. For example, if you aggregate by using an expression that uses the ‘AWS:InstanceInformation.PlatformType` type, you can see a count of how many Windows and Linux instances exist in your inventoried fleet.

Returns:



6092
6093
6094
6095
6096
6097
6098
6099
# File 'lib/aws-sdk-ssm/types.rb', line 6092

class GetInventoryRequest < Struct.new(
  :filters,
  :aggregators,
  :result_attributes,
  :next_token,
  :max_results)
  include Aws::Structure
end

#filtersArray<Types::InventoryFilter>

One or more filters. Use a filter to return a more specific list of results.

Returns:



6092
6093
6094
6095
6096
6097
6098
6099
# File 'lib/aws-sdk-ssm/types.rb', line 6092

class GetInventoryRequest < Struct.new(
  :filters,
  :aggregators,
  :result_attributes,
  :next_token,
  :max_results)
  include Aws::Structure
end

#max_resultsInteger

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

Returns:

  • (Integer)


6092
6093
6094
6095
6096
6097
6098
6099
# File 'lib/aws-sdk-ssm/types.rb', line 6092

class GetInventoryRequest < Struct.new(
  :filters,
  :aggregators,
  :result_attributes,
  :next_token,
  :max_results)
  include Aws::Structure
end

#next_tokenString

The token for the next set of items to return. (You received this token from a previous call.)

Returns:

  • (String)


6092
6093
6094
6095
6096
6097
6098
6099
# File 'lib/aws-sdk-ssm/types.rb', line 6092

class GetInventoryRequest < Struct.new(
  :filters,
  :aggregators,
  :result_attributes,
  :next_token,
  :max_results)
  include Aws::Structure
end

#result_attributesArray<Types::ResultAttribute>

The list of inventory item types to return.

Returns:



6092
6093
6094
6095
6096
6097
6098
6099
# File 'lib/aws-sdk-ssm/types.rb', line 6092

class GetInventoryRequest < Struct.new(
  :filters,
  :aggregators,
  :result_attributes,
  :next_token,
  :max_results)
  include Aws::Structure
end