amazonka-ssm-1.6.0: 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.ListComplianceItems

Contents

Description

For a specified resource ID, this API action returns a list of compliance statuses for different resource types. Currently, you can only specify one resource ID per call. List results depend on the criteria specified in the filter.

Synopsis

Creating a Request

listComplianceItems :: ListComplianceItems #

Creates a value of ListComplianceItems with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • lResourceIds - The ID for the resources from which to get compliance information. Currently, you can only specify one resource ID.
  • lFilters - One or more compliance filters. Use a filter to return a more specific list of results.
  • lNextToken - A token to start the list. Use this token to get the next set of results.
  • lMaxResults - 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.
  • lResourceTypes - The type of resource from which to get compliance information. Currently, the only supported resource type is ManagedInstance .

data ListComplianceItems #

See: listComplianceItems smart constructor.

Instances

Eq ListComplianceItems # 
Data ListComplianceItems # 

Methods

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

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

toConstr :: ListComplianceItems -> Constr #

dataTypeOf :: ListComplianceItems -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListComplianceItems # 
Show ListComplianceItems # 
Generic ListComplianceItems # 
Hashable ListComplianceItems # 
ToJSON ListComplianceItems # 
NFData ListComplianceItems # 

Methods

rnf :: ListComplianceItems -> () #

AWSRequest ListComplianceItems # 
ToHeaders ListComplianceItems # 
ToPath ListComplianceItems # 
ToQuery ListComplianceItems # 
type Rep ListComplianceItems # 
type Rep ListComplianceItems = D1 * (MetaData "ListComplianceItems" "Network.AWS.SSM.ListComplianceItems" "amazonka-ssm-1.6.0-3Tt35jiaR0xLZVuK0jt4Pc" False) (C1 * (MetaCons "ListComplianceItems'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_lResourceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (List1 Text)))) (S1 * (MetaSel (Just Symbol "_lFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [ComplianceStringFilter])))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_lResourceTypes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (List1 Text))))))))
type Rs ListComplianceItems # 

Request Lenses

lResourceIds :: Lens' ListComplianceItems (Maybe (NonEmpty Text)) #

The ID for the resources from which to get compliance information. Currently, you can only specify one resource ID.

lFilters :: Lens' ListComplianceItems [ComplianceStringFilter] #

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

lNextToken :: Lens' ListComplianceItems (Maybe Text) #

A token to start the list. Use this token to get the next set of results.

lMaxResults :: Lens' ListComplianceItems (Maybe Natural) #

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.

lResourceTypes :: Lens' ListComplianceItems (Maybe (NonEmpty Text)) #

The type of resource from which to get compliance information. Currently, the only supported resource type is ManagedInstance .

Destructuring the Response

listComplianceItemsResponse #

Creates a value of ListComplianceItemsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ListComplianceItemsResponse #

See: listComplianceItemsResponse smart constructor.

Instances

Eq ListComplianceItemsResponse # 
Data ListComplianceItemsResponse # 

Methods

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

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

toConstr :: ListComplianceItemsResponse -> Constr #

dataTypeOf :: ListComplianceItemsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListComplianceItemsResponse # 
Show ListComplianceItemsResponse # 
Generic ListComplianceItemsResponse # 
NFData ListComplianceItemsResponse # 
type Rep ListComplianceItemsResponse # 
type Rep ListComplianceItemsResponse = D1 * (MetaData "ListComplianceItemsResponse" "Network.AWS.SSM.ListComplianceItems" "amazonka-ssm-1.6.0-3Tt35jiaR0xLZVuK0jt4Pc" False) (C1 * (MetaCons "ListComplianceItemsResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_lcirsComplianceItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [ComplianceItem]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lcirsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_lcirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

lcirsComplianceItems :: Lens' ListComplianceItemsResponse [ComplianceItem] #

A list of compliance information for the specified resource ID.

lcirsNextToken :: Lens' ListComplianceItemsResponse (Maybe Text) #

The token for the next set of items to return. Use this token to get the next set of results.