Skip to content

GlueClient.test_connection

rboto-glue==0.4.0 · Service index · Types

Model summary (excerpt): Tests a connection to a service to validate the service credentials that you provide. You can either provide an existing connection name or a TestConnectionInput for testing a non-existing connection input. Providing both at the same time will cause an error. If the action is successful, the service sends back an HTTP 200 response.

Install and imports

python -m pip install "rboto[glue]==0.4.0"
from rboto import GlueClient
from rboto_glue.types import (
    TestConnectionInput,
    TestConnectionOutput,
)

Signature

async def test_connection(
    *,
    connection_name: str | None = None,
    catalog_id: str | None = None,
    test_connection_input: TestConnectionInput | None = None,
) -> TestConnectionOutput: ...

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)
connection_name No Optional. The name of the connection to test. If only name is provided, the operation will get the connection and use that for testing.
catalog_id No The catalog ID where the connection resides.
test_connection_input No A structure that is used to specify testing a connection to a service.

Output

TestConnectionOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

No fields.

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

TestConnectionInput, TestConnectionOutput

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_glue.exceptions:

AccessDeniedError, ConflictError, EntityNotFoundError, FederationSourceError, GlueEncryptionError, InternalServiceError, InvalidInputError, OperationTimeoutError, ResourceNumberLimitExceededError.

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

Service guide · Pinned model