@Stability(value=Stable) public static final class CfnRouteProps.Builder extends Object implements software.amazon.jsii.Builder<CfnRouteProps>
CfnRouteProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnRouteProps.Builder apiId(String apiId)
CfnRouteProps.getApiId()apiId - The API identifier. This parameter is required.this@Stability(value=Stable) public CfnRouteProps.Builder routeKey(String routeKey)
CfnRouteProps.getRouteKey()routeKey - The route key for the route. This parameter is required.
For HTTP APIs, the route key can be either $default , or a combination of an HTTP method and resource path, for example, GET /pets .this@Stability(value=Stable) public CfnRouteProps.Builder apiKeyRequired(Boolean apiKeyRequired)
CfnRouteProps.getApiKeyRequired()apiKeyRequired - Specifies whether an API key is required for the route.
Supported only for WebSocket APIs.this@Stability(value=Stable) public CfnRouteProps.Builder apiKeyRequired(IResolvable apiKeyRequired)
CfnRouteProps.getApiKeyRequired()apiKeyRequired - Specifies whether an API key is required for the route.
Supported only for WebSocket APIs.this@Stability(value=Stable) public CfnRouteProps.Builder authorizationScopes(List<String> authorizationScopes)
CfnRouteProps.getAuthorizationScopes()authorizationScopes - The authorization scopes supported by this route.this@Stability(value=Stable) public CfnRouteProps.Builder authorizationType(String authorizationType)
CfnRouteProps.getAuthorizationType()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.this@Stability(value=Stable) public CfnRouteProps.Builder authorizerId(String authorizerId)
CfnRouteProps.getAuthorizerId()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.this@Stability(value=Stable) public CfnRouteProps.Builder modelSelectionExpression(String modelSelectionExpression)
CfnRouteProps.getModelSelectionExpression()modelSelectionExpression - The model selection expression for the route.
Supported only for WebSocket APIs.this@Stability(value=Stable) public CfnRouteProps.Builder operationName(String operationName)
CfnRouteProps.getOperationName()operationName - The operation name for the route.this@Stability(value=Stable) public CfnRouteProps.Builder requestModels(Object requestModels)
CfnRouteProps.getRequestModels()requestModels - The request models for the route.
Supported only for WebSocket APIs.this@Stability(value=Stable) public CfnRouteProps.Builder requestParameters(Object requestParameters)
CfnRouteProps.getRequestParameters()requestParameters - The request parameters for the route.
Supported only for WebSocket APIs.this@Stability(value=Stable) public CfnRouteProps.Builder routeResponseSelectionExpression(String routeResponseSelectionExpression)
CfnRouteProps.getRouteResponseSelectionExpression()routeResponseSelectionExpression - The route response selection expression for the route.
Supported only for WebSocket APIs.this@Stability(value=Stable) public CfnRouteProps.Builder target(String target)
CfnRouteProps.getTarget()target - The target for the route.this@Stability(value=Stable) public CfnRouteProps build()
build in interface software.amazon.jsii.Builder<CfnRouteProps>CfnRoutePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.