@aws-sdk/client-apigatewayv2 3.821.0 → 3.823.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +47 -7
  2. package/dist-cjs/index.js +395 -2
  3. package/dist-es/ApiGatewayV2.js +10 -0
  4. package/dist-es/commands/CreateRoutingRuleCommand.js +22 -0
  5. package/dist-es/commands/DeleteRoutingRuleCommand.js +22 -0
  6. package/dist-es/commands/GetRoutingRuleCommand.js +22 -0
  7. package/dist-es/commands/ListRoutingRulesCommand.js +22 -0
  8. package/dist-es/commands/PutRoutingRuleCommand.js +22 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/index.js +1 -0
  11. package/dist-es/models/models_0.js +5 -0
  12. package/dist-es/pagination/Interfaces.js +1 -0
  13. package/dist-es/pagination/ListRoutingRulesPaginator.js +4 -0
  14. package/dist-es/pagination/index.js +2 -0
  15. package/dist-es/protocols/Aws_restJson1.js +300 -0
  16. package/dist-types/ApiGatewayV2.d.ts +35 -0
  17. package/dist-types/ApiGatewayV2Client.d.ts +7 -2
  18. package/dist-types/commands/CreateDomainNameCommand.d.ts +3 -0
  19. package/dist-types/commands/CreateRoutingRuleCommand.d.ts +140 -0
  20. package/dist-types/commands/DeleteRoutingRuleCommand.d.ts +81 -0
  21. package/dist-types/commands/GetDomainNameCommand.d.ts +2 -0
  22. package/dist-types/commands/GetDomainNamesCommand.d.ts +2 -0
  23. package/dist-types/commands/GetRoutingRuleCommand.d.ts +111 -0
  24. package/dist-types/commands/ListRoutingRulesCommand.d.ts +117 -0
  25. package/dist-types/commands/PutRoutingRuleCommand.d.ts +141 -0
  26. package/dist-types/commands/UpdateDomainNameCommand.d.ts +3 -0
  27. package/dist-types/commands/index.d.ts +5 -0
  28. package/dist-types/index.d.ts +1 -0
  29. package/dist-types/models/models_0.d.ts +415 -0
  30. package/dist-types/pagination/Interfaces.d.ts +8 -0
  31. package/dist-types/pagination/ListRoutingRulesPaginator.d.ts +7 -0
  32. package/dist-types/pagination/index.d.ts +2 -0
  33. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  34. package/dist-types/ts3.4/ApiGatewayV2.d.ts +85 -0
  35. package/dist-types/ts3.4/ApiGatewayV2Client.d.ts +30 -0
  36. package/dist-types/ts3.4/commands/CreateRoutingRuleCommand.d.ts +51 -0
  37. package/dist-types/ts3.4/commands/DeleteRoutingRuleCommand.d.ts +46 -0
  38. package/dist-types/ts3.4/commands/GetRoutingRuleCommand.d.ts +50 -0
  39. package/dist-types/ts3.4/commands/ListRoutingRulesCommand.d.ts +50 -0
  40. package/dist-types/ts3.4/commands/PutRoutingRuleCommand.d.ts +50 -0
  41. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  42. package/dist-types/ts3.4/index.d.ts +1 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +101 -0
  44. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  45. package/dist-types/ts3.4/pagination/ListRoutingRulesPaginator.d.ts +11 -0
  46. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  47. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  48. package/package.json +5 -5
@@ -10,6 +10,7 @@ import { CreateIntegrationResponseCommand, } from "./commands/CreateIntegrationR
10
10
  import { CreateModelCommand } from "./commands/CreateModelCommand";
11
11
  import { CreateRouteCommand } from "./commands/CreateRouteCommand";
12
12
  import { CreateRouteResponseCommand, } from "./commands/CreateRouteResponseCommand";
13
+ import { CreateRoutingRuleCommand, } from "./commands/CreateRoutingRuleCommand";
13
14
  import { CreateStageCommand } from "./commands/CreateStageCommand";
14
15
  import { CreateVpcLinkCommand, } from "./commands/CreateVpcLinkCommand";
15
16
  import { DeleteAccessLogSettingsCommand, } from "./commands/DeleteAccessLogSettingsCommand";
@@ -26,6 +27,7 @@ import { DeleteRouteCommand } from "./commands/DeleteRouteCommand";
26
27
  import { DeleteRouteRequestParameterCommand, } from "./commands/DeleteRouteRequestParameterCommand";
27
28
  import { DeleteRouteResponseCommand, } from "./commands/DeleteRouteResponseCommand";
28
29
  import { DeleteRouteSettingsCommand, } from "./commands/DeleteRouteSettingsCommand";
30
+ import { DeleteRoutingRuleCommand, } from "./commands/DeleteRoutingRuleCommand";
29
31
  import { DeleteStageCommand } from "./commands/DeleteStageCommand";
30
32
  import { DeleteVpcLinkCommand, } from "./commands/DeleteVpcLinkCommand";
31
33
  import { ExportApiCommand } from "./commands/ExportApiCommand";
@@ -50,12 +52,15 @@ import { GetRouteCommand } from "./commands/GetRouteCommand";
50
52
  import { GetRouteResponseCommand, } from "./commands/GetRouteResponseCommand";
51
53
  import { GetRouteResponsesCommand, } from "./commands/GetRouteResponsesCommand";
52
54
  import { GetRoutesCommand } from "./commands/GetRoutesCommand";
55
+ import { GetRoutingRuleCommand, } from "./commands/GetRoutingRuleCommand";
53
56
  import { GetStageCommand } from "./commands/GetStageCommand";
54
57
  import { GetStagesCommand } from "./commands/GetStagesCommand";
55
58
  import { GetTagsCommand } from "./commands/GetTagsCommand";
56
59
  import { GetVpcLinkCommand } from "./commands/GetVpcLinkCommand";
57
60
  import { GetVpcLinksCommand } from "./commands/GetVpcLinksCommand";
58
61
  import { ImportApiCommand } from "./commands/ImportApiCommand";
62
+ import { ListRoutingRulesCommand, } from "./commands/ListRoutingRulesCommand";
63
+ import { PutRoutingRuleCommand, } from "./commands/PutRoutingRuleCommand";
59
64
  import { ReimportApiCommand } from "./commands/ReimportApiCommand";
60
65
  import { ResetAuthorizersCacheCommand, } from "./commands/ResetAuthorizersCacheCommand";
61
66
  import { TagResourceCommand } from "./commands/TagResourceCommand";
@@ -83,6 +88,7 @@ const commands = {
83
88
  CreateModelCommand,
84
89
  CreateRouteCommand,
85
90
  CreateRouteResponseCommand,
91
+ CreateRoutingRuleCommand,
86
92
  CreateStageCommand,
87
93
  CreateVpcLinkCommand,
88
94
  DeleteAccessLogSettingsCommand,
@@ -99,6 +105,7 @@ const commands = {
99
105
  DeleteRouteRequestParameterCommand,
100
106
  DeleteRouteResponseCommand,
101
107
  DeleteRouteSettingsCommand,
108
+ DeleteRoutingRuleCommand,
102
109
  DeleteStageCommand,
103
110
  DeleteVpcLinkCommand,
104
111
  ExportApiCommand,
@@ -123,12 +130,15 @@ const commands = {
123
130
  GetRouteResponseCommand,
124
131
  GetRouteResponsesCommand,
125
132
  GetRoutesCommand,
133
+ GetRoutingRuleCommand,
126
134
  GetStageCommand,
127
135
  GetStagesCommand,
128
136
  GetTagsCommand,
129
137
  GetVpcLinkCommand,
130
138
  GetVpcLinksCommand,
131
139
  ImportApiCommand,
140
+ ListRoutingRulesCommand,
141
+ PutRoutingRuleCommand,
132
142
  ReimportApiCommand,
133
143
  ResetAuthorizersCacheCommand,
134
144
  TagResourceCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CreateRoutingRuleCommand, se_CreateRoutingRuleCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateRoutingRuleCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ApiGatewayV2", "CreateRoutingRule", {})
17
+ .n("ApiGatewayV2Client", "CreateRoutingRuleCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_CreateRoutingRuleCommand)
20
+ .de(de_CreateRoutingRuleCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteRoutingRuleCommand, se_DeleteRoutingRuleCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteRoutingRuleCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ApiGatewayV2", "DeleteRoutingRule", {})
17
+ .n("ApiGatewayV2Client", "DeleteRoutingRuleCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteRoutingRuleCommand)
20
+ .de(de_DeleteRoutingRuleCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetRoutingRuleCommand, se_GetRoutingRuleCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetRoutingRuleCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ApiGatewayV2", "GetRoutingRule", {})
17
+ .n("ApiGatewayV2Client", "GetRoutingRuleCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetRoutingRuleCommand)
20
+ .de(de_GetRoutingRuleCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListRoutingRulesCommand, se_ListRoutingRulesCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListRoutingRulesCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ApiGatewayV2", "ListRoutingRules", {})
17
+ .n("ApiGatewayV2Client", "ListRoutingRulesCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListRoutingRulesCommand)
20
+ .de(de_ListRoutingRulesCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_PutRoutingRuleCommand, se_PutRoutingRuleCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class PutRoutingRuleCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ApiGatewayV2", "PutRoutingRule", {})
17
+ .n("ApiGatewayV2Client", "PutRoutingRuleCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_PutRoutingRuleCommand)
20
+ .de(de_PutRoutingRuleCommand)
21
+ .build() {
22
+ }
@@ -8,6 +8,7 @@ export * from "./CreateIntegrationResponseCommand";
8
8
  export * from "./CreateModelCommand";
9
9
  export * from "./CreateRouteCommand";
10
10
  export * from "./CreateRouteResponseCommand";
11
+ export * from "./CreateRoutingRuleCommand";
11
12
  export * from "./CreateStageCommand";
12
13
  export * from "./CreateVpcLinkCommand";
13
14
  export * from "./DeleteAccessLogSettingsCommand";
@@ -24,6 +25,7 @@ export * from "./DeleteRouteCommand";
24
25
  export * from "./DeleteRouteRequestParameterCommand";
25
26
  export * from "./DeleteRouteResponseCommand";
26
27
  export * from "./DeleteRouteSettingsCommand";
28
+ export * from "./DeleteRoutingRuleCommand";
27
29
  export * from "./DeleteStageCommand";
28
30
  export * from "./DeleteVpcLinkCommand";
29
31
  export * from "./ExportApiCommand";
@@ -48,12 +50,15 @@ export * from "./GetRouteCommand";
48
50
  export * from "./GetRouteResponseCommand";
49
51
  export * from "./GetRouteResponsesCommand";
50
52
  export * from "./GetRoutesCommand";
53
+ export * from "./GetRoutingRuleCommand";
51
54
  export * from "./GetStageCommand";
52
55
  export * from "./GetStagesCommand";
53
56
  export * from "./GetTagsCommand";
54
57
  export * from "./GetVpcLinkCommand";
55
58
  export * from "./GetVpcLinksCommand";
56
59
  export * from "./ImportApiCommand";
60
+ export * from "./ListRoutingRulesCommand";
61
+ export * from "./PutRoutingRuleCommand";
57
62
  export * from "./ReimportApiCommand";
58
63
  export * from "./ResetAuthorizersCacheCommand";
59
64
  export * from "./TagResourceCommand";
package/dist-es/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./ApiGatewayV2Client";
2
2
  export * from "./ApiGatewayV2";
3
3
  export * from "./commands";
4
+ export * from "./pagination";
4
5
  export * from "./models";
5
6
  export { ApiGatewayV2ServiceException } from "./models/ApiGatewayV2ServiceException";
@@ -30,6 +30,11 @@ export const SecurityPolicy = {
30
30
  TLS_1_0: "TLS_1_0",
31
31
  TLS_1_2: "TLS_1_2",
32
32
  };
33
+ export const RoutingMode = {
34
+ API_MAPPING_ONLY: "API_MAPPING_ONLY",
35
+ ROUTING_RULE_ONLY: "ROUTING_RULE_ONLY",
36
+ ROUTING_RULE_THEN_API_MAPPING: "ROUTING_RULE_THEN_API_MAPPING",
37
+ };
33
38
  export const ConnectionType = {
34
39
  INTERNET: "INTERNET",
35
40
  VPC_LINK: "VPC_LINK",
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ApiGatewayV2Client } from "../ApiGatewayV2Client";
3
+ import { ListRoutingRulesCommand, } from "../commands/ListRoutingRulesCommand";
4
+ export const paginateListRoutingRules = createPaginator(ApiGatewayV2Client, ListRoutingRulesCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListRoutingRulesPaginator";