Skip to content
v2.274.0

HttpMethod Enum ​

Http Methods that API Gateway supports.

Example ​

ts
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
declare const api: apigateway.RestApi;

tasks.CallApiGatewayRestApiEndpoint.jsonata(this, 'Endpoint', {
  api,
  stageName: 'Stage',
  method: tasks.HttpMethod.PUT,
  integrationPattern: sfn.IntegrationPattern.WAIT_FOR_TASK_TOKEN,
  headers: sfn.TaskInput.fromObject({
    TaskToken: '{% States.Array($states.context.taskToken) %}',
  }),
});

Members ​

MemberDescription
GETRetrieve data from a server at the specified resource.
POSTSend data to the API endpoint to create or udpate a resource.
PUTSend data to the API endpoint to update or create a resource.
DELETEDelete the resource at the specified endpoint.
PATCHApply partial modifications to the resource.
HEADRetrieve data from a server at the specified resource without the response body.
OPTIONSReturn data describing what other methods and operations the server supports.

Referenced by ​