AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::IAM::Types::GetUserPolicyResponse

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

Overview

Contains the response to a successful GetUserPolicy 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 AWS CloudFormation templates can be formatted in YAML. AWS CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.

Returns:

  • (String)


4620
4621
4622
4623
4624
4625
4626
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 4620

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

#policy_nameString

The name of the policy.

Returns:

  • (String)


4620
4621
4622
4623
4624
4625
4626
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 4620

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

#user_nameString

The user the policy is associated with.

Returns:

  • (String)


4620
4621
4622
4623
4624
4625
4626
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 4620

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