import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient"; import type { RegisterCertificateRequest, RegisterCertificateResponse } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link RegisterCertificateCommand}. */ export interface RegisterCertificateCommandInput extends RegisterCertificateRequest { } /** * @public * * The output of {@link RegisterCertificateCommand}. */ export interface RegisterCertificateCommandOutput extends RegisterCertificateResponse, __MetadataBearer { } declare const RegisterCertificateCommand_base: { new (input: RegisterCertificateCommandInput): import("@smithy/core/client").CommandImpl; new (input: RegisterCertificateCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Registers a device certificate with IoT in the same certificate mode as the signing CA. If you have more than one CA certificate that has the same subject field, you must * specify the CA certificate that was used to sign the device certificate being * registered.

*

Requires permission to access the RegisterCertificate action.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTClient, RegisterCertificateCommand } from "@aws-sdk/client-iot"; // ES Modules import * // const { IoTClient, RegisterCertificateCommand } = require("@aws-sdk/client-iot"); // CommonJS import * // import type { IoTClientConfig } from "@aws-sdk/client-iot"; * const config = {}; // type is IoTClientConfig * const client = new IoTClient(config); * const input = { // RegisterCertificateRequest * certificatePem: "STRING_VALUE", // required * caCertificatePem: "STRING_VALUE", * setAsActive: true || false, * status: "ACTIVE" || "INACTIVE" || "REVOKED" || "PENDING_TRANSFER" || "REGISTER_INACTIVE" || "PENDING_ACTIVATION", * }; * const command = new RegisterCertificateCommand(input); * const response = await client.send(command); * // { // RegisterCertificateResponse * // certificateArn: "STRING_VALUE", * // certificateId: "STRING_VALUE", * // }; * * ``` * * @param RegisterCertificateCommandInput - {@link RegisterCertificateCommandInput} * @returns {@link RegisterCertificateCommandOutput} * @see {@link RegisterCertificateCommandInput} for command's `input` shape. * @see {@link RegisterCertificateCommandOutput} for command's `response` shape. * @see {@link IoTClientResolvedConfig | config} for IoTClient's `config` shape. * * @throws {@link CertificateConflictException} (client fault) *

Unable to verify the CA certificate used to sign the device certificate you are * attempting to register. This is happens when you have registered more than one CA * certificate that has the same subject field and public key.

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

The certificate operation is not allowed.

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

The certificate is invalid.

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

An unexpected error has occurred.

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

The request is not valid.

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

The resource already exists.

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

The service is temporarily unavailable.

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

The rate exceeds the limit.

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

You are not authorized to perform this operation.

* * @throws {@link IoTServiceException} *

Base exception class for all service exceptions from IoT service.

* * * @public */ export declare class RegisterCertificateCommand extends RegisterCertificateCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RegisterCertificateRequest; output: RegisterCertificateResponse; }; sdk: { input: RegisterCertificateCommandInput; output: RegisterCertificateCommandOutput; }; }; }