register_connection_type
¶
register_connection_type(
connection_type: NameString,
integration_type: IntegrationType,
connection_properties: ConnectionPropertiesConfiguration,
connector_authentication_configuration: ConnectorAuthenticationConfiguration,
rest_configuration: RestConfiguration,
*,
config_overrides: Optional[GlueClientConfig] = None,
description: Optional[Description] = None,
tags: Optional[TagsMap] = None,
) -> RegisterConnectionTypeResponse
Registers a custom connection type in Glue based on the configuration provided. This operation enables customers to configure custom connectors for any data source with REST-based APIs, eliminating the need for building custom Lambda connectors.
The registered connection type stores details about how requests and responses are interpreted by REST sources, including connection properties, authentication configuration, and REST configuration with entity definitions. Once registered, customers can create connections using this connection type and work with them the same way as natively supported Glue connectors.
Supports multiple authentication types including Basic, OAuth2 (Client Credentials, JWT Bearer, Authorization Code), and Custom Auth configurations.
Parameters:
-
connection_type(NameString) –The name of the connection type. Must be between 1 and 255 characters and must be prefixed with "REST-" to indicate it is a REST-based connector.
-
integration_type(IntegrationType) –The integration type for the connection. Currently only "REST" protocol is supported.
-
description(Optional[Description], default:None) –A description of the connection type. Can be up to 2048 characters and provides details about the purpose and functionality of the connection type.
-
connection_properties(ConnectionPropertiesConfiguration) –Defines the base URL and additional request parameters needed during connection creation for this connection type.
-
connector_authentication_configuration(ConnectorAuthenticationConfiguration) –Defines the supported authentication types and required properties for this connection type, including Basic, OAuth2, and Custom authentication methods.
-
rest_configuration(RestConfiguration) –Defines the HTTP request and response configuration, validation endpoint, and entity configurations for REST API interactions.
-
tags(Optional[TagsMap], default:None) –The tags you assign to the connection type.
Raises:
-
AccessDeniedException–Access to a resource was denied.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
ResourceNumberLimitExceededException–A resource numerical limit was exceeded.
-
ValidationException–A value could not be validated.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/glue.py
17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 | |