@aws-sdk/client-vpc-lattice 3.928.0 → 3.930.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 (97) hide show
  1. package/dist-cjs/index.js +2768 -3273
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/VPCLatticeClient.js +2 -0
  4. package/dist-es/commands/BatchUpdateRuleCommand.js +3 -9
  5. package/dist-es/commands/CreateAccessLogSubscriptionCommand.js +3 -9
  6. package/dist-es/commands/CreateListenerCommand.js +3 -9
  7. package/dist-es/commands/CreateResourceConfigurationCommand.js +3 -9
  8. package/dist-es/commands/CreateResourceGatewayCommand.js +3 -9
  9. package/dist-es/commands/CreateRuleCommand.js +3 -9
  10. package/dist-es/commands/CreateServiceCommand.js +3 -9
  11. package/dist-es/commands/CreateServiceNetworkCommand.js +3 -9
  12. package/dist-es/commands/CreateServiceNetworkResourceAssociationCommand.js +3 -9
  13. package/dist-es/commands/CreateServiceNetworkServiceAssociationCommand.js +3 -9
  14. package/dist-es/commands/CreateServiceNetworkVpcAssociationCommand.js +3 -9
  15. package/dist-es/commands/CreateTargetGroupCommand.js +3 -9
  16. package/dist-es/commands/DeleteAccessLogSubscriptionCommand.js +3 -9
  17. package/dist-es/commands/DeleteAuthPolicyCommand.js +3 -9
  18. package/dist-es/commands/DeleteDomainVerificationCommand.js +3 -9
  19. package/dist-es/commands/DeleteListenerCommand.js +3 -9
  20. package/dist-es/commands/DeleteResourceConfigurationCommand.js +3 -9
  21. package/dist-es/commands/DeleteResourceEndpointAssociationCommand.js +3 -9
  22. package/dist-es/commands/DeleteResourceGatewayCommand.js +3 -9
  23. package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
  24. package/dist-es/commands/DeleteRuleCommand.js +3 -9
  25. package/dist-es/commands/DeleteServiceCommand.js +3 -9
  26. package/dist-es/commands/DeleteServiceNetworkCommand.js +3 -9
  27. package/dist-es/commands/DeleteServiceNetworkResourceAssociationCommand.js +3 -9
  28. package/dist-es/commands/DeleteServiceNetworkServiceAssociationCommand.js +3 -9
  29. package/dist-es/commands/DeleteServiceNetworkVpcAssociationCommand.js +3 -9
  30. package/dist-es/commands/DeleteTargetGroupCommand.js +3 -9
  31. package/dist-es/commands/DeregisterTargetsCommand.js +3 -9
  32. package/dist-es/commands/GetAccessLogSubscriptionCommand.js +3 -9
  33. package/dist-es/commands/GetAuthPolicyCommand.js +3 -9
  34. package/dist-es/commands/GetDomainVerificationCommand.js +3 -9
  35. package/dist-es/commands/GetListenerCommand.js +3 -9
  36. package/dist-es/commands/GetResourceConfigurationCommand.js +3 -9
  37. package/dist-es/commands/GetResourceGatewayCommand.js +3 -9
  38. package/dist-es/commands/GetResourcePolicyCommand.js +3 -9
  39. package/dist-es/commands/GetRuleCommand.js +3 -9
  40. package/dist-es/commands/GetServiceCommand.js +3 -9
  41. package/dist-es/commands/GetServiceNetworkCommand.js +3 -9
  42. package/dist-es/commands/GetServiceNetworkResourceAssociationCommand.js +3 -9
  43. package/dist-es/commands/GetServiceNetworkServiceAssociationCommand.js +3 -9
  44. package/dist-es/commands/GetServiceNetworkVpcAssociationCommand.js +3 -9
  45. package/dist-es/commands/GetTargetGroupCommand.js +3 -9
  46. package/dist-es/commands/ListAccessLogSubscriptionsCommand.js +3 -9
  47. package/dist-es/commands/ListDomainVerificationsCommand.js +3 -9
  48. package/dist-es/commands/ListListenersCommand.js +3 -9
  49. package/dist-es/commands/ListResourceConfigurationsCommand.js +3 -9
  50. package/dist-es/commands/ListResourceEndpointAssociationsCommand.js +3 -9
  51. package/dist-es/commands/ListResourceGatewaysCommand.js +3 -9
  52. package/dist-es/commands/ListRulesCommand.js +3 -9
  53. package/dist-es/commands/ListServiceNetworkResourceAssociationsCommand.js +3 -9
  54. package/dist-es/commands/ListServiceNetworkServiceAssociationsCommand.js +3 -9
  55. package/dist-es/commands/ListServiceNetworkVpcAssociationsCommand.js +3 -9
  56. package/dist-es/commands/ListServiceNetworkVpcEndpointAssociationsCommand.js +3 -9
  57. package/dist-es/commands/ListServiceNetworksCommand.js +3 -9
  58. package/dist-es/commands/ListServicesCommand.js +3 -9
  59. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  60. package/dist-es/commands/ListTargetGroupsCommand.js +3 -9
  61. package/dist-es/commands/ListTargetsCommand.js +3 -9
  62. package/dist-es/commands/PutAuthPolicyCommand.js +3 -9
  63. package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
  64. package/dist-es/commands/RegisterTargetsCommand.js +3 -9
  65. package/dist-es/commands/StartDomainVerificationCommand.js +3 -9
  66. package/dist-es/commands/TagResourceCommand.js +3 -9
  67. package/dist-es/commands/UntagResourceCommand.js +3 -9
  68. package/dist-es/commands/UpdateAccessLogSubscriptionCommand.js +3 -9
  69. package/dist-es/commands/UpdateListenerCommand.js +3 -9
  70. package/dist-es/commands/UpdateResourceConfigurationCommand.js +3 -9
  71. package/dist-es/commands/UpdateResourceGatewayCommand.js +3 -9
  72. package/dist-es/commands/UpdateRuleCommand.js +3 -9
  73. package/dist-es/commands/UpdateServiceCommand.js +3 -9
  74. package/dist-es/commands/UpdateServiceNetworkCommand.js +3 -9
  75. package/dist-es/commands/UpdateServiceNetworkVpcAssociationCommand.js +3 -9
  76. package/dist-es/commands/UpdateTargetGroupCommand.js +3 -9
  77. package/dist-es/models/models_0.js +0 -60
  78. package/dist-es/runtimeConfig.shared.js +2 -0
  79. package/dist-es/schemas/schemas_0.js +2622 -0
  80. package/dist-types/VPCLatticeClient.d.ts +10 -1
  81. package/dist-types/models/models_0.d.ts +24 -6
  82. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  83. package/dist-types/runtimeConfig.d.ts +1 -0
  84. package/dist-types/runtimeConfig.native.d.ts +1 -0
  85. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  86. package/dist-types/schemas/schemas_0.d.ts +300 -0
  87. package/dist-types/ts3.4/VPCLatticeClient.d.ts +4 -0
  88. package/dist-types/ts3.4/models/models_0.d.ts +0 -9
  89. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  90. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  91. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  92. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  93. package/dist-types/ts3.4/schemas/schemas_0.d.ts +305 -0
  94. package/package.json +33 -34
  95. package/dist-es/protocols/Aws_restJson1.js +0 -2698
  96. package/dist-types/protocols/Aws_restJson1.d.ts +0 -659
  97. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -881
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateRuleCommand, se_UpdateRuleCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateRule } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateRuleCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("MercuryControlPlane", "UpdateRule", {})
17
13
  .n("VPCLatticeClient", "UpdateRuleCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateRuleCommand)
20
- .de(de_UpdateRuleCommand)
14
+ .sc(UpdateRule)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateServiceCommand, se_UpdateServiceCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateService } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateServiceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("MercuryControlPlane", "UpdateService", {})
17
13
  .n("VPCLatticeClient", "UpdateServiceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateServiceCommand)
20
- .de(de_UpdateServiceCommand)
14
+ .sc(UpdateService)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateServiceNetworkCommand, se_UpdateServiceNetworkCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateServiceNetwork } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateServiceNetworkCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("MercuryControlPlane", "UpdateServiceNetwork", {})
17
13
  .n("VPCLatticeClient", "UpdateServiceNetworkCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateServiceNetworkCommand)
20
- .de(de_UpdateServiceNetworkCommand)
14
+ .sc(UpdateServiceNetwork)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateServiceNetworkVpcAssociationCommand, se_UpdateServiceNetworkVpcAssociationCommand, } from "../protocols/Aws_restJson1";
4
+ import { UpdateServiceNetworkVpcAssociation } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateServiceNetworkVpcAssociationCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("MercuryControlPlane", "UpdateServiceNetworkVpcAssociation", {})
17
13
  .n("VPCLatticeClient", "UpdateServiceNetworkVpcAssociationCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateServiceNetworkVpcAssociationCommand)
20
- .de(de_UpdateServiceNetworkVpcAssociationCommand)
14
+ .sc(UpdateServiceNetworkVpcAssociation)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateTargetGroupCommand, se_UpdateTargetGroupCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateTargetGroup } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateTargetGroupCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("MercuryControlPlane", "UpdateTargetGroup", {})
17
13
  .n("VPCLatticeClient", "UpdateTargetGroupCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateTargetGroupCommand)
20
- .de(de_UpdateTargetGroupCommand)
14
+ .sc(UpdateTargetGroup)
21
15
  .build() {
22
16
  }
@@ -113,46 +113,6 @@ export const AuthType = {
113
113
  AWS_IAM: "AWS_IAM",
114
114
  NONE: "NONE",
115
115
  };
116
- export var RuleAction;
117
- (function (RuleAction) {
118
- RuleAction.visit = (value, visitor) => {
119
- if (value.forward !== undefined)
120
- return visitor.forward(value.forward);
121
- if (value.fixedResponse !== undefined)
122
- return visitor.fixedResponse(value.fixedResponse);
123
- return visitor._(value.$unknown[0], value.$unknown[1]);
124
- };
125
- })(RuleAction || (RuleAction = {}));
126
- export var HeaderMatchType;
127
- (function (HeaderMatchType) {
128
- HeaderMatchType.visit = (value, visitor) => {
129
- if (value.exact !== undefined)
130
- return visitor.exact(value.exact);
131
- if (value.prefix !== undefined)
132
- return visitor.prefix(value.prefix);
133
- if (value.contains !== undefined)
134
- return visitor.contains(value.contains);
135
- return visitor._(value.$unknown[0], value.$unknown[1]);
136
- };
137
- })(HeaderMatchType || (HeaderMatchType = {}));
138
- export var PathMatchType;
139
- (function (PathMatchType) {
140
- PathMatchType.visit = (value, visitor) => {
141
- if (value.exact !== undefined)
142
- return visitor.exact(value.exact);
143
- if (value.prefix !== undefined)
144
- return visitor.prefix(value.prefix);
145
- return visitor._(value.$unknown[0], value.$unknown[1]);
146
- };
147
- })(PathMatchType || (PathMatchType = {}));
148
- export var RuleMatch;
149
- (function (RuleMatch) {
150
- RuleMatch.visit = (value, visitor) => {
151
- if (value.httpMatch !== undefined)
152
- return visitor.httpMatch(value.httpMatch);
153
- return visitor._(value.$unknown[0], value.$unknown[1]);
154
- };
155
- })(RuleMatch || (RuleMatch = {}));
156
116
  export const ListenerProtocol = {
157
117
  HTTP: "HTTP",
158
118
  HTTPS: "HTTPS",
@@ -186,18 +146,6 @@ export const ResourceConfigurationIpAddressType = {
186
146
  IPV4: "IPV4",
187
147
  IPV6: "IPV6",
188
148
  };
189
- export var ResourceConfigurationDefinition;
190
- (function (ResourceConfigurationDefinition) {
191
- ResourceConfigurationDefinition.visit = (value, visitor) => {
192
- if (value.dnsResource !== undefined)
193
- return visitor.dnsResource(value.dnsResource);
194
- if (value.ipResource !== undefined)
195
- return visitor.ipResource(value.ipResource);
196
- if (value.arnResource !== undefined)
197
- return visitor.arnResource(value.arnResource);
198
- return visitor._(value.$unknown[0], value.$unknown[1]);
199
- };
200
- })(ResourceConfigurationDefinition || (ResourceConfigurationDefinition = {}));
201
149
  export const ResourceConfigurationType = {
202
150
  ARN: "ARN",
203
151
  CHILD: "CHILD",
@@ -264,14 +212,6 @@ export const ServiceNetworkVpcAssociationStatus = {
264
212
  UPDATE_FAILED: "UPDATE_FAILED",
265
213
  UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
266
214
  };
267
- export var Matcher;
268
- (function (Matcher) {
269
- Matcher.visit = (value, visitor) => {
270
- if (value.httpCode !== undefined)
271
- return visitor.httpCode(value.httpCode);
272
- return visitor._(value.$unknown[0], value.$unknown[1]);
273
- };
274
- })(Matcher || (Matcher = {}));
275
215
  export const TargetGroupProtocol = {
276
216
  HTTP: "HTTP",
277
217
  HTTPS: "HTTPS",
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.vpclattice" }),
25
27
  serviceId: config?.serviceId ?? "VPC Lattice",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,