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 policy that was generated using StartPolicyGeneration
.
Synopsis
- data GetGeneratedPolicy = GetGeneratedPolicy' {}
- newGetGeneratedPolicy :: Text -> GetGeneratedPolicy
- getGeneratedPolicy_includeServiceLevelTemplate :: Lens' GetGeneratedPolicy (Maybe Bool)
- getGeneratedPolicy_includeResourcePlaceholders :: Lens' GetGeneratedPolicy (Maybe Bool)
- getGeneratedPolicy_jobId :: Lens' GetGeneratedPolicy Text
- data GetGeneratedPolicyResponse = GetGeneratedPolicyResponse' {}
- newGetGeneratedPolicyResponse :: Int -> GeneratedPolicyResult -> JobDetails -> GetGeneratedPolicyResponse
- getGeneratedPolicyResponse_httpStatus :: Lens' GetGeneratedPolicyResponse Int
- getGeneratedPolicyResponse_generatedPolicyResult :: Lens' GetGeneratedPolicyResponse GeneratedPolicyResult
- getGeneratedPolicyResponse_jobDetails :: Lens' GetGeneratedPolicyResponse JobDetails
Creating a Request
data GetGeneratedPolicy Source #
See: newGetGeneratedPolicy
smart constructor.
GetGeneratedPolicy' | |
|
Instances
newGetGeneratedPolicy Source #
Create a value of GetGeneratedPolicy
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:includeServiceLevelTemplate:GetGeneratedPolicy'
, getGeneratedPolicy_includeServiceLevelTemplate
- The level of detail that you want to generate. You can specify whether
to generate service-level policies.
IAM Access Analyzer uses iam:servicelastaccessed
to identify services
that have been used recently to create this service-level template.
$sel:includeResourcePlaceholders:GetGeneratedPolicy'
, getGeneratedPolicy_includeResourcePlaceholders
- The level of detail that you want to generate. You can specify whether
to generate policies with placeholders for resource ARNs for actions
that support resource level granularity in policies.
For example, in the resource section of a policy, you can receive a
placeholder such as "Resource":"arn:aws:s3:::${BucketName}"
instead of "*"
.
$sel:jobId:GetGeneratedPolicy'
, getGeneratedPolicy_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.
Request Lenses
getGeneratedPolicy_includeServiceLevelTemplate :: Lens' GetGeneratedPolicy (Maybe Bool) Source #
The level of detail that you want to generate. You can specify whether to generate service-level policies.
IAM Access Analyzer uses iam:servicelastaccessed
to identify services
that have been used recently to create this service-level template.
getGeneratedPolicy_includeResourcePlaceholders :: Lens' GetGeneratedPolicy (Maybe Bool) Source #
The level of detail that you want to generate. You can specify whether to generate policies with placeholders for resource ARNs for actions that support resource level granularity in policies.
For example, in the resource section of a policy, you can receive a
placeholder such as "Resource":"arn:aws:s3:::${BucketName}"
instead of "*"
.
getGeneratedPolicy_jobId :: Lens' GetGeneratedPolicy 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.
Destructuring the Response
data GetGeneratedPolicyResponse Source #
See: newGetGeneratedPolicyResponse
smart constructor.
GetGeneratedPolicyResponse' | |
|
Instances
newGetGeneratedPolicyResponse Source #
Create a value of GetGeneratedPolicyResponse
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:GetGeneratedPolicyResponse'
, getGeneratedPolicyResponse_httpStatus
- The response's http status code.
$sel:generatedPolicyResult:GetGeneratedPolicyResponse'
, getGeneratedPolicyResponse_generatedPolicyResult
- A GeneratedPolicyResult
object that contains the generated policies
and associated details.
$sel:jobDetails:GetGeneratedPolicyResponse'
, getGeneratedPolicyResponse_jobDetails
- A GeneratedPolicyDetails
object that contains details about the
generated policy.
Response Lenses
getGeneratedPolicyResponse_httpStatus :: Lens' GetGeneratedPolicyResponse Int Source #
The response's http status code.
getGeneratedPolicyResponse_generatedPolicyResult :: Lens' GetGeneratedPolicyResponse GeneratedPolicyResult Source #
A GeneratedPolicyResult
object that contains the generated policies
and associated details.
getGeneratedPolicyResponse_jobDetails :: Lens' GetGeneratedPolicyResponse JobDetails Source #
A GeneratedPolicyDetails
object that contains details about the
generated policy.