Skip to content

EventBridgeClient.create_api_destination

rboto-eventbridge==0.4.0 · Service index · Types

Model summary (excerpt): Creates an API destination, which is an HTTP invocation endpoint configured as a target for events. API destinations do not support private destinations, such as interface VPC endpoints. For more information, see API destinations in the EventBridge User Guide .

Install and imports

python -m pip install "rboto[eventbridge]==0.4.0"
from rboto import EventBridgeClient
from rboto_eventbridge.types import (
    ApiDestinationHttpMethod,
    CreateApiDestinationOutput,
)

Signature

async def create_api_destination(
    *,
    name: str,
    connection_arn: str,
    invocation_endpoint: str,
    http_method: ApiDestinationHttpMethod,
    description: str | None = None,
    invocation_rate_limit_per_second: int | None = None,
) -> CreateApiDestinationOutput: ...

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 for the API destination to create.
connection_arn Yes The ARN of the connection to use for the API destination. The destination endpoint must support the authorization type specified for the connection.
invocation_endpoint Yes The URL to the HTTP invocation endpoint for the API destination.
http_method Yes The method to use for the request to the HTTP invocation endpoint.
description No A description for the API destination to create.
invocation_rate_limit_per_second No The maximum number of requests per second to send to the HTTP invocation endpoint.

Output

CreateApiDestinationOutput.

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
api_destination_arn str | None Always present —
api_destination_state ApiDestinationStateOutput | None Always present ApiDestinationStateOutput
creation_time str | None Always present —
last_modified_time str | None Always present —

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

ApiDestinationHttpMethod, CreateApiDestinationOutput

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, ResourceNotFoundError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model