GlueClient.create_schema
rboto-glue==0.4.0 · Service index · Types
Model summary (excerpt): Creates a new schema set and registers the schema definition. Returns an error if the schema set already exists without actually registering the version. When the schema set is created, a version checkpoint will be set to the first version. Compatibility mode "DISABLED" restricts any additional schema versions from being added after the first schema version. For all other compatibility modes,...
Install and imports
from rboto import GlueClient
from rboto_glue.types import (
Compatibility,
CreateSchemaOutput,
DataFormat,
RegistryId,
)
Signature
async def create_schema(
*,
schema_name: str,
data_format: DataFormat,
registry_id: RegistryId | None = None,
compatibility: Compatibility | None = None,
description: str | None = None,
tags: dict[str, str] | None = None,
schema_definition: str | None = None,
) -> CreateSchemaOutput: ...
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_name |
Yes | Name of the schema to be created of max length of 255, and may only contain letters, numbers, hyphen, underscore, dollar sign, or hash mark. No whitespace. |
data_format |
Yes | The data format of the schema definition. Currently AVRO , JSON and PROTOBUF are supported. |
registry_id |
No | This is a wrapper shape to contain the registry identity fields. If this is not provided, the default registry will be used. The ARN format for the same will be: arn:aws:glue:us-east-2: :registry/default-registry:random-5-letter-id . |
compatibility |
No | The compatibility mode of the schema. The possible values are: NONE : No compatibility mode applies. You can use this choice in development scenarios or if you do not know the compatibility mode that you want to apply to schemas. Any new version added will be accepted without undergoing a compatibility check. DISABLED : This compatibility choice prevents versioning for a particular schema. You... |
description |
No | An optional description of the schema. If description is not provided, there will not be any automatic default value for this. |
tags |
No | Amazon Web Services tags that contain a key value pair and may be searched by console, command line, or API. If specified, follows the Amazon Web Services tags-on-create pattern. |
schema_definition |
No | The schema definition using the DataFormat setting for SchemaName . |
Output
CreateSchemaOutput.
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 |
|---|---|---|---|
registry_name |
str | None |
Always present | — |
registry_arn |
str | None |
Always present | — |
schema_name |
str | None |
Always present | — |
schema_arn |
str | None |
Always present | — |
description |
str | None |
Always present | — |
data_format |
DataFormatOutput | None |
Always present | DataFormatOutput |
compatibility |
CompatibilityOutput | None |
Always present | CompatibilityOutput |
schema_checkpoint |
int | None |
Always present | — |
latest_schema_version |
int | None |
Always present | — |
next_schema_version |
int | None |
Always present | — |
schema_status |
SchemaStatusOutput | None |
Always present | SchemaStatusOutput |
tags |
dict[str, str] | None |
Always present | — |
schema_version_id |
str | None |
Always present | — |
schema_version_status |
SchemaVersionStatusOutput | None |
Always present | SchemaVersionStatusOutput |
| 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
Compatibility, CreateSchemaOutput, DataFormat, RegistryId
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, AlreadyExistsError, ConcurrentModificationError, EntityNotFoundError, InternalServiceError, InvalidInputError, ResourceNumberLimitExceededError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.