interface CfnRouteMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ApiGatewayV2.Mixins.CfnRouteMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsapigatewayv2/mixins#CfnRouteMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.apigatewayv2.mixins.CfnRouteMixinProps |
Python | aws_cdk.mixins_preview.aws_apigatewayv2.mixins.CfnRouteMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_apigatewayv2 » mixins » CfnRouteMixinProps |
Properties for CfnRoutePropsMixin.
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 { mixins as apigatewayv2_mixins } from '@aws-cdk/mixins-preview/aws-apigatewayv2';
declare const requestModels: any;
declare const requestParameters: any;
const cfnRouteMixinProps: apigatewayv2_mixins.CfnRouteMixinProps = {
apiId: 'apiId',
apiKeyRequired: false,
authorizationScopes: ['authorizationScopes'],
authorizationType: 'authorizationType',
authorizerId: 'authorizerId',
modelSelectionExpression: 'modelSelectionExpression',
operationName: 'operationName',
requestModels: requestModels,
requestParameters: requestParameters,
routeKey: 'routeKey',
routeResponseSelectionExpression: 'routeResponseSelectionExpression',
target: 'target',
};
Properties
| Name | Type | Description |
|---|---|---|
| api | string | The API identifier. |
| api | boolean | IResolvable | Specifies whether an API key is required for the route. |
| authorization | string[] | The authorization scopes supported by this route. |
| authorization | string | The authorization type for the route. |
| authorizer | string | The identifier of the Authorizer resource to be associated with this route. |
| model | string | The model selection expression for the route. |
| operation | string | The operation name for the route. |
| request | any | The request models for the route. |
| request | any | The request parameters for the route. |
| route | string | The route key for the route. |
| route | string | The route response selection expression for the route. |
| target? | string | The target for the route. |
apiId?
Type:
string
(optional)
The API identifier.
apiKeyRequired?
Type:
boolean | IResolvable
(optional)
Specifies whether an API key is required for the route.
Supported only for WebSocket APIs.
authorizationScopes?
Type:
string[]
(optional)
The authorization scopes supported by this route.
authorizationType?
Type:
string
(optional)
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.
authorizerId?
Type:
string
(optional)
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.
modelSelectionExpression?
Type:
string
(optional)
The model selection expression for the route.
Supported only for WebSocket APIs.
operationName?
Type:
string
(optional)
The operation name for the route.
requestModels?
Type:
any
(optional)
The request models for the route.
Supported only for WebSocket APIs.
requestParameters?
Type:
any
(optional)
The request parameters for the route.
Supported only for WebSocket APIs.
routeKey?
Type:
string
(optional)
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 .
routeResponseSelectionExpression?
Type:
string
(optional)
The route response selection expression for the route.
Supported only for WebSocket APIs.
target?
Type:
string
(optional)
The target for the route.

.NET
Go
Java
Python
TypeScript