amazonka-inspector-1.6.1: Amazon Inspector 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.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 .

This operation returns paginated results.

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 # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

Data ListAssessmentTargets Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

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 # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

Show ListAssessmentTargets Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

Generic ListAssessmentTargets Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

Associated Types

type Rep ListAssessmentTargets :: Type -> Type #

Hashable ListAssessmentTargets Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

ToJSON ListAssessmentTargets Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

AWSPager ListAssessmentTargets Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

AWSRequest ListAssessmentTargets Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

Associated Types

type Rs ListAssessmentTargets :: Type #

ToHeaders ListAssessmentTargets Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

ToPath ListAssessmentTargets Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

ToQuery ListAssessmentTargets Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

NFData ListAssessmentTargets Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

Methods

rnf :: ListAssessmentTargets -> () #

type Rep ListAssessmentTargets Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

type Rep ListAssessmentTargets = D1 (MetaData "ListAssessmentTargets" "Network.AWS.Inspector.ListAssessmentTargets" "amazonka-inspector-1.6.1-1xH2ya8w5ZlLuhJEcN8K8C" False) (C1 (MetaCons "ListAssessmentTargets'" PrefixI True) (S1 (MetaSel (Just "_lNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AssessmentTargetFilter)) :*: S1 (MetaSel (Just "_lMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))))
type Rs ListAssessmentTargets Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

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 # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

Data ListAssessmentTargetsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

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 # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

Show ListAssessmentTargetsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

Generic ListAssessmentTargetsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

Associated Types

type Rep ListAssessmentTargetsResponse :: Type -> Type #

NFData ListAssessmentTargetsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

type Rep ListAssessmentTargetsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentTargets

type Rep ListAssessmentTargetsResponse = D1 (MetaData "ListAssessmentTargetsResponse" "Network.AWS.Inspector.ListAssessmentTargets" "amazonka-inspector-1.6.1-1xH2ya8w5ZlLuhJEcN8K8C" False) (C1 (MetaCons "ListAssessmentTargetsResponse'" PrefixI True) (S1 (MetaSel (Just "_lrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_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.