Class: Aws::AccessAnalyzer::Types::GetGeneratedPolicyRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-accessanalyzer/lib/aws-sdk-accessanalyzer/types.rb

Overview

Note:

When making an API call, you may pass GetGeneratedPolicyRequest data as a hash:

{
  include_resource_placeholders: false,
  include_service_level_template: false,
  job_id: "JobId", # required
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#include_resource_placeholdersBoolean

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

Returns:

  • (Boolean)


1581
1582
1583
1584
1585
1586
1587
# File 'gems/aws-sdk-accessanalyzer/lib/aws-sdk-accessanalyzer/types.rb', line 1581

class GetGeneratedPolicyRequest < Struct.new(
  :include_resource_placeholders,
  :include_service_level_template,
  :job_id)
  SENSITIVE = []
  include Aws::Structure
end

#include_service_level_templateBoolean

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.

Returns:

  • (Boolean)


1581
1582
1583
1584
1585
1586
1587
# File 'gems/aws-sdk-accessanalyzer/lib/aws-sdk-accessanalyzer/types.rb', line 1581

class GetGeneratedPolicyRequest < Struct.new(
  :include_resource_placeholders,
  :include_service_level_template,
  :job_id)
  SENSITIVE = []
  include Aws::Structure
end

#job_idString

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.

Returns:

  • (String)


1581
1582
1583
1584
1585
1586
1587
# File 'gems/aws-sdk-accessanalyzer/lib/aws-sdk-accessanalyzer/types.rb', line 1581

class GetGeneratedPolicyRequest < Struct.new(
  :include_resource_placeholders,
  :include_service_level_template,
  :job_id)
  SENSITIVE = []
  include Aws::Structure
end