Skip to content

Commit c33d921

Browse files
Adds support to create routing rules and set the routing mode for a custom domain name.
1 parent a8faed6 commit c33d921

File tree

68 files changed

+7708
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+7708
-9
lines changed

generator/ServiceModels/apigatewayv2/apigatewayv2-2018-11-29.api.json

Lines changed: 611 additions & 4 deletions
Large diffs are not rendered by default.

generator/ServiceModels/apigatewayv2/apigatewayv2-2018-11-29.docs.json

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"CreateModel" : "<p>Creates a Model for an API.</p>",
1313
"CreateRoute" : "<p>Creates a Route for an API.</p>",
1414
"CreateRouteResponse" : "<p>Creates a RouteResponse for a Route.</p>",
15+
"CreateRoutingRule" : "<p>Create a routing rule.</p>",
1516
"CreateStage" : "<p>Creates a Stage for an API.</p>",
1617
"CreateVpcLink" : "<p>Creates a VPC link.</p>",
1718
"DeleteAccessLogSettings" : "<p>Deletes the AccessLogSettings for a Stage. To disable access logging for a Stage, delete its AccessLogSettings.</p>",
@@ -53,6 +54,8 @@
5354
"GetRouteResponse" : "<p>Gets a RouteResponse.</p>",
5455
"GetRouteResponses" : "<p>Gets the RouteResponses for a Route.</p>",
5556
"GetRoutes" : "<p>Gets the Routes for an API.</p>",
57+
"GetRoutingRule" : "<p>Gets a routing rule.</p>",
58+
"ListRoutingRules" : "<p>Lists routing rules.</p>",
5659
"GetStage" : "<p>Gets a Stage.</p>",
5760
"GetStages" : "<p>Gets the Stages for an API.</p>",
5861
"GetTags" : "<p>Gets a collection of Tag resources.</p>",
@@ -334,6 +337,8 @@
334337
"Route$AuthorizerId" : "<p>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.</p>",
335338
"Route$RouteId" : "<p>The route ID.</p>",
336339
"RouteResponse$RouteResponseId" : "<p>Represents the identifier of a route response.</p>",
340+
"RoutingRule$RoutingRuleId" : "<p>The ID of the routing rule.</p>",
341+
"RoutingRuleActionInvokeApi$ApiId" : "<p>Action to invoke a stage of a target API. Only REST APIs are supported.</p>",
337342
"Stage$ClientCertificateId" : "<p>The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.</p>",
338343
"Stage$DeploymentId" : "<p>The identifier of the Deployment that the Stage is associated with. Can't be updated if autoDeploy is enabled.</p>",
339344
"UpdateApiMappingInput$ApiId" : "<p>The API identifier.</p>",
@@ -580,6 +585,62 @@
580585
"base" : "<p>Represents a collection of routes.</p>",
581586
"refs" : { }
582587
},
588+
"RoutingRule" : {
589+
"base" : "<p>Represents a routing rule.</p>",
590+
"refs" : {
591+
"__listOfRoutingRule$member" : null
592+
}
593+
},
594+
"RoutingRuleAction" : {
595+
"base" : "<p>Represents a routing rule action. The only supported action is invokeApi.</p>",
596+
"refs" : {
597+
"__listOfRoutingRuleAction$member" : null
598+
}
599+
},
600+
"RoutingRuleActionInvokeApi" : {
601+
"base" : "<p>Represents an InvokeApi action.</p>",
602+
"refs" : {
603+
"RoutingRuleAction$InvokeApi" : "<p>Action to invoke a stage of a target API. Only REST APIs are supported.</p>"
604+
}
605+
},
606+
"RoutingRuleCondition" : {
607+
"base" : "<p>Represents a condition. Conditions can contain up to two matchHeaders conditions and one matchBasePaths conditions. API Gateway evaluates header conditions and base path conditions together. You can only use AND between header and base path conditions.</p>",
608+
"refs" : {
609+
"__listOfRoutingRuleCondition$member" : null
610+
}
611+
},
612+
"RoutingRuleInput" : {
613+
"base" : "<p>Represents the input parameters for an RoutingRule request.</p>",
614+
"refs" : { }
615+
},
616+
"RoutingRuleMatchBasePaths" : {
617+
"base" : "<p>Represents a MatchBasePaths condition.</p>",
618+
"refs" : {
619+
"RoutingRuleCondition$MatchBasePaths" : "<p>The base path to be matched.</p>"
620+
}
621+
},
622+
"RoutingRuleMatchHeaderValue" : {
623+
"base" : "<p>Represents a MatchHeaderValue.</p>",
624+
"refs" : {
625+
"__listOfRoutingRuleMatchHeaderValue$member" : null
626+
}
627+
},
628+
"RoutingRuleMatchHeaders" : {
629+
"base" : "<p>Represents a MatchHeaders condition.</p>",
630+
"refs" : {
631+
"RoutingRuleCondition$MatchHeaders" : "<p>The header to be matched.</p>"
632+
}
633+
},
634+
"RoutingRulePriority" : {
635+
"base" : "<p>Represents the priority of the routing rule.</p>",
636+
"refs" : {
637+
"RoutingRuleInput$Priority" : "<p>The order in which API Gateway evaluates a rule. Priority is evaluated from the lowest value to the highest value. Rules can't have the same priority. Priority values 1-1,000,000 are supported.</p>"
638+
}
639+
},
640+
"RoutingRules" : {
641+
"base" : "<p>Represents collection of routing rules.</p>",
642+
"refs" : { }
643+
},
583644
"SecurityGroupIdList" : {
584645
"base" : "<p>A list of security group IDs for the VPC link.</p>",
585646
"refs" : {
@@ -612,6 +673,7 @@
612673
"Route$ModelSelectionExpression" : "<p>The model selection expression for the route. Supported only for WebSocket APIs.</p>",
613674
"Route$RouteResponseSelectionExpression" : "<p>The route response selection expression for the route. Supported only for WebSocket APIs.</p>",
614675
"RouteResponse$ModelSelectionExpression" : "<p>Represents the model selection expression of a route response. Supported only for WebSocket APIs.</p>",
676+
"RoutingRuleMatchHeaderValue$ValueGlob" : "<p>The case sensitive header glob value to be matched against entire header value. The header glob value must be less than 128 characters and the only allowed characters are a-z, A-Z, 0-9, and the following special characters: *?-!#$%&'.^_`|~. Wildcard matching is supported for header glob values but must be for *prefix-match, suffix-match*, or *infix*-match.</p>",
615677
"UpdateApiInput$ApiKeySelectionExpression" : "<p>An API key selection expression. Supported only for WebSocket APIs. See <a href=\"https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-apikey-selection-expressions\">API Key Selection Expressions</a>.</p>",
616678
"UpdateApiInput$RouteSelectionExpression" : "<p>The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be ${request.method} ${request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.</p>",
617679
"UpdateIntegrationInput$TemplateSelectionExpression" : "<p>The template selection expression for the integration.</p>",
@@ -633,6 +695,7 @@
633695
"IntegrationResponse$IntegrationResponseKey" : "<p>The integration response key.</p>",
634696
"Route$RouteKey" : "<p>The route key for the route.</p>",
635697
"RouteResponse$RouteResponseKey" : "<p>Represents the route response key of a route response.</p>",
698+
"RoutingRuleMatchHeaderValue$Header" : "<p>The case insensitive header name to be matched. The header name must be less than 40 characters and the only allowed characters are a-z, A-Z, 0-9, and the following special characters: *?-!#$%&'.^_`|~.</p>",
636699
"UpdateApiInput$RouteKey" : "<p>This property is part of quick create. If not specified, the route created using quick create is kept. Otherwise, this value replaces the route key of the quick create route. Additional routes may still be added after the API is updated. Supported only for HTTP APIs.</p>",
637700
"UpdateApiMappingInput$ApiMappingKey" : "<p>The API mapping key.</p>",
638701
"UpdateIntegrationResponseInput$IntegrationResponseKey" : "<p>The integration response key.</p>",
@@ -726,6 +789,7 @@
726789
"Model$Name" : "<p>The name of the model. Must be alphanumeric.</p>",
727790
"Route$Target" : "<p>The target for the route.</p>",
728791
"RouteModels$member" : null,
792+
"RoutingRuleActionInvokeApi$Stage" : "<p>The name of the target stage.</p>",
729793
"Stage$StageName" : "<p>The name of the stage.</p>",
730794
"UpdateApiInput$Name" : "<p>The name of the API.</p>",
731795
"UpdateApiMappingInput$Stage" : "<p>The API stage.</p>",
@@ -947,6 +1011,7 @@
9471011
"Route$ApiKeyRequired" : "<p>Specifies whether an API key is required for this route. Supported only for WebSocket APIs.</p>",
9481012
"RouteSettings$DataTraceEnabled" : "<p>Specifies whether (true) or not (false) data trace logging is enabled for this route. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs.</p>",
9491013
"RouteSettings$DetailedMetricsEnabled" : "<p>Specifies whether detailed metrics are enabled.</p>",
1014+
"RoutingRuleActionInvokeApi$StripBasePath" : "<p>The strip base path setting. When true, API Gateway strips the incoming matched base path when forwarding the request to the target API.</p>",
9501015
"Stage$ApiGatewayManaged" : "<p>Specifies whether a stage is managed by API Gateway. If you created an API using quick create, the $default stage is managed by API Gateway. You can't modify the $default stage.</p>",
9511016
"Stage$AutoDeploy" : "<p>Specifies whether updates to an API automatically trigger a new deployment. The default value is false.</p>",
9521017
"UpdateApiInput$DisableSchemaValidation" : "<p>Avoid validating models when creating a deployment. Supported only for WebSocket APIs.</p>",
@@ -1027,6 +1092,36 @@
10271092
"RouteResponses$Items" : "<p>The elements from this collection.</p>"
10281093
}
10291094
},
1095+
"__listOfRoutingRule" : {
1096+
"base" : null,
1097+
"refs" : {
1098+
"RoutingRules$RoutingRules" : "<p>The elements from this collection.</p>"
1099+
}
1100+
},
1101+
"__listOfRoutingRuleAction" : {
1102+
"base" : null,
1103+
"refs" : {
1104+
"RoutingRuleInput$Actions" : "<p>The elements from this collection.</p>"
1105+
}
1106+
},
1107+
"__listOfRoutingRuleCondition" : {
1108+
"base" : null,
1109+
"refs" : {
1110+
"RoutingRuleInput$Conditions" : "<p>The elements from this collection.</p>"
1111+
}
1112+
},
1113+
"__listOfRoutingRuleMatchHeaderValue" : {
1114+
"base" : null,
1115+
"refs" : {
1116+
"RoutingRuleMatchHeaders$AnyOf" : "<p>The elements from this collection.</p>"
1117+
}
1118+
},
1119+
"__listOfSelectionKey" : {
1120+
"base" : null,
1121+
"refs" : {
1122+
"RoutingRuleMatchBasePaths$AnyOf" : "<p>The elements from this collection.</p>"
1123+
}
1124+
},
10301125
"__listOfStage" : {
10311126
"base" : null,
10321127
"refs" : {

0 commit comments

Comments
 (0)