Class: Aws::IAM::Types::GetRolePolicyResponse

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

Overview

Contains the response to a successful GetRolePolicy request.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#policy_documentString

The policy document.

IAM stores policies in JSON format. However, resources that were created using CloudFormation templates can be formatted in YAML. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.

Returns:

  • (String)


3792
3793
3794
3795
3796
3797
3798
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 3792

class GetRolePolicyResponse < Struct.new(
  :role_name,
  :policy_name,
  :policy_document)
  SENSITIVE = []
  include Aws::Structure
end

#policy_nameString

The name of the policy.

Returns:

  • (String)


3792
3793
3794
3795
3796
3797
3798
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 3792

class GetRolePolicyResponse < Struct.new(
  :role_name,
  :policy_name,
  :policy_document)
  SENSITIVE = []
  include Aws::Structure
end

#role_nameString

The role the policy is associated with.

Returns:

  • (String)


3792
3793
3794
3795
3796
3797
3798
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 3792

class GetRolePolicyResponse < Struct.new(
  :role_name,
  :policy_name,
  :policy_document)
  SENSITIVE = []
  include Aws::Structure
end