| Modifier and Type | Method and Description |
|---|---|
CfnRoute.Builder |
apiId(String apiId)
The API identifier.
|
CfnRoute.Builder |
apiKeyRequired(Boolean apiKeyRequired)
Specifies whether an API key is required for the route.
|
CfnRoute.Builder |
apiKeyRequired(IResolvable apiKeyRequired)
Specifies whether an API key is required for the route.
|
CfnRoute.Builder |
authorizationScopes(List<String> authorizationScopes)
The authorization scopes supported by this route.
|
CfnRoute.Builder |
authorizationType(String authorizationType)
The authorization type for the route.
|
CfnRoute.Builder |
authorizerId(String authorizerId)
The identifier of the `Authorizer` resource to be associated with this route.
|
CfnRoute |
build() |
static CfnRoute.Builder |
create(software.constructs.Construct scope,
String id) |
CfnRoute.Builder |
modelSelectionExpression(String modelSelectionExpression)
The model selection expression for the route.
|
CfnRoute.Builder |
operationName(String operationName)
The operation name for the route.
|
CfnRoute.Builder |
requestModels(Object requestModels)
The request models for the route.
|
CfnRoute.Builder |
requestParameters(Object requestParameters)
The request parameters for the route.
|
CfnRoute.Builder |
routeKey(String routeKey)
The route key for the route.
|
CfnRoute.Builder |
routeResponseSelectionExpression(String routeResponseSelectionExpression)
The route response selection expression for the route.
|
CfnRoute.Builder |
target(String target)
The target for the route.
|
@Stability(value=Stable) public static CfnRoute.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnRoute.ParameterConstraintsProperty.Builder.@Stability(value=Stable) public CfnRoute.Builder apiId(String apiId)
apiId - The API identifier. This parameter is required.this@Stability(value=Stable) public CfnRoute.Builder routeKey(String routeKey)
For HTTP APIs, the route key can be either $default , or a combination of an HTTP method and resource path, for example, GET /pets .
routeKey - The route key for the route. This parameter is required.this@Stability(value=Stable) public CfnRoute.Builder apiKeyRequired(Boolean apiKeyRequired)
Supported only for WebSocket APIs.
apiKeyRequired - Specifies whether an API key is required for the route. This parameter is required.this@Stability(value=Stable) public CfnRoute.Builder apiKeyRequired(IResolvable apiKeyRequired)
Supported only for WebSocket APIs.
apiKeyRequired - Specifies whether an API key is required for the route. This parameter is required.this@Stability(value=Stable) public CfnRoute.Builder authorizationScopes(List<String> authorizationScopes)
authorizationScopes - The authorization scopes supported by this route. This parameter is required.this@Stability(value=Stable) public CfnRoute.Builder authorizationType(String authorizationType)
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.
authorizationType - The authorization type for the route. This parameter is required.this@Stability(value=Stable) public CfnRoute.Builder authorizerId(String authorizerId)
The authorizer identifier is generated by API Gateway when you created the authorizer.
authorizerId - The identifier of the `Authorizer` resource to be associated with this route. This parameter is required.this@Stability(value=Stable) public CfnRoute.Builder modelSelectionExpression(String modelSelectionExpression)
Supported only for WebSocket APIs.
modelSelectionExpression - The model selection expression for the route. This parameter is required.this@Stability(value=Stable) public CfnRoute.Builder operationName(String operationName)
operationName - The operation name for the route. This parameter is required.this@Stability(value=Stable) public CfnRoute.Builder requestModels(Object requestModels)
Supported only for WebSocket APIs.
requestModels - The request models for the route. This parameter is required.this@Stability(value=Stable) public CfnRoute.Builder requestParameters(Object requestParameters)
Supported only for WebSocket APIs.
requestParameters - The request parameters for the route. This parameter is required.this@Stability(value=Stable) public CfnRoute.Builder routeResponseSelectionExpression(String routeResponseSelectionExpression)
Supported only for WebSocket APIs.
routeResponseSelectionExpression - The route response selection expression for the route. This parameter is required.this@Stability(value=Stable) public CfnRoute.Builder target(String target)
target - The target for the route. This parameter is required.thisCopyright © 2022. All rights reserved.