Condition
import type { Condition } from "https://aws-api.deno.dev/v0.4/services/eventbridge.ts?docs=full";
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"}'
interface Condition {
Key: string;
Type: string;
Value: string;
}