class Amazonite::EventBridge::Condition

Overview

A JSON string which you can use to limit the event bus permissions you are granting to only accounts that fulfill the condition. Currently, the only supported condition is membership in a certain Amazon Web Services organization. The string must contain Type, Key, and Value fields. The Value field specifies the ID of the Amazon Web Services organization. Following is an example value for Condition:

'{"Type" : "StringEquals", "Key": "aws:PrincipalOrgID", "Value": "o-1234567890"}'

Included Modules

Defined in:

eventbridge/condition.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : String, key : String, value : String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[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 key : String #

Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.


[View source]
def key=(key : String) #

Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.


[View source]
def type : String #

Specifies the type of condition. Currently the only supported value is StringEquals.


[View source]
def type=(type : String) #

Specifies the type of condition. Currently the only supported value is StringEquals.


[View source]
def validate! : Nil #

[View source]
def value : String #

Specifies the value for the key. Currently, this must be the ID of the organization.


[View source]
def value=(value : String) #

Specifies the value for the key. Currently, this must be the ID of the organization.


[View source]