PayloadFormatVersion Class
Payload format version for lambda proxy integration.
| Source | aws-apigatewayv2/lib/http/integration.ts |
|---|---|
| Type last changed |
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');
python
# 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")
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigatewayv2.*;
PayloadFormatVersion payloadFormatVersion = PayloadFormatVersion.custom("version");
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Apigatewayv2;
var payloadFormatVersion = PayloadFormatVersion.Custom("version");
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
payloadFormatVersion := awscdk.Aws_apigatewayv2.PayloadFormatVersion_Custom(jsii.String("version"))
Properties
version as a string.
VERSION_1_0PayloadFormatVersionVERSION_1_0PayloadFormatVersionVERSION_1_0PayloadFormatVersionVERSION_1_0PayloadFormatVersionVERSION_1_0PayloadFormatVersion static #Version 1.0.
VERSION_2_0PayloadFormatVersionVERSION_2_0PayloadFormatVersionVERSION_2_0PayloadFormatVersionVERSION_2_0PayloadFormatVersionVERSION_2_0PayloadFormatVersion static #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) PayloadFormatVersion static #A custom payload version.
Typically used if there is a version number that the CDK doesn't support yet