Amazon CloudWatch Events
API Reference (API Version 2015-10-07)

Condition

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 AWS organization. The string must contain Type, Key, and Value fields. The Value field specifies the ID of the AWS organization. Following is an example value for Condition:

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

Contents

Key

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

Type: String

Required: Yes

Type

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

Type: String

Required: Yes

Value

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

Type: String

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

On this page: