| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# File generated from our OpenAPI spec |
| 3 |
from typing import Dict, List |
| 4 |
from typing_extensions import Literal, NotRequired, TypedDict |
| 5 |
|
| 6 |
|
| 7 |
class EventDestinationCreateParams(TypedDict): |
| 8 |
description: NotRequired[str] |
| 9 |
""" |
| 10 |
An optional description of what the event destination is used for. |
| 11 |
""" |
| 12 |
enabled_events: List[str] |
| 13 |
""" |
| 14 |
The list of events to enable for this endpoint. |
| 15 |
""" |
| 16 |
event_payload: Literal["snapshot", "thin"] |
| 17 |
""" |
| 18 |
Payload type of events being subscribed to. |
| 19 |
""" |
| 20 |
events_from: NotRequired[List[Literal["other_accounts", "self"]]] |
| 21 |
""" |
| 22 |
Where events should be routed from. |
| 23 |
""" |
| 24 |
include: NotRequired[ |
| 25 |
List[ |
| 26 |
Literal["webhook_endpoint.signing_secret", "webhook_endpoint.url"] |
| 27 |
] |
| 28 |
] |
| 29 |
""" |
| 30 |
Additional fields to include in the response. |
| 31 |
""" |
| 32 |
metadata: NotRequired[Dict[str, str]] |
| 33 |
""" |
| 34 |
Metadata. |
| 35 |
""" |
| 36 |
name: str |
| 37 |
""" |
| 38 |
Event destination name. |
| 39 |
""" |
| 40 |
snapshot_api_version: NotRequired[str] |
| 41 |
""" |
| 42 |
If using the snapshot event payload, the API version events are rendered as. |
| 43 |
""" |
| 44 |
type: Literal["amazon_eventbridge", "webhook_endpoint"] |
| 45 |
""" |
| 46 |
Event destination type. |
| 47 |
""" |
| 48 |
amazon_eventbridge: NotRequired[ |
| 49 |
"EventDestinationCreateParamsAmazonEventbridge" |
| 50 |
] |
| 51 |
""" |
| 52 |
Amazon EventBridge configuration. |
| 53 |
""" |
| 54 |
webhook_endpoint: NotRequired[ |
| 55 |
"EventDestinationCreateParamsWebhookEndpoint" |
| 56 |
] |
| 57 |
""" |
| 58 |
Webhook endpoint configuration. |
| 59 |
""" |
| 60 |
|
| 61 |
|
| 62 |
class EventDestinationCreateParamsAmazonEventbridge(TypedDict): |
| 63 |
aws_account_id: str |
| 64 |
""" |
| 65 |
The AWS account ID. |
| 66 |
""" |
| 67 |
aws_region: str |
| 68 |
""" |
| 69 |
The region of the AWS event source. |
| 70 |
""" |
| 71 |
|
| 72 |
|
| 73 |
class EventDestinationCreateParamsWebhookEndpoint(TypedDict): |
| 74 |
url: str |
| 75 |
""" |
| 76 |
The URL of the webhook endpoint. |
| 77 |
""" |