Skip to content

WebhookStaticTokenAuthConfiguration

Source code in docs_src/capo_eventbridgev2/types/webhook_static_token_auth_configuration.py
class WebhookStaticTokenAuthConfiguration(TypedDict, closed=True):
    token_http_header: "capo_eventbridgev2.types.webhook_header_name.WebhookHeaderName"
    """<p>The name of the header that carries the secret, for example X-Webhook-Secret. Reserved names are rejected: the names EventBridge's edge writes, such as Host and the X-Forwarded-* family, and the hop-by-hop and framing names an HTTP intermediary may rewrite, such as Connection and Content-Length. Authorization is allowed.</p>"""
    secret_value: NotRequired[
        "capo_eventbridgev2.types.webhook_secret_value.WebhookSecretValue"
    ]
    """<p>The token the provider sends in the header. If you omit it, EventBridge generates one. EventBridge stores the token only in AWS Secrets Manager and never returns it, including from DescribeEventSource. EventBridge compares it against the entire header value, so a provider that sends Authorization: Bearer &lt;token&gt; needs SecretValue to include the "Bearer " prefix.</p>"""

secret_value instance-attribute

secret_value: NotRequired[WebhookSecretValue]

The token the provider sends in the header. If you omit it, EventBridge generates one. EventBridge stores the token only in AWS Secrets Manager and never returns it, including from DescribeEventSource. EventBridge compares it against the entire header value, so a provider that sends Authorization: Bearer <token> needs SecretValue to include the "Bearer " prefix.

token_http_header instance-attribute

token_http_header: WebhookHeaderName

The name of the header that carries the secret, for example X-Webhook-Secret. Reserved names are rejected: the names EventBridge's edge writes, such as Host and the X-Forwarded-* family, and the hop-by-hop and framing names an HTTP intermediary may rewrite, such as Connection and Content-Length. Authorization is allowed.