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 { GetMethodRequest, Method } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetMethodCommand}. */ export interface GetMethodCommandInput extends GetMethodRequest { } /** * @public * * The output of {@link GetMethodCommand}. */ export interface GetMethodCommandOutput extends Method, __MetadataBearer { } declare const GetMethodCommand_base: { new (input: GetMethodCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetMethodCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Describe an existing Method resource.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { APIGatewayClient, GetMethodCommand } from "@aws-sdk/client-api-gateway"; // ES Modules import * // const { APIGatewayClient, GetMethodCommand } = 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 = { // GetMethodRequest * restApiId: "STRING_VALUE", // required * resourceId: "STRING_VALUE", // required * httpMethod: "STRING_VALUE", // required * }; * const command = new GetMethodCommand(input); * const response = await client.send(command); * // { // Method * // httpMethod: "STRING_VALUE", * // authorizationType: "STRING_VALUE", * // authorizerId: "STRING_VALUE", * // apiKeyRequired: true || false, * // requestValidatorId: "STRING_VALUE", * // operationName: "STRING_VALUE", * // requestParameters: { // MapOfStringToBoolean * // "": true || false, * // }, * // requestModels: { // MapOfStringToString * // "": "STRING_VALUE", * // }, * // methodResponses: { // MapOfMethodResponse * // "": { // MethodResponse * // statusCode: "STRING_VALUE", * // responseParameters: { * // "": true || false, * // }, * // responseModels: { * // "": "STRING_VALUE", * // }, * // }, * // }, * // methodIntegration: { // Integration * // type: "HTTP" || "AWS" || "MOCK" || "HTTP_PROXY" || "AWS_PROXY", * // httpMethod: "STRING_VALUE", * // uri: "STRING_VALUE", * // connectionType: "INTERNET" || "VPC_LINK", * // connectionId: "STRING_VALUE", * // credentials: "STRING_VALUE", * // requestParameters: "", * // requestTemplates: "", * // passthroughBehavior: "STRING_VALUE", * // contentHandling: "CONVERT_TO_BINARY" || "CONVERT_TO_TEXT", * // timeoutInMillis: Number("int"), * // cacheNamespace: "STRING_VALUE", * // cacheKeyParameters: [ // ListOfString * // "STRING_VALUE", * // ], * // integrationResponses: { // MapOfIntegrationResponse * // "": { // IntegrationResponse * // statusCode: "STRING_VALUE", * // selectionPattern: "STRING_VALUE", * // responseParameters: "", * // responseTemplates: "", * // contentHandling: "CONVERT_TO_BINARY" || "CONVERT_TO_TEXT", * // }, * // }, * // tlsConfig: { // TlsConfig * // insecureSkipVerification: true || false, * // }, * // responseTransferMode: "BUFFERED" || "STREAM", * // integrationTarget: "STRING_VALUE", * // }, * // authorizationScopes: [ * // "STRING_VALUE", * // ], * // }; * * ``` * * @param GetMethodCommandInput - {@link GetMethodCommandInput} * @returns {@link GetMethodCommandOutput} * @see {@link GetMethodCommandInput} for command's `input` shape. * @see {@link GetMethodCommandOutput} for command's `response` shape. * @see {@link APIGatewayClientResolvedConfig | config} for APIGatewayClient's `config` shape. * * @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 GetMethodCommand extends GetMethodCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetMethodRequest; output: Method; }; sdk: { input: GetMethodCommandInput; output: GetMethodCommandOutput; }; }; }