class Aws::IAM::Types::PolicyVersion

Contains information about a version of a managed policy.

This data type is used as a response element in the CreatePolicyVersion, GetPolicyVersion, ListPolicyVersions, and GetAccountAuthorizationDetails 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] document

The policy document.

The policy document is returned in the response to the
GetPolicyVersion and GetAccountAuthorizationDetails operations. It
is not returned in the response to the CreatePolicyVersion or
ListPolicyVersions operations.

The policy document returned in this structure is URL-encoded
compliant with [RFC 3986][1]. You can use a URL decoding method to
convert the policy back to plain JSON text. For example, if you use
Java, you can use the `decode` method of the `java.net.URLDecoder`
utility class in the Java SDK. Other languages and SDKs provide
similar functionality.

[1]: https://tools.ietf.org/html/rfc3986
@return [String]

@!attribute [rw] version_id

The identifier for the policy version.

Policy version identifiers always begin with `v` (always lowercase).
When a policy is created, the first policy version is `v1`.
@return [String]

@!attribute [rw] is_default_version

Specifies whether the policy version is set as the policy's default
version.
@return [Boolean]

@!attribute [rw] create_date

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

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

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

Constants

SENSITIVE