Learn R Programming

paws.security.identity (version 0.4.0)

accessanalyzer_get_generated_policy: Retrieves the policy that was generated using StartPolicyGeneration

Description

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.

Usage

accessanalyzer_get_generated_policy(
  jobId,
  includeResourcePlaceholders = NULL,
  includeServiceLevelTemplate = NULL
)

Arguments

jobId

[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.

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 "*".

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.