Skip to content
v2.274.0

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 ​

MemberDescription
GETRetrieve data from a server at the specified resource.
POSTSend data to the API endpoint to create or update 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.

Referenced by ​