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

Class: Aws::IAM::Types::ManagedPolicyDetail

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Contains information about a managed policy, including the policy's ARN, versions, and the number of principal entities (users, groups, and roles) that the policy is attached to.

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

For more information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide.

Instance Attribute Summary collapse

Instance Attribute Details

#arn ⇒ String

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

For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

Returns:

  • (String) —

    The Amazon Resource Name (ARN).

#attachment_count ⇒ Integer

The number of principal entities (users, groups, and roles) that the policy is attached to.

Returns:

  • (Integer) —

    The number of principal entities (users, groups, and roles) that the policy is attached to.

#create_date ⇒ Time

The date and time, in ISO 8601 date-time format, when the policy was created.

Returns:

  • (Time) —

    The date and time, in [ISO 8601 date-time format][1], when the policy was created.

#default_version_id ⇒ String

The identifier for the version of the policy that is set as the default (operative) version.

For more information about policy versions, see Versioning for Managed Policies in the IAM User Guide.

Returns:

  • (String) —

    The identifier for the version of the policy that is set as the default (operative) version.

#description ⇒ String

A friendly description of the policy.

Returns:

  • (String) —

    A friendly description of the policy.

#is_attachable ⇒ Boolean

Specifies whether the policy can be attached to an IAM user, group, or role.

Returns:

  • (Boolean) —

    Specifies whether the policy can be attached to an IAM user, group, or role.

#path ⇒ String

The path to the policy.

For more information about paths, see IAM Identifiers in the IAM User Guide.

Returns:

  • (String) —

    The path to the policy.

#permissions_boundary_usage_count ⇒ Integer

The number of entities (users and roles) for which the policy is used as the permissions boundary.

For more information about permissions boundaries, see Permissions Boundaries for IAM Identities in the IAM User Guide.

Returns:

  • (Integer) —

    The number of entities (users and roles) for which the policy is used as the permissions boundary.

#policy_id ⇒ String

The stable and unique string identifying the policy.

For more information about IDs, see IAM Identifiers in the IAM User Guide.

Returns:

  • (String) —

    The stable and unique string identifying the policy.

#policy_name ⇒ String

The friendly name (not ARN) identifying the policy.

Returns:

  • (String) —

    The friendly name (not ARN) identifying the policy.

#policy_version_list ⇒ Array<Types::PolicyVersion>

A list containing information about the versions of the policy.

Returns:

#update_date ⇒ Time

The date and time, in ISO 8601 date-time format, when the policy was last updated.

When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.

Returns:

  • (Time) —

    The date and time, in [ISO 8601 date-time format][1], when the policy was last updated.