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 assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
This operation returns paginated results.
Synopsis
- data ListAssessmentRuns = ListAssessmentRuns' {}
- newListAssessmentRuns :: ListAssessmentRuns
- listAssessmentRuns_nextToken :: Lens' ListAssessmentRuns (Maybe Text)
- listAssessmentRuns_filter :: Lens' ListAssessmentRuns (Maybe AssessmentRunFilter)
- listAssessmentRuns_assessmentTemplateArns :: Lens' ListAssessmentRuns (Maybe [Text])
- listAssessmentRuns_maxResults :: Lens' ListAssessmentRuns (Maybe Int)
- data ListAssessmentRunsResponse = ListAssessmentRunsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- assessmentRunArns :: [Text]
- newListAssessmentRunsResponse :: Int -> ListAssessmentRunsResponse
- listAssessmentRunsResponse_nextToken :: Lens' ListAssessmentRunsResponse (Maybe Text)
- listAssessmentRunsResponse_httpStatus :: Lens' ListAssessmentRunsResponse Int
- listAssessmentRunsResponse_assessmentRunArns :: Lens' ListAssessmentRunsResponse [Text]
Creating a Request
data ListAssessmentRuns Source #
See: newListAssessmentRuns
smart constructor.
ListAssessmentRuns' | |
|
Instances
newListAssessmentRuns :: ListAssessmentRuns Source #
Create a value of ListAssessmentRuns
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:ListAssessmentRuns'
, listAssessmentRuns_nextToken
- You can use this parameter when paginating results. Set the value of
this parameter to null on your first call to the ListAssessmentRuns
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':ListAssessmentRuns'
, listAssessmentRuns_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:assessmentTemplateArns:ListAssessmentRuns'
, listAssessmentRuns_assessmentTemplateArns
- The ARNs that specify the assessment templates whose assessment runs you
want to list.
$sel:maxResults:ListAssessmentRuns'
, listAssessmentRuns_maxResults
- You can use this parameter to indicate the maximum number of items that
you want in the response. The default value is 10. The maximum value is
500.
Request Lenses
listAssessmentRuns_nextToken :: Lens' ListAssessmentRuns (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 ListAssessmentRuns action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
listAssessmentRuns_filter :: Lens' ListAssessmentRuns (Maybe AssessmentRunFilter) 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.
listAssessmentRuns_assessmentTemplateArns :: Lens' ListAssessmentRuns (Maybe [Text]) Source #
The ARNs that specify the assessment templates whose assessment runs you want to list.
listAssessmentRuns_maxResults :: Lens' ListAssessmentRuns (Maybe Int) Source #
You can use this parameter to indicate the maximum number of items that you want in the response. The default value is 10. The maximum value is 500.
Destructuring the Response
data ListAssessmentRunsResponse Source #
See: newListAssessmentRunsResponse
smart constructor.
ListAssessmentRunsResponse' | |
|
Instances
newListAssessmentRunsResponse Source #
Create a value of ListAssessmentRunsResponse
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:ListAssessmentRuns'
, listAssessmentRunsResponse_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:ListAssessmentRunsResponse'
, listAssessmentRunsResponse_httpStatus
- The response's http status code.
$sel:assessmentRunArns:ListAssessmentRunsResponse'
, listAssessmentRunsResponse_assessmentRunArns
- A list of ARNs that specifies the assessment runs that are returned by
the action.
Response Lenses
listAssessmentRunsResponse_nextToken :: Lens' ListAssessmentRunsResponse (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.
listAssessmentRunsResponse_httpStatus :: Lens' ListAssessmentRunsResponse Int Source #
The response's http status code.
listAssessmentRunsResponse_assessmentRunArns :: Lens' ListAssessmentRunsResponse [Text] Source #
A list of ARNs that specifies the assessment runs that are returned by the action.