import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { APIGatewayClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../APIGatewayClient"; import type { TestInvokeAuthorizerRequest, TestInvokeAuthorizerResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link TestInvokeAuthorizerCommand}. */ export interface TestInvokeAuthorizerCommandInput extends TestInvokeAuthorizerRequest { } /** * @public * * The output of {@link TestInvokeAuthorizerCommand}. */ export interface TestInvokeAuthorizerCommandOutput extends TestInvokeAuthorizerResponse, __MetadataBearer { } declare const TestInvokeAuthorizerCommand_base: { new (input: TestInvokeAuthorizerCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: TestInvokeAuthorizerCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Simulate the execution of an Authorizer in your RestApi with headers, parameters, and an incoming request body.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { APIGatewayClient, TestInvokeAuthorizerCommand } from "@aws-sdk/client-api-gateway"; // ES Modules import * // const { APIGatewayClient, TestInvokeAuthorizerCommand } = require("@aws-sdk/client-api-gateway"); // CommonJS import * // import type { APIGatewayClientConfig } from "@aws-sdk/client-api-gateway"; * const config = {}; // type is APIGatewayClientConfig * const client = new APIGatewayClient(config); * const input = { // TestInvokeAuthorizerRequest * restApiId: "STRING_VALUE", // required * authorizerId: "STRING_VALUE", // required * headers: { // MapOfStringToString * "": "STRING_VALUE", * }, * multiValueHeaders: { // MapOfStringToList * "": [ // ListOfString * "STRING_VALUE", * ], * }, * pathWithQueryString: "STRING_VALUE", * body: "STRING_VALUE", * stageVariables: { * "": "STRING_VALUE", * }, * additionalContext: { * "": "STRING_VALUE", * }, * }; * const command = new TestInvokeAuthorizerCommand(input); * const response = await client.send(command); * // { // TestInvokeAuthorizerResponse * // clientStatus: Number("int"), * // log: "STRING_VALUE", * // latency: Number("long"), * // principalId: "STRING_VALUE", * // policy: "STRING_VALUE", * // authorization: { // MapOfStringToList * // "": [ // ListOfString * // "STRING_VALUE", * // ], * // }, * // claims: { // MapOfStringToString * // "": "STRING_VALUE", * // }, * // }; * * ``` * * @param TestInvokeAuthorizerCommandInput - {@link TestInvokeAuthorizerCommandInput} * @returns {@link TestInvokeAuthorizerCommandOutput} * @see {@link TestInvokeAuthorizerCommandInput} for command's `input` shape. * @see {@link TestInvokeAuthorizerCommandOutput} for command's `response` shape. * @see {@link APIGatewayClientResolvedConfig | config} for APIGatewayClient's `config` shape. * * @throws {@link BadRequestException} (client fault) *

The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.

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

The requested resource is not found. Make sure that the request URI is correct.

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

The request has reached its throttling limit. Retry after the specified time period.

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

The request is denied because the caller has insufficient permissions.

* * @throws {@link APIGatewayServiceException} *

Base exception class for all service exceptions from APIGateway service.

* * * @public */ export declare class TestInvokeAuthorizerCommand extends TestInvokeAuthorizerCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: TestInvokeAuthorizerRequest; output: TestInvokeAuthorizerResponse; }; sdk: { input: TestInvokeAuthorizerCommandInput; output: TestInvokeAuthorizerCommandOutput; }; }; }