public static interface Route.Builder extends SdkPojo, CopyableBuilder<Route.Builder,Route>
| Modifier and Type | Method and Description |
|---|---|
Route.Builder |
apiGatewayManaged(Boolean apiGatewayManaged)
Specifies whether a route is managed by API Gateway.
|
Route.Builder |
apiKeyRequired(Boolean apiKeyRequired)
Specifies whether an API key is required for this route.
|
Route.Builder |
authorizationScopes(Collection<String> authorizationScopes)
A list of authorization scopes configured on a route.
|
Route.Builder |
authorizationScopes(String... authorizationScopes)
A list of authorization scopes configured on a route.
|
Route.Builder |
authorizationType(AuthorizationType authorizationType)
The authorization type for the route.
|
Route.Builder |
authorizationType(String authorizationType)
The authorization type for the route.
|
Route.Builder |
authorizerId(String authorizerId)
The identifier of the Authorizer resource to be associated with this route.
|
Route.Builder |
modelSelectionExpression(String modelSelectionExpression)
The model selection expression for the route.
|
Route.Builder |
operationName(String operationName)
The operation name for the route.
|
Route.Builder |
requestModels(Map<String,String> requestModels)
The request models for the route.
|
Route.Builder |
requestParameters(Map<String,ParameterConstraints> requestParameters)
The request parameters for the route.
|
Route.Builder |
routeId(String routeId)
The route ID.
|
Route.Builder |
routeKey(String routeKey)
The route key for the route.
|
Route.Builder |
routeResponseSelectionExpression(String routeResponseSelectionExpression)
The route response selection expression for the route.
|
Route.Builder |
target(String target)
The target for the route.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildRoute.Builder apiGatewayManaged(Boolean apiGatewayManaged)
Specifies whether a route is managed by API Gateway. If you created an API using quick create, the $default route is managed by API Gateway. You can't modify the $default route key.
apiGatewayManaged - Specifies whether a route is managed by API Gateway. If you created an API using quick create, the
$default route is managed by API Gateway. You can't modify the $default route key.Route.Builder apiKeyRequired(Boolean apiKeyRequired)
Specifies whether an API key is required for this route. Supported only for WebSocket APIs.
apiKeyRequired - Specifies whether an API key is required for this route. Supported only for WebSocket APIs.Route.Builder authorizationScopes(Collection<String> authorizationScopes)
A list of authorization scopes configured on a route. The scopes are used with a JWT authorizer to authorize the method invocation. The authorization works by matching the route scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any route scope matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the route scope is configured, the client must provide an access token instead of an identity token for authorization purposes.
authorizationScopes - A list of authorization scopes configured on a route. The scopes are used with a JWT authorizer to
authorize the method invocation. The authorization works by matching the route scopes against the
scopes parsed from the access token in the incoming request. The method invocation is authorized if
any route scope matches a claimed scope in the access token. Otherwise, the invocation is not
authorized. When the route scope is configured, the client must provide an access token instead of an
identity token for authorization purposes.Route.Builder authorizationScopes(String... authorizationScopes)
A list of authorization scopes configured on a route. The scopes are used with a JWT authorizer to authorize the method invocation. The authorization works by matching the route scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any route scope matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the route scope is configured, the client must provide an access token instead of an identity token for authorization purposes.
authorizationScopes - A list of authorization scopes configured on a route. The scopes are used with a JWT authorizer to
authorize the method invocation. The authorization works by matching the route scopes against the
scopes parsed from the access token in the incoming request. The method invocation is authorized if
any route scope matches a claimed scope in the access token. Otherwise, the invocation is not
authorized. When the route scope is configured, the client must provide an access token instead of an
identity token for authorization purposes.Route.Builder authorizationType(String authorizationType)
The authorization type for the route. 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. 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,
AuthorizationTypeRoute.Builder authorizationType(AuthorizationType authorizationType)
The authorization type for the route. 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. 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,
AuthorizationTypeRoute.Builder authorizerId(String authorizerId)
The identifier of the Authorizer resource to be associated with this route. 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. The authorizer identifier
is generated by API Gateway when you created the authorizer.Route.Builder modelSelectionExpression(String modelSelectionExpression)
The model selection expression for the route. Supported only for WebSocket APIs.
modelSelectionExpression - The model selection expression for the route. Supported only for WebSocket APIs.Route.Builder operationName(String operationName)
The operation name for the route.
operationName - The operation name for the route.Route.Builder requestModels(Map<String,String> requestModels)
The request models for the route. Supported only for WebSocket APIs.
requestModels - The request models for the route. Supported only for WebSocket APIs.Route.Builder requestParameters(Map<String,ParameterConstraints> requestParameters)
The request parameters for the route. Supported only for WebSocket APIs.
requestParameters - The request parameters for the route. Supported only for WebSocket APIs.Route.Builder routeId(String routeId)
The route ID.
routeId - The route ID.Route.Builder routeKey(String routeKey)
The route key for the route.
routeKey - The route key for the route.Route.Builder routeResponseSelectionExpression(String routeResponseSelectionExpression)
The route response selection expression for the route. Supported only for WebSocket APIs.
routeResponseSelectionExpression - The route response selection expression for the route. Supported only for WebSocket APIs.Route.Builder target(String target)
The target for the route.
target - The target for the route.Copyright © 2022. All rights reserved.