Skip to content

GlueClient.get_schema_by_definition

rboto-glue==0.4.0 · Service index · Types

Model summary (excerpt): Retrieves a schema by the SchemaDefinition . The schema definition is sent to the Schema Registry, canonicalized, and hashed. If the hash is matched within the scope of the SchemaName or ARN (or the default registry, if none is supplied), that schema’s metadata is returned. Otherwise, a 404 or NotFound error is returned. Schema versions in Deleted statuses will not be included in the results.

Install and imports

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

Signature

async def get_schema_by_definition(
    *,
    schema_id: SchemaId,
    schema_definition: str,
) -> GetSchemaByDefinitionOutput: ...

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)
schema_id Yes This is a wrapper structure to contain schema identity fields. The structure contains: SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. One of SchemaArn or SchemaName has to be provided. SchemaId$SchemaName: The name of the schema. One of SchemaArn or SchemaName has to be provided.
schema_definition Yes The definition of the schema for which schema details are required.

Output

GetSchemaByDefinitionOutput.

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
schema_version_id str | None Always present —
schema_arn str | None Always present —
data_format DataFormatOutput | None Always present DataFormatOutput
status SchemaVersionStatusOutput | None Always present SchemaVersionStatusOutput
created_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.

GetSchemaByDefinitionOutput, SchemaId

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, EntityNotFoundError, InternalServiceError, InvalidInputError.

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

Service guide · Pinned model