@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:15.751Z") @Stability(value=Experimental) public enum HttpMethod extends Enum<HttpMethod>
Example:
import software.amazon.awscdk.core.*;
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
(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.