# PayloadFormatVersion

Payload format version for lambda proxy integration.

Obtainable from: PayloadFormatVersion.VERSION_1_0, PayloadFormatVersion.VERSION_2_0, PayloadFormatVersion.custom

- Source: [`aws-apigatewayv2/lib/http/integration.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-apigatewayv2/lib/http/integration.ts#L140)
- Type last changed: v2.112.0 · 1 Dec 2023

## Example

TypeScript:

```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:

```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:

```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");
```

C# / .NET:

```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");
```

Golang:

```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`: string — version as a string.

- `VERSION_1_0`: [PayloadFormatVersion](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.PayloadFormatVersion.html) (static) — Version 1.0.

- `VERSION_2_0`: [PayloadFormatVersion](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.PayloadFormatVersion.html) (static) — Version 2.0.

## Methods

- `custom(version: string): PayloadFormatVersion // chainable` (static) — A custom payload version.

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