@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2023-01-03T16:22:40.637Z") @Stability(value=Stable) public enum HttpMethod extends Enum<HttpMethod>
Example:
import software.amazon.awscdk.services.apigatewayv2.*;
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
Delete the resource at the specified endpoint.
|
GET
Retreive data from a server at the specified resource.
|
HEAD
Retreive data from a server at the specified resource without the response body.
|
OPTIONS
Return data describing what other methods and operations the server supports.
|
PATCH
Apply partial modifications to the resource.
|
POST
Send data to the API endpoint to create or udpate a resource.
|
PUT
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=Stable) public static final HttpMethod GET
@Stability(value=Stable) public static final HttpMethod POST
@Stability(value=Stable) public static final HttpMethod PUT
@Stability(value=Stable) public static final HttpMethod DELETE
@Stability(value=Stable) public static final HttpMethod PATCH
@Stability(value=Stable) public static final HttpMethod HEAD
@Stability(value=Stable) 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 © 2023. All rights reserved.