class Amazonite::Iam::ContextEntry

Overview

Contains information about a condition context key. It includes the name of the key and specifies the value (or values, if the context key supports multiple values) to use in the simulation. This information is used when evaluating the Condition elements of the input policies.

This data type is used as an input parameter to SimulateCustomPolicy and SimulatePrincipalPolicy.

Defined in:

iam/context_entry.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(context_key_name : String | Nil = nil, context_key_values : Array(String) | Nil = nil, context_key_type : ContextKeyTypeEnum | 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 context_key_name : String | Nil #

The full name of a condition context key, including the service prefix. For example, aws:SourceIp or s3:VersionId.


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

The full name of a condition context key, including the service prefix. For example, aws:SourceIp or s3:VersionId.


[View source]
def context_key_type : ContextKeyTypeEnum | Nil #

The data type of the value (or values) specified in the ContextKeyValues parameter.


[View source]
def context_key_type=(context_key_type : ContextKeyTypeEnum | Nil) #

The data type of the value (or values) specified in the ContextKeyValues parameter.


[View source]
def context_key_values : Array(String) | Nil #

The value (or values, if the condition context key supports multiple values) to provide to the simulation when the key is referenced by a Condition element in an input policy.


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

The value (or values, if the condition context key supports multiple values) to provide to the simulation when the key is referenced by a Condition element in an input policy.


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

See Object#hash(hasher)


def to_query_params(prefix : String) : Array(Tuple(String, String)) #

[View source]
def validate! : Nil #

[View source]