Modifier and Type | Method and Description |
---|---|
HttpRoute.Builder |
authorizationScopes(java.util.List<java.lang.String> authorizationScopes)
(experimental) The list of OIDC scopes to include in the authorization.
|
HttpRoute.Builder |
authorizer(IHttpRouteAuthorizer authorizer)
(experimental) Authorizer for a WebSocket API or an HTTP API.
|
HttpRoute |
build() |
static HttpRoute.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
HttpRoute.Builder |
httpApi(IHttpApi httpApi)
(experimental) the API the route is associated with.
|
HttpRoute.Builder |
integration(HttpRouteIntegration integration)
(experimental) The integration to be configured on this route.
|
HttpRoute.Builder |
routeKey(HttpRouteKey routeKey)
(experimental) The key to this route.
|
public static HttpRoute.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.HttpRoute.Builder
.public HttpRoute.Builder integration(HttpRouteIntegration integration)
integration
- The integration to be configured on this route. This parameter is required.this
public HttpRoute.Builder httpApi(IHttpApi httpApi)
httpApi
- the API the route is associated with. This parameter is required.this
public HttpRoute.Builder routeKey(HttpRouteKey routeKey)
This is a combination of an HTTP method and an HTTP path.
routeKey
- The key to this route. This parameter is required.this
public HttpRoute.Builder authorizationScopes(java.util.List<java.lang.String> authorizationScopes)
These scopes will be merged with the scopes from the attached authorizer
Default: - no additional authorization scopes
authorizationScopes
- The list of OIDC scopes to include in the authorization. This parameter is required.this
public HttpRoute.Builder authorizer(IHttpRouteAuthorizer authorizer)
Default: - No authorizer
authorizer
- Authorizer for a WebSocket API or an HTTP API. This parameter is required.this
public HttpRoute build()