Skip to content
v2.274.0

ContentHandling Enum ​

Example ​

ts
declare const getBookHandler: lambda.Function;
declare const getBookIntegration: apigateway.LambdaIntegration;

const getBookIntegration = new apigateway.LambdaIntegration(getBookHandler, {
  contentHandling: apigateway.ContentHandling.CONVERT_TO_TEXT, // convert to base64
  credentialsPassthrough: true, // use caller identity to invoke the function
});

Members ​

MemberDescription
CONVERT_TO_BINARYConverts a request payload from a base64-encoded string to a binary blob.
CONVERT_TO_TEXTConverts a request payload from a binary blob to a base64-encoded string.

Referenced by ​

  • IntegrationOptions.contentHandlingcontent_handlingcontentHandlingContentHandlingContentHandling
  • IntegrationResponse.contentHandlingcontent_handlingcontentHandlingContentHandlingContentHandling