# HttpMethod

Http Methods that API Gateway supports.

- Source: [`aws-stepfunctions-tasks/lib/apigateway/base-types.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/base-types.ts#L4)

## 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

| Member | Description |
| --- | --- |
| `GET` | Retrieve data from a server at the specified resource. |
| `POST` | Send data to the API endpoint to create or udpate a resource. |
| `PUT` | Send data to the API endpoint to update or create a resource. |
| `DELETE` | Delete the resource at the specified endpoint. |
| `PATCH` | Apply partial modifications to the resource. |
| `HEAD` | Retrieve data from a server at the specified resource without the response body. |
| `OPTIONS` | Return data describing what other methods and operations the server supports. |

## Referenced by

- [`CallApiGatewayEndpointBaseOptions`](/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.CallApiGatewayEndpointBaseOptions).method
