@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:57.342Z") @Stability(value=Experimental) public enum HttpMethods extends Enum<HttpMethods>
Example:
import software.amazon.awscdk.core.*;
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
(experimental) Delete the resource at the specified endpoint.
|
GET
(experimental) Retrieve data from a server at the specified resource.
|
HEAD
(experimental) Retrieve data from a server at the specified resource without the response body.
|
PATCH
(experimental) Apply partial modifications to the resource.
|
POST
(experimental) Send data to the API endpoint to create or update a resource.
|
PUT
(experimental) 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=Experimental) public static final HttpMethods GET
@Stability(value=Experimental) public static final HttpMethods POST
@Stability(value=Experimental) public static final HttpMethods PUT
@Stability(value=Experimental) public static final HttpMethods DELETE
@Stability(value=Experimental) public static final HttpMethods PATCH
@Stability(value=Experimental) 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.