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 |
Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token. You can obtain the preview token by running the CreateExclusionsPreview API.
Synopsis
- data GetExclusionsPreview = GetExclusionsPreview' {}
- newGetExclusionsPreview :: Text -> Text -> GetExclusionsPreview
- getExclusionsPreview_locale :: Lens' GetExclusionsPreview (Maybe Locale)
- getExclusionsPreview_nextToken :: Lens' GetExclusionsPreview (Maybe Text)
- getExclusionsPreview_maxResults :: Lens' GetExclusionsPreview (Maybe Int)
- getExclusionsPreview_assessmentTemplateArn :: Lens' GetExclusionsPreview Text
- getExclusionsPreview_previewToken :: Lens' GetExclusionsPreview Text
- data GetExclusionsPreviewResponse = GetExclusionsPreviewResponse' {}
- newGetExclusionsPreviewResponse :: Int -> PreviewStatus -> GetExclusionsPreviewResponse
- getExclusionsPreviewResponse_exclusionPreviews :: Lens' GetExclusionsPreviewResponse (Maybe [ExclusionPreview])
- getExclusionsPreviewResponse_nextToken :: Lens' GetExclusionsPreviewResponse (Maybe Text)
- getExclusionsPreviewResponse_httpStatus :: Lens' GetExclusionsPreviewResponse Int
- getExclusionsPreviewResponse_previewStatus :: Lens' GetExclusionsPreviewResponse PreviewStatus
Creating a Request
data GetExclusionsPreview Source #
See: newGetExclusionsPreview
smart constructor.
GetExclusionsPreview' | |
|
Instances
newGetExclusionsPreview Source #
:: Text | |
-> Text | |
-> GetExclusionsPreview |
Create a value of GetExclusionsPreview
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:locale:GetExclusionsPreview'
, getExclusionsPreview_locale
- The locale into which you want to translate the exclusion's title,
description, and recommendation.
$sel:nextToken:GetExclusionsPreview'
, getExclusionsPreview_nextToken
- You can use this parameter when paginating results. Set the value of
this parameter to null on your first call to the
GetExclusionsPreviewRequest 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:maxResults:GetExclusionsPreview'
, getExclusionsPreview_maxResults
- You can use this parameter to indicate the maximum number of items you
want in the response. The default value is 100. The maximum value is
500.
$sel:assessmentTemplateArn:GetExclusionsPreview'
, getExclusionsPreview_assessmentTemplateArn
- The ARN that specifies the assessment template for which the exclusions
preview was requested.
$sel:previewToken:GetExclusionsPreview'
, getExclusionsPreview_previewToken
- The unique identifier associated of the exclusions preview.
Request Lenses
getExclusionsPreview_locale :: Lens' GetExclusionsPreview (Maybe Locale) Source #
The locale into which you want to translate the exclusion's title, description, and recommendation.
getExclusionsPreview_nextToken :: Lens' GetExclusionsPreview (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 GetExclusionsPreviewRequest action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.
getExclusionsPreview_maxResults :: Lens' GetExclusionsPreview (Maybe Int) Source #
You can use this parameter to indicate the maximum number of items you want in the response. The default value is 100. The maximum value is 500.
getExclusionsPreview_assessmentTemplateArn :: Lens' GetExclusionsPreview Text Source #
The ARN that specifies the assessment template for which the exclusions preview was requested.
getExclusionsPreview_previewToken :: Lens' GetExclusionsPreview Text Source #
The unique identifier associated of the exclusions preview.
Destructuring the Response
data GetExclusionsPreviewResponse Source #
See: newGetExclusionsPreviewResponse
smart constructor.
GetExclusionsPreviewResponse' | |
|
Instances
newGetExclusionsPreviewResponse Source #
Create a value of GetExclusionsPreviewResponse
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:exclusionPreviews:GetExclusionsPreviewResponse'
, getExclusionsPreviewResponse_exclusionPreviews
- Information about the exclusions included in the preview.
$sel:nextToken:GetExclusionsPreview'
, getExclusionsPreviewResponse_nextToken
- When a response is generated, if there is more data to be listed, this
parameters 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:GetExclusionsPreviewResponse'
, getExclusionsPreviewResponse_httpStatus
- The response's http status code.
$sel:previewStatus:GetExclusionsPreviewResponse'
, getExclusionsPreviewResponse_previewStatus
- Specifies the status of the request to generate an exclusions preview.
Response Lenses
getExclusionsPreviewResponse_exclusionPreviews :: Lens' GetExclusionsPreviewResponse (Maybe [ExclusionPreview]) Source #
Information about the exclusions included in the preview.
getExclusionsPreviewResponse_nextToken :: Lens' GetExclusionsPreviewResponse (Maybe Text) Source #
When a response is generated, if there is more data to be listed, this parameters 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.
getExclusionsPreviewResponse_httpStatus :: Lens' GetExclusionsPreviewResponse Int Source #
The response's http status code.
getExclusionsPreviewResponse_previewStatus :: Lens' GetExclusionsPreviewResponse PreviewStatus Source #
Specifies the status of the request to generate an exclusions preview.