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

Description

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

This operation returns paginated results.

Synopsis

Creating a Request

data ListAssessmentTemplates Source #

See: newListAssessmentTemplates smart constructor.

Constructors

ListAssessmentTemplates' 

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 ListAssessmentTemplates 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 AssessmentTemplateFilter

    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.

  • maxResults :: Maybe Int

    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.

  • assessmentTargetArns :: Maybe [Text]

    A list of ARNs that specifies the assessment targets whose assessment templates you want to list.

Instances

Instances details
Eq ListAssessmentTemplates Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

Read ListAssessmentTemplates Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

Show ListAssessmentTemplates Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

Generic ListAssessmentTemplates Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

Associated Types

type Rep ListAssessmentTemplates :: Type -> Type #

NFData ListAssessmentTemplates Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

Methods

rnf :: ListAssessmentTemplates -> () #

Hashable ListAssessmentTemplates Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

ToJSON ListAssessmentTemplates Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

AWSPager ListAssessmentTemplates Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

AWSRequest ListAssessmentTemplates Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

ToHeaders ListAssessmentTemplates Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

ToPath ListAssessmentTemplates Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

ToQuery ListAssessmentTemplates Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

type Rep ListAssessmentTemplates Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

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

Defined in Amazonka.Inspector.ListAssessmentTemplates

newListAssessmentTemplates :: ListAssessmentTemplates Source #

Create a value of ListAssessmentTemplates 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:ListAssessmentTemplates', listAssessmentTemplates_nextToken - You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListAssessmentTemplates 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':ListAssessmentTemplates', listAssessmentTemplates_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:maxResults:ListAssessmentTemplates', listAssessmentTemplates_maxResults - 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.

$sel:assessmentTargetArns:ListAssessmentTemplates', listAssessmentTemplates_assessmentTargetArns - A list of ARNs that specifies the assessment targets whose assessment templates you want to list.

Request Lenses

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

listAssessmentTemplates_filter :: Lens' ListAssessmentTemplates (Maybe AssessmentTemplateFilter) 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.

listAssessmentTemplates_maxResults :: Lens' ListAssessmentTemplates (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.

listAssessmentTemplates_assessmentTargetArns :: Lens' ListAssessmentTemplates (Maybe [Text]) Source #

A list of ARNs that specifies the assessment targets whose assessment templates you want to list.

Destructuring the Response

data ListAssessmentTemplatesResponse Source #

See: newListAssessmentTemplatesResponse smart constructor.

Constructors

ListAssessmentTemplatesResponse' 

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.

  • assessmentTemplateArns :: [Text]

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

Instances

Instances details
Eq ListAssessmentTemplatesResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

Read ListAssessmentTemplatesResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

Show ListAssessmentTemplatesResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

Generic ListAssessmentTemplatesResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

Associated Types

type Rep ListAssessmentTemplatesResponse :: Type -> Type #

NFData ListAssessmentTemplatesResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

type Rep ListAssessmentTemplatesResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTemplates

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

newListAssessmentTemplatesResponse Source #

Create a value of ListAssessmentTemplatesResponse 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:ListAssessmentTemplates', listAssessmentTemplatesResponse_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:ListAssessmentTemplatesResponse', listAssessmentTemplatesResponse_httpStatus - The response's http status code.

$sel:assessmentTemplateArns:ListAssessmentTemplatesResponse', listAssessmentTemplatesResponse_assessmentTemplateArns - A list of ARNs that specifies the assessment templates returned by the action.

Response Lenses

listAssessmentTemplatesResponse_nextToken :: Lens' ListAssessmentTemplatesResponse (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.

listAssessmentTemplatesResponse_assessmentTemplateArns :: Lens' ListAssessmentTemplatesResponse [Text] Source #

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