Interface CfnRouteProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRouteProps.Jsii$Proxy
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();
- See Also:
-
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 ObjectThe 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 ObjectThe target for the route.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApiId
- See Also:
-
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.- See Also:
-
getApiKeyRequired
Specifies whether an API key is required for the route.Supported only for WebSocket APIs.
Returns union: either
BooleanorIResolvable- See Also:
-
getAuthorizationScopes
The authorization scopes supported by this route.- See Also:
-
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.- See Also:
-
getAuthorizerId
The identifier of theAuthorizerresource to be associated with this route.The authorizer identifier is generated by API Gateway when you created the authorizer.
Returns union: either
StringorIAuthorizerRef- See Also:
-
getModelSelectionExpression
The model selection expression for the route.Supported only for WebSocket APIs.
- See Also:
-
getOperationName
The operation name for the route.- See Also:
-
getRequestModels
The request models for the route.Supported only for WebSocket APIs.
- See Also:
-
getRequestParameters
The request parameters for the route.Supported only for WebSocket APIs.
- See Also:
-
getRouteResponseSelectionExpression
The route response selection expression for the route.Supported only for WebSocket APIs.
- See Also:
-
getTarget
The target for the route.Returns union: either
StringorIIntegrationRef- See Also:
-
builder
- Returns:
- a
CfnRouteProps.BuilderofCfnRouteProps
-