ContentHandling

class aws_cdk.aws_apigateway.ContentHandling(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

ExampleMetadata:

infused

Example:

# get_book_handler: lambda.Function
# get_book_integration: apigateway.LambdaIntegration


get_book_integration = apigateway.LambdaIntegration(get_book_handler,
    content_handling=apigateway.ContentHandling.CONVERT_TO_TEXT,  # convert to base64
    credentials_passthrough=True
)

Attributes

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.