Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data ListAssessmentTargets = ListAssessmentTargets' {}
- newListAssessmentTargets :: ListAssessmentTargets
- listAssessmentTargets_nextToken :: Lens' ListAssessmentTargets (Maybe Text)
- listAssessmentTargets_filter :: Lens' ListAssessmentTargets (Maybe AssessmentTargetFilter)
- listAssessmentTargets_maxResults :: Lens' ListAssessmentTargets (Maybe Int)
- data ListAssessmentTargetsResponse = ListAssessmentTargetsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- assessmentTargetArns :: [Text]
- newListAssessmentTargetsResponse :: Int -> ListAssessmentTargetsResponse
- listAssessmentTargetsResponse_nextToken :: Lens' ListAssessmentTargetsResponse (Maybe Text)
- listAssessmentTargetsResponse_httpStatus :: Lens' ListAssessmentTargetsResponse Int
- listAssessmentTargetsResponse_assessmentTargetArns :: Lens' ListAssessmentTargetsResponse [Text]
Creating a Request
data ListAssessmentTargets Source #
See: newListAssessmentTargets
smart constructor.
ListAssessmentTargets' | |
|
Instances
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.
ListAssessmentTargetsResponse' | |
|
Instances
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_httpStatus :: Lens' ListAssessmentTargetsResponse Int Source #
The response's http status code.
listAssessmentTargetsResponse_assessmentTargetArns :: Lens' ListAssessmentTargetsResponse [Text] Source #
A list of ARNs that specifies the assessment targets that are returned by the action.