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 |
Creates an access preview that allows you to preview IAM Access Analyzer findings for your resource before deploying resource permissions.
Synopsis
- data CreateAccessPreview = CreateAccessPreview' {}
- newCreateAccessPreview :: Text -> CreateAccessPreview
- createAccessPreview_clientToken :: Lens' CreateAccessPreview (Maybe Text)
- createAccessPreview_analyzerArn :: Lens' CreateAccessPreview Text
- createAccessPreview_configurations :: Lens' CreateAccessPreview (HashMap Text Configuration)
- data CreateAccessPreviewResponse = CreateAccessPreviewResponse' {
- httpStatus :: Int
- id :: Text
- newCreateAccessPreviewResponse :: Int -> Text -> CreateAccessPreviewResponse
- createAccessPreviewResponse_httpStatus :: Lens' CreateAccessPreviewResponse Int
- createAccessPreviewResponse_id :: Lens' CreateAccessPreviewResponse Text
Creating a Request
data CreateAccessPreview Source #
See: newCreateAccessPreview
smart constructor.
CreateAccessPreview' | |
|
Instances
newCreateAccessPreview Source #
Create a value of CreateAccessPreview
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:clientToken:CreateAccessPreview'
, createAccessPreview_clientToken
- A client token.
$sel:analyzerArn:CreateAccessPreview'
, createAccessPreview_analyzerArn
- The
ARN of the account analyzer
used to generate the access preview. You can only create an access
preview for analyzers with an Account
type and Active
status.
$sel:configurations:CreateAccessPreview'
, createAccessPreview_configurations
- Access control configuration for your resource that is used to generate
the access preview. The access preview includes findings for external
access allowed to the resource with the proposed access control
configuration. The configuration must contain exactly one element.
Request Lenses
createAccessPreview_clientToken :: Lens' CreateAccessPreview (Maybe Text) Source #
A client token.
createAccessPreview_analyzerArn :: Lens' CreateAccessPreview Text Source #
The
ARN of the account analyzer
used to generate the access preview. You can only create an access
preview for analyzers with an Account
type and Active
status.
createAccessPreview_configurations :: Lens' CreateAccessPreview (HashMap Text Configuration) Source #
Access control configuration for your resource that is used to generate the access preview. The access preview includes findings for external access allowed to the resource with the proposed access control configuration. The configuration must contain exactly one element.
Destructuring the Response
data CreateAccessPreviewResponse Source #
See: newCreateAccessPreviewResponse
smart constructor.
CreateAccessPreviewResponse' | |
|
Instances
newCreateAccessPreviewResponse Source #
:: Int | |
-> Text | |
-> CreateAccessPreviewResponse |
Create a value of CreateAccessPreviewResponse
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:CreateAccessPreviewResponse'
, createAccessPreviewResponse_httpStatus
- The response's http status code.
$sel:id:CreateAccessPreviewResponse'
, createAccessPreviewResponse_id
- The unique ID for the access preview.
Response Lenses
createAccessPreviewResponse_httpStatus :: Lens' CreateAccessPreviewResponse Int Source #
The response's http status code.
createAccessPreviewResponse_id :: Lens' CreateAccessPreviewResponse Text Source #
The unique ID for the access preview.