@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:19.506Z") @Stability(value=Stable) public enum HttpMethod extends Enum<HttpMethod>
Example:
import software.amazon.awscdk.services.apigateway.*;
RestApi restApi = new RestApi(this, "MyRestApi");
CallApiGatewayRestApiEndpoint invokeTask = CallApiGatewayRestApiEndpoint.Builder.create(this, "Call REST API")
.api(restApi)
.stageName("prod")
.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 DELETE
@Stability(value=Stable) public static final HttpMethod GET
@Stability(value=Stable) public static final HttpMethod HEAD
@Stability(value=Stable) public static final HttpMethod OPTIONS
@Stability(value=Stable) public static final HttpMethod PATCH
@Stability(value=Stable) public static final HttpMethod POST
@Stability(value=Stable) public static final HttpMethod PUT
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 © 2021. All rights reserved.