Skip to content

delete_connection_type

delete_connection_type(
    connection_type: NameString, *, config_overrides: Optional[GlueClientConfig] = None
) -> DeleteConnectionTypeResponse

Deletes a custom connection type in Glue.

The connection type must exist and be registered before it can be deleted. This operation supports cleanup of connection type resources and helps maintain proper lifecycle management of custom connection types.

Parameters:

  • connection_type (NameString) –

    The name of the connection type to delete. Must reference an existing registered connection type.

Raises:

Source code in docs_src/capo_glue/_services/glue.py
def delete_connection_type(
    self,
    connection_type: "capo_glue.types.name_string.NameString",
    *,
    config_overrides: Optional[GlueClientConfig] = None,
) -> "capo_glue.types.delete_connection_type_response.DeleteConnectionTypeResponse":
    """<p>Deletes a custom connection type in Glue.</p> <p>The connection type must exist and be registered before it can be deleted. This operation supports cleanup of connection type resources and helps maintain proper lifecycle management of custom connection types.</p>

    Args:
        connection_type: <p>The name of the connection type to delete. Must reference an existing registered connection type.</p>

    Raises:
        capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
        capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
        capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
        capo_glue.errors.validation_exception.ValidationException: <p>A value could not be validated.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.delete_connection_type_request.DeleteConnectionTypeRequest]",
    ) -> OperationResponse[
        "capo_glue.types.delete_connection_type_response.DeleteConnectionTypeResponse"
    ]:
        import capo_glue._operations.aws_glue.delete_connection_type

        output, http_response = (
            capo_glue._operations.aws_glue.delete_connection_type.delete_connection_type(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteConnectionType")
    )
    input_: capo_glue.types.delete_connection_type_request.DeleteConnectionTypeRequest = {
        "connection_type": connection_type
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output