Class: Aws::IAM::Types::PolicyVersion
- Inherits:
-
Struct
- Object
- Struct
- Aws::IAM::Types::PolicyVersion
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-iam/types.rb
Overview
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 actions.
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
-
#create_date ⇒ Time
The date and time, in [ISO 8601 date-time format], when the policy version was created.
-
#document ⇒ String
The policy document.
-
#is_default_version ⇒ Boolean
Specifies whether the policy version is set as the policy’s default version.
-
#version_id ⇒ String
The identifier for the policy version.
Instance Attribute Details
#create_date ⇒ Time
The date and time, in [ISO 8601 date-time format], when the policy version was created.
6220 6221 6222 6223 6224 6225 6226 |
# File 'lib/aws-sdk-iam/types.rb', line 6220 class PolicyVersion < Struct.new( :document, :version_id, :is_default_version, :create_date) include Aws::Structure end |
#document ⇒ String
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.
6220 6221 6222 6223 6224 6225 6226 |
# File 'lib/aws-sdk-iam/types.rb', line 6220 class PolicyVersion < Struct.new( :document, :version_id, :is_default_version, :create_date) include Aws::Structure end |
#is_default_version ⇒ Boolean
Specifies whether the policy version is set as the policy’s default version.
6220 6221 6222 6223 6224 6225 6226 |
# File 'lib/aws-sdk-iam/types.rb', line 6220 class PolicyVersion < Struct.new( :document, :version_id, :is_default_version, :create_date) include Aws::Structure end |
#version_id ⇒ String
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`.
6220 6221 6222 6223 6224 6225 6226 |
# File 'lib/aws-sdk-iam/types.rb', line 6220 class PolicyVersion < Struct.new( :document, :version_id, :is_default_version, :create_date) include Aws::Structure end |