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

Updates an existing Method resource.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { APIGatewayClient, UpdateMethodCommand } from "@aws-sdk/client-api-gateway"; // ES Modules import * // const { APIGatewayClient, UpdateMethodCommand } = 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 = { // UpdateMethodRequest * restApiId: "STRING_VALUE", // required * resourceId: "STRING_VALUE", // required * httpMethod: "STRING_VALUE", // required * patchOperations: [ // ListOfPatchOperation * { // PatchOperation * op: "add" || "remove" || "replace" || "move" || "copy" || "test", * path: "STRING_VALUE", * value: "STRING_VALUE", * from: "STRING_VALUE", * }, * ], * }; * const command = new UpdateMethodCommand(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 UpdateMethodCommandInput - {@link UpdateMethodCommandInput} * @returns {@link UpdateMethodCommandOutput} * @see {@link UpdateMethodCommandInput} for command's `input` shape. * @see {@link UpdateMethodCommandOutput} 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 ConflictException} (client fault) *

The request configuration has conflicts. For details, see the accompanying error message.

* * @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 UpdateMethodCommand extends UpdateMethodCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateMethodRequest; output: Method; }; sdk: { input: UpdateMethodCommandInput; output: UpdateMethodCommandOutput; }; }; }