aws accessanalyzer get-generated-policy

Retrieves the policy that was generated using StartPolicyGeneration

Options

NameDescription
--include-resource-placeholdersThe 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 "*"
--no-include-resource-placeholdersThe 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 "*"
--include-service-level-templateThe level of detail that you want to generate. You can specify whether to generate service-level policies. Access Analyzer uses iam:servicelastaccessed to identify services that have been used recently to create this service-level template
--no-include-service-level-templateThe level of detail that you want to generate. You can specify whether to generate service-level policies. Access Analyzer uses iam:servicelastaccessed to identify services that have been used recently to create this service-level template
--job-id <string>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
--cli-input-json <string>Performs service operation based on the JSON string provided. The JSON string follows the format provided by ``--generate-cli-skeleton``. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally
--generate-cli-skeleton <string>Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value ``input``, prints a sample input JSON that can be used as an argument for ``--cli-input-json``. If provided with the value ``output``, it validates the command inputs and returns a sample output JSON for that command