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 |
Amazonka.Inspector.CreateExclusionsPreview
Description
Starts the generation of an exclusions preview for the specified assessment template. The exclusions preview lists the potential exclusions (ExclusionPreview) that Inspector can detect before it runs the assessment.
Synopsis
- data CreateExclusionsPreview = CreateExclusionsPreview' {}
- newCreateExclusionsPreview :: Text -> CreateExclusionsPreview
- createExclusionsPreview_assessmentTemplateArn :: Lens' CreateExclusionsPreview Text
- data CreateExclusionsPreviewResponse = CreateExclusionsPreviewResponse' {
- httpStatus :: Int
- previewToken :: Text
- newCreateExclusionsPreviewResponse :: Int -> Text -> CreateExclusionsPreviewResponse
- createExclusionsPreviewResponse_httpStatus :: Lens' CreateExclusionsPreviewResponse Int
- createExclusionsPreviewResponse_previewToken :: Lens' CreateExclusionsPreviewResponse Text
Creating a Request
data CreateExclusionsPreview Source #
See: newCreateExclusionsPreview
smart constructor.
Constructors
CreateExclusionsPreview' | |
Fields
|
Instances
newCreateExclusionsPreview Source #
Create a value of CreateExclusionsPreview
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:assessmentTemplateArn:CreateExclusionsPreview'
, createExclusionsPreview_assessmentTemplateArn
- The ARN that specifies the assessment template for which you want to
create an exclusions preview.
Request Lenses
createExclusionsPreview_assessmentTemplateArn :: Lens' CreateExclusionsPreview Text Source #
The ARN that specifies the assessment template for which you want to create an exclusions preview.
Destructuring the Response
data CreateExclusionsPreviewResponse Source #
See: newCreateExclusionsPreviewResponse
smart constructor.
Constructors
CreateExclusionsPreviewResponse' | |
Fields
|
Instances
newCreateExclusionsPreviewResponse Source #
Arguments
:: Int | |
-> Text | |
-> CreateExclusionsPreviewResponse |
Create a value of CreateExclusionsPreviewResponse
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:httpStatus:CreateExclusionsPreviewResponse'
, createExclusionsPreviewResponse_httpStatus
- The response's http status code.
$sel:previewToken:CreateExclusionsPreviewResponse'
, createExclusionsPreviewResponse_previewToken
- Specifies the unique identifier of the requested exclusions preview. You
can use the unique identifier to retrieve the exclusions preview when
running the GetExclusionsPreview API.
Response Lenses
createExclusionsPreviewResponse_httpStatus :: Lens' CreateExclusionsPreviewResponse Int Source #
The response's http status code.
createExclusionsPreviewResponse_previewToken :: Lens' CreateExclusionsPreviewResponse Text Source #
Specifies the unique identifier of the requested exclusions preview. You can use the unique identifier to retrieve the exclusions preview when running the GetExclusionsPreview API.