Retrieves the policy that was generated using start_policy_generation
.
See https://www.paws-r-sdk.com/docs/accessanalyzer_get_generated_policy/ for full documentation.
accessanalyzer_get_generated_policy(
jobId,
includeResourcePlaceholders = NULL,
includeServiceLevelTemplate = NULL
)
[required] The JobId
that is returned by the
start_policy_generation
operation. The JobId
can be used with
get_generated_policy
to
retrieve the generated policies or used with
cancel_policy_generation
to
cancel the policy generation request.
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
"*"
.
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.