HttpMethods Enum
Method type of a EKS call.
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.httpMethodhttp_methodhttpMethodHttpMethodHttpMethodEksCallJsonPathProps.httpMethodhttp_methodhttpMethodHttpMethodHttpMethodEksCallProps.httpMethodhttp_methodhttpMethodHttpMethodHttpMethod