Interface CfnRouteProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRouteProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:43.223Z")
@Stability(Stable)
public interface CfnRouteProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnRoute.
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRoutePropsstatic final classAn implementation forCfnRouteProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnRouteProps.Builderbuilder()getApiId()The API identifier.default ObjectSpecifies whether an API key is required for the route.The authorization scopes supported by this route.default StringThe authorization type for the route.default StringThe identifier of theAuthorizerresource to be associated with this route.default StringThe model selection expression for the route.default StringThe operation name for the route.default ObjectThe request models for the route.default ObjectThe request parameters for the route.The route key for the route.default StringThe route response selection expression for the route.default StringThe target for the route.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApiId
The API identifier. -
getRouteKey
The route key for the route.For HTTP APIs, the route key can be either
$default, or a combination of an HTTP method and resource path, for example,GET /pets. -
getApiKeyRequired
Specifies whether an API key is required for the route.Supported only for WebSocket APIs.
-
getAuthorizationScopes
The authorization scopes supported by this route. -
getAuthorizationType
The authorization type for the route.For WebSocket APIs, valid values are
NONEfor open access,AWS_IAMfor using AWS IAM permissions, andCUSTOMfor using a Lambda authorizer. For HTTP APIs, valid values areNONEfor open access,JWTfor using JSON Web Tokens,AWS_IAMfor using AWS IAM permissions, andCUSTOMfor using a Lambda authorizer. -
getAuthorizerId
The identifier of theAuthorizerresource to be associated with this route.The authorizer identifier is generated by API Gateway when you created the authorizer.
-
getModelSelectionExpression
The model selection expression for the route.Supported only for WebSocket APIs.
-
getOperationName
The operation name for the route. -
getRequestModels
The request models for the route.Supported only for WebSocket APIs.
-
getRequestParameters
The request parameters for the route.Supported only for WebSocket APIs.
-
getRouteResponseSelectionExpression
The route response selection expression for the route.Supported only for WebSocket APIs.
-
getTarget
The target for the route. -
builder
- Returns:
- a
CfnRouteProps.BuilderofCfnRouteProps
-