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

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

data ListAssessmentTargets Source #

See: newListAssessmentTargets smart constructor.

Constructors

ListAssessmentTargets' 

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

  • filter' :: Maybe AssessmentTargetFilter

    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.

Instances

Instances details
Eq ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

Read ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

Show ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

Generic ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

Associated Types

type Rep ListAssessmentTargets :: Type -> Type #

NFData ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

Methods

rnf :: ListAssessmentTargets -> () #

Hashable ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

ToJSON ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

AWSPager ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

AWSRequest ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

Associated Types

type AWSResponse ListAssessmentTargets #

ToHeaders ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

ToPath ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

ToQuery ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

type Rep ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

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

Defined in Amazonka.Inspector.ListAssessmentTargets

newListAssessmentTargets :: ListAssessmentTargets Source #

Create a value of ListAssessmentTargets 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:ListAssessmentTargets', listAssessmentTargets_nextToken - 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.

$sel:filter':ListAssessmentTargets', listAssessmentTargets_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:ListAssessmentTargets', listAssessmentTargets_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.

Request Lenses

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

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

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

data ListAssessmentTargetsResponse Source #

See: newListAssessmentTargetsResponse smart constructor.

Constructors

ListAssessmentTargetsResponse' 

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.

  • assessmentTargetArns :: [Text]

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

Instances

Instances details
Eq ListAssessmentTargetsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

Read ListAssessmentTargetsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

Show ListAssessmentTargetsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

Generic ListAssessmentTargetsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

Associated Types

type Rep ListAssessmentTargetsResponse :: Type -> Type #

NFData ListAssessmentTargetsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

type Rep ListAssessmentTargetsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

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

newListAssessmentTargetsResponse Source #

Create a value of ListAssessmentTargetsResponse 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:ListAssessmentTargets', listAssessmentTargetsResponse_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:ListAssessmentTargetsResponse', listAssessmentTargetsResponse_httpStatus - The response's http status code.

$sel:assessmentTargetArns:ListAssessmentTargetsResponse', listAssessmentTargetsResponse_assessmentTargetArns - A list of ARNs that specifies the assessment targets that are returned by the action.

Response Lenses

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

listAssessmentTargetsResponse_assessmentTargetArns :: Lens' ListAssessmentTargetsResponse [Text] Source #

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