@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:23.613Z") @Stability(value=Experimental) public enum HttpMethod extends Enum<HttpMethod>
Example:
import software.amazon.awscdk.services.apigatewayv2.integrations.HttpUrlIntegration;
import software.amazon.awscdk.services.apigatewayv2.integrations.HttpLambdaIntegration;
Function booksDefaultFn;
HttpUrlIntegration getBooksIntegration = new HttpUrlIntegration("GetBooksIntegration", "https://get-books-proxy.myproxy.internal");
HttpLambdaIntegration booksDefaultIntegration = new HttpLambdaIntegration("BooksIntegration", booksDefaultFn);
HttpApi httpApi = new HttpApi(this, "HttpApi");
httpApi.addRoutes(AddRoutesOptions.builder()
.path("/books")
.methods(List.of(HttpMethod.GET))
.integration(getBooksIntegration)
.build());
httpApi.addRoutes(AddRoutesOptions.builder()
.path("/books")
.methods(List.of(HttpMethod.ANY))
.integration(booksDefaultIntegration)
.build());
| Enum Constant and Description |
|---|
ANY
(experimental) HTTP ANY.
|
DELETE
(experimental) HTTP DELETE.
|
GET
(experimental) HTTP GET.
|
HEAD
(experimental) HTTP HEAD.
|
OPTIONS
(experimental) HTTP OPTIONS.
|
PATCH
(experimental) HTTP PATCH.
|
POST
(experimental) HTTP POST.
|
PUT
(experimental) HTTP PUT.
|
| 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 ANY
@Stability(value=Experimental) public static final HttpMethod DELETE
@Stability(value=Experimental) public static final HttpMethod GET
@Stability(value=Experimental) public static final HttpMethod HEAD
@Stability(value=Experimental) public static final HttpMethod OPTIONS
@Stability(value=Experimental) public static final HttpMethod PATCH
@Stability(value=Experimental) public static final HttpMethod POST
@Stability(value=Experimental) 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 © 2022. All rights reserved.