@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-02-15T19:53:17.398Z") @Stability(value=Experimental) public interface HttpRouteProps extends software.amazon.jsii.JsiiSerializable, BatchHttpRouteOptions
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigatewayv2.alpha.*;
HttpApi httpApi;
IHttpRouteAuthorizer httpRouteAuthorizer;
HttpRouteIntegration httpRouteIntegration;
HttpRouteKey httpRouteKey;
HttpRouteProps httpRouteProps = HttpRouteProps.builder()
.httpApi(httpApi)
.integration(httpRouteIntegration)
.routeKey(httpRouteKey)
// the properties below are optional
.authorizationScopes(List.of("authorizationScopes"))
.authorizer(httpRouteAuthorizer)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
HttpRouteProps.Builder
A builder for
HttpRouteProps |
static class |
HttpRouteProps.Jsii$Proxy
An implementation for
HttpRouteProps |
| Modifier and Type | Method and Description |
|---|---|
static HttpRouteProps.Builder |
builder() |
default List<String> |
getAuthorizationScopes()
(experimental) The list of OIDC scopes to include in the authorization.
|
default IHttpRouteAuthorizer |
getAuthorizer()
(experimental) Authorizer for a WebSocket API or an HTTP API.
|
IHttpApi |
getHttpApi()
(experimental) the API the route is associated with.
|
HttpRouteKey |
getRouteKey()
(experimental) The key to this route.
|
getIntegration@Stability(value=Experimental) @NotNull IHttpApi getHttpApi()
@Stability(value=Experimental) @NotNull HttpRouteKey getRouteKey()
This is a combination of an HTTP method and an HTTP path.
@Stability(value=Experimental) @Nullable default List<String> getAuthorizationScopes()
These scopes will be merged with the scopes from the attached authorizer
Default: - no additional authorization scopes
@Stability(value=Experimental) @Nullable default IHttpRouteAuthorizer getAuthorizer()
Default: - No authorizer
@Stability(value=Experimental) static HttpRouteProps.Builder builder()
builder in interface BatchHttpRouteOptionsHttpRouteProps.Builder of HttpRoutePropsCopyright © 2023. All rights reserved.