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 templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.
This operation returns paginated results.
Synopsis
- data ListAssessmentTemplates = ListAssessmentTemplates' {}
- newListAssessmentTemplates :: ListAssessmentTemplates
- listAssessmentTemplates_nextToken :: Lens' ListAssessmentTemplates (Maybe Text)
- listAssessmentTemplates_filter :: Lens' ListAssessmentTemplates (Maybe AssessmentTemplateFilter)
- listAssessmentTemplates_maxResults :: Lens' ListAssessmentTemplates (Maybe Int)
- listAssessmentTemplates_assessmentTargetArns :: Lens' ListAssessmentTemplates (Maybe [Text])
- data ListAssessmentTemplatesResponse = ListAssessmentTemplatesResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- assessmentTemplateArns :: [Text]
- newListAssessmentTemplatesResponse :: Int -> ListAssessmentTemplatesResponse
- listAssessmentTemplatesResponse_nextToken :: Lens' ListAssessmentTemplatesResponse (Maybe Text)
- listAssessmentTemplatesResponse_httpStatus :: Lens' ListAssessmentTemplatesResponse Int
- listAssessmentTemplatesResponse_assessmentTemplateArns :: Lens' ListAssessmentTemplatesResponse [Text]
Creating a Request
data ListAssessmentTemplates Source #
See: newListAssessmentTemplates
smart constructor.
ListAssessmentTemplates' | |
|
Instances
newListAssessmentTemplates :: ListAssessmentTemplates Source #
Create a value of ListAssessmentTemplates
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:ListAssessmentTemplates'
, listAssessmentTemplates_nextToken
- You can use this parameter when paginating results. Set the value of
this parameter to null on your first call to the
ListAssessmentTemplates 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':ListAssessmentTemplates'
, listAssessmentTemplates_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:ListAssessmentTemplates'
, listAssessmentTemplates_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.
$sel:assessmentTargetArns:ListAssessmentTemplates'
, listAssessmentTemplates_assessmentTargetArns
- A list of ARNs that specifies the assessment targets whose assessment
templates you want to list.
Request Lenses
listAssessmentTemplates_nextToken :: Lens' ListAssessmentTemplates (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 ListAssessmentTemplates action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
listAssessmentTemplates_filter :: Lens' ListAssessmentTemplates (Maybe AssessmentTemplateFilter) 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.
listAssessmentTemplates_maxResults :: Lens' ListAssessmentTemplates (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.
listAssessmentTemplates_assessmentTargetArns :: Lens' ListAssessmentTemplates (Maybe [Text]) Source #
A list of ARNs that specifies the assessment targets whose assessment templates you want to list.
Destructuring the Response
data ListAssessmentTemplatesResponse Source #
See: newListAssessmentTemplatesResponse
smart constructor.
ListAssessmentTemplatesResponse' | |
|
Instances
newListAssessmentTemplatesResponse Source #
Create a value of ListAssessmentTemplatesResponse
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:ListAssessmentTemplates'
, listAssessmentTemplatesResponse_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:ListAssessmentTemplatesResponse'
, listAssessmentTemplatesResponse_httpStatus
- The response's http status code.
$sel:assessmentTemplateArns:ListAssessmentTemplatesResponse'
, listAssessmentTemplatesResponse_assessmentTemplateArns
- A list of ARNs that specifies the assessment templates returned by the
action.
Response Lenses
listAssessmentTemplatesResponse_nextToken :: Lens' ListAssessmentTemplatesResponse (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.
listAssessmentTemplatesResponse_httpStatus :: Lens' ListAssessmentTemplatesResponse Int Source #
The response's http status code.
listAssessmentTemplatesResponse_assessmentTemplateArns :: Lens' ListAssessmentTemplatesResponse [Text] Source #
A list of ARNs that specifies the assessment templates returned by the action.