class Amazonite::Iam::PolicyIdentifier

Overview

Identifies one or more policies as a union type. Specify exactly one of PolicyType, PolicyArn, or InlinePolicyIdentifier to identify policies by their type, by Amazon Resource Name (ARN), or by the name of an inline policy and the entity it is attached to.

Defined in:

iam/policy_identifier.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(policy_type : PolicyIdentifierPolicyType | Nil = nil, policy_arn : String | Nil = nil, inline_policy_identifier : InlinePolicyIdentifierType | 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 hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def inline_policy_identifier : InlinePolicyIdentifierType | Nil #

An inline policy identifier consisting of a policy name and the entity it is attached to. Wildcard characters (* and ?) in the entity name can match multiple entities.


[View source]
def inline_policy_identifier=(inline_policy_identifier : InlinePolicyIdentifierType | Nil) #

An inline policy identifier consisting of a policy name and the entity it is attached to. Wildcard characters (* and ?) in the entity name can match multiple entities.


[View source]
def policy_arn : String | Nil #

The Amazon Resource Name (ARN) of an Amazon Web Services managed policy or a customer managed policy that is attached to an IAM user, group, or role. Wildcard characters are supported in the resource name portion of the ARN to match multiple managed policies: use at most one * (matches any sequence of characters, including none), and any number of ? (each matches exactly one character).

For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.


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

The Amazon Resource Name (ARN) of an Amazon Web Services managed policy or a customer managed policy that is attached to an IAM user, group, or role. Wildcard characters are supported in the resource name portion of the ARN to match multiple managed policies: use at most one * (matches any sequence of characters, including none), and any number of ? (each matches exactly one character).

For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.


[View source]
def policy_type : PolicyIdentifierPolicyType | Nil #

The policy type to identify. All policies of the specified type are matched.


[View source]
def policy_type=(policy_type : PolicyIdentifierPolicyType | Nil) #

The policy type to identify. All policies of the specified type are matched.


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

[View source]
def validate! : Nil #

[View source]