Class: Aws::AccessAnalyzer::Types::StartPolicyGenerationRequest

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 StartPolicyGenerationRequest data as a hash:

{
  client_token: "String",
  cloud_trail_details: {
    access_role: "RoleArn", # required
    end_time: Time.now,
    start_time: Time.now, # required
    trails: [ # required
      {
        all_regions: false,
        cloud_trail_arn: "CloudTrailArn", # required
        regions: ["String"],
      },
    ],
  },
  policy_generation_details: { # required
    principal_arn: "PrincipalArn", # required
  },
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#client_tokenString

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect.

If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.

A suitable default value is auto-generated. You should normally not need to pass this option.

Returns:

  • (String)


3061
3062
3063
3064
3065
3066
3067
# File 'gems/aws-sdk-accessanalyzer/lib/aws-sdk-accessanalyzer/types.rb', line 3061

class StartPolicyGenerationRequest < Struct.new(
  :client_token,
  :cloud_trail_details,
  :policy_generation_details)
  SENSITIVE = []
  include Aws::Structure
end

#cloud_trail_detailsTypes::CloudTrailDetails

A CloudTrailDetails object that contains details about a Trail that you want to analyze to generate policies.



3061
3062
3063
3064
3065
3066
3067
# File 'gems/aws-sdk-accessanalyzer/lib/aws-sdk-accessanalyzer/types.rb', line 3061

class StartPolicyGenerationRequest < Struct.new(
  :client_token,
  :cloud_trail_details,
  :policy_generation_details)
  SENSITIVE = []
  include Aws::Structure
end

#policy_generation_detailsTypes::PolicyGenerationDetails

Contains the ARN of the IAM entity (user or role) for which you are generating a policy.



3061
3062
3063
3064
3065
3066
3067
# File 'gems/aws-sdk-accessanalyzer/lib/aws-sdk-accessanalyzer/types.rb', line 3061

class StartPolicyGenerationRequest < Struct.new(
  :client_token,
  :cloud_trail_details,
  :policy_generation_details)
  SENSITIVE = []
  include Aws::Structure
end