We are excited to announce our new API Documentation.
Protected
Updates an Integration.
Use a bare-bones client and the command you need to make an API call.
import { ApiGatewayV2Client, UpdateIntegrationCommand } from "@aws-sdk/client-apigatewayv2"; // ES Modules import// const { ApiGatewayV2Client, UpdateIntegrationCommand } = require("@aws-sdk/client-apigatewayv2"); // CommonJS importconst client = new ApiGatewayV2Client(config);const input = { // UpdateIntegrationRequest ApiId: "STRING_VALUE", // required ConnectionId: "STRING_VALUE", ConnectionType: "INTERNET" || "VPC_LINK", ContentHandlingStrategy: "CONVERT_TO_BINARY" || "CONVERT_TO_TEXT", CredentialsArn: "STRING_VALUE", Description: "STRING_VALUE", IntegrationId: "STRING_VALUE", // required IntegrationMethod: "STRING_VALUE", IntegrationSubtype: "STRING_VALUE", IntegrationType: "AWS" || "HTTP" || "MOCK" || "HTTP_PROXY" || "AWS_PROXY", IntegrationUri: "STRING_VALUE", PassthroughBehavior: "WHEN_NO_MATCH" || "NEVER" || "WHEN_NO_TEMPLATES", PayloadFormatVersion: "STRING_VALUE", RequestParameters: { // IntegrationParameters "<keys>": "STRING_VALUE", }, RequestTemplates: { // TemplateMap "<keys>": "STRING_VALUE", }, ResponseParameters: { // ResponseParameters "<keys>": { "<keys>": "STRING_VALUE", }, }, TemplateSelectionExpression: "STRING_VALUE", TimeoutInMillis: Number("int"), TlsConfig: { // TlsConfigInput ServerNameToVerify: "STRING_VALUE", },};const command = new UpdateIntegrationCommand(input);const response = await client.send(command);// { // UpdateIntegrationResult// ApiGatewayManaged: true || false,// ConnectionId: "STRING_VALUE",// ConnectionType: "INTERNET" || "VPC_LINK",// ContentHandlingStrategy: "CONVERT_TO_BINARY" || "CONVERT_TO_TEXT",// CredentialsArn: "STRING_VALUE",// Description: "STRING_VALUE",// IntegrationId: "STRING_VALUE",// IntegrationMethod: "STRING_VALUE",// IntegrationResponseSelectionExpression: "STRING_VALUE",// IntegrationSubtype: "STRING_VALUE",// IntegrationType: "AWS" || "HTTP" || "MOCK" || "HTTP_PROXY" || "AWS_PROXY",// IntegrationUri: "STRING_VALUE",// PassthroughBehavior: "WHEN_NO_MATCH" || "NEVER" || "WHEN_NO_TEMPLATES",// PayloadFormatVersion: "STRING_VALUE",// RequestParameters: { // IntegrationParameters// "<keys>": "STRING_VALUE",// },// RequestTemplates: { // TemplateMap// "<keys>": "STRING_VALUE",// },// ResponseParameters: { // ResponseParameters// "<keys>": {// "<keys>": "STRING_VALUE",// },// },// TemplateSelectionExpression: "STRING_VALUE",// TimeoutInMillis: Number("int"),// TlsConfig: { // TlsConfig// ServerNameToVerify: "STRING_VALUE",// },// };
UpdateIntegrationCommandInput
UpdateIntegrationCommandOutput
input
response
config
BadRequestException (client fault)
The request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
ConflictException (client fault)
The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.
NotFoundException (client fault)
The resource specified in the request was not found. See the message field for more information.
TooManyRequestsException (client fault)
A limit has been exceeded. See the accompanying error message for details.
ApiGatewayV2ServiceException
Base exception class for all service exceptions from ApiGatewayV2 service.
Readonly
Static
Updates an Integration.
Example
Use a bare-bones client and the command you need to make an API call.
Param
UpdateIntegrationCommandInput
Returns
UpdateIntegrationCommandOutput
See
input
shape.response
shape.config
shape.Throws
BadRequestException (client fault)
The request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
Throws
ConflictException (client fault)
The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.
Throws
NotFoundException (client fault)
The resource specified in the request was not found. See the message field for more information.
Throws
TooManyRequestsException (client fault)
A limit has been exceeded. See the accompanying error message for details.
Throws
ApiGatewayV2ServiceException
Base exception class for all service exceptions from ApiGatewayV2 service.