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 |
Starts the policy generation request.
Synopsis
- data StartPolicyGeneration = StartPolicyGeneration' {}
- newStartPolicyGeneration :: PolicyGenerationDetails -> StartPolicyGeneration
- startPolicyGeneration_clientToken :: Lens' StartPolicyGeneration (Maybe Text)
- startPolicyGeneration_cloudTrailDetails :: Lens' StartPolicyGeneration (Maybe CloudTrailDetails)
- startPolicyGeneration_policyGenerationDetails :: Lens' StartPolicyGeneration PolicyGenerationDetails
- data StartPolicyGenerationResponse = StartPolicyGenerationResponse' {
- httpStatus :: Int
- jobId :: Text
- newStartPolicyGenerationResponse :: Int -> Text -> StartPolicyGenerationResponse
- startPolicyGenerationResponse_httpStatus :: Lens' StartPolicyGenerationResponse Int
- startPolicyGenerationResponse_jobId :: Lens' StartPolicyGenerationResponse Text
Creating a Request
data StartPolicyGeneration Source #
See: newStartPolicyGeneration
smart constructor.
StartPolicyGeneration' | |
|
Instances
newStartPolicyGeneration Source #
Create a value of StartPolicyGeneration
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:StartPolicyGeneration'
, startPolicyGeneration_clientToken
- A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request. Idempotency ensures that an API request
completes only once. With an idempotent request, if the original request
completes successfully, the subsequent retries with the same client
token return the result from the original successful request and they
have no additional effect.
If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.
$sel:cloudTrailDetails:StartPolicyGeneration'
, startPolicyGeneration_cloudTrailDetails
- A CloudTrailDetails
object that contains details about a Trail
that
you want to analyze to generate policies.
$sel:policyGenerationDetails:StartPolicyGeneration'
, startPolicyGeneration_policyGenerationDetails
- Contains the ARN of the IAM entity (user or role) for which you are
generating a policy.
Request Lenses
startPolicyGeneration_clientToken :: Lens' StartPolicyGeneration (Maybe Text) Source #
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect.
If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.
startPolicyGeneration_cloudTrailDetails :: Lens' StartPolicyGeneration (Maybe CloudTrailDetails) Source #
A CloudTrailDetails
object that contains details about a Trail
that
you want to analyze to generate policies.
startPolicyGeneration_policyGenerationDetails :: Lens' StartPolicyGeneration PolicyGenerationDetails Source #
Contains the ARN of the IAM entity (user or role) for which you are generating a policy.
Destructuring the Response
data StartPolicyGenerationResponse Source #
See: newStartPolicyGenerationResponse
smart constructor.
StartPolicyGenerationResponse' | |
|
Instances
newStartPolicyGenerationResponse Source #
:: Int | |
-> Text | |
-> StartPolicyGenerationResponse |
Create a value of StartPolicyGenerationResponse
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:StartPolicyGenerationResponse'
, startPolicyGenerationResponse_httpStatus
- The response's http status code.
$sel:jobId:StartPolicyGenerationResponse'
, startPolicyGenerationResponse_jobId
- The JobId
that is returned by the StartPolicyGeneration
operation.
The JobId
can be used with GetGeneratedPolicy
to retrieve the
generated policies or used with CancelPolicyGeneration
to cancel the
policy generation request.
Response Lenses
startPolicyGenerationResponse_httpStatus :: Lens' StartPolicyGenerationResponse Int Source #
The response's http status code.
startPolicyGenerationResponse_jobId :: Lens' StartPolicyGenerationResponse Text Source #
The JobId
that is returned by the StartPolicyGeneration
operation.
The JobId
can be used with GetGeneratedPolicy
to retrieve the
generated policies or used with CancelPolicyGeneration
to cancel the
policy generation request.