amazonka-ssm-1.6.1: Amazon Simple Systems Manager (SSM) SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.SSM.GetInventory

Contents

Description

Query inventory information.

Synopsis

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 the AWS: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
Eq GetInventory Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

Data GetInventory Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetInventory -> c GetInventory #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetInventory #

toConstr :: GetInventory -> Constr #

dataTypeOf :: GetInventory -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetInventory) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetInventory) #

gmapT :: (forall b. Data b => b -> b) -> GetInventory -> GetInventory #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetInventory -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetInventory -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetInventory -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetInventory -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetInventory -> m GetInventory #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetInventory -> m GetInventory #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetInventory -> m GetInventory #

Read GetInventory Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

Show GetInventory Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

Generic GetInventory Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

Associated Types

type Rep GetInventory :: Type -> Type #

Hashable GetInventory Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

ToJSON GetInventory Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

AWSRequest GetInventory Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

Associated Types

type Rs GetInventory :: Type #

ToHeaders GetInventory Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

ToPath GetInventory Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

ToQuery GetInventory Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

NFData GetInventory Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

Methods

rnf :: GetInventory -> () #

type Rep GetInventory Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

type Rep GetInventory = D1 (MetaData "GetInventory" "Network.AWS.SSM.GetInventory" "amazonka-ssm-1.6.1-7PbnocxNW5qAr7pEvzAy6Q" False) (C1 (MetaCons "GetInventory'" PrefixI True) ((S1 (MetaSel (Just "_giAggregators") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (List1 InventoryAggregator))) :*: S1 (MetaSel (Just "_giFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (List1 InventoryFilter)))) :*: (S1 (MetaSel (Just "_giResultAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (List1 ResultAttribute))) :*: (S1 (MetaSel (Just "_giNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_giMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))))))
type Rs GetInventory Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

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

getInventoryResponse Source #

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
Eq GetInventoryResponse Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

Data GetInventoryResponse Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetInventoryResponse -> c GetInventoryResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetInventoryResponse #

toConstr :: GetInventoryResponse -> Constr #

dataTypeOf :: GetInventoryResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetInventoryResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetInventoryResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetInventoryResponse -> GetInventoryResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetInventoryResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetInventoryResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetInventoryResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetInventoryResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetInventoryResponse -> m GetInventoryResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetInventoryResponse -> m GetInventoryResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetInventoryResponse -> m GetInventoryResponse #

Read GetInventoryResponse Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

Show GetInventoryResponse Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

Generic GetInventoryResponse Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

Associated Types

type Rep GetInventoryResponse :: Type -> Type #

NFData GetInventoryResponse Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

Methods

rnf :: GetInventoryResponse -> () #

type Rep GetInventoryResponse Source # 
Instance details

Defined in Network.AWS.SSM.GetInventory

type Rep GetInventoryResponse = D1 (MetaData "GetInventoryResponse" "Network.AWS.SSM.GetInventory" "amazonka-ssm-1.6.1-7PbnocxNW5qAr7pEvzAy6Q" False) (C1 (MetaCons "GetInventoryResponse'" PrefixI True) (S1 (MetaSel (Just "_girsEntities") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [InventoryResultEntity])) :*: (S1 (MetaSel (Just "_girsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_girsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

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.