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 { ImportCertificateMessage, ImportCertificateResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ImportCertificateCommand}. */ export interface ImportCertificateCommandInput extends ImportCertificateMessage { } /** * @public * * The output of {@link ImportCertificateCommand}. */ export interface ImportCertificateCommandOutput extends ImportCertificateResponse, __MetadataBearer { } declare const ImportCertificateCommand_base: { new (input: ImportCertificateCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ImportCertificateCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Uploads the specified certificate.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DatabaseMigrationServiceClient, ImportCertificateCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import * // const { DatabaseMigrationServiceClient, ImportCertificateCommand } = 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 = { // ImportCertificateMessage * CertificateIdentifier: "STRING_VALUE", // required * CertificatePem: "STRING_VALUE", * CertificateWallet: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * ResourceArn: "STRING_VALUE", * }, * ], * KmsKeyId: "STRING_VALUE", * }; * const command = new ImportCertificateCommand(input); * const response = await client.send(command); * // { // ImportCertificateResponse * // Certificate: { // Certificate * // CertificateIdentifier: "STRING_VALUE", * // CertificateCreationDate: new Date("TIMESTAMP"), * // CertificatePem: "STRING_VALUE", * // CertificateWallet: new Uint8Array(), * // CertificateArn: "STRING_VALUE", * // CertificateOwner: "STRING_VALUE", * // ValidFromDate: new Date("TIMESTAMP"), * // ValidToDate: new Date("TIMESTAMP"), * // SigningAlgorithm: "STRING_VALUE", * // KeyLength: Number("int"), * // KmsKeyId: "STRING_VALUE", * // }, * // }; * * ``` * * @param ImportCertificateCommandInput - {@link ImportCertificateCommandInput} * @returns {@link ImportCertificateCommandOutput} * @see {@link ImportCertificateCommandInput} for command's `input` shape. * @see {@link ImportCertificateCommandOutput} for command's `response` shape. * @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. * * @throws {@link InvalidCertificateFault} (client fault) *

The certificate was not valid.

* * @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 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 Import certificate * ```javascript * // Uploads the specified certificate. * const input = { * CertificateIdentifier: "", * CertificatePem: "" * }; * const command = new ImportCertificateCommand(input); * const response = await client.send(command); * /* response is * { * Certificate: { /* empty *\/ } * } * *\/ * ``` * * @public */ export declare class ImportCertificateCommand extends ImportCertificateCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ImportCertificateMessage; output: ImportCertificateResponse; }; sdk: { input: ImportCertificateCommandInput; output: ImportCertificateCommandOutput; }; }; }