amazonka-inspector-1.5.0: Amazon Inspector SDK.

Copyright(c) 2013-2017 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.Inspector.ListAssessmentTargets

Contents

Description

Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets .

Synopsis

Creating a Request

listAssessmentTargets :: ListAssessmentTargets Source #

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

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

  • lNextToken - You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListAssessmentTargets action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
  • lFilter - You can use this parameter to specify a subset of data to be included in the action's response. For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.
  • lMaxResults - You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

data ListAssessmentTargets Source #

See: listAssessmentTargets smart constructor.

Instances

Eq ListAssessmentTargets Source # 
Data ListAssessmentTargets Source # 

Methods

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

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

toConstr :: ListAssessmentTargets -> Constr #

dataTypeOf :: ListAssessmentTargets -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListAssessmentTargets Source # 
Show ListAssessmentTargets Source # 
Generic ListAssessmentTargets Source # 
Hashable ListAssessmentTargets Source # 
ToJSON ListAssessmentTargets Source # 
NFData ListAssessmentTargets Source # 

Methods

rnf :: ListAssessmentTargets -> () #

AWSRequest ListAssessmentTargets Source # 
ToQuery ListAssessmentTargets Source # 
ToPath ListAssessmentTargets Source # 
ToHeaders ListAssessmentTargets Source # 
type Rep ListAssessmentTargets Source # 
type Rep ListAssessmentTargets = D1 (MetaData "ListAssessmentTargets" "Network.AWS.Inspector.ListAssessmentTargets" "amazonka-inspector-1.5.0-7FB889gAl01LG9BEQFHuYd" False) (C1 (MetaCons "ListAssessmentTargets'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AssessmentTargetFilter))) (S1 (MetaSel (Just Symbol "_lMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))))))
type Rs ListAssessmentTargets Source # 

Request Lenses

lNextToken :: Lens' ListAssessmentTargets (Maybe Text) Source #

You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListAssessmentTargets action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

lFilter :: Lens' ListAssessmentTargets (Maybe AssessmentTargetFilter) Source #

You can use this parameter to specify a subset of data to be included in the action's response. For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

lMaxResults :: Lens' ListAssessmentTargets (Maybe Int) Source #

You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

Destructuring the Response

listAssessmentTargetsResponse Source #

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

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

  • lrsNextToken - When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
  • lrsResponseStatus - -- | The response status code.
  • lrsAssessmentTargetARNs - A list of ARNs that specifies the assessment targets that are returned by the action.

data ListAssessmentTargetsResponse Source #

See: listAssessmentTargetsResponse smart constructor.

Instances

Eq ListAssessmentTargetsResponse Source # 
Data ListAssessmentTargetsResponse Source # 

Methods

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

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

toConstr :: ListAssessmentTargetsResponse -> Constr #

dataTypeOf :: ListAssessmentTargetsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListAssessmentTargetsResponse Source # 
Show ListAssessmentTargetsResponse Source # 
Generic ListAssessmentTargetsResponse Source # 
NFData ListAssessmentTargetsResponse Source # 
type Rep ListAssessmentTargetsResponse Source # 
type Rep ListAssessmentTargetsResponse = D1 (MetaData "ListAssessmentTargetsResponse" "Network.AWS.Inspector.ListAssessmentTargets" "amazonka-inspector-1.5.0-7FB889gAl01LG9BEQFHuYd" False) (C1 (MetaCons "ListAssessmentTargetsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_lrsAssessmentTargetARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])))))

Response Lenses

lrsNextToken :: Lens' ListAssessmentTargetsResponse (Maybe Text) Source #

When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

lrsAssessmentTargetARNs :: Lens' ListAssessmentTargetsResponse [Text] Source #

A list of ARNs that specifies the assessment targets that are returned by the action.