Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class CreateIntegrationResponseCommandProtected

Creates an IntegrationResponses.

Example

Use a bare-bones client and the command you need to make an API call.

import { ApiGatewayV2Client, CreateIntegrationResponseCommand } from "@aws-sdk/client-apigatewayv2"; // ES Modules import
// const { ApiGatewayV2Client, CreateIntegrationResponseCommand } = require("@aws-sdk/client-apigatewayv2"); // CommonJS import
const client = new ApiGatewayV2Client(config);
const input = { // CreateIntegrationResponseRequest
ApiId: "STRING_VALUE", // required
ContentHandlingStrategy: "CONVERT_TO_BINARY" || "CONVERT_TO_TEXT",
IntegrationId: "STRING_VALUE", // required
IntegrationResponseKey: "STRING_VALUE", // required
ResponseParameters: { // IntegrationParameters
"<keys>": "STRING_VALUE",
},
ResponseTemplates: { // TemplateMap
"<keys>": "STRING_VALUE",
},
TemplateSelectionExpression: "STRING_VALUE",
};
const command = new CreateIntegrationResponseCommand(input);
const response = await client.send(command);
// { // CreateIntegrationResponseResponse
// ContentHandlingStrategy: "CONVERT_TO_BINARY" || "CONVERT_TO_TEXT",
// IntegrationResponseId: "STRING_VALUE",
// IntegrationResponseKey: "STRING_VALUE",
// ResponseParameters: { // IntegrationParameters
// "<keys>": "STRING_VALUE",
// },
// ResponseTemplates: { // TemplateMap
// "<keys>": "STRING_VALUE",
// },
// TemplateSelectionExpression: "STRING_VALUE",
// };

Param

CreateIntegrationResponseCommandInput

Returns

CreateIntegrationResponseCommandOutput

See

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.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods