Class: Aws::IAM::Types::PolicyRole

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

Overview

Contains information about a role that a managed policy is attached to.

This data type is used as a response element in the ListEntitiesForPolicy operation.

For more information about managed policies, refer to [Managed Policies and Inline Policies] in the *Using IAM* guide.

[1]: docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html

Instance Attribute Summary collapse

Instance Attribute Details

#role_idString

The stable and unique string identifying the role. For more information about IDs, see [IAM Identifiers] in the *IAM User Guide*.

[1]: docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html

Returns:

  • (String)


7238
7239
7240
7241
7242
# File 'lib/aws-sdk-iam/types.rb', line 7238

class PolicyRole < Struct.new(
  :role_name,
  :role_id)
  include Aws::Structure
end

#role_nameString

The name (friendly name, not ARN) identifying the role.

Returns:

  • (String)


7238
7239
7240
7241
7242
# File 'lib/aws-sdk-iam/types.rb', line 7238

class PolicyRole < Struct.new(
  :role_name,
  :role_id)
  include Aws::Structure
end