Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Example policy:
Send events to a custom bus in a different account in Amazon EventBridge
The following example policy grants the account 111122223333 permission to
publish events to the central-event-bus in account 123456789012, but
only for events with a source value set to com.exampleCorp.webStore and a
detail-type set to newOrderCreated.
- JSON
-
-
{
"Version":"2012-10-17",
"Statement": [
{
"Sid": "WebStoreCrossAccountPublish",
"Effect": "Allow",
"Action": [
"events:PutEvents"
],
"Principal": {
"AWS": "arn:aws-cn:iam::123456789012:root"
},
"Resource": "arn:aws-cn:events:us-east-1:123456789012:event-bus/central-event-bus",
"Condition": {
"ForAllValues:StringEquals": {
"events:source": "com.exampleCorp.webStore"
},
"StringEquals": {
"events:detail-type": "newOrderCreated"
}
}
}
]
}