EventBridgeClient.create_endpoint
rboto-eventbridge==0.4.0 · Service index · Types
Model summary (excerpt): Creates a global endpoint. Global endpoints improve your application's availability by making it regional-fault tolerant. To do this, you define a primary and secondary Region with event buses in each Region. You also create a Amazon Route 53 health check that will tell EventBridge to route events to the secondary Region when an "unhealthy" state is encountered and events will be routed back...
Install and imports
from rboto import EventBridgeClient
from collections.abc import Sequence
from rboto_eventbridge.types import (
CreateEndpointOutput,
EndpointEventBus,
ReplicationConfig,
RoutingConfig,
)
Signature
async def create_endpoint(
*,
name: str,
routing_config: RoutingConfig,
event_buses: Sequence[EndpointEventBus],
description: str | None = None,
replication_config: ReplicationConfig | None = None,
role_arn: str | None = None,
) -> CreateEndpointOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
name |
Yes | The name of the global endpoint. For example, "Name":"us-east-2-custom_bus_A-endpoint" . |
routing_config |
Yes | Configure the routing policy, including the health check and secondary Region.. |
event_buses |
Yes | Define the event buses used. The names of the event buses must be identical in each Region. |
description |
No | A description of the global endpoint. |
replication_config |
No | Enable or disable event replication. The default state is ENABLED which means you must supply a RoleArn . If you don't have a RoleArn or you don't want event replication enabled, set the state to DISABLED . |
role_arn |
No | The ARN of the role used for replication. |
Output
CreateEndpointOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
name |
str | None |
Always present | — |
arn |
str | None |
Always present | — |
routing_config |
RoutingConfigOutput | None |
Always present | RoutingConfigOutput |
replication_config |
ReplicationConfigOutput | None |
Always present | ReplicationConfigOutput |
event_buses |
list[EndpointEventBusOutput] | None |
Always present | EndpointEventBusOutput |
role_arn |
str | None |
Always present | — |
state |
EndpointStateOutput | None |
Always present | EndpointStateOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
CreateEndpointOutput, EndpointEventBus, ReplicationConfig, RoutingConfig
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_eventbridge.exceptions:
InternalError, LimitExceededError, ResourceAlreadyExistsError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.