import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient"; import type { RegisterSchemaVersionInput, RegisterSchemaVersionResponse } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link RegisterSchemaVersionCommand}. */ export interface RegisterSchemaVersionCommandInput extends RegisterSchemaVersionInput { } /** * @public * * The output of {@link RegisterSchemaVersionCommand}. */ export interface RegisterSchemaVersionCommandOutput extends RegisterSchemaVersionResponse, __MetadataBearer { } declare const RegisterSchemaVersionCommand_base: { new (input: RegisterSchemaVersionCommandInput): import("@smithy/core/client").CommandImpl; new (input: RegisterSchemaVersionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Adds a new version to the existing schema. Returns an error if new version of schema does not meet the compatibility requirements of the schema set. This API will not create a new schema set and will return a 404 error if the schema set is not already present in the Schema Registry.

*

If this is the first schema definition to be registered in the Schema Registry, this API will store the schema version and return immediately. Otherwise, this call has the potential to run longer than other operations due to compatibility modes. You can call the GetSchemaVersion API with the SchemaVersionId to check compatibility modes.

*

If the same schema definition is already stored in Schema Registry as a version, the schema ID of the existing schema is returned to the caller.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlueClient, RegisterSchemaVersionCommand } from "@aws-sdk/client-glue"; // ES Modules import * // const { GlueClient, RegisterSchemaVersionCommand } = require("@aws-sdk/client-glue"); // CommonJS import * // import type { GlueClientConfig } from "@aws-sdk/client-glue"; * const config = {}; // type is GlueClientConfig * const client = new GlueClient(config); * const input = { // RegisterSchemaVersionInput * SchemaId: { // SchemaId * SchemaArn: "STRING_VALUE", * SchemaName: "STRING_VALUE", * RegistryName: "STRING_VALUE", * }, * SchemaDefinition: "STRING_VALUE", // required * }; * const command = new RegisterSchemaVersionCommand(input); * const response = await client.send(command); * // { // RegisterSchemaVersionResponse * // SchemaVersionId: "STRING_VALUE", * // VersionNumber: Number("long"), * // Status: "AVAILABLE" || "PENDING" || "FAILURE" || "DELETING", * // }; * * ``` * * @param RegisterSchemaVersionCommandInput - {@link RegisterSchemaVersionCommandInput} * @returns {@link RegisterSchemaVersionCommandOutput} * @see {@link RegisterSchemaVersionCommandInput} for command's `input` shape. * @see {@link RegisterSchemaVersionCommandOutput} for command's `response` shape. * @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

Access to a resource was denied.

* * @throws {@link ConcurrentModificationException} (client fault) *

Two processes are trying to modify a resource simultaneously.

* * @throws {@link EntityNotFoundException} (client fault) *

A specified entity does not exist

* * @throws {@link InternalServiceException} (server fault) *

An internal service error occurred.

* * @throws {@link InvalidInputException} (client fault) *

The input provided was not valid.

* * @throws {@link ResourceNumberLimitExceededException} (client fault) *

A resource numerical limit was exceeded.

* * @throws {@link GlueServiceException} *

Base exception class for all service exceptions from Glue service.

* * * @public */ export declare class RegisterSchemaVersionCommand extends RegisterSchemaVersionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RegisterSchemaVersionInput; output: RegisterSchemaVersionResponse; }; sdk: { input: RegisterSchemaVersionCommandInput; output: RegisterSchemaVersionCommandOutput; }; }; }