Displays details about an event bus in your account. This can include the external AWS accounts that are permitted to write events to your default event bus, and the associated policy. For custom event buses and partner event buses, it displays the name, ARN, policy, state, and creation time.
To enable your account to receive events from other accounts on its default event bus, use PutPermission.
For more information about partner event buses, see CreateEventBus.
Request Syntax{
"Name": "string
"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
The name or ARN of the event bus to show details for. If you omit this, the default event bus is displayed.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1600.
Pattern: (arn:aws[\w-]*:events:[a-z]+-[a-z]+-[\w-]+:[0-9]{12}:event-bus\/)?[/\.\-_A-Za-z0-9]+
Required: No
{
"Arn": "string",
"CreationTime": number,
"DeadLetterConfig": {
"Arn": "string"
},
"Description": "string",
"KmsKeyIdentifier": "string",
"LastModifiedTime": number,
"LogConfig": {
"IncludeDetail": "string",
"Level": "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.
The Amazon Resource Name (ARN) of the account permitted to write events to the current account.
Type: String
The time the event bus was created.
Type: Timestamp
Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue (DLQ).
For more information, see Using dead-letter queues to process undelivered events in the EventBridge User Guide.
Type: DeadLetterConfig object
The event bus description.
Type: String
Length Constraints: Maximum length of 512.
The identifier of the AWS KMS customer managed key for EventBridge to use to encrypt events on this event bus, if one has been specified.
For more information, see Data encryption in EventBridge in the Amazon EventBridge User Guide.
Type: String
Length Constraints: Maximum length of 2048.
Pattern: ^[a-zA-Z0-9_\-/:]*$
The time the event bus was last modified.
Type: Timestamp
The logging configuration settings for the event bus.
For more information, see Configuring logs for event buses in the EventBridge User Guide.
Type: LogConfig object
The name of the event bus. Currently, this is always default
.
Type: String
The policy that enables the external account to send events to your account.
Type: String
For information about the errors that are common to all actions, see Common Errors.
This exception occurs due to unexpected causes.
HTTP Status Code: 500
An entity that you specified does not exist.
HTTP Status Code: 400
The following example is run in account 444455556666
, which has granted permission to AWS account 111122223333
to send events to 444455556666
.
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
This example illustrates one usage of DescribeEventBus.
Sample ResponseHTTP/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:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4