import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DatabaseMigrationServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DatabaseMigrationServiceClient"; import type { RefreshSchemasMessage, RefreshSchemasResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link RefreshSchemasCommand}. */ export interface RefreshSchemasCommandInput extends RefreshSchemasMessage { } /** * @public * * The output of {@link RefreshSchemasCommand}. */ export interface RefreshSchemasCommandOutput extends RefreshSchemasResponse, __MetadataBearer { } declare const RefreshSchemasCommand_base: { new (input: RefreshSchemasCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: RefreshSchemasCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Populates the schema for the specified endpoint. This is an asynchronous operation and * can take several minutes. You can check the status of this operation by calling the * DescribeRefreshSchemasStatus operation.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DatabaseMigrationServiceClient, RefreshSchemasCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import * // const { DatabaseMigrationServiceClient, RefreshSchemasCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import * // import type { DatabaseMigrationServiceClientConfig } from "@aws-sdk/client-database-migration-service"; * const config = {}; // type is DatabaseMigrationServiceClientConfig * const client = new DatabaseMigrationServiceClient(config); * const input = { // RefreshSchemasMessage * EndpointArn: "STRING_VALUE", // required * ReplicationInstanceArn: "STRING_VALUE", // required * }; * const command = new RefreshSchemasCommand(input); * const response = await client.send(command); * // { // RefreshSchemasResponse * // RefreshSchemasStatus: { // RefreshSchemasStatus * // EndpointArn: "STRING_VALUE", * // ReplicationInstanceArn: "STRING_VALUE", * // Status: "successful" || "failed" || "refreshing", * // LastRefreshDate: new Date("TIMESTAMP"), * // LastFailureMessage: "STRING_VALUE", * // }, * // }; * * ``` * * @param RefreshSchemasCommandInput - {@link RefreshSchemasCommandInput} * @returns {@link RefreshSchemasCommandOutput} * @see {@link RefreshSchemasCommandInput} for command's `input` shape. * @see {@link RefreshSchemasCommandOutput} for command's `response` shape. * @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. * * @throws {@link InvalidResourceStateFault} (client fault) *

The resource is in a state that prevents it from being used for database migration.

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

DMS cannot access the KMS key.

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

The resource could not be found.

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

The quota for this resource quota has been exceeded.

* * @throws {@link DatabaseMigrationServiceServiceException} *

Base exception class for all service exceptions from DatabaseMigrationService service.

* * * @example Refresh schema * ```javascript * // Populates the schema for the specified endpoint. This is an asynchronous operation and can take several minutes. You can check the status of this operation by calling the describe-refresh-schemas-status operation. * const input = { * EndpointArn: "", * ReplicationInstanceArn: "" * }; * const command = new RefreshSchemasCommand(input); * const response = await client.send(command); * /* response is * { * RefreshSchemasStatus: { /* empty *\/ } * } * *\/ * ``` * * @public */ export declare class RefreshSchemasCommand extends RefreshSchemasCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RefreshSchemasMessage; output: RefreshSchemasResponse; }; sdk: { input: RefreshSchemasCommandInput; output: RefreshSchemasCommandOutput; }; }; }