Skip to content

Get Schema Version

glue_get_schema_version R Documentation

Get the specified schema by its unique ID assigned when a version of the schema is created or registered

Description

Get the specified schema by its unique ID assigned when a version of the schema is created or registered. Schema versions in Deleted status will not be included in the results.

Usage

glue_get_schema_version(SchemaId, SchemaVersionId, SchemaVersionNumber)

Arguments

SchemaId

This is a wrapper structure to contain schema identity fields. The structure contains:

  • SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. Either SchemaArn or SchemaName and RegistryName has to be provided.

  • SchemaId$SchemaName: The name of the schema. Either SchemaArn or SchemaName and RegistryName has to be provided.

SchemaVersionId

The SchemaVersionId of the schema version. This field is required for fetching by schema ID. Either this or the SchemaId wrapper has to be provided.

SchemaVersionNumber

The version number of the schema.

Value

A list with the following syntax:

list(
  SchemaVersionId = "string",
  SchemaDefinition = "string",
  DataFormat = "AVRO"|"JSON"|"PROTOBUF",
  SchemaArn = "string",
  VersionNumber = 123,
  Status = "AVAILABLE"|"PENDING"|"FAILURE"|"DELETING",
  CreatedTime = "string"
)

Request syntax

svc$get_schema_version(
  SchemaId = list(
    SchemaArn = "string",
    SchemaName = "string",
    RegistryName = "string"
  ),
  SchemaVersionId = "string",
  SchemaVersionNumber = list(
    LatestVersion = TRUE|FALSE,
    VersionNumber = 123
  )
)