Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Query inventory information.
Synopsis
- getInventory :: GetInventory
- data GetInventory
- giAggregators :: Lens' GetInventory (Maybe (NonEmpty InventoryAggregator))
- giFilters :: Lens' GetInventory (Maybe (NonEmpty InventoryFilter))
- giResultAttributes :: Lens' GetInventory (Maybe (NonEmpty ResultAttribute))
- giNextToken :: Lens' GetInventory (Maybe Text)
- giMaxResults :: Lens' GetInventory (Maybe Natural)
- getInventoryResponse :: Int -> GetInventoryResponse
- data GetInventoryResponse
- girsEntities :: Lens' GetInventoryResponse [InventoryResultEntity]
- girsNextToken :: Lens' GetInventoryResponse (Maybe Text)
- girsResponseStatus :: Lens' GetInventoryResponse Int
Creating a Request
getInventory :: GetInventory Source #
Creates a value of GetInventory
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
giAggregators
- Returns counts of inventory types based on one or more expressions. For example, if you aggregate by using an expression that uses theAWS:InstanceInformation.PlatformType
type, you can see a count of how many Windows and Linux instances exist in your inventoried fleet.giFilters
- One or more filters. Use a filter to return a more specific list of results.giResultAttributes
- The list of inventory item types to return.giNextToken
- The token for the next set of items to return. (You received this token from a previous call.)giMaxResults
- 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.
data GetInventory Source #
See: getInventory
smart constructor.
Instances
Request Lenses
giAggregators :: Lens' GetInventory (Maybe (NonEmpty InventoryAggregator)) Source #
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.
giFilters :: Lens' GetInventory (Maybe (NonEmpty InventoryFilter)) Source #
One or more filters. Use a filter to return a more specific list of results.
giResultAttributes :: Lens' GetInventory (Maybe (NonEmpty ResultAttribute)) Source #
The list of inventory item types to return.
giNextToken :: Lens' GetInventory (Maybe Text) Source #
The token for the next set of items to return. (You received this token from a previous call.)
giMaxResults :: Lens' GetInventory (Maybe Natural) Source #
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.
Destructuring the Response
Creates a value of GetInventoryResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
girsEntities
- Collection of inventory entities such as a collection of instance inventory.girsNextToken
- The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.girsResponseStatus
- -- | The response status code.
data GetInventoryResponse Source #
See: getInventoryResponse
smart constructor.
Instances
Response Lenses
girsEntities :: Lens' GetInventoryResponse [InventoryResultEntity] Source #
Collection of inventory entities such as a collection of instance inventory.
girsNextToken :: Lens' GetInventoryResponse (Maybe Text) Source #
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
girsResponseStatus :: Lens' GetInventoryResponse Int Source #
- - | The response status code.