EventBridgeClient.create_connection
rboto-eventbridge==0.4.0 · Service index · Types
Model summary (excerpt): Creates a connection. A connection defines the authorization type and credentials to use for authorization with an API destination HTTP endpoint. For more information, see Connections for endpoint targets in the Amazon EventBridge User Guide .
Install and imports
from rboto import EventBridgeClient
from rboto_eventbridge.types import (
ConnectionAuthorizationType,
ConnectivityResourceParameters,
CreateConnectionAuthRequestParameters,
CreateConnectionOutput,
)
Signature
async def create_connection(
*,
name: str,
authorization_type: ConnectionAuthorizationType,
auth_parameters: CreateConnectionAuthRequestParameters,
description: str | None = None,
invocation_connectivity_parameters: ConnectivityResourceParameters | None = None,
kms_key_identifier: str | None = None,
) -> CreateConnectionOutput: ...
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 connection to create. |
authorization_type |
Yes | The type of authorization to use for the connection. OAUTH tokens are refreshed when a 401 or 407 response is returned. |
auth_parameters |
Yes | The authorization parameters to use to authorize with the endpoint. You must include only authorization parameters for the AuthorizationType you specify. |
description |
No | A description for the connection to create. |
invocation_connectivity_parameters |
No | For connections to private APIs, the parameters to use for invoking the API. For more information, see Connecting to private APIs in the Amazon EventBridge User Guide . |
kms_key_identifier |
No | The identifier of the KMS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt this connection. The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. If you do not specify a customer managed key identifier, EventBridge uses an Amazon Web Services owned key to encrypt the connection. For more information, see... |
Output
CreateConnectionOutput.
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 |
|---|---|---|---|
connection_arn |
str | None |
Always present | — |
connection_state |
ConnectionStateOutput | None |
Always present | ConnectionStateOutput |
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.
Related types
ConnectionAuthorizationType, ConnectivityResourceParameters, CreateConnectionAuthRequestParameters, CreateConnectionOutput
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:
AccessDeniedError, InternalError, LimitExceededError, ResourceAlreadyExistsError, ResourceNotFoundError, ThrottlingError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.