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.ListAssessmentRuns

Contents

Description

Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.

This operation returns paginated results.

Synopsis

Creating a Request

listAssessmentRuns :: ListAssessmentRuns Source #

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

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

  • larNextToken - You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListAssessmentRuns action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
  • larFilter - 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.
  • larAssessmentTemplateARNs - The ARNs that specify the assessment templates whose assessment runs you want to list.
  • larMaxResults - You can use this parameter to indicate the maximum number of items that you want in the response. The default value is 10. The maximum value is 500.

data ListAssessmentRuns Source #

See: listAssessmentRuns smart constructor.

Instances
Eq ListAssessmentRuns Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

Data ListAssessmentRuns Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

Methods

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

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

toConstr :: ListAssessmentRuns -> Constr #

dataTypeOf :: ListAssessmentRuns -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListAssessmentRuns Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

Show ListAssessmentRuns Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

Generic ListAssessmentRuns Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

Associated Types

type Rep ListAssessmentRuns :: Type -> Type #

Hashable ListAssessmentRuns Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

ToJSON ListAssessmentRuns Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

AWSPager ListAssessmentRuns Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

AWSRequest ListAssessmentRuns Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

Associated Types

type Rs ListAssessmentRuns :: Type #

ToHeaders ListAssessmentRuns Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

ToPath ListAssessmentRuns Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

ToQuery ListAssessmentRuns Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

NFData ListAssessmentRuns Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

Methods

rnf :: ListAssessmentRuns -> () #

type Rep ListAssessmentRuns Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

type Rep ListAssessmentRuns = D1 (MetaData "ListAssessmentRuns" "Network.AWS.Inspector.ListAssessmentRuns" "amazonka-inspector-1.6.1-1xH2ya8w5ZlLuhJEcN8K8C" False) (C1 (MetaCons "ListAssessmentRuns'" PrefixI True) ((S1 (MetaSel (Just "_larNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_larFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AssessmentRunFilter))) :*: (S1 (MetaSel (Just "_larAssessmentTemplateARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_larMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))))
type Rs ListAssessmentRuns Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

Request Lenses

larNextToken :: Lens' ListAssessmentRuns (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 ListAssessmentRuns action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

larFilter :: Lens' ListAssessmentRuns (Maybe AssessmentRunFilter) 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.

larAssessmentTemplateARNs :: Lens' ListAssessmentRuns [Text] Source #

The ARNs that specify the assessment templates whose assessment runs you want to list.

larMaxResults :: Lens' ListAssessmentRuns (Maybe Int) Source #

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

Destructuring the Response

listAssessmentRunsResponse Source #

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

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

  • larrsNextToken - 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.
  • larrsResponseStatus - -- | The response status code.
  • larrsAssessmentRunARNs - A list of ARNs that specifies the assessment runs that are returned by the action.

data ListAssessmentRunsResponse Source #

See: listAssessmentRunsResponse smart constructor.

Instances
Eq ListAssessmentRunsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

Data ListAssessmentRunsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

Methods

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

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

toConstr :: ListAssessmentRunsResponse -> Constr #

dataTypeOf :: ListAssessmentRunsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListAssessmentRunsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

Show ListAssessmentRunsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

Generic ListAssessmentRunsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

Associated Types

type Rep ListAssessmentRunsResponse :: Type -> Type #

NFData ListAssessmentRunsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

type Rep ListAssessmentRunsResponse Source # 
Instance details

Defined in Network.AWS.Inspector.ListAssessmentRuns

type Rep ListAssessmentRunsResponse = D1 (MetaData "ListAssessmentRunsResponse" "Network.AWS.Inspector.ListAssessmentRuns" "amazonka-inspector-1.6.1-1xH2ya8w5ZlLuhJEcN8K8C" False) (C1 (MetaCons "ListAssessmentRunsResponse'" PrefixI True) (S1 (MetaSel (Just "_larrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_larrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_larrsAssessmentRunARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]))))

Response Lenses

larrsNextToken :: Lens' ListAssessmentRunsResponse (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.

larrsAssessmentRunARNs :: Lens' ListAssessmentRunsResponse [Text] Source #

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