@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:15.002Z") @Stability(value=Experimental) public enum HttpMethod extends Enum<HttpMethod>
Example:
import software.amazon.awscdk.core.*;
HttpApi httpApi = new HttpApi(this, "MyHttpApi");
CallApiGatewayHttpApiEndpoint invokeTask = CallApiGatewayHttpApiEndpoint.Builder.create(this, "Call HTTP API")
.apiId(httpApi.getApiId())
.apiStack(Stack.of(httpApi))
.method(HttpMethod.GET)
.build();
| Enum Constant and Description |
|---|
DELETE
(experimental) Delete the resource at the specified endpoint.
|
GET
(experimental) Retreive data from a server at the specified resource.
|
HEAD
(experimental) Retreive data from a server at the specified resource without the response body.
|
OPTIONS
(experimental) Return data describing what other methods and operations the server supports.
|
PATCH
(experimental) Apply partial modifications to the resource.
|
POST
(experimental) Send data to the API endpoint to create or udpate a resource.
|
PUT
(experimental) Send data to the API endpoint to update or create a resource.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final HttpMethod GET
@Stability(value=Experimental) public static final HttpMethod POST
@Stability(value=Experimental) public static final HttpMethod PUT
@Stability(value=Experimental) public static final HttpMethod DELETE
@Stability(value=Experimental) public static final HttpMethod PATCH
@Stability(value=Experimental) public static final HttpMethod HEAD
@Stability(value=Experimental) public static final HttpMethod OPTIONS
public static HttpMethod[] values()
for (HttpMethod c : HttpMethod.values()) System.out.println(c);
public static HttpMethod 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.