interface CfnRouteV2Props
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.APIGateway.CfnRouteV2Props |
Java | software.amazon.awscdk.services.apigateway.CfnRouteV2Props |
Python | aws_cdk.aws_apigateway.CfnRouteV2Props |
TypeScript (source) | @aws-cdk/aws-apigateway » CfnRouteV2Props |
⚠️ Deprecated: moved to package aws-apigatewayv2
Properties for defining a AWS::ApiGatewayV2::Route
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-route.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as apigateway from '@aws-cdk/aws-apigateway';
declare const requestModels: any;
declare const requestParameters: any;
const cfnRouteV2Props: apigateway.CfnRouteV2Props = {
apiId: 'apiId',
routeKey: 'routeKey',
// the properties below are optional
apiKeyRequired: false,
authorizationScopes: ['authorizationScopes'],
authorizationType: 'authorizationType',
authorizerId: 'authorizerId',
modelSelectionExpression: 'modelSelectionExpression',
operationName: 'operationName',
requestModels: requestModels,
requestParameters: requestParameters,
routeResponseSelectionExpression: 'routeResponseSelectionExpression',
target: 'target',
};
Properties
Name | Type | Description |
---|---|---|
api | string | AWS::ApiGatewayV2::Route.ApiId . |
route | string | AWS::ApiGatewayV2::Route.RouteKey . |
api | boolean | IResolvable | AWS::ApiGatewayV2::Route.ApiKeyRequired . |
authorization | string[] | AWS::ApiGatewayV2::Route.AuthorizationScopes . |
authorization | string | AWS::ApiGatewayV2::Route.AuthorizationType . |
authorizer | string | AWS::ApiGatewayV2::Route.AuthorizerId . |
model | string | AWS::ApiGatewayV2::Route.ModelSelectionExpression . |
operation | string | AWS::ApiGatewayV2::Route.OperationName . |
request | any | AWS::ApiGatewayV2::Route.RequestModels . |
request | any | AWS::ApiGatewayV2::Route.RequestParameters . |
route | string | AWS::ApiGatewayV2::Route.RouteResponseSelectionExpression . |
target? | string | AWS::ApiGatewayV2::Route.Target . |
apiId
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
AWS::ApiGatewayV2::Route.ApiId
.
routeKey
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
AWS::ApiGatewayV2::Route.RouteKey
.
apiKeyRequired?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
boolean |
IResolvable
(optional)
AWS::ApiGatewayV2::Route.ApiKeyRequired
.
authorizationScopes?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string[]
(optional)
AWS::ApiGatewayV2::Route.AuthorizationScopes
.
authorizationType?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
(optional)
AWS::ApiGatewayV2::Route.AuthorizationType
.
authorizerId?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
(optional)
AWS::ApiGatewayV2::Route.AuthorizerId
.
modelSelectionExpression?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
(optional)
AWS::ApiGatewayV2::Route.ModelSelectionExpression
.
operationName?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
(optional)
AWS::ApiGatewayV2::Route.OperationName
.
requestModels?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
any
(optional)
AWS::ApiGatewayV2::Route.RequestModels
.
requestParameters?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
any
(optional)
AWS::ApiGatewayV2::Route.RequestParameters
.
routeResponseSelectionExpression?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
(optional)
AWS::ApiGatewayV2::Route.RouteResponseSelectionExpression
.
target?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
(optional)
AWS::ApiGatewayV2::Route.Target
.