accessanalyzer_get_generated_policy: Retrieves the policy that was generated using...

View source: R/accessanalyzer_operations.R

accessanalyzer_get_generated_policyR Documentation

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.


paws.security.identity documentation built on Sept. 12, 2024, 6:30 a.m.