class Aws::IAM::Types::Policy

Contains information about a managed policy.

This data type is used as a response element in the CreatePolicy, GetPolicy, and ListPolicies 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/UserGuide/policies-managed-vs-inline.html

@!attribute [rw] policy_name

The friendly name (not ARN) identifying the policy.
@return [String]

@!attribute [rw] policy_id

The stable and unique string identifying the policy.

For more information about IDs, see [IAM identifiers][1] in the *IAM
User Guide*.

[1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html
@return [String]

@!attribute [rw] arn

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)][1] in the *Amazon Web Services General Reference*.

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

@!attribute [rw] path

The path to the policy.

For more information about paths, see [IAM identifiers][1] in the
*IAM User Guide*.

[1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html
@return [String]

@!attribute [rw] default_version_id

The identifier for the version of the policy that is set as the
default version.
@return [String]

@!attribute [rw] attachment_count

The number of entities (users, groups, and roles) that the policy is
attached to.
@return [Integer]

@!attribute [rw] permissions_boundary_usage_count

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

For more information about permissions boundaries, see [Permissions
boundaries for IAM identities ][1] in the *IAM User Guide*.

[1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html
@return [Integer]

@!attribute [rw] is_attachable

Specifies whether the policy can be attached to an IAM user, group,
or role.
@return [Boolean]

@!attribute [rw] description

A friendly description of the policy.

This element is included in the response to the GetPolicy operation.
It is not included in the response to the ListPolicies operation.
@return [String]

@!attribute [rw] create_date

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

[1]: http://www.iso.org/iso/iso8601
@return [Time]

@!attribute [rw] update_date

The date and time, in [ISO 8601 date-time format][1], 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.

[1]: http://www.iso.org/iso/iso8601
@return [Time]

@!attribute [rw] tags

A list of tags that are attached to the instance profile. For more
information about tagging, see [Tagging IAM resources][1] in the
*IAM User Guide*.

[1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html
@return [Array<Types::Tag>]

@see docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/Policy AWS API Documentation

Constants

SENSITIVE