| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AccessAnalyzer.GetGeneratedPolicy
Description
Retrieves the policy that was generated using StartPolicyGeneration.
Synopsis
- data GetGeneratedPolicy = GetGeneratedPolicy' {}
- newGetGeneratedPolicy :: Text -> GetGeneratedPolicy
- getGeneratedPolicy_includeResourcePlaceholders :: Lens' GetGeneratedPolicy (Maybe Bool)
- getGeneratedPolicy_includeServiceLevelTemplate :: Lens' GetGeneratedPolicy (Maybe Bool)
- getGeneratedPolicy_jobId :: Lens' GetGeneratedPolicy Text
- data GetGeneratedPolicyResponse = GetGeneratedPolicyResponse' {}
- newGetGeneratedPolicyResponse :: Int -> JobDetails -> GeneratedPolicyResult -> GetGeneratedPolicyResponse
- getGeneratedPolicyResponse_httpStatus :: Lens' GetGeneratedPolicyResponse Int
- getGeneratedPolicyResponse_jobDetails :: Lens' GetGeneratedPolicyResponse JobDetails
- getGeneratedPolicyResponse_generatedPolicyResult :: Lens' GetGeneratedPolicyResponse GeneratedPolicyResult
Creating a Request
data GetGeneratedPolicy Source #
See: newGetGeneratedPolicy smart constructor.
Constructors
| GetGeneratedPolicy' | |
Fields
| |
Instances
newGetGeneratedPolicy Source #
Arguments
| :: Text | |
| -> GetGeneratedPolicy |
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: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: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.
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_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_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_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.
Constructors
| GetGeneratedPolicyResponse' | |
Fields
| |
Instances
newGetGeneratedPolicyResponse Source #
Arguments
| :: Int | |
| -> JobDetails | |
| -> GeneratedPolicyResult | |
| -> GetGeneratedPolicyResponse |
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:jobDetails:GetGeneratedPolicyResponse', getGeneratedPolicyResponse_jobDetails - A GeneratedPolicyDetails object that contains details about the
generated policy.
$sel:generatedPolicyResult:GetGeneratedPolicyResponse', getGeneratedPolicyResponse_generatedPolicyResult - A GeneratedPolicyResult object that contains the generated policies
and associated details.
Response Lenses
getGeneratedPolicyResponse_httpStatus :: Lens' GetGeneratedPolicyResponse Int Source #
The response's http status code.
getGeneratedPolicyResponse_jobDetails :: Lens' GetGeneratedPolicyResponse JobDetails Source #
A GeneratedPolicyDetails object that contains details about the
generated policy.
getGeneratedPolicyResponse_generatedPolicyResult :: Lens' GetGeneratedPolicyResponse GeneratedPolicyResult Source #
A GeneratedPolicyResult object that contains the generated policies
and associated details.