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 findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
This operation returns paginated results.
Synopsis
- data ListFindings = ListFindings' {
- assessmentRunArns :: Maybe [Text]
- nextToken :: Maybe Text
- filter' :: Maybe FindingFilter
- maxResults :: Maybe Int
- newListFindings :: ListFindings
- listFindings_assessmentRunArns :: Lens' ListFindings (Maybe [Text])
- listFindings_nextToken :: Lens' ListFindings (Maybe Text)
- listFindings_filter :: Lens' ListFindings (Maybe FindingFilter)
- listFindings_maxResults :: Lens' ListFindings (Maybe Int)
- data ListFindingsResponse = ListFindingsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- findingArns :: [Text]
- newListFindingsResponse :: Int -> ListFindingsResponse
- listFindingsResponse_nextToken :: Lens' ListFindingsResponse (Maybe Text)
- listFindingsResponse_httpStatus :: Lens' ListFindingsResponse Int
- listFindingsResponse_findingArns :: Lens' ListFindingsResponse [Text]
Creating a Request
data ListFindings Source #
See: newListFindings
smart constructor.
ListFindings' | |
|
Instances
newListFindings :: ListFindings Source #
Create a value of ListFindings
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:assessmentRunArns:ListFindings'
, listFindings_assessmentRunArns
- The ARNs of the assessment runs that generate the findings that you want
to list.
$sel:nextToken:ListFindings'
, listFindings_nextToken
- You can use this parameter when paginating results. Set the value of
this parameter to null on your first call to the ListFindings
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':ListFindings'
, listFindings_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:ListFindings'
, listFindings_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
listFindings_assessmentRunArns :: Lens' ListFindings (Maybe [Text]) Source #
The ARNs of the assessment runs that generate the findings that you want to list.
listFindings_nextToken :: Lens' ListFindings (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 ListFindings action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
listFindings_filter :: Lens' ListFindings (Maybe FindingFilter) 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.
listFindings_maxResults :: Lens' ListFindings (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 ListFindingsResponse Source #
See: newListFindingsResponse
smart constructor.
ListFindingsResponse' | |
|
Instances
newListFindingsResponse Source #
Create a value of ListFindingsResponse
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:ListFindings'
, listFindingsResponse_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:ListFindingsResponse'
, listFindingsResponse_httpStatus
- The response's http status code.
$sel:findingArns:ListFindingsResponse'
, listFindingsResponse_findingArns
- A list of ARNs that specifies the findings returned by the action.
Response Lenses
listFindingsResponse_nextToken :: Lens' ListFindingsResponse (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.
listFindingsResponse_httpStatus :: Lens' ListFindingsResponse Int Source #
The response's http status code.
listFindingsResponse_findingArns :: Lens' ListFindingsResponse [Text] Source #
A list of ARNs that specifies the findings returned by the action.