ContentHandling

class aws_cdk.aws_apigateway.ContentHandling(value)

Bases: enum.Enum

ExampleMetadata

infused

Example:

# get_book_handler is of type Function
# get_book_integration is of type 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.