PayloadFormatVersion

class aws_cdk.aws_apigatewayv2.PayloadFormatVersion(*args: Any, **kwargs)

Bases: object

Payload format version for lambda proxy integration.

See:

https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apigatewayv2 as apigatewayv2

payload_format_version = apigatewayv2.PayloadFormatVersion.custom("version")

Attributes

VERSION_1_0 = <aws_cdk.aws_apigatewayv2.PayloadFormatVersion object>
VERSION_2_0 = <aws_cdk.aws_apigatewayv2.PayloadFormatVersion object>
version

version as a string.

Static Methods

classmethod custom(version)

A custom payload version.

Typically used if there is a version number that the CDK doesn’t support yet

Parameters:

version (str) –

Return type:

PayloadFormatVersion