@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.287Z") @Stability(value=Stable) public interface CfnRouteProps extends software.amazon.jsii.JsiiSerializable
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.*;
Object requestModels;
Object requestParameters;
CfnRouteProps cfnRouteProps = CfnRouteProps.builder()
.apiId("apiId")
.routeKey("routeKey")
// the properties below are optional
.apiKeyRequired(false)
.authorizationScopes(List.of("authorizationScopes"))
.authorizationType("authorizationType")
.authorizerId("authorizerId")
.modelSelectionExpression("modelSelectionExpression")
.operationName("operationName")
.requestModels(requestModels)
.requestParameters(requestParameters)
.routeResponseSelectionExpression("routeResponseSelectionExpression")
.target("target")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRouteProps.Builder
A builder for
CfnRouteProps |
static class |
CfnRouteProps.Jsii$Proxy
An implementation for
CfnRouteProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnRouteProps.Builder |
builder() |
String |
getApiId()
The API identifier.
|
default Object |
getApiKeyRequired()
Specifies whether an API key is required for the route.
|
default List<String> |
getAuthorizationScopes()
The authorization scopes supported by this route.
|
default String |
getAuthorizationType()
The authorization type for the route.
|
default String |
getAuthorizerId()
The identifier of the `Authorizer` resource to be associated with this route.
|
default String |
getModelSelectionExpression()
The model selection expression for the route.
|
default String |
getOperationName()
The operation name for the route.
|
default Object |
getRequestModels()
The request models for the route.
|
default Object |
getRequestParameters()
The request parameters for the route.
|
String |
getRouteKey()
The route key for the route.
|
default String |
getRouteResponseSelectionExpression()
The route response selection expression for the route.
|
default String |
getTarget()
The target for the route.
|
@Stability(value=Stable) @NotNull String getApiId()
@Stability(value=Stable) @NotNull String getRouteKey()
For HTTP APIs, the route key can be either $default , or a combination of an HTTP method and resource path, for example, GET /pets .
@Stability(value=Stable) @Nullable default Object getApiKeyRequired()
Supported only for WebSocket APIs.
@Stability(value=Stable) @Nullable default List<String> getAuthorizationScopes()
@Stability(value=Stable) @Nullable default String getAuthorizationType()
For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer. For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.
@Stability(value=Stable) @Nullable default String getAuthorizerId()
The authorizer identifier is generated by API Gateway when you created the authorizer.
@Stability(value=Stable) @Nullable default String getModelSelectionExpression()
Supported only for WebSocket APIs.
@Stability(value=Stable) @Nullable default String getOperationName()
@Stability(value=Stable) @Nullable default Object getRequestModels()
Supported only for WebSocket APIs.
@Stability(value=Stable) @Nullable default Object getRequestParameters()
Supported only for WebSocket APIs.
@Stability(value=Stable) @Nullable default String getRouteResponseSelectionExpression()
Supported only for WebSocket APIs.
@Stability(value=Stable) @Nullable default String getTarget()
@Stability(value=Stable) static CfnRouteProps.Builder builder()
CfnRouteProps.Builder of CfnRoutePropsCopyright © 2022. All rights reserved.