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 { StartMetadataModelExportAsScriptMessage, StartMetadataModelExportAsScriptResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link StartMetadataModelExportAsScriptCommand}. */ export interface StartMetadataModelExportAsScriptCommandInput extends StartMetadataModelExportAsScriptMessage { } /** * @public * * The output of {@link StartMetadataModelExportAsScriptCommand}. */ export interface StartMetadataModelExportAsScriptCommandOutput extends StartMetadataModelExportAsScriptResponse, __MetadataBearer { } declare const StartMetadataModelExportAsScriptCommand_base: { new (input: StartMetadataModelExportAsScriptCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: StartMetadataModelExportAsScriptCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Saves your converted code to a file as a SQL script, and stores this file on your Amazon S3 * bucket.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DatabaseMigrationServiceClient, StartMetadataModelExportAsScriptCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import * // const { DatabaseMigrationServiceClient, StartMetadataModelExportAsScriptCommand } = 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 = { // StartMetadataModelExportAsScriptMessage * MigrationProjectIdentifier: "STRING_VALUE", // required * SelectionRules: "STRING_VALUE", // required * Origin: "SOURCE" || "TARGET", // required * FileName: "STRING_VALUE", * }; * const command = new StartMetadataModelExportAsScriptCommand(input); * const response = await client.send(command); * // { // StartMetadataModelExportAsScriptResponse * // RequestIdentifier: "STRING_VALUE", * // }; * * ``` * * @param StartMetadataModelExportAsScriptCommandInput - {@link StartMetadataModelExportAsScriptCommandInput} * @returns {@link StartMetadataModelExportAsScriptCommandOutput} * @see {@link StartMetadataModelExportAsScriptCommandInput} for command's `input` shape. * @see {@link StartMetadataModelExportAsScriptCommandOutput} for command's `response` shape. * @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. * * @throws {@link AccessDeniedFault} (client fault) *

DMS was denied access to the endpoint. Check that the * role is correctly configured.

* * @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 ResourceAlreadyExistsFault} (client fault) *

The resource you are attempting to create already exists.

* * @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 S3AccessDeniedFault} (client fault) *

Insufficient privileges are preventing access to an Amazon S3 object.

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

A specified Amazon S3 bucket, bucket folder, or other object can't be * found.

* * @throws {@link DatabaseMigrationServiceServiceException} *

Base exception class for all service exceptions from DatabaseMigrationService service.

* * * @example Start Metadata Model Export As Script * ```javascript * // Saves your converted code to a file as a SQL script, and stores this file on your S3 bucket. * const input = { * FileName: "FILE", * MigrationProjectIdentifier: "arn:aws:dms:us-east-1:012345678901:migration-project:0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ012", * Origin: "SOURCE", * SelectionRules: `{"rules": [{"rule-type": "selection","rule-id": "1","rule-name": "1","object-locator": {"server-name": "aurora-pg.cluster-0a1b2c3d4e5f.us-east-1.rds.amazonaws.com", "schema-name": "schema1", "table-name": "Cities"},"rule-action": "explicit"} ]}` * }; * const command = new StartMetadataModelExportAsScriptCommand(input); * const response = await client.send(command); * /* response is * { * RequestIdentifier: "01234567-89ab-cdef-0123-456789abcdef" * } * *\/ * ``` * * @public */ export declare class StartMetadataModelExportAsScriptCommand extends StartMetadataModelExportAsScriptCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: StartMetadataModelExportAsScriptMessage; output: StartMetadataModelExportAsScriptResponse; }; sdk: { input: StartMetadataModelExportAsScriptCommandInput; output: StartMetadataModelExportAsScriptCommandOutput; }; }; }