@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2022-12-27T20:28:49.358Z") @Stability(value=Stable) public enum HttpMethods extends Enum<HttpMethods>
Example:
import software.amazon.awscdk.services.eks.*;
Cluster myEksCluster = Cluster.Builder.create(this, "my sample cluster")
.version(KubernetesVersion.V1_18)
.clusterName("myEksCluster")
.build();
EksCall.Builder.create(this, "Call a EKS Endpoint")
.cluster(myEksCluster)
.httpMethod(HttpMethods.GET)
.httpPath("/api/v1/namespaces/default/pods")
.build();
| Enum Constant and Description |
|---|
DELETE
Delete the resource at the specified endpoint.
|
GET
Retrieve data from a server at the specified resource.
|
HEAD
Retrieve data from a server at the specified resource without the response body.
|
PATCH
Apply partial modifications to the 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.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpMethods |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpMethods[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final HttpMethods GET
@Stability(value=Stable) public static final HttpMethods POST
@Stability(value=Stable) public static final HttpMethods PUT
@Stability(value=Stable) public static final HttpMethods DELETE
@Stability(value=Stable) public static final HttpMethods PATCH
@Stability(value=Stable) public static final HttpMethods HEAD
public static HttpMethods[] values()
for (HttpMethods c : HttpMethods.values()) System.out.println(c);
public static HttpMethods valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.