# HttpMethods

Method type of a EKS call.

- Source: [`aws-stepfunctions-tasks/lib/eks/call.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/eks/call.ts#L139)

## Example

```ts
import * as eks from 'aws-cdk-lib/aws-eks';
import { KubectlV35Layer } from '@aws-cdk/lambda-layer-kubectl-v35';

const myEksCluster = new eks.Cluster(this, 'my sample cluster', {
  version: eks.KubernetesVersion.V1_35,
  clusterName: 'myEksCluster',
  kubectlLayer: new KubectlV35Layer(this, 'kubectl'),
});

new tasks.EksCall(this, 'Call a EKS Endpoint', {
  cluster: myEksCluster,
  httpMethod: tasks.HttpMethods.GET,
  httpPath: '/api/v1/namespaces/default/pods',
});
```

## Members

| Member | Description |
| --- | --- |
| `GET` | Retrieve data from a server at the specified resource. |
| `POST` | Send data to the API endpoint to create or update 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. |

## Referenced by

- [`EksCallJsonataProps`](/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.EksCallJsonataProps).httpMethod
- [`EksCallJsonPathProps`](/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.EksCallJsonPathProps).httpMethod
- [`EksCallProps`](/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.EksCallProps).httpMethod
