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

Amazonka.Inspector.ListAssessmentRuns

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

data ListAssessmentRuns Source #

See: newListAssessmentRuns smart constructor.

Constructors

ListAssessmentRuns' 

Fields

  • nextToken :: Maybe Text

    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.

  • filter' :: Maybe AssessmentRunFilter

    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.

  • assessmentTemplateArns :: Maybe [Text]

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

  • maxResults :: Maybe Int

    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.

Instances

Instances details
Eq ListAssessmentRuns Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

Read ListAssessmentRuns Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

Show ListAssessmentRuns Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

Generic ListAssessmentRuns Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

Associated Types

type Rep ListAssessmentRuns :: Type -> Type #

NFData ListAssessmentRuns Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

Methods

rnf :: ListAssessmentRuns -> () #

Hashable ListAssessmentRuns Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

ToJSON ListAssessmentRuns Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

AWSPager ListAssessmentRuns Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

AWSRequest ListAssessmentRuns Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

Associated Types

type AWSResponse ListAssessmentRuns #

ToHeaders ListAssessmentRuns Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

ToPath ListAssessmentRuns Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

ToQuery ListAssessmentRuns Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

type Rep ListAssessmentRuns Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

type Rep ListAssessmentRuns = D1 ('MetaData "ListAssessmentRuns" "Amazonka.Inspector.ListAssessmentRuns" "libZSservicesZSamazonka-inspectorZSamazonka-inspector" 'False) (C1 ('MetaCons "ListAssessmentRuns'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "filter'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AssessmentRunFilter))) :*: (S1 ('MetaSel ('Just "assessmentTemplateArns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))
type AWSResponse ListAssessmentRuns Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

newListAssessmentRuns :: ListAssessmentRuns Source #

Create a value of ListAssessmentRuns with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:nextToken:ListAssessmentRuns', listAssessmentRuns_nextToken - 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.

$sel:filter':ListAssessmentRuns', listAssessmentRuns_filter - 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.

$sel:assessmentTemplateArns:ListAssessmentRuns', listAssessmentRuns_assessmentTemplateArns - The ARNs that specify the assessment templates whose assessment runs you want to list.

$sel:maxResults:ListAssessmentRuns', listAssessmentRuns_maxResults - 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.

Request Lenses

listAssessmentRuns_nextToken :: 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.

listAssessmentRuns_filter :: 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.

listAssessmentRuns_assessmentTemplateArns :: Lens' ListAssessmentRuns (Maybe [Text]) Source #

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

listAssessmentRuns_maxResults :: 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

data ListAssessmentRunsResponse Source #

See: newListAssessmentRunsResponse smart constructor.

Constructors

ListAssessmentRunsResponse' 

Fields

  • nextToken :: Maybe Text

    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.

  • httpStatus :: Int

    The response's http status code.

  • assessmentRunArns :: [Text]

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

Instances

Instances details
Eq ListAssessmentRunsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

Read ListAssessmentRunsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

Show ListAssessmentRunsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

Generic ListAssessmentRunsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

Associated Types

type Rep ListAssessmentRunsResponse :: Type -> Type #

NFData ListAssessmentRunsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

type Rep ListAssessmentRunsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentRuns

type Rep ListAssessmentRunsResponse = D1 ('MetaData "ListAssessmentRunsResponse" "Amazonka.Inspector.ListAssessmentRuns" "libZSservicesZSamazonka-inspectorZSamazonka-inspector" 'False) (C1 ('MetaCons "ListAssessmentRunsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "assessmentRunArns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]))))

newListAssessmentRunsResponse Source #

Create a value of ListAssessmentRunsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:nextToken:ListAssessmentRuns', listAssessmentRunsResponse_nextToken - 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.

$sel:httpStatus:ListAssessmentRunsResponse', listAssessmentRunsResponse_httpStatus - The response's http status code.

$sel:assessmentRunArns:ListAssessmentRunsResponse', listAssessmentRunsResponse_assessmentRunArns - A list of ARNs that specifies the assessment runs that are returned by the action.

Response Lenses

listAssessmentRunsResponse_nextToken :: 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.

listAssessmentRunsResponse_assessmentRunArns :: Lens' ListAssessmentRunsResponse [Text] Source #

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