enum ContentHandling
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.APIGateway.ContentHandling |
![]() | software.amazon.awscdk.services.apigateway.ContentHandling |
![]() | aws_cdk.aws_apigateway.ContentHandling |
![]() | @aws-cdk/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
Name | Description |
---|---|
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. |
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.