import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ImportCertificateRequest, ImportCertificateResponse } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, TransferClientResolvedConfig } from "../TransferClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ImportCertificateCommand}. */ export interface ImportCertificateCommandInput extends ImportCertificateRequest { } /** * @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; }; /** *

Imports the signing and encryption certificates that you need to create local (AS2) profiles and partner profiles.

You can import both the certificate and its chain in the Certificate parameter.

After importing a certificate, Transfer Family automatically creates a Amazon CloudWatch metric called DaysUntilExpiry that tracks the number of days until the certificate expires. The metric is based on the InactiveDate parameter and is published daily in the AWS/Transfer namespace.

It can take up to a full day after importing a certificate for Transfer Family to emit the DaysUntilExpiry metric to your account.

If you use the Certificate parameter to upload both the certificate and its chain, don't use the CertificateChain parameter.

CloudWatch monitoring

The DaysUntilExpiry metric includes the following specifications:

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { TransferClient, ImportCertificateCommand } from "@aws-sdk/client-transfer"; // ES Modules import * // const { TransferClient, ImportCertificateCommand } = require("@aws-sdk/client-transfer"); // CommonJS import * // import type { TransferClientConfig } from "@aws-sdk/client-transfer"; * const config = {}; // type is TransferClientConfig * const client = new TransferClient(config); * const input = { // ImportCertificateRequest * Usage: "SIGNING" || "ENCRYPTION" || "TLS", // required * Certificate: "STRING_VALUE", // required * CertificateChain: "STRING_VALUE", * PrivateKey: "STRING_VALUE", * ActiveDate: new Date("TIMESTAMP"), * InactiveDate: new Date("TIMESTAMP"), * Description: "STRING_VALUE", * Tags: [ // Tags * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * }; * const command = new ImportCertificateCommand(input); * const response = await client.send(command); * // { // ImportCertificateResponse * // CertificateId: "STRING_VALUE", // required * // }; * * ``` * * @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 TransferClientResolvedConfig | config} for TransferClient's `config` shape. * * @throws {@link InternalServiceError} (server fault) *

This exception is thrown when an error occurs in the Transfer Family service.

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

This exception is thrown when the client submits a malformed request.

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

This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer Family service.

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

The request has failed because the Amazon Web ServicesTransfer Family service is not available.

* * @throws {@link TransferServiceException} *

Base exception class for all service exceptions from Transfer service.

* * * @public */ export declare class ImportCertificateCommand extends ImportCertificateCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ImportCertificateRequest; output: ImportCertificateResponse; }; sdk: { input: ImportCertificateCommandInput; output: ImportCertificateCommandOutput; }; }; }