Class: Aws::CloudWatchEvents::Types::Condition
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatchEvents::Types::Condition
- Defined in:
- gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb
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"}'
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#key ⇒ String
Specifies the key for the condition.
-
#type ⇒ String
Specifies the type of condition.
-
#value ⇒ String
Specifies the value for the key.
Instance Attribute Details
#key ⇒ String
Specifies the key for the condition. Currently the only supported
key is aws:PrincipalOrgID
.
341 342 343 344 345 346 347 |
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 341 class Condition < Struct.new( :type, :key, :value) SENSITIVE = [] include Aws::Structure end |
#type ⇒ String
Specifies the type of condition. Currently the only supported value
is StringEquals
.
341 342 343 344 345 346 347 |
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 341 class Condition < Struct.new( :type, :key, :value) SENSITIVE = [] include Aws::Structure end |
#value ⇒ String
Specifies the value for the key. Currently, this must be the ID of the organization.
341 342 343 344 345 346 347 |
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 341 class Condition < Struct.new( :type, :key, :value) SENSITIVE = [] include Aws::Structure end |