Class: Aws::IAM::Types::AttachedPolicy

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

Overview

Contains information about an attached policy.

An attached policy is a managed policy that has been attached to a user, group, or role. This data type is used as a response element in the [ListAttachedGroupPolicies], [ListAttachedRolePolicies],

ListAttachedUserPolicies], and [GetAccountAuthorizationDetails][4

operations.

For more information about managed policies, refer to [Managed policies and inline policies] in the *IAM User Guide*.

[1]: docs.aws.amazon.com/IAM/latest/APIReference/API_ListAttachedGroupPolicies.html [2]: docs.aws.amazon.com/IAM/latest/APIReference/API_ListAttachedRolePolicies.html [3]: docs.aws.amazon.com/IAM/latest/APIReference/API_ListAttachedUserPolicies.html [4]: docs.aws.amazon.com/IAM/latest/APIReference/API_GetAccountAuthorizationDetails.html [5]: docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#policy_arnString

The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web Services resources.

For more information about ARNs, go to [Amazon Resource Names (ARNs)] in the *Amazon Web Services General Reference*.

[1]: docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html

Returns:

  • (String)


548
549
550
551
552
553
# File 'lib/aws-sdk-iam/types.rb', line 548

class AttachedPolicy < Struct.new(
  :policy_name,
  :policy_arn)
  SENSITIVE = []
  include Aws::Structure
end

#policy_nameString

The friendly name of the attached policy.

Returns:

  • (String)


548
549
550
551
552
553
# File 'lib/aws-sdk-iam/types.rb', line 548

class AttachedPolicy < Struct.new(
  :policy_name,
  :policy_arn)
  SENSITIVE = []
  include Aws::Structure
end