class
Amazonite::EventBridge::Condition
- Amazonite::EventBridge::Condition
- Reference
- Object
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
- JSON::Serializable
Defined in:
eventbridge/condition.crConstructors
- .new(type : String, key : String, value : String)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#key : String
Specifies the key for the condition.
-
#key=(key : String)
Specifies the key for the condition.
-
#type : String
Specifies the type of condition.
-
#type=(type : String)
Specifies the type of condition.
- #validate! : Nil
-
#value : String
Specifies the value for the key.
-
#value=(value : String)
Specifies the value for the key.
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.
Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.
Specifies the type of condition. Currently the only supported value is StringEquals.
Specifies the type of condition. Currently the only supported value is StringEquals.
Specifies the value for the key. Currently, this must be the ID of the organization.
Specifies the value for the key. Currently, this must be the ID of the organization.