View a markdown version of this page

WebhookEventsSourceConfiguration - Amazon EventBridge Custom Event Bus

WebhookEventsSourceConfiguration

Configuration for receiving events from an external provider, such as a SaaS application, that sends them as HTTPS POST requests to a webhook URL. The provider authenticates with an HTTP scheme instead of AWS credentials.

Contents

AuthConfiguration

How the provider authenticates its requests. Exactly one authentication type must be set, and it can't be changed after the EventSource is created.

Type: WebhookAuthConfiguration object

Note: This object is a Union. Only one member of this object can be specified or returned.

Required: Yes

RoleArn

IAM role the service assumes to put the webhook's events on the event bus. Must belong to the calling account.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1600.

Pattern: arn:aws(-[a-z0-9]+)*:iam::\d{12}:role\/[\w+=,.@/-]+

Required: Yes

DeduplicationConfiguration

Optional. Deduplicates this EventSource's events on the event bus. Omit it to deduplicate nothing.

Type: WebhookDeduplicationConfiguration object

Required: No

KmsKeyIdentifier

Optional. The AWS KMS key that encrypts the EventSource's secret in AWS Secrets Manager. Omit it to encrypt the secret with the AWS managed key aws/secretsmanager. A key you supply must be an enabled customer managed key in your account and Region. Changing it re-encrypts the secret under the new key. The previous key can still decrypt the stored versions until the credential is next rotated.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 2048.

Pattern: [a-zA-Z0-9_\-/:]*

Required: No

LogConfiguration

Optional. Controls the log records EventBridge delivers for this EventSource's webhook requests. Omit it to deliver no logs. Logs are delivered to the destinations you configure through Amazon CloudWatch Logs log delivery.

Type: LogConfiguration object

Required: No

MetadataHttpHeaders

The HTTP request headers to add to each event's metadata, up to 20. Header names are case-insensitive and can't repeat. Each header is added under its lowercase name. Omit the list to add no headers. Headers that carry credentials or that describe the network path, and the header that carries the static token, can't be listed.

Type: Array of strings

Array Members: Minimum number of 0 items. Maximum number of 20 items.

Length Constraints: Minimum length of 1. Maximum length of 128.

Pattern: [!#$%&'*+\-.^_`|~0-9A-Za-z]+

Required: No

See Also

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