enum HttpMethod
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.Apigatewayv2.HttpMethod | 
|  Go | github.com/aws/aws-cdk-go/awscdk/v2/awsapigatewayv2#HttpMethod | 
|  Java | software.amazon.awscdk.services.apigatewayv2.HttpMethod | 
|  Python | aws_cdk.aws_apigatewayv2.HttpMethod | 
|  TypeScript (source) | aws-cdk-lib»aws_apigatewayv2»HttpMethod | 
Supported HTTP methods.
Example
import { WebSocketAwsIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations';
import * as dynamodb from 'aws-cdk-lib/aws-dynamodb';
import * as iam from 'aws-cdk-lib/aws-iam';
const webSocketApi = new apigwv2.WebSocketApi(this, 'mywsapi');
new apigwv2.WebSocketStage(this, 'mystage', {
  webSocketApi,
  stageName: 'dev',
  autoDeploy: true,
});
declare const apiRole: iam.Role;
declare const table: dynamodb.Table;
webSocketApi.addRoute('$connect', {
  integration: new WebSocketAwsIntegration('DynamodbPutItem', {
    integrationUri: `arn:aws:apigateway:${this.region}:dynamodb:action/PutItem`,
    integrationMethod: apigwv2.HttpMethod.POST,
    credentialsRole: apiRole,
    requestTemplates: {
      'application/json': JSON.stringify({
        TableName: table.tableName,
        Item: {
          id: {
            S: '$context.requestId',
          },
        },
      }),
    },
  }),
});
Members
| Name | Description | 
|---|---|
| ANY | HTTP ANY. | 
| DELETE | HTTP DELETE. | 
| GET | HTTP GET. | 
| HEAD | HTTP HEAD. | 
| OPTIONS | HTTP OPTIONS. | 
| PATCH | HTTP PATCH. | 
| POST | HTTP POST. | 
| PUT | HTTP PUT. | 
ANY
HTTP ANY.
DELETE
HTTP DELETE.
GET
HTTP GET.
HEAD
HTTP HEAD.
OPTIONS
HTTP OPTIONS.
PATCH
HTTP PATCH.
POST
HTTP POST.
PUT
HTTP PUT.
