You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::IAM::Types::GetGroupPolicyResponse

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

Overview

Contains the response to a successful GetGroupPolicy request.

Instance Attribute Summary collapse

Instance Attribute Details

#group_nameString

The group the policy is associated with.

Returns:

  • (String)


3382
3383
3384
3385
3386
3387
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 3382

class GetGroupPolicyResponse < Struct.new(
  :group_name,
  :policy_name,
  :policy_document)
  include Aws::Structure
end

#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)


3382
3383
3384
3385
3386
3387
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 3382

class GetGroupPolicyResponse < Struct.new(
  :group_name,
  :policy_name,
  :policy_document)
  include Aws::Structure
end

#policy_nameString

The name of the policy.

Returns:

  • (String)


3382
3383
3384
3385
3386
3387
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 3382

class GetGroupPolicyResponse < Struct.new(
  :group_name,
  :policy_name,
  :policy_document)
  include Aws::Structure
end