Skip to content
v2.276.0

PayloadFormatVersion Class ​

Payload format version for lambda proxy integration.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
const payloadFormatVersion = apigatewayv2.PayloadFormatVersion.custom('version');

Properties ​

versionstringversionstrversionStringVersionstringVersion*string#
version as a string.
Version 1.0.
Version 2.0.

Methods ​

custom(version: string): PayloadFormatVersion // chainable@staticmethod def custom(version: str) -> PayloadFormatVersionpublic static PayloadFormatVersion custom(String version)public static PayloadFormatVersion Custom(string version)func Custom(Version *string) PayloadFormatVersionstatic#
A custom payload version.

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