package awsapigatewayv2 // Properties for defining a `CfnRoute`. // // Example: // // The code below shows an example of how to instantiate this type. // // The values are placeholders you should change. // import "github.com/aws/aws-cdk-go/awscdk" // // var requestModels interface{} // var requestParameters interface{} // // cfnRouteProps := &CfnRouteProps{ // ApiId: jsii.String("apiId"), // RouteKey: jsii.String("routeKey"), // // // the properties below are optional // ApiKeyRequired: jsii.Boolean(false), // AuthorizationScopes: []*string{ // jsii.String("authorizationScopes"), // }, // AuthorizationType: jsii.String("authorizationType"), // AuthorizerId: jsii.String("authorizerId"), // ModelSelectionExpression: jsii.String("modelSelectionExpression"), // OperationName: jsii.String("operationName"), // RequestModels: requestModels, // RequestParameters: requestParameters, // RouteResponseSelectionExpression: jsii.String("routeResponseSelectionExpression"), // Target: jsii.String("target"), // } // // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-route.html // type CfnRouteProps struct { // The API identifier. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-route.html#cfn-apigatewayv2-route-apiid // ApiId *string `field:"required" json:"apiId" yaml:"apiId"` // 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` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-route.html#cfn-apigatewayv2-route-routekey // RouteKey *string `field:"required" json:"routeKey" yaml:"routeKey"` // Specifies whether an API key is required for the route. // // Supported only for WebSocket APIs. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-route.html#cfn-apigatewayv2-route-apikeyrequired // ApiKeyRequired interface{} `field:"optional" json:"apiKeyRequired" yaml:"apiKeyRequired"` // The authorization scopes supported by this route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-route.html#cfn-apigatewayv2-route-authorizationscopes // AuthorizationScopes *[]*string `field:"optional" json:"authorizationScopes" yaml:"authorizationScopes"` // 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. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-route.html#cfn-apigatewayv2-route-authorizationtype // AuthorizationType *string `field:"optional" json:"authorizationType" yaml:"authorizationType"` // 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. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-route.html#cfn-apigatewayv2-route-authorizerid // AuthorizerId *string `field:"optional" json:"authorizerId" yaml:"authorizerId"` // The model selection expression for the route. // // Supported only for WebSocket APIs. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-route.html#cfn-apigatewayv2-route-modelselectionexpression // ModelSelectionExpression *string `field:"optional" json:"modelSelectionExpression" yaml:"modelSelectionExpression"` // The operation name for the route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-route.html#cfn-apigatewayv2-route-operationname // OperationName *string `field:"optional" json:"operationName" yaml:"operationName"` // The request models for the route. // // Supported only for WebSocket APIs. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-route.html#cfn-apigatewayv2-route-requestmodels // RequestModels interface{} `field:"optional" json:"requestModels" yaml:"requestModels"` // The request parameters for the route. // // Supported only for WebSocket APIs. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-route.html#cfn-apigatewayv2-route-requestparameters // RequestParameters interface{} `field:"optional" json:"requestParameters" yaml:"requestParameters"` // The route response selection expression for the route. // // Supported only for WebSocket APIs. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-route.html#cfn-apigatewayv2-route-routeresponseselectionexpression // RouteResponseSelectionExpression *string `field:"optional" json:"routeResponseSelectionExpression" yaml:"routeResponseSelectionExpression"` // The target for the route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-route.html#cfn-apigatewayv2-route-target // Target *string `field:"optional" json:"target" yaml:"target"` }