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

DescribeEventBus

Displays the external AWS accounts that are permitted to write events to your account using your account's event bus, and the associated policy. To enable your account to receive events from other accounts, use PutPermission.

Response Syntax

Copy
{ "Arn": "string", "Name": "string", "Policy": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

Arn

The Amazon Resource Name (ARN) of the account permitted to write events to the current account.

Type: String

Name

The name of the event bus. Currently, this is always default.

Type: String

Policy

The policy that enables the external account to send events to your account.

Type: String

Errors

For information about the errors that are common to all actions, see Common Errors.

InternalException

This exception occurs due to unexpected causes.

HTTP Status Code: 500

ResourceNotFoundException

An entity that you specified does not exist.

HTTP Status Code: 400

Examples

The following example is run in account 444455556666, which has granted permission to AWS account 111122223333 to send events to 444455556666.

Example

Sample Request

Copy
POST / HTTP/1.1 Host: events.<region>.<domain> x-amz-Date: <Date> Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<Signature> User-Agent: <UserAgentString> Content-Type: application/x-amz-json-1.1 Content-Length: <PayloadSizeBytes> Connection: Keep-Alive X-Amz-Target: AWSEvents.DescribeEventBus

Example

Sample Response

Copy
HTTP/1.1 200 OK x-amzn-RequestId: <RequestId> Content-Type: application/x-amz-json-1.1 Content-Length: <PayloadSizeBytes> Date: <Date> { "Policy": { "Version":"2012-10-17", "Statement":[ { "Sid": "mysid", "Effect": "Allow", "Principal":{ "AWS": "arn:aws:iam::111122223333:root" }, "Action":"events:PutEvents", "Resource": "arn:aws:events:us-east-1:444455556666:event-bus/default" } ] }, "Name": "default", "Arn": "arn:aws:events:us-east-1:444455556666:event-bus/default" }

See Also

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