aws-cdk-lib.aws_apigateway.ContentHandling

enum ContentHandling

LanguageType name
.NETAmazon.CDK.AWS.APIGateway.ContentHandling
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsapigateway#ContentHandling
Javasoftware.amazon.awscdk.services.apigateway.ContentHandling
Pythonaws_cdk.aws_apigateway.ContentHandling
TypeScript (source)aws-cdk-lib » aws_apigateway » ContentHandling

Example

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

NameDescription
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.

CONVERT_TO_BINARY

Converts a request payload from a base64-encoded string to a binary blob.


CONVERT_TO_TEXT

Converts a request payload from a binary blob to a base64-encoded string.