Interface CfnEventBusPolicy.ConditionProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnEventBusPolicy.ConditionProperty.Jsii$Proxy
Enclosing class:
CfnEventBusPolicy

@Stability(Stable) public static interface CfnEventBusPolicy.ConditionProperty extends software.amazon.jsii.JsiiSerializable
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"}'

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.events.*;
 ConditionProperty conditionProperty = ConditionProperty.builder()
         .key("key")
         .type("type")
         .value("value")
         .build();
 

See Also: