class Amazonite::Iam::ManagedPolicyDetail

Overview

Contains information about a managed policy, including the policy's ARN, versions, and the number of principal entities (users, groups, and roles) that the policy is attached to.

This data type is used as a response element in the GetAccountAuthorizationDetails operation.

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

Defined in:

iam/managed_policy_detail.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, policy_version_list : Array(PolicyVersion) | 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 principal entities (users, groups, and roles) that the policy is attached to.


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

The number of principal 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 (operative) version.

For more information about policy versions, see Versioning for managed policies in the IAM User Guide.


[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 (operative) version.

For more information about policy versions, see Versioning for managed policies in the IAM User Guide.


[View source]
def description : String | Nil #

A friendly description of the policy.


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

A friendly description of the policy.


[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 as 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 as 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 policy_version_list : Array(PolicyVersion) | Nil #

A list containing information about the versions of the policy.


[View source]
def policy_version_list=(policy_version_list : Array(PolicyVersion) | Nil) #

A list containing information about the versions of the policy.


[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]