import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateChallengeRequest, CreateChallengeResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateChallengeCommand}. */ export interface CreateChallengeCommandInput extends CreateChallengeRequest { } /** * @public * * The output of {@link CreateChallengeCommand}. */ export interface CreateChallengeCommandOutput extends CreateChallengeResponse, __MetadataBearer { } declare const CreateChallengeCommand_base: { new (input: CreateChallengeCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateChallengeCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

For general-purpose connectors. Creates a challenge password for the specified connector. The SCEP protocol uses a challenge password to authenticate a request before issuing a certificate from a certificate authority (CA). Your SCEP clients include the challenge password as part of their certificate request to Connector for SCEP. To retrieve the connector Amazon Resource Names (ARNs) for the connectors in your account, call ListConnectors.

To create additional challenge passwords for the connector, call CreateChallenge again. We recommend frequently rotating your challenge passwords.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { PcaConnectorScepClient, CreateChallengeCommand } from "@aws-sdk/client-pca-connector-scep"; // ES Modules import * // const { PcaConnectorScepClient, CreateChallengeCommand } = require("@aws-sdk/client-pca-connector-scep"); // CommonJS import * // import type { PcaConnectorScepClientConfig } from "@aws-sdk/client-pca-connector-scep"; * const config = {}; // type is PcaConnectorScepClientConfig * const client = new PcaConnectorScepClient(config); * const input = { // CreateChallengeRequest * ConnectorArn: "STRING_VALUE", // required * ClientToken: "STRING_VALUE", * Tags: { // Tags * "": "STRING_VALUE", * }, * }; * const command = new CreateChallengeCommand(input); * const response = await client.send(command); * // { // CreateChallengeResponse * // Challenge: { // Challenge * // Arn: "STRING_VALUE", * // ConnectorArn: "STRING_VALUE", * // CreatedAt: new Date("TIMESTAMP"), * // UpdatedAt: new Date("TIMESTAMP"), * // Password: "STRING_VALUE", * // }, * // }; * * ``` * * @param CreateChallengeCommandInput - {@link CreateChallengeCommandInput} * @returns {@link CreateChallengeCommandOutput} * @see {@link CreateChallengeCommandInput} for command's `input` shape. * @see {@link CreateChallengeCommandOutput} for command's `response` shape. * @see {@link PcaConnectorScepClientResolvedConfig | config} for PcaConnectorScepClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You can receive this error if you attempt to perform an operation and you don't have the required permissions. This can be caused by insufficient permissions in policies attached to your Amazon Web Services Identity and Access Management (IAM) principal. It can also happen because of restrictions in place from an Amazon Web Services Organizations service control policy (SCP) that affects your Amazon Web Services account.

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

The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.

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

This request can't be completed for one of the following reasons because the requested resource was being concurrently modified by another request.

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

The request processing has failed because of an unknown error, exception or failure with an internal server.

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

The operation tried to access a nonexistent resource. The resource might be incorrectly specified, or it might have a status other than ACTIVE.

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

The request would cause a service quota to be exceeded.

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

The limit on the number of requests per second was exceeded.

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

An input validation error occurred. For example, invalid characters in a name tag, or an invalid pagination token.

* * @throws {@link PcaConnectorScepServiceException} *

Base exception class for all service exceptions from PcaConnectorScep service.

* * * @public */ export declare class CreateChallengeCommand extends CreateChallengeCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateChallengeRequest; output: CreateChallengeResponse; }; sdk: { input: CreateChallengeCommandInput; output: CreateChallengeCommandOutput; }; }; }