amazonka-inspector-2.0: Amazon Inspector SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

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

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

Instances

Instances details
ToJSON ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.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

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 #

Generic ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

Associated Types

type Rep ListAssessmentTargets :: Type -> Type #

Read ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

Show ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

NFData ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

Methods

rnf :: ListAssessmentTargets -> () #

Eq ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

Hashable ListAssessmentTargets Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

type AWSResponse 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" "amazonka-inspector-2.0-DbkSB2KDR0U54GYFqTMz6L" 'False) (C1 ('MetaCons "ListAssessmentTargets'" 'PrefixI 'True) (S1 ('MetaSel ('Just "filter'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AssessmentTargetFilter)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

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

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.

Request Lenses

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.

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.

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
Generic ListAssessmentTargetsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

Associated Types

type Rep ListAssessmentTargetsResponse :: Type -> Type #

Read ListAssessmentTargetsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

Show ListAssessmentTargetsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

NFData ListAssessmentTargetsResponse Source # 
Instance details

Defined in Amazonka.Inspector.ListAssessmentTargets

Eq 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" "amazonka-inspector-2.0-DbkSB2KDR0U54GYFqTMz6L" '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:

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.