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 { GetSchemaByDefinitionInput, GetSchemaByDefinitionResponse } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetSchemaByDefinitionCommand}. */ export interface GetSchemaByDefinitionCommandInput extends GetSchemaByDefinitionInput { } /** * @public * * The output of {@link GetSchemaByDefinitionCommand}. */ export interface GetSchemaByDefinitionCommandOutput extends GetSchemaByDefinitionResponse, __MetadataBearer { } declare const GetSchemaByDefinitionCommand_base: { new (input: GetSchemaByDefinitionCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetSchemaByDefinitionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlueClient, GetSchemaByDefinitionCommand } from "@aws-sdk/client-glue"; // ES Modules import * // const { GlueClient, GetSchemaByDefinitionCommand } = 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 = { // GetSchemaByDefinitionInput * SchemaId: { // SchemaId * SchemaArn: "STRING_VALUE", * SchemaName: "STRING_VALUE", * RegistryName: "STRING_VALUE", * }, * SchemaDefinition: "STRING_VALUE", // required * }; * const command = new GetSchemaByDefinitionCommand(input); * const response = await client.send(command); * // { // GetSchemaByDefinitionResponse * // SchemaVersionId: "STRING_VALUE", * // SchemaArn: "STRING_VALUE", * // DataFormat: "AVRO" || "JSON" || "PROTOBUF", * // Status: "AVAILABLE" || "PENDING" || "FAILURE" || "DELETING", * // CreatedTime: "STRING_VALUE", * // }; * * ``` * * @param GetSchemaByDefinitionCommandInput - {@link GetSchemaByDefinitionCommandInput} * @returns {@link GetSchemaByDefinitionCommandOutput} * @see {@link GetSchemaByDefinitionCommandInput} for command's `input` shape. * @see {@link GetSchemaByDefinitionCommandOutput} 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 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 GlueServiceException} *

Base exception class for all service exceptions from Glue service.

* * * @public */ export declare class GetSchemaByDefinitionCommand extends GetSchemaByDefinitionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetSchemaByDefinitionInput; output: GetSchemaByDefinitionResponse; }; sdk: { input: GetSchemaByDefinitionCommandInput; output: GetSchemaByDefinitionCommandOutput; }; }; }