Class ImportCertificateCommandProtected

Import an AS2 certificate.

Example

Use a bare-bones client and the command you need to make an API call.

import { As2Client, ImportCertificateCommand } from "@stedi/sdk-client-as2"; // ES Modules import
// const { As2Client, ImportCertificateCommand } = require("@stedi/sdk-client-as2"); // CommonJS import
const client = new As2Client(config);
const input = { // ImportCertificateInput
idempotencyKey: "STRING_VALUE",
description: "STRING_VALUE",
usage: "ENCRYPTION" || "SIGNING", // required
certificateName: "STRING_VALUE", // required
certificate: "STRING_VALUE", // required
certificateChain: "STRING_VALUE",
privateKey: "STRING_VALUE",
activeDate: new Date("TIMESTAMP"),
inactiveDate: new Date("TIMESTAMP"),
};
const command = new ImportCertificateCommand(input);
const response = await client.send(command);
// { // ImportCertificateOutput
// certificateName: "STRING_VALUE", // required
// resourceDetail: { // CreateResourceDetail
// idempotencyKey: "STRING_VALUE", // required
// },
// };

Param

ImportCertificateCommandInput

Returns

ImportCertificateCommandOutput

See

Throws

TooManyRequestsException (client fault)

Throws

ValidationException (client fault)

Throws

AccessDeniedException (client fault)

Throws

ProductUnavailableException (client fault)

Throws

ResourceAlreadyExistsException (client fault)

Throws

ResourceNotFoundException (client fault)

Throws

ResourceUnderChangeException (client fault)

Throws

ServiceException (server fault)

Throws

As2ServiceException

Base exception class for all service exceptions from As2 service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Returns EndpointParameterInstructions