Skip to content

WebhookHmacAuthConfiguration

Source code in docs_src/capo_eventbridgev2/types/webhook_hmac_auth_configuration.py
class WebhookHmacAuthConfiguration(TypedDict, closed=True):
    algorithm: "capo_eventbridgev2.types.webhook_hmac_algorithm.WebhookHmacAlgorithm"
    """<p>The hash algorithm the provider uses to compute the signature.</p>"""
    encoding: "capo_eventbridgev2.types.webhook_hmac_encoding.WebhookHmacEncoding"
    """<p>How the provider encodes the signature in the header.</p>"""
    signature_http_header: (
        "capo_eventbridgev2.types.webhook_header_name.WebhookHeaderName"
    )
    """<p>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. Reserved names are rejected, as described on StaticTokenAuthConfiguration's TokenHttpHeader.</p>"""
    signature_prefix: NotRequired[
        "capo_eventbridgev2.types.webhook_signature_prefix.WebhookSignaturePrefix"
    ]
    """<p>The text that precedes the signature in the header value, for example sha256=. Required when TimestampHttpHeader is the same header as SignatureHttpHeader.</p>"""
    delimiter: NotRequired[
        "capo_eventbridgev2.types.webhook_delimiter.WebhookDelimiter"
    ]
    """<p>The separator between parts of the signature header value, for example a comma for a header value of t=1727816400,v1=&lt;signature&gt;, or a space when the header carries several signatures. Required when TimestampHttpHeader is the same header as SignatureHttpHeader.</p>"""
    timestamp_http_header: NotRequired[
        "capo_eventbridgev2.types.webhook_header_name.WebhookHeaderName"
    ]
    """<p>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. Not allowed when SignedMessageComposition is BODY, because BODY does not sign the timestamp. Reserved names are rejected, as described on StaticTokenAuthConfiguration's TokenHttpHeader.</p>"""
    timestamp_prefix: NotRequired[
        "capo_eventbridgev2.types.webhook_timestamp_prefix.WebhookTimestampPrefix"
    ]
    """<p>The text that precedes the timestamp in the header value, for example t=. Required when TimestampHttpHeader is the same header as SignatureHttpHeader.</p>"""
    timestamp_tolerance_in_seconds: NotRequired[
        "capo_eventbridgev2.types.webhook_timestamp_tolerance_in_seconds.WebhookTimestampToleranceInSeconds"
    ]
    """<p>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. Not allowed when SignedMessageComposition is BODY, because BODY does not sign the timestamp.</p>"""
    message_id_http_header: NotRequired[
        "capo_eventbridgev2.types.webhook_header_name.WebhookHeaderName"
    ]
    """<p>The name of the header that carries the message ID. Required when SignedMessageComposition is MESSAGE_ID_DOT_TIMESTAMP_DOT_BODY. Requests whose message ID contains a period (.) are rejected. Reserved names are rejected, as described on StaticTokenAuthConfiguration's TokenHttpHeader.</p>"""
    signed_message_composition: "capo_eventbridgev2.types.webhook_signed_message_composition.WebhookSignedMessageComposition"
    """<p>How the provider assembles the message it signs from the request.</p> <ul> <li> <p>BODY - The request body alone. BODY provides no replay protection.</p> </li> <li> <p>TIMESTAMP_DOT_BODY - &lt;timestamp&gt;.&lt;body&gt;. Requires TimestampHttpHeader.</p> </li> <li> <p>MESSAGE_ID_DOT_TIMESTAMP_DOT_BODY - &lt;messageId&gt;.&lt;timestamp&gt;.&lt;body&gt;, as in the Standard Webhooks specification. Requires TimestampHttpHeader and MessageIdHttpHeader.</p> </li> </ul>"""
    secret_value: NotRequired[
        "capo_eventbridgev2.types.webhook_secret_value.WebhookSecretValue"
    ]
    """<p>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. The key must be 16 to 512 bytes; with BASE64 SecretEncoding, this is measured after decoding.</p>"""
    secret_encoding: NotRequired[
        "capo_eventbridgev2.types.webhook_secret_encoding.WebhookSecretEncoding"
    ]
    """<p>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.</p>"""

algorithm instance-attribute

The hash algorithm the provider uses to compute the signature.

delimiter instance-attribute

delimiter: NotRequired[WebhookDelimiter]

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.

encoding instance-attribute

How the provider encodes the signature in the header.

message_id_http_header instance-attribute

message_id_http_header: NotRequired[WebhookHeaderName]

The name of the header that carries the message ID. Required when SignedMessageComposition is MESSAGE_ID_DOT_TIMESTAMP_DOT_BODY. Requests whose message ID contains a period (.) are rejected. Reserved names are rejected, as described on StaticTokenAuthConfiguration's TokenHttpHeader.

secret_encoding instance-attribute

secret_encoding: NotRequired[WebhookSecretEncoding]

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.

secret_value instance-attribute

secret_value: NotRequired[WebhookSecretValue]

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. The key must be 16 to 512 bytes; with BASE64 SecretEncoding, this is measured after decoding.

signature_http_header instance-attribute

signature_http_header: WebhookHeaderName

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. Reserved names are rejected, as described on StaticTokenAuthConfiguration's TokenHttpHeader.

signature_prefix instance-attribute

signature_prefix: NotRequired[WebhookSignaturePrefix]

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

signed_message_composition instance-attribute

signed_message_composition: WebhookSignedMessageComposition

How the provider assembles the message it signs from the request.

  • BODY - The request body alone. BODY provides no replay protection.

  • 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.

timestamp_http_header instance-attribute

timestamp_http_header: NotRequired[WebhookHeaderName]

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. Not allowed when SignedMessageComposition is BODY, because BODY does not sign the timestamp. Reserved names are rejected, as described on StaticTokenAuthConfiguration's TokenHttpHeader.

timestamp_prefix instance-attribute

timestamp_prefix: NotRequired[WebhookTimestampPrefix]

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

timestamp_tolerance_in_seconds instance-attribute

timestamp_tolerance_in_seconds: NotRequired[WebhookTimestampToleranceInSeconds]

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. Not allowed when SignedMessageComposition is BODY, because BODY does not sign the timestamp.