@aws-cdk_aws-apigatewayv2-alpha.HttpMethod

enum HttpMethod ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Apigatewayv2.Alpha.HttpMethod
Gogithub.com/aws/aws-cdk-go/awscdkapigatewayv2alpha/v2#HttpMethod
Javasoftware.amazon.awscdk.services.apigatewayv2.alpha.HttpMethod
Pythonaws_cdk.aws_apigatewayv2_alpha.HttpMethod
TypeScript (source)@aws-cdk/aws-apigatewayv2-alpha ยป HttpMethod

Supported HTTP methods.

Example

import { HttpUrlIntegration, HttpLambdaIntegration } from '@aws-cdk/aws-apigatewayv2-integrations-alpha';

const getBooksIntegration = new HttpUrlIntegration('GetBooksIntegration', 'https://get-books-proxy.example.com');

declare const booksDefaultFn: lambda.Function;
const booksDefaultIntegration = new HttpLambdaIntegration('BooksIntegration', booksDefaultFn);

const httpApi = new apigwv2.HttpApi(this, 'HttpApi');

httpApi.addRoutes({
  path: '/books',
  methods: [ apigwv2.HttpMethod.GET ],
  integration: getBooksIntegration,
});
httpApi.addRoutes({
  path: '/books',
  methods: [ apigwv2.HttpMethod.ANY ],
  integration: booksDefaultIntegration,
});

Members

NameDescription
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.