class Amazonite::Iam::Policy

Overview

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.

Defined in:

iam/policy.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(policy_name : String | Nil = nil, policy_id : String | Nil = nil, arn : String | Nil = nil, path : String | Nil = nil, default_version_id : String | Nil = nil, attachment_count : Int32 | Nil = nil, permissions_boundary_usage_count : Int32 | Nil = nil, is_attachable : Bool | Nil = nil, description : String | Nil = nil, create_date : Time | Nil = nil, update_date : Time | Nil = nil, tags : Array(Tag) | 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 arn : String | Nil #

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

[View source]
def attachment_count : Int32 | Nil #

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


[View source]
def attachment_count=(attachment_count : Int32 | Nil) #

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


[View source]
def create_date : Time | Nil #

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


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

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


[View source]
def default_version_id : String | Nil #

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


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

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


[View source]
def description : String | Nil #

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.


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

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.


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

See Object#hash(hasher)


def is_attachable : Bool | Nil #

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


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

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


[View source]
def path : String | Nil #

The path to the policy.

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


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

The path to the policy.

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


[View source]
def permissions_boundary_usage_count : Int32 | Nil #

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 in the IAM User Guide.


[View source]
def permissions_boundary_usage_count=(permissions_boundary_usage_count : Int32 | Nil) #

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 in the IAM User Guide.


[View source]
def policy_id : String | Nil #

The stable and unique string identifying the policy.

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


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

The stable and unique string identifying the policy.

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


[View source]
def policy_name : String | Nil #

The friendly name (not ARN) identifying the policy.


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

The friendly name (not ARN) identifying the policy.


[View source]
def tags : Array(Tag) | Nil #

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


[View source]
def tags=(tags : Array(Tag) | Nil) #

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


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

[View source]
def update_date : Time | Nil #

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.


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

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.


[View source]
def validate! : Nil #

[View source]