View a markdown version of this page

WebhookHmacAuthConfiguration - Amazon EventBridge Custom Event Bus

WebhookHmacAuthConfiguration

The provider signs each request with a hash-based message authentication code (HMAC) of the secret. Amazon EventBridge accepts the request if any signature in SignatureHttpHeader matches.

Contents

Algorithm

The hash algorithm the provider uses to compute the signature.

Type: String

Valid Values: SHA256 | SHA1

Required: Yes

Encoding

How the provider encodes the signature in the header.

Type: String

Valid Values: HEX | BASE64

Required: Yes

SignatureHttpHeader

The name of the header that carries the signature, for example X-Hub-Signature-256. When TimestampHttpHeader names the same header, Delimiter, SignaturePrefix, and TimestampPrefix are all required.

Type: String

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

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

Required: Yes

SignedMessageComposition

The provider assembles the message it signs from the request in one of the following ways:

  • BODY – The request body alone.

  • TIMESTAMP_DOT_BODY – <timestamp>.<body>. Requires TimestampHttpHeader.

  • MESSAGE_ID_DOT_TIMESTAMP_DOT_BODY – <messageId>.<timestamp>.<body>, as in the Standard Webhooks specification. Requires TimestampHttpHeader and MessageIdHttpHeader.

Type: String

Valid Values: BODY | TIMESTAMP_DOT_BODY | MESSAGE_ID_DOT_TIMESTAMP_DOT_BODY

Required: Yes

Delimiter

The separator between parts of the signature header value, for example a comma for a header value of t=1727816400,v1=<signature>, or a space when the header carries several signatures. Required when TimestampHttpHeader is the same header as SignatureHttpHeader.

Type: String

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

Pattern: [\u0020-\u007E]+

Required: No

MessageIdHttpHeader

The name of the header that carries the message ID. Required when SignedMessageComposition is MESSAGE_ID_DOT_TIMESTAMP_DOT_BODY.

Type: String

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

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

Required: No

SecretEncoding

How the secret is encoded. RAW uses the secret's characters as the signing key. BASE64 decodes the secret first, as providers that follow the Standard Webhooks specification require. The default is RAW.

Type: String

Valid Values: RAW | BASE64

Required: No

SecretValue

The signing key shared with the provider. If you omit it, EventBridge generates one. EventBridge stores the key only in AWS Secrets Manager and never returns it, including from DescribeEventSource.

Type: String

Length Constraints: Minimum length of 6. Maximum length of 512.

Required: No

SignaturePrefix

The text that precedes the signature in the header value, for example sha256=. Required when TimestampHttpHeader is the same header as SignatureHttpHeader.

Type: String

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

Pattern: [\u0020-\u007E]+

Required: No

TimestampHttpHeader

The name of the header that carries the request timestamp. Required when SignedMessageComposition is TIMESTAMP_DOT_BODY or MESSAGE_ID_DOT_TIMESTAMP_DOT_BODY, or when TimestampToleranceInSeconds is set.

Type: String

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

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

Required: No

TimestampPrefix

The text that precedes the timestamp in the header value, for example t=. Required when TimestampHttpHeader is the same header as SignatureHttpHeader.

Type: String

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

Pattern: [\u0020-\u007E]+

Required: No

TimestampToleranceInSeconds

The maximum difference, in seconds, allowed between the request timestamp and the time EventBridge receives the request. Requests outside this window are rejected. The default is 300 seconds. Requires TimestampHttpHeader.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 900.

Required: No

See Also

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