class Amazonite::Iam::PolicyVersion

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 operations.

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

Defined in:

iam/policy_version.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_xml(node : XML::Node) : self #

[View source]
def self.new(document : String | Nil = nil, version_id : String | Nil = nil, is_default_version : Bool | Nil = nil, create_date : Time | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def create_date : Time | Nil #

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


[View source]
def create_date=(create_date : Time | Nil) #

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


[View source]
def document : String | Nil #

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. 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.


[View source]
def document=(document : String | Nil) #

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. 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.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def is_default_version : Bool | Nil #

Specifies whether the policy version is set as the policy's default version.


[View source]
def is_default_version=(is_default_version : Bool | Nil) #

Specifies whether the policy version is set as the policy's default version.


[View source]
def to_query_params(prefix : String) : Array(Tuple(String, String)) #

[View source]
def validate! : Nil #

[View source]
def version_id : String | Nil #

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.


[View source]
def version_id=(version_id : String | Nil) #

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.


[View source]