@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,2698 +0,0 @@
1
- import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
- import { VPCLatticeServiceException as __BaseException } from "../models/VPCLatticeServiceException";
7
- export const se_BatchUpdateRuleCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {
10
- "content-type": "application/json",
11
- };
12
- b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules");
13
- b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
14
- b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
15
- let body;
16
- body = JSON.stringify(take(input, {
17
- rules: (_) => _json(_),
18
- }));
19
- b.m("PATCH").h(headers).b(body);
20
- return b.build();
21
- };
22
- export const se_CreateAccessLogSubscriptionCommand = async (input, context) => {
23
- const b = rb(input, context);
24
- const headers = {
25
- "content-type": "application/json",
26
- };
27
- b.bp("/accesslogsubscriptions");
28
- let body;
29
- body = JSON.stringify(take(input, {
30
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
31
- destinationArn: [],
32
- resourceIdentifier: [],
33
- serviceNetworkLogType: [],
34
- tags: (_) => _json(_),
35
- }));
36
- b.m("POST").h(headers).b(body);
37
- return b.build();
38
- };
39
- export const se_CreateListenerCommand = async (input, context) => {
40
- const b = rb(input, context);
41
- const headers = {
42
- "content-type": "application/json",
43
- };
44
- b.bp("/services/{serviceIdentifier}/listeners");
45
- b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
46
- let body;
47
- body = JSON.stringify(take(input, {
48
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
49
- defaultAction: (_) => _json(_),
50
- name: [],
51
- port: [],
52
- protocol: [],
53
- tags: (_) => _json(_),
54
- }));
55
- b.m("POST").h(headers).b(body);
56
- return b.build();
57
- };
58
- export const se_CreateResourceConfigurationCommand = async (input, context) => {
59
- const b = rb(input, context);
60
- const headers = {
61
- "content-type": "application/json",
62
- };
63
- b.bp("/resourceconfigurations");
64
- let body;
65
- body = JSON.stringify(take(input, {
66
- allowAssociationToShareableServiceNetwork: [],
67
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
68
- customDomainName: [],
69
- domainVerificationIdentifier: [],
70
- groupDomain: [],
71
- name: [],
72
- portRanges: (_) => _json(_),
73
- protocol: [],
74
- resourceConfigurationDefinition: (_) => _json(_),
75
- resourceConfigurationGroupIdentifier: [],
76
- resourceGatewayIdentifier: [],
77
- tags: (_) => _json(_),
78
- type: [],
79
- }));
80
- b.m("POST").h(headers).b(body);
81
- return b.build();
82
- };
83
- export const se_CreateResourceGatewayCommand = async (input, context) => {
84
- const b = rb(input, context);
85
- const headers = {
86
- "content-type": "application/json",
87
- };
88
- b.bp("/resourcegateways");
89
- let body;
90
- body = JSON.stringify(take(input, {
91
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
92
- ipAddressType: [],
93
- ipv4AddressesPerEni: [],
94
- name: [],
95
- securityGroupIds: (_) => _json(_),
96
- subnetIds: (_) => _json(_),
97
- tags: (_) => _json(_),
98
- vpcIdentifier: [],
99
- }));
100
- b.m("POST").h(headers).b(body);
101
- return b.build();
102
- };
103
- export const se_CreateRuleCommand = async (input, context) => {
104
- const b = rb(input, context);
105
- const headers = {
106
- "content-type": "application/json",
107
- };
108
- b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules");
109
- b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
110
- b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
111
- let body;
112
- body = JSON.stringify(take(input, {
113
- action: (_) => _json(_),
114
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
115
- match: (_) => _json(_),
116
- name: [],
117
- priority: [],
118
- tags: (_) => _json(_),
119
- }));
120
- b.m("POST").h(headers).b(body);
121
- return b.build();
122
- };
123
- export const se_CreateServiceCommand = async (input, context) => {
124
- const b = rb(input, context);
125
- const headers = {
126
- "content-type": "application/json",
127
- };
128
- b.bp("/services");
129
- let body;
130
- body = JSON.stringify(take(input, {
131
- authType: [],
132
- certificateArn: [],
133
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
134
- customDomainName: [],
135
- name: [],
136
- tags: (_) => _json(_),
137
- }));
138
- b.m("POST").h(headers).b(body);
139
- return b.build();
140
- };
141
- export const se_CreateServiceNetworkCommand = async (input, context) => {
142
- const b = rb(input, context);
143
- const headers = {
144
- "content-type": "application/json",
145
- };
146
- b.bp("/servicenetworks");
147
- let body;
148
- body = JSON.stringify(take(input, {
149
- authType: [],
150
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
151
- name: [],
152
- sharingConfig: (_) => _json(_),
153
- tags: (_) => _json(_),
154
- }));
155
- b.m("POST").h(headers).b(body);
156
- return b.build();
157
- };
158
- export const se_CreateServiceNetworkResourceAssociationCommand = async (input, context) => {
159
- const b = rb(input, context);
160
- const headers = {
161
- "content-type": "application/json",
162
- };
163
- b.bp("/servicenetworkresourceassociations");
164
- let body;
165
- body = JSON.stringify(take(input, {
166
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
167
- privateDnsEnabled: [],
168
- resourceConfigurationIdentifier: [],
169
- serviceNetworkIdentifier: [],
170
- tags: (_) => _json(_),
171
- }));
172
- b.m("POST").h(headers).b(body);
173
- return b.build();
174
- };
175
- export const se_CreateServiceNetworkServiceAssociationCommand = async (input, context) => {
176
- const b = rb(input, context);
177
- const headers = {
178
- "content-type": "application/json",
179
- };
180
- b.bp("/servicenetworkserviceassociations");
181
- let body;
182
- body = JSON.stringify(take(input, {
183
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
184
- serviceIdentifier: [],
185
- serviceNetworkIdentifier: [],
186
- tags: (_) => _json(_),
187
- }));
188
- b.m("POST").h(headers).b(body);
189
- return b.build();
190
- };
191
- export const se_CreateServiceNetworkVpcAssociationCommand = async (input, context) => {
192
- const b = rb(input, context);
193
- const headers = {
194
- "content-type": "application/json",
195
- };
196
- b.bp("/servicenetworkvpcassociations");
197
- let body;
198
- body = JSON.stringify(take(input, {
199
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
200
- dnsOptions: (_) => _json(_),
201
- privateDnsEnabled: [],
202
- securityGroupIds: (_) => _json(_),
203
- serviceNetworkIdentifier: [],
204
- tags: (_) => _json(_),
205
- vpcIdentifier: [],
206
- }));
207
- b.m("POST").h(headers).b(body);
208
- return b.build();
209
- };
210
- export const se_CreateTargetGroupCommand = async (input, context) => {
211
- const b = rb(input, context);
212
- const headers = {
213
- "content-type": "application/json",
214
- };
215
- b.bp("/targetgroups");
216
- let body;
217
- body = JSON.stringify(take(input, {
218
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
219
- config: (_) => _json(_),
220
- name: [],
221
- tags: (_) => _json(_),
222
- type: [],
223
- }));
224
- b.m("POST").h(headers).b(body);
225
- return b.build();
226
- };
227
- export const se_DeleteAccessLogSubscriptionCommand = async (input, context) => {
228
- const b = rb(input, context);
229
- const headers = {};
230
- b.bp("/accesslogsubscriptions/{accessLogSubscriptionIdentifier}");
231
- b.p("accessLogSubscriptionIdentifier", () => input.accessLogSubscriptionIdentifier, "{accessLogSubscriptionIdentifier}", false);
232
- let body;
233
- b.m("DELETE").h(headers).b(body);
234
- return b.build();
235
- };
236
- export const se_DeleteAuthPolicyCommand = async (input, context) => {
237
- const b = rb(input, context);
238
- const headers = {};
239
- b.bp("/authpolicy/{resourceIdentifier}");
240
- b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
241
- let body;
242
- b.m("DELETE").h(headers).b(body);
243
- return b.build();
244
- };
245
- export const se_DeleteDomainVerificationCommand = async (input, context) => {
246
- const b = rb(input, context);
247
- const headers = {};
248
- b.bp("/domainverifications/{domainVerificationIdentifier}");
249
- b.p("domainVerificationIdentifier", () => input.domainVerificationIdentifier, "{domainVerificationIdentifier}", false);
250
- let body;
251
- b.m("DELETE").h(headers).b(body);
252
- return b.build();
253
- };
254
- export const se_DeleteListenerCommand = async (input, context) => {
255
- const b = rb(input, context);
256
- const headers = {};
257
- b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}");
258
- b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
259
- b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
260
- let body;
261
- b.m("DELETE").h(headers).b(body);
262
- return b.build();
263
- };
264
- export const se_DeleteResourceConfigurationCommand = async (input, context) => {
265
- const b = rb(input, context);
266
- const headers = {};
267
- b.bp("/resourceconfigurations/{resourceConfigurationIdentifier}");
268
- b.p("resourceConfigurationIdentifier", () => input.resourceConfigurationIdentifier, "{resourceConfigurationIdentifier}", false);
269
- let body;
270
- b.m("DELETE").h(headers).b(body);
271
- return b.build();
272
- };
273
- export const se_DeleteResourceEndpointAssociationCommand = async (input, context) => {
274
- const b = rb(input, context);
275
- const headers = {};
276
- b.bp("/resourceendpointassociations/{resourceEndpointAssociationIdentifier}");
277
- b.p("resourceEndpointAssociationIdentifier", () => input.resourceEndpointAssociationIdentifier, "{resourceEndpointAssociationIdentifier}", false);
278
- let body;
279
- b.m("DELETE").h(headers).b(body);
280
- return b.build();
281
- };
282
- export const se_DeleteResourceGatewayCommand = async (input, context) => {
283
- const b = rb(input, context);
284
- const headers = {};
285
- b.bp("/resourcegateways/{resourceGatewayIdentifier}");
286
- b.p("resourceGatewayIdentifier", () => input.resourceGatewayIdentifier, "{resourceGatewayIdentifier}", false);
287
- let body;
288
- b.m("DELETE").h(headers).b(body);
289
- return b.build();
290
- };
291
- export const se_DeleteResourcePolicyCommand = async (input, context) => {
292
- const b = rb(input, context);
293
- const headers = {};
294
- b.bp("/resourcepolicy/{resourceArn}");
295
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
296
- let body;
297
- b.m("DELETE").h(headers).b(body);
298
- return b.build();
299
- };
300
- export const se_DeleteRuleCommand = async (input, context) => {
301
- const b = rb(input, context);
302
- const headers = {};
303
- b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules/{ruleIdentifier}");
304
- b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
305
- b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
306
- b.p("ruleIdentifier", () => input.ruleIdentifier, "{ruleIdentifier}", false);
307
- let body;
308
- b.m("DELETE").h(headers).b(body);
309
- return b.build();
310
- };
311
- export const se_DeleteServiceCommand = async (input, context) => {
312
- const b = rb(input, context);
313
- const headers = {};
314
- b.bp("/services/{serviceIdentifier}");
315
- b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
316
- let body;
317
- b.m("DELETE").h(headers).b(body);
318
- return b.build();
319
- };
320
- export const se_DeleteServiceNetworkCommand = async (input, context) => {
321
- const b = rb(input, context);
322
- const headers = {};
323
- b.bp("/servicenetworks/{serviceNetworkIdentifier}");
324
- b.p("serviceNetworkIdentifier", () => input.serviceNetworkIdentifier, "{serviceNetworkIdentifier}", false);
325
- let body;
326
- b.m("DELETE").h(headers).b(body);
327
- return b.build();
328
- };
329
- export const se_DeleteServiceNetworkResourceAssociationCommand = async (input, context) => {
330
- const b = rb(input, context);
331
- const headers = {};
332
- b.bp("/servicenetworkresourceassociations/{serviceNetworkResourceAssociationIdentifier}");
333
- b.p("serviceNetworkResourceAssociationIdentifier", () => input.serviceNetworkResourceAssociationIdentifier, "{serviceNetworkResourceAssociationIdentifier}", false);
334
- let body;
335
- b.m("DELETE").h(headers).b(body);
336
- return b.build();
337
- };
338
- export const se_DeleteServiceNetworkServiceAssociationCommand = async (input, context) => {
339
- const b = rb(input, context);
340
- const headers = {};
341
- b.bp("/servicenetworkserviceassociations/{serviceNetworkServiceAssociationIdentifier}");
342
- b.p("serviceNetworkServiceAssociationIdentifier", () => input.serviceNetworkServiceAssociationIdentifier, "{serviceNetworkServiceAssociationIdentifier}", false);
343
- let body;
344
- b.m("DELETE").h(headers).b(body);
345
- return b.build();
346
- };
347
- export const se_DeleteServiceNetworkVpcAssociationCommand = async (input, context) => {
348
- const b = rb(input, context);
349
- const headers = {};
350
- b.bp("/servicenetworkvpcassociations/{serviceNetworkVpcAssociationIdentifier}");
351
- b.p("serviceNetworkVpcAssociationIdentifier", () => input.serviceNetworkVpcAssociationIdentifier, "{serviceNetworkVpcAssociationIdentifier}", false);
352
- let body;
353
- b.m("DELETE").h(headers).b(body);
354
- return b.build();
355
- };
356
- export const se_DeleteTargetGroupCommand = async (input, context) => {
357
- const b = rb(input, context);
358
- const headers = {};
359
- b.bp("/targetgroups/{targetGroupIdentifier}");
360
- b.p("targetGroupIdentifier", () => input.targetGroupIdentifier, "{targetGroupIdentifier}", false);
361
- let body;
362
- b.m("DELETE").h(headers).b(body);
363
- return b.build();
364
- };
365
- export const se_DeregisterTargetsCommand = async (input, context) => {
366
- const b = rb(input, context);
367
- const headers = {
368
- "content-type": "application/json",
369
- };
370
- b.bp("/targetgroups/{targetGroupIdentifier}/deregistertargets");
371
- b.p("targetGroupIdentifier", () => input.targetGroupIdentifier, "{targetGroupIdentifier}", false);
372
- let body;
373
- body = JSON.stringify(take(input, {
374
- targets: (_) => _json(_),
375
- }));
376
- b.m("POST").h(headers).b(body);
377
- return b.build();
378
- };
379
- export const se_GetAccessLogSubscriptionCommand = async (input, context) => {
380
- const b = rb(input, context);
381
- const headers = {};
382
- b.bp("/accesslogsubscriptions/{accessLogSubscriptionIdentifier}");
383
- b.p("accessLogSubscriptionIdentifier", () => input.accessLogSubscriptionIdentifier, "{accessLogSubscriptionIdentifier}", false);
384
- let body;
385
- b.m("GET").h(headers).b(body);
386
- return b.build();
387
- };
388
- export const se_GetAuthPolicyCommand = async (input, context) => {
389
- const b = rb(input, context);
390
- const headers = {};
391
- b.bp("/authpolicy/{resourceIdentifier}");
392
- b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
393
- let body;
394
- b.m("GET").h(headers).b(body);
395
- return b.build();
396
- };
397
- export const se_GetDomainVerificationCommand = async (input, context) => {
398
- const b = rb(input, context);
399
- const headers = {};
400
- b.bp("/domainverifications/{domainVerificationIdentifier}");
401
- b.p("domainVerificationIdentifier", () => input.domainVerificationIdentifier, "{domainVerificationIdentifier}", false);
402
- let body;
403
- b.m("GET").h(headers).b(body);
404
- return b.build();
405
- };
406
- export const se_GetListenerCommand = async (input, context) => {
407
- const b = rb(input, context);
408
- const headers = {};
409
- b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}");
410
- b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
411
- b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
412
- let body;
413
- b.m("GET").h(headers).b(body);
414
- return b.build();
415
- };
416
- export const se_GetResourceConfigurationCommand = async (input, context) => {
417
- const b = rb(input, context);
418
- const headers = {};
419
- b.bp("/resourceconfigurations/{resourceConfigurationIdentifier}");
420
- b.p("resourceConfigurationIdentifier", () => input.resourceConfigurationIdentifier, "{resourceConfigurationIdentifier}", false);
421
- let body;
422
- b.m("GET").h(headers).b(body);
423
- return b.build();
424
- };
425
- export const se_GetResourceGatewayCommand = async (input, context) => {
426
- const b = rb(input, context);
427
- const headers = {};
428
- b.bp("/resourcegateways/{resourceGatewayIdentifier}");
429
- b.p("resourceGatewayIdentifier", () => input.resourceGatewayIdentifier, "{resourceGatewayIdentifier}", false);
430
- let body;
431
- b.m("GET").h(headers).b(body);
432
- return b.build();
433
- };
434
- export const se_GetResourcePolicyCommand = async (input, context) => {
435
- const b = rb(input, context);
436
- const headers = {};
437
- b.bp("/resourcepolicy/{resourceArn}");
438
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
439
- let body;
440
- b.m("GET").h(headers).b(body);
441
- return b.build();
442
- };
443
- export const se_GetRuleCommand = async (input, context) => {
444
- const b = rb(input, context);
445
- const headers = {};
446
- b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules/{ruleIdentifier}");
447
- b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
448
- b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
449
- b.p("ruleIdentifier", () => input.ruleIdentifier, "{ruleIdentifier}", false);
450
- let body;
451
- b.m("GET").h(headers).b(body);
452
- return b.build();
453
- };
454
- export const se_GetServiceCommand = async (input, context) => {
455
- const b = rb(input, context);
456
- const headers = {};
457
- b.bp("/services/{serviceIdentifier}");
458
- b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
459
- let body;
460
- b.m("GET").h(headers).b(body);
461
- return b.build();
462
- };
463
- export const se_GetServiceNetworkCommand = async (input, context) => {
464
- const b = rb(input, context);
465
- const headers = {};
466
- b.bp("/servicenetworks/{serviceNetworkIdentifier}");
467
- b.p("serviceNetworkIdentifier", () => input.serviceNetworkIdentifier, "{serviceNetworkIdentifier}", false);
468
- let body;
469
- b.m("GET").h(headers).b(body);
470
- return b.build();
471
- };
472
- export const se_GetServiceNetworkResourceAssociationCommand = async (input, context) => {
473
- const b = rb(input, context);
474
- const headers = {};
475
- b.bp("/servicenetworkresourceassociations/{serviceNetworkResourceAssociationIdentifier}");
476
- b.p("serviceNetworkResourceAssociationIdentifier", () => input.serviceNetworkResourceAssociationIdentifier, "{serviceNetworkResourceAssociationIdentifier}", false);
477
- let body;
478
- b.m("GET").h(headers).b(body);
479
- return b.build();
480
- };
481
- export const se_GetServiceNetworkServiceAssociationCommand = async (input, context) => {
482
- const b = rb(input, context);
483
- const headers = {};
484
- b.bp("/servicenetworkserviceassociations/{serviceNetworkServiceAssociationIdentifier}");
485
- b.p("serviceNetworkServiceAssociationIdentifier", () => input.serviceNetworkServiceAssociationIdentifier, "{serviceNetworkServiceAssociationIdentifier}", false);
486
- let body;
487
- b.m("GET").h(headers).b(body);
488
- return b.build();
489
- };
490
- export const se_GetServiceNetworkVpcAssociationCommand = async (input, context) => {
491
- const b = rb(input, context);
492
- const headers = {};
493
- b.bp("/servicenetworkvpcassociations/{serviceNetworkVpcAssociationIdentifier}");
494
- b.p("serviceNetworkVpcAssociationIdentifier", () => input.serviceNetworkVpcAssociationIdentifier, "{serviceNetworkVpcAssociationIdentifier}", false);
495
- let body;
496
- b.m("GET").h(headers).b(body);
497
- return b.build();
498
- };
499
- export const se_GetTargetGroupCommand = async (input, context) => {
500
- const b = rb(input, context);
501
- const headers = {};
502
- b.bp("/targetgroups/{targetGroupIdentifier}");
503
- b.p("targetGroupIdentifier", () => input.targetGroupIdentifier, "{targetGroupIdentifier}", false);
504
- let body;
505
- b.m("GET").h(headers).b(body);
506
- return b.build();
507
- };
508
- export const se_ListAccessLogSubscriptionsCommand = async (input, context) => {
509
- const b = rb(input, context);
510
- const headers = {};
511
- b.bp("/accesslogsubscriptions");
512
- const query = map({
513
- [_rI]: [, __expectNonNull(input[_rI], `resourceIdentifier`)],
514
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
515
- [_nT]: [, input[_nT]],
516
- });
517
- let body;
518
- b.m("GET").h(headers).q(query).b(body);
519
- return b.build();
520
- };
521
- export const se_ListDomainVerificationsCommand = async (input, context) => {
522
- const b = rb(input, context);
523
- const headers = {};
524
- b.bp("/domainverifications");
525
- const query = map({
526
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
527
- [_nT]: [, input[_nT]],
528
- });
529
- let body;
530
- b.m("GET").h(headers).q(query).b(body);
531
- return b.build();
532
- };
533
- export const se_ListListenersCommand = async (input, context) => {
534
- const b = rb(input, context);
535
- const headers = {};
536
- b.bp("/services/{serviceIdentifier}/listeners");
537
- b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
538
- const query = map({
539
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
540
- [_nT]: [, input[_nT]],
541
- });
542
- let body;
543
- b.m("GET").h(headers).q(query).b(body);
544
- return b.build();
545
- };
546
- export const se_ListResourceConfigurationsCommand = async (input, context) => {
547
- const b = rb(input, context);
548
- const headers = {};
549
- b.bp("/resourceconfigurations");
550
- const query = map({
551
- [_rGI]: [, input[_rGI]],
552
- [_rCGI]: [, input[_rCGI]],
553
- [_dVI]: [, input[_dVI]],
554
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
555
- [_nT]: [, input[_nT]],
556
- });
557
- let body;
558
- b.m("GET").h(headers).q(query).b(body);
559
- return b.build();
560
- };
561
- export const se_ListResourceEndpointAssociationsCommand = async (input, context) => {
562
- const b = rb(input, context);
563
- const headers = {};
564
- b.bp("/resourceendpointassociations");
565
- const query = map({
566
- [_rCI]: [, __expectNonNull(input[_rCI], `resourceConfigurationIdentifier`)],
567
- [_rEAI]: [, input[_rEAI]],
568
- [_vEI]: [, input[_vEI]],
569
- [_vEO]: [, input[_vEO]],
570
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
571
- [_nT]: [, input[_nT]],
572
- });
573
- let body;
574
- b.m("GET").h(headers).q(query).b(body);
575
- return b.build();
576
- };
577
- export const se_ListResourceGatewaysCommand = async (input, context) => {
578
- const b = rb(input, context);
579
- const headers = {};
580
- b.bp("/resourcegateways");
581
- const query = map({
582
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
583
- [_nT]: [, input[_nT]],
584
- });
585
- let body;
586
- b.m("GET").h(headers).q(query).b(body);
587
- return b.build();
588
- };
589
- export const se_ListRulesCommand = async (input, context) => {
590
- const b = rb(input, context);
591
- const headers = {};
592
- b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules");
593
- b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
594
- b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
595
- const query = map({
596
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
597
- [_nT]: [, input[_nT]],
598
- });
599
- let body;
600
- b.m("GET").h(headers).q(query).b(body);
601
- return b.build();
602
- };
603
- export const se_ListServiceNetworkResourceAssociationsCommand = async (input, context) => {
604
- const b = rb(input, context);
605
- const headers = {};
606
- b.bp("/servicenetworkresourceassociations");
607
- const query = map({
608
- [_sNI]: [, input[_sNI]],
609
- [_rCI]: [, input[_rCI]],
610
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
611
- [_nT]: [, input[_nT]],
612
- [_iC]: [() => input.includeChildren !== void 0, () => input[_iC].toString()],
613
- });
614
- let body;
615
- b.m("GET").h(headers).q(query).b(body);
616
- return b.build();
617
- };
618
- export const se_ListServiceNetworksCommand = async (input, context) => {
619
- const b = rb(input, context);
620
- const headers = {};
621
- b.bp("/servicenetworks");
622
- const query = map({
623
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
624
- [_nT]: [, input[_nT]],
625
- });
626
- let body;
627
- b.m("GET").h(headers).q(query).b(body);
628
- return b.build();
629
- };
630
- export const se_ListServiceNetworkServiceAssociationsCommand = async (input, context) => {
631
- const b = rb(input, context);
632
- const headers = {};
633
- b.bp("/servicenetworkserviceassociations");
634
- const query = map({
635
- [_sNI]: [, input[_sNI]],
636
- [_sI]: [, input[_sI]],
637
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
638
- [_nT]: [, input[_nT]],
639
- });
640
- let body;
641
- b.m("GET").h(headers).q(query).b(body);
642
- return b.build();
643
- };
644
- export const se_ListServiceNetworkVpcAssociationsCommand = async (input, context) => {
645
- const b = rb(input, context);
646
- const headers = {};
647
- b.bp("/servicenetworkvpcassociations");
648
- const query = map({
649
- [_sNI]: [, input[_sNI]],
650
- [_vI]: [, input[_vI]],
651
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
652
- [_nT]: [, input[_nT]],
653
- });
654
- let body;
655
- b.m("GET").h(headers).q(query).b(body);
656
- return b.build();
657
- };
658
- export const se_ListServiceNetworkVpcEndpointAssociationsCommand = async (input, context) => {
659
- const b = rb(input, context);
660
- const headers = {};
661
- b.bp("/servicenetworkvpcendpointassociations");
662
- const query = map({
663
- [_sNI]: [, __expectNonNull(input[_sNI], `serviceNetworkIdentifier`)],
664
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
665
- [_nT]: [, input[_nT]],
666
- });
667
- let body;
668
- b.m("GET").h(headers).q(query).b(body);
669
- return b.build();
670
- };
671
- export const se_ListServicesCommand = async (input, context) => {
672
- const b = rb(input, context);
673
- const headers = {};
674
- b.bp("/services");
675
- const query = map({
676
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
677
- [_nT]: [, input[_nT]],
678
- });
679
- let body;
680
- b.m("GET").h(headers).q(query).b(body);
681
- return b.build();
682
- };
683
- export const se_ListTagsForResourceCommand = async (input, context) => {
684
- const b = rb(input, context);
685
- const headers = {};
686
- b.bp("/tags/{resourceArn}");
687
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
688
- let body;
689
- b.m("GET").h(headers).b(body);
690
- return b.build();
691
- };
692
- export const se_ListTargetGroupsCommand = async (input, context) => {
693
- const b = rb(input, context);
694
- const headers = {};
695
- b.bp("/targetgroups");
696
- const query = map({
697
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
698
- [_nT]: [, input[_nT]],
699
- [_vI]: [, input[_vI]],
700
- [_tGT]: [, input[_tGT]],
701
- });
702
- let body;
703
- b.m("GET").h(headers).q(query).b(body);
704
- return b.build();
705
- };
706
- export const se_ListTargetsCommand = async (input, context) => {
707
- const b = rb(input, context);
708
- const headers = {
709
- "content-type": "application/json",
710
- };
711
- b.bp("/targetgroups/{targetGroupIdentifier}/listtargets");
712
- b.p("targetGroupIdentifier", () => input.targetGroupIdentifier, "{targetGroupIdentifier}", false);
713
- const query = map({
714
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
715
- [_nT]: [, input[_nT]],
716
- });
717
- let body;
718
- body = JSON.stringify(take(input, {
719
- targets: (_) => _json(_),
720
- }));
721
- b.m("POST").h(headers).q(query).b(body);
722
- return b.build();
723
- };
724
- export const se_PutAuthPolicyCommand = async (input, context) => {
725
- const b = rb(input, context);
726
- const headers = {
727
- "content-type": "application/json",
728
- };
729
- b.bp("/authpolicy/{resourceIdentifier}");
730
- b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
731
- let body;
732
- body = JSON.stringify(take(input, {
733
- policy: [],
734
- }));
735
- b.m("PUT").h(headers).b(body);
736
- return b.build();
737
- };
738
- export const se_PutResourcePolicyCommand = async (input, context) => {
739
- const b = rb(input, context);
740
- const headers = {
741
- "content-type": "application/json",
742
- };
743
- b.bp("/resourcepolicy/{resourceArn}");
744
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
745
- let body;
746
- body = JSON.stringify(take(input, {
747
- policy: [],
748
- }));
749
- b.m("PUT").h(headers).b(body);
750
- return b.build();
751
- };
752
- export const se_RegisterTargetsCommand = async (input, context) => {
753
- const b = rb(input, context);
754
- const headers = {
755
- "content-type": "application/json",
756
- };
757
- b.bp("/targetgroups/{targetGroupIdentifier}/registertargets");
758
- b.p("targetGroupIdentifier", () => input.targetGroupIdentifier, "{targetGroupIdentifier}", false);
759
- let body;
760
- body = JSON.stringify(take(input, {
761
- targets: (_) => _json(_),
762
- }));
763
- b.m("POST").h(headers).b(body);
764
- return b.build();
765
- };
766
- export const se_StartDomainVerificationCommand = async (input, context) => {
767
- const b = rb(input, context);
768
- const headers = {
769
- "content-type": "application/json",
770
- };
771
- b.bp("/domainverifications");
772
- let body;
773
- body = JSON.stringify(take(input, {
774
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
775
- domainName: [],
776
- tags: (_) => _json(_),
777
- }));
778
- b.m("POST").h(headers).b(body);
779
- return b.build();
780
- };
781
- export const se_TagResourceCommand = async (input, context) => {
782
- const b = rb(input, context);
783
- const headers = {
784
- "content-type": "application/json",
785
- };
786
- b.bp("/tags/{resourceArn}");
787
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
788
- let body;
789
- body = JSON.stringify(take(input, {
790
- tags: (_) => _json(_),
791
- }));
792
- b.m("POST").h(headers).b(body);
793
- return b.build();
794
- };
795
- export const se_UntagResourceCommand = async (input, context) => {
796
- const b = rb(input, context);
797
- const headers = {};
798
- b.bp("/tags/{resourceArn}");
799
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
800
- const query = map({
801
- [_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
802
- });
803
- let body;
804
- b.m("DELETE").h(headers).q(query).b(body);
805
- return b.build();
806
- };
807
- export const se_UpdateAccessLogSubscriptionCommand = async (input, context) => {
808
- const b = rb(input, context);
809
- const headers = {
810
- "content-type": "application/json",
811
- };
812
- b.bp("/accesslogsubscriptions/{accessLogSubscriptionIdentifier}");
813
- b.p("accessLogSubscriptionIdentifier", () => input.accessLogSubscriptionIdentifier, "{accessLogSubscriptionIdentifier}", false);
814
- let body;
815
- body = JSON.stringify(take(input, {
816
- destinationArn: [],
817
- }));
818
- b.m("PATCH").h(headers).b(body);
819
- return b.build();
820
- };
821
- export const se_UpdateListenerCommand = async (input, context) => {
822
- const b = rb(input, context);
823
- const headers = {
824
- "content-type": "application/json",
825
- };
826
- b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}");
827
- b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
828
- b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
829
- let body;
830
- body = JSON.stringify(take(input, {
831
- defaultAction: (_) => _json(_),
832
- }));
833
- b.m("PATCH").h(headers).b(body);
834
- return b.build();
835
- };
836
- export const se_UpdateResourceConfigurationCommand = async (input, context) => {
837
- const b = rb(input, context);
838
- const headers = {
839
- "content-type": "application/json",
840
- };
841
- b.bp("/resourceconfigurations/{resourceConfigurationIdentifier}");
842
- b.p("resourceConfigurationIdentifier", () => input.resourceConfigurationIdentifier, "{resourceConfigurationIdentifier}", false);
843
- let body;
844
- body = JSON.stringify(take(input, {
845
- allowAssociationToShareableServiceNetwork: [],
846
- portRanges: (_) => _json(_),
847
- resourceConfigurationDefinition: (_) => _json(_),
848
- }));
849
- b.m("PATCH").h(headers).b(body);
850
- return b.build();
851
- };
852
- export const se_UpdateResourceGatewayCommand = async (input, context) => {
853
- const b = rb(input, context);
854
- const headers = {
855
- "content-type": "application/json",
856
- };
857
- b.bp("/resourcegateways/{resourceGatewayIdentifier}");
858
- b.p("resourceGatewayIdentifier", () => input.resourceGatewayIdentifier, "{resourceGatewayIdentifier}", false);
859
- let body;
860
- body = JSON.stringify(take(input, {
861
- securityGroupIds: (_) => _json(_),
862
- }));
863
- b.m("PATCH").h(headers).b(body);
864
- return b.build();
865
- };
866
- export const se_UpdateRuleCommand = async (input, context) => {
867
- const b = rb(input, context);
868
- const headers = {
869
- "content-type": "application/json",
870
- };
871
- b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules/{ruleIdentifier}");
872
- b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
873
- b.p("listenerIdentifier", () => input.listenerIdentifier, "{listenerIdentifier}", false);
874
- b.p("ruleIdentifier", () => input.ruleIdentifier, "{ruleIdentifier}", false);
875
- let body;
876
- body = JSON.stringify(take(input, {
877
- action: (_) => _json(_),
878
- match: (_) => _json(_),
879
- priority: [],
880
- }));
881
- b.m("PATCH").h(headers).b(body);
882
- return b.build();
883
- };
884
- export const se_UpdateServiceCommand = async (input, context) => {
885
- const b = rb(input, context);
886
- const headers = {
887
- "content-type": "application/json",
888
- };
889
- b.bp("/services/{serviceIdentifier}");
890
- b.p("serviceIdentifier", () => input.serviceIdentifier, "{serviceIdentifier}", false);
891
- let body;
892
- body = JSON.stringify(take(input, {
893
- authType: [],
894
- certificateArn: [],
895
- }));
896
- b.m("PATCH").h(headers).b(body);
897
- return b.build();
898
- };
899
- export const se_UpdateServiceNetworkCommand = async (input, context) => {
900
- const b = rb(input, context);
901
- const headers = {
902
- "content-type": "application/json",
903
- };
904
- b.bp("/servicenetworks/{serviceNetworkIdentifier}");
905
- b.p("serviceNetworkIdentifier", () => input.serviceNetworkIdentifier, "{serviceNetworkIdentifier}", false);
906
- let body;
907
- body = JSON.stringify(take(input, {
908
- authType: [],
909
- }));
910
- b.m("PATCH").h(headers).b(body);
911
- return b.build();
912
- };
913
- export const se_UpdateServiceNetworkVpcAssociationCommand = async (input, context) => {
914
- const b = rb(input, context);
915
- const headers = {
916
- "content-type": "application/json",
917
- };
918
- b.bp("/servicenetworkvpcassociations/{serviceNetworkVpcAssociationIdentifier}");
919
- b.p("serviceNetworkVpcAssociationIdentifier", () => input.serviceNetworkVpcAssociationIdentifier, "{serviceNetworkVpcAssociationIdentifier}", false);
920
- let body;
921
- body = JSON.stringify(take(input, {
922
- securityGroupIds: (_) => _json(_),
923
- }));
924
- b.m("PATCH").h(headers).b(body);
925
- return b.build();
926
- };
927
- export const se_UpdateTargetGroupCommand = async (input, context) => {
928
- const b = rb(input, context);
929
- const headers = {
930
- "content-type": "application/json",
931
- };
932
- b.bp("/targetgroups/{targetGroupIdentifier}");
933
- b.p("targetGroupIdentifier", () => input.targetGroupIdentifier, "{targetGroupIdentifier}", false);
934
- let body;
935
- body = JSON.stringify(take(input, {
936
- healthCheck: (_) => _json(_),
937
- }));
938
- b.m("PATCH").h(headers).b(body);
939
- return b.build();
940
- };
941
- export const de_BatchUpdateRuleCommand = async (output, context) => {
942
- if (output.statusCode !== 200 && output.statusCode >= 300) {
943
- return de_CommandError(output, context);
944
- }
945
- const contents = map({
946
- $metadata: deserializeMetadata(output),
947
- });
948
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
949
- const doc = take(data, {
950
- successful: _json,
951
- unsuccessful: _json,
952
- });
953
- Object.assign(contents, doc);
954
- return contents;
955
- };
956
- export const de_CreateAccessLogSubscriptionCommand = async (output, context) => {
957
- if (output.statusCode !== 201 && output.statusCode >= 300) {
958
- return de_CommandError(output, context);
959
- }
960
- const contents = map({
961
- $metadata: deserializeMetadata(output),
962
- });
963
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
964
- const doc = take(data, {
965
- arn: __expectString,
966
- destinationArn: __expectString,
967
- id: __expectString,
968
- resourceArn: __expectString,
969
- resourceId: __expectString,
970
- serviceNetworkLogType: __expectString,
971
- });
972
- Object.assign(contents, doc);
973
- return contents;
974
- };
975
- export const de_CreateListenerCommand = async (output, context) => {
976
- if (output.statusCode !== 201 && output.statusCode >= 300) {
977
- return de_CommandError(output, context);
978
- }
979
- const contents = map({
980
- $metadata: deserializeMetadata(output),
981
- });
982
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
983
- const doc = take(data, {
984
- arn: __expectString,
985
- defaultAction: (_) => _json(__expectUnion(_)),
986
- id: __expectString,
987
- name: __expectString,
988
- port: __expectInt32,
989
- protocol: __expectString,
990
- serviceArn: __expectString,
991
- serviceId: __expectString,
992
- });
993
- Object.assign(contents, doc);
994
- return contents;
995
- };
996
- export const de_CreateResourceConfigurationCommand = async (output, context) => {
997
- if (output.statusCode !== 201 && output.statusCode >= 300) {
998
- return de_CommandError(output, context);
999
- }
1000
- const contents = map({
1001
- $metadata: deserializeMetadata(output),
1002
- });
1003
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1004
- const doc = take(data, {
1005
- allowAssociationToShareableServiceNetwork: __expectBoolean,
1006
- arn: __expectString,
1007
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1008
- customDomainName: __expectString,
1009
- domainVerificationArn: __expectString,
1010
- domainVerificationId: __expectString,
1011
- failureReason: __expectString,
1012
- groupDomain: __expectString,
1013
- id: __expectString,
1014
- name: __expectString,
1015
- portRanges: _json,
1016
- protocol: __expectString,
1017
- resourceConfigurationDefinition: (_) => _json(__expectUnion(_)),
1018
- resourceConfigurationGroupId: __expectString,
1019
- resourceGatewayId: __expectString,
1020
- status: __expectString,
1021
- type: __expectString,
1022
- });
1023
- Object.assign(contents, doc);
1024
- return contents;
1025
- };
1026
- export const de_CreateResourceGatewayCommand = async (output, context) => {
1027
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1028
- return de_CommandError(output, context);
1029
- }
1030
- const contents = map({
1031
- $metadata: deserializeMetadata(output),
1032
- });
1033
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1034
- const doc = take(data, {
1035
- arn: __expectString,
1036
- id: __expectString,
1037
- ipAddressType: __expectString,
1038
- ipv4AddressesPerEni: __expectInt32,
1039
- name: __expectString,
1040
- securityGroupIds: _json,
1041
- status: __expectString,
1042
- subnetIds: _json,
1043
- vpcIdentifier: __expectString,
1044
- });
1045
- Object.assign(contents, doc);
1046
- return contents;
1047
- };
1048
- export const de_CreateRuleCommand = async (output, context) => {
1049
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1050
- return de_CommandError(output, context);
1051
- }
1052
- const contents = map({
1053
- $metadata: deserializeMetadata(output),
1054
- });
1055
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1056
- const doc = take(data, {
1057
- action: (_) => _json(__expectUnion(_)),
1058
- arn: __expectString,
1059
- id: __expectString,
1060
- match: (_) => _json(__expectUnion(_)),
1061
- name: __expectString,
1062
- priority: __expectInt32,
1063
- });
1064
- Object.assign(contents, doc);
1065
- return contents;
1066
- };
1067
- export const de_CreateServiceCommand = async (output, context) => {
1068
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1069
- return de_CommandError(output, context);
1070
- }
1071
- const contents = map({
1072
- $metadata: deserializeMetadata(output),
1073
- });
1074
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1075
- const doc = take(data, {
1076
- arn: __expectString,
1077
- authType: __expectString,
1078
- certificateArn: __expectString,
1079
- customDomainName: __expectString,
1080
- dnsEntry: _json,
1081
- id: __expectString,
1082
- name: __expectString,
1083
- status: __expectString,
1084
- });
1085
- Object.assign(contents, doc);
1086
- return contents;
1087
- };
1088
- export const de_CreateServiceNetworkCommand = async (output, context) => {
1089
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1090
- return de_CommandError(output, context);
1091
- }
1092
- const contents = map({
1093
- $metadata: deserializeMetadata(output),
1094
- });
1095
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1096
- const doc = take(data, {
1097
- arn: __expectString,
1098
- authType: __expectString,
1099
- id: __expectString,
1100
- name: __expectString,
1101
- sharingConfig: _json,
1102
- });
1103
- Object.assign(contents, doc);
1104
- return contents;
1105
- };
1106
- export const de_CreateServiceNetworkResourceAssociationCommand = async (output, context) => {
1107
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1108
- return de_CommandError(output, context);
1109
- }
1110
- const contents = map({
1111
- $metadata: deserializeMetadata(output),
1112
- });
1113
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1114
- const doc = take(data, {
1115
- arn: __expectString,
1116
- createdBy: __expectString,
1117
- id: __expectString,
1118
- privateDnsEnabled: __expectBoolean,
1119
- status: __expectString,
1120
- });
1121
- Object.assign(contents, doc);
1122
- return contents;
1123
- };
1124
- export const de_CreateServiceNetworkServiceAssociationCommand = async (output, context) => {
1125
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1126
- return de_CommandError(output, context);
1127
- }
1128
- const contents = map({
1129
- $metadata: deserializeMetadata(output),
1130
- });
1131
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1132
- const doc = take(data, {
1133
- arn: __expectString,
1134
- createdBy: __expectString,
1135
- customDomainName: __expectString,
1136
- dnsEntry: _json,
1137
- id: __expectString,
1138
- status: __expectString,
1139
- });
1140
- Object.assign(contents, doc);
1141
- return contents;
1142
- };
1143
- export const de_CreateServiceNetworkVpcAssociationCommand = async (output, context) => {
1144
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1145
- return de_CommandError(output, context);
1146
- }
1147
- const contents = map({
1148
- $metadata: deserializeMetadata(output),
1149
- });
1150
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1151
- const doc = take(data, {
1152
- arn: __expectString,
1153
- createdBy: __expectString,
1154
- dnsOptions: _json,
1155
- id: __expectString,
1156
- privateDnsEnabled: __expectBoolean,
1157
- securityGroupIds: _json,
1158
- status: __expectString,
1159
- });
1160
- Object.assign(contents, doc);
1161
- return contents;
1162
- };
1163
- export const de_CreateTargetGroupCommand = async (output, context) => {
1164
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1165
- return de_CommandError(output, context);
1166
- }
1167
- const contents = map({
1168
- $metadata: deserializeMetadata(output),
1169
- });
1170
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1171
- const doc = take(data, {
1172
- arn: __expectString,
1173
- config: _json,
1174
- id: __expectString,
1175
- name: __expectString,
1176
- status: __expectString,
1177
- type: __expectString,
1178
- });
1179
- Object.assign(contents, doc);
1180
- return contents;
1181
- };
1182
- export const de_DeleteAccessLogSubscriptionCommand = async (output, context) => {
1183
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1184
- return de_CommandError(output, context);
1185
- }
1186
- const contents = map({
1187
- $metadata: deserializeMetadata(output),
1188
- });
1189
- await collectBody(output.body, context);
1190
- return contents;
1191
- };
1192
- export const de_DeleteAuthPolicyCommand = async (output, context) => {
1193
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1194
- return de_CommandError(output, context);
1195
- }
1196
- const contents = map({
1197
- $metadata: deserializeMetadata(output),
1198
- });
1199
- await collectBody(output.body, context);
1200
- return contents;
1201
- };
1202
- export const de_DeleteDomainVerificationCommand = async (output, context) => {
1203
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1204
- return de_CommandError(output, context);
1205
- }
1206
- const contents = map({
1207
- $metadata: deserializeMetadata(output),
1208
- });
1209
- await collectBody(output.body, context);
1210
- return contents;
1211
- };
1212
- export const de_DeleteListenerCommand = async (output, context) => {
1213
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1214
- return de_CommandError(output, context);
1215
- }
1216
- const contents = map({
1217
- $metadata: deserializeMetadata(output),
1218
- });
1219
- await collectBody(output.body, context);
1220
- return contents;
1221
- };
1222
- export const de_DeleteResourceConfigurationCommand = async (output, context) => {
1223
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1224
- return de_CommandError(output, context);
1225
- }
1226
- const contents = map({
1227
- $metadata: deserializeMetadata(output),
1228
- });
1229
- await collectBody(output.body, context);
1230
- return contents;
1231
- };
1232
- export const de_DeleteResourceEndpointAssociationCommand = async (output, context) => {
1233
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1234
- return de_CommandError(output, context);
1235
- }
1236
- const contents = map({
1237
- $metadata: deserializeMetadata(output),
1238
- });
1239
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1240
- const doc = take(data, {
1241
- arn: __expectString,
1242
- id: __expectString,
1243
- resourceConfigurationArn: __expectString,
1244
- resourceConfigurationId: __expectString,
1245
- vpcEndpointId: __expectString,
1246
- });
1247
- Object.assign(contents, doc);
1248
- return contents;
1249
- };
1250
- export const de_DeleteResourceGatewayCommand = async (output, context) => {
1251
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1252
- return de_CommandError(output, context);
1253
- }
1254
- const contents = map({
1255
- $metadata: deserializeMetadata(output),
1256
- });
1257
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1258
- const doc = take(data, {
1259
- arn: __expectString,
1260
- id: __expectString,
1261
- name: __expectString,
1262
- status: __expectString,
1263
- });
1264
- Object.assign(contents, doc);
1265
- return contents;
1266
- };
1267
- export const de_DeleteResourcePolicyCommand = async (output, context) => {
1268
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1269
- return de_CommandError(output, context);
1270
- }
1271
- const contents = map({
1272
- $metadata: deserializeMetadata(output),
1273
- });
1274
- await collectBody(output.body, context);
1275
- return contents;
1276
- };
1277
- export const de_DeleteRuleCommand = async (output, context) => {
1278
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1279
- return de_CommandError(output, context);
1280
- }
1281
- const contents = map({
1282
- $metadata: deserializeMetadata(output),
1283
- });
1284
- await collectBody(output.body, context);
1285
- return contents;
1286
- };
1287
- export const de_DeleteServiceCommand = async (output, context) => {
1288
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1289
- return de_CommandError(output, context);
1290
- }
1291
- const contents = map({
1292
- $metadata: deserializeMetadata(output),
1293
- });
1294
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1295
- const doc = take(data, {
1296
- arn: __expectString,
1297
- id: __expectString,
1298
- name: __expectString,
1299
- status: __expectString,
1300
- });
1301
- Object.assign(contents, doc);
1302
- return contents;
1303
- };
1304
- export const de_DeleteServiceNetworkCommand = async (output, context) => {
1305
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1306
- return de_CommandError(output, context);
1307
- }
1308
- const contents = map({
1309
- $metadata: deserializeMetadata(output),
1310
- });
1311
- await collectBody(output.body, context);
1312
- return contents;
1313
- };
1314
- export const de_DeleteServiceNetworkResourceAssociationCommand = async (output, context) => {
1315
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1316
- return de_CommandError(output, context);
1317
- }
1318
- const contents = map({
1319
- $metadata: deserializeMetadata(output),
1320
- });
1321
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1322
- const doc = take(data, {
1323
- arn: __expectString,
1324
- id: __expectString,
1325
- status: __expectString,
1326
- });
1327
- Object.assign(contents, doc);
1328
- return contents;
1329
- };
1330
- export const de_DeleteServiceNetworkServiceAssociationCommand = async (output, context) => {
1331
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1332
- return de_CommandError(output, context);
1333
- }
1334
- const contents = map({
1335
- $metadata: deserializeMetadata(output),
1336
- });
1337
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1338
- const doc = take(data, {
1339
- arn: __expectString,
1340
- id: __expectString,
1341
- status: __expectString,
1342
- });
1343
- Object.assign(contents, doc);
1344
- return contents;
1345
- };
1346
- export const de_DeleteServiceNetworkVpcAssociationCommand = async (output, context) => {
1347
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1348
- return de_CommandError(output, context);
1349
- }
1350
- const contents = map({
1351
- $metadata: deserializeMetadata(output),
1352
- });
1353
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1354
- const doc = take(data, {
1355
- arn: __expectString,
1356
- id: __expectString,
1357
- status: __expectString,
1358
- });
1359
- Object.assign(contents, doc);
1360
- return contents;
1361
- };
1362
- export const de_DeleteTargetGroupCommand = async (output, context) => {
1363
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1364
- return de_CommandError(output, context);
1365
- }
1366
- const contents = map({
1367
- $metadata: deserializeMetadata(output),
1368
- });
1369
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1370
- const doc = take(data, {
1371
- arn: __expectString,
1372
- id: __expectString,
1373
- status: __expectString,
1374
- });
1375
- Object.assign(contents, doc);
1376
- return contents;
1377
- };
1378
- export const de_DeregisterTargetsCommand = async (output, context) => {
1379
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1380
- return de_CommandError(output, context);
1381
- }
1382
- const contents = map({
1383
- $metadata: deserializeMetadata(output),
1384
- });
1385
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1386
- const doc = take(data, {
1387
- successful: _json,
1388
- unsuccessful: _json,
1389
- });
1390
- Object.assign(contents, doc);
1391
- return contents;
1392
- };
1393
- export const de_GetAccessLogSubscriptionCommand = async (output, context) => {
1394
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1395
- return de_CommandError(output, context);
1396
- }
1397
- const contents = map({
1398
- $metadata: deserializeMetadata(output),
1399
- });
1400
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1401
- const doc = take(data, {
1402
- arn: __expectString,
1403
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1404
- destinationArn: __expectString,
1405
- id: __expectString,
1406
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1407
- resourceArn: __expectString,
1408
- resourceId: __expectString,
1409
- serviceNetworkLogType: __expectString,
1410
- });
1411
- Object.assign(contents, doc);
1412
- return contents;
1413
- };
1414
- export const de_GetAuthPolicyCommand = async (output, context) => {
1415
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1416
- return de_CommandError(output, context);
1417
- }
1418
- const contents = map({
1419
- $metadata: deserializeMetadata(output),
1420
- });
1421
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1422
- const doc = take(data, {
1423
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1424
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1425
- policy: __expectString,
1426
- state: __expectString,
1427
- });
1428
- Object.assign(contents, doc);
1429
- return contents;
1430
- };
1431
- export const de_GetDomainVerificationCommand = async (output, context) => {
1432
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1433
- return de_CommandError(output, context);
1434
- }
1435
- const contents = map({
1436
- $metadata: deserializeMetadata(output),
1437
- });
1438
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1439
- const doc = take(data, {
1440
- arn: __expectString,
1441
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1442
- domainName: __expectString,
1443
- id: __expectString,
1444
- lastVerifiedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1445
- status: __expectString,
1446
- tags: _json,
1447
- txtMethodConfig: _json,
1448
- });
1449
- Object.assign(contents, doc);
1450
- return contents;
1451
- };
1452
- export const de_GetListenerCommand = async (output, context) => {
1453
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1454
- return de_CommandError(output, context);
1455
- }
1456
- const contents = map({
1457
- $metadata: deserializeMetadata(output),
1458
- });
1459
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1460
- const doc = take(data, {
1461
- arn: __expectString,
1462
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1463
- defaultAction: (_) => _json(__expectUnion(_)),
1464
- id: __expectString,
1465
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1466
- name: __expectString,
1467
- port: __expectInt32,
1468
- protocol: __expectString,
1469
- serviceArn: __expectString,
1470
- serviceId: __expectString,
1471
- });
1472
- Object.assign(contents, doc);
1473
- return contents;
1474
- };
1475
- export const de_GetResourceConfigurationCommand = async (output, context) => {
1476
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1477
- return de_CommandError(output, context);
1478
- }
1479
- const contents = map({
1480
- $metadata: deserializeMetadata(output),
1481
- });
1482
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1483
- const doc = take(data, {
1484
- allowAssociationToShareableServiceNetwork: __expectBoolean,
1485
- amazonManaged: __expectBoolean,
1486
- arn: __expectString,
1487
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1488
- customDomainName: __expectString,
1489
- domainVerificationArn: __expectString,
1490
- domainVerificationId: __expectString,
1491
- domainVerificationStatus: __expectString,
1492
- failureReason: __expectString,
1493
- groupDomain: __expectString,
1494
- id: __expectString,
1495
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1496
- name: __expectString,
1497
- portRanges: _json,
1498
- protocol: __expectString,
1499
- resourceConfigurationDefinition: (_) => _json(__expectUnion(_)),
1500
- resourceConfigurationGroupId: __expectString,
1501
- resourceGatewayId: __expectString,
1502
- status: __expectString,
1503
- type: __expectString,
1504
- });
1505
- Object.assign(contents, doc);
1506
- return contents;
1507
- };
1508
- export const de_GetResourceGatewayCommand = async (output, context) => {
1509
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1510
- return de_CommandError(output, context);
1511
- }
1512
- const contents = map({
1513
- $metadata: deserializeMetadata(output),
1514
- });
1515
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1516
- const doc = take(data, {
1517
- arn: __expectString,
1518
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1519
- id: __expectString,
1520
- ipAddressType: __expectString,
1521
- ipv4AddressesPerEni: __expectInt32,
1522
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1523
- name: __expectString,
1524
- securityGroupIds: _json,
1525
- status: __expectString,
1526
- subnetIds: _json,
1527
- vpcId: __expectString,
1528
- });
1529
- Object.assign(contents, doc);
1530
- return contents;
1531
- };
1532
- export const de_GetResourcePolicyCommand = async (output, context) => {
1533
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1534
- return de_CommandError(output, context);
1535
- }
1536
- const contents = map({
1537
- $metadata: deserializeMetadata(output),
1538
- });
1539
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1540
- const doc = take(data, {
1541
- policy: __expectString,
1542
- });
1543
- Object.assign(contents, doc);
1544
- return contents;
1545
- };
1546
- export const de_GetRuleCommand = async (output, context) => {
1547
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1548
- return de_CommandError(output, context);
1549
- }
1550
- const contents = map({
1551
- $metadata: deserializeMetadata(output),
1552
- });
1553
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1554
- const doc = take(data, {
1555
- action: (_) => _json(__expectUnion(_)),
1556
- arn: __expectString,
1557
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1558
- id: __expectString,
1559
- isDefault: __expectBoolean,
1560
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1561
- match: (_) => _json(__expectUnion(_)),
1562
- name: __expectString,
1563
- priority: __expectInt32,
1564
- });
1565
- Object.assign(contents, doc);
1566
- return contents;
1567
- };
1568
- export const de_GetServiceCommand = async (output, context) => {
1569
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1570
- return de_CommandError(output, context);
1571
- }
1572
- const contents = map({
1573
- $metadata: deserializeMetadata(output),
1574
- });
1575
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1576
- const doc = take(data, {
1577
- arn: __expectString,
1578
- authType: __expectString,
1579
- certificateArn: __expectString,
1580
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1581
- customDomainName: __expectString,
1582
- dnsEntry: _json,
1583
- failureCode: __expectString,
1584
- failureMessage: __expectString,
1585
- id: __expectString,
1586
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1587
- name: __expectString,
1588
- status: __expectString,
1589
- });
1590
- Object.assign(contents, doc);
1591
- return contents;
1592
- };
1593
- export const de_GetServiceNetworkCommand = async (output, context) => {
1594
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1595
- return de_CommandError(output, context);
1596
- }
1597
- const contents = map({
1598
- $metadata: deserializeMetadata(output),
1599
- });
1600
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1601
- const doc = take(data, {
1602
- arn: __expectString,
1603
- authType: __expectString,
1604
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1605
- id: __expectString,
1606
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1607
- name: __expectString,
1608
- numberOfAssociatedServices: __expectLong,
1609
- numberOfAssociatedVPCs: __expectLong,
1610
- sharingConfig: _json,
1611
- });
1612
- Object.assign(contents, doc);
1613
- return contents;
1614
- };
1615
- export const de_GetServiceNetworkResourceAssociationCommand = async (output, context) => {
1616
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1617
- return de_CommandError(output, context);
1618
- }
1619
- const contents = map({
1620
- $metadata: deserializeMetadata(output),
1621
- });
1622
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1623
- const doc = take(data, {
1624
- arn: __expectString,
1625
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1626
- createdBy: __expectString,
1627
- dnsEntry: _json,
1628
- domainVerificationStatus: __expectString,
1629
- failureCode: __expectString,
1630
- failureReason: __expectString,
1631
- id: __expectString,
1632
- isManagedAssociation: __expectBoolean,
1633
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1634
- privateDnsEnabled: __expectBoolean,
1635
- privateDnsEntry: _json,
1636
- resourceConfigurationArn: __expectString,
1637
- resourceConfigurationId: __expectString,
1638
- resourceConfigurationName: __expectString,
1639
- serviceNetworkArn: __expectString,
1640
- serviceNetworkId: __expectString,
1641
- serviceNetworkName: __expectString,
1642
- status: __expectString,
1643
- });
1644
- Object.assign(contents, doc);
1645
- return contents;
1646
- };
1647
- export const de_GetServiceNetworkServiceAssociationCommand = async (output, context) => {
1648
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1649
- return de_CommandError(output, context);
1650
- }
1651
- const contents = map({
1652
- $metadata: deserializeMetadata(output),
1653
- });
1654
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1655
- const doc = take(data, {
1656
- arn: __expectString,
1657
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1658
- createdBy: __expectString,
1659
- customDomainName: __expectString,
1660
- dnsEntry: _json,
1661
- failureCode: __expectString,
1662
- failureMessage: __expectString,
1663
- id: __expectString,
1664
- serviceArn: __expectString,
1665
- serviceId: __expectString,
1666
- serviceName: __expectString,
1667
- serviceNetworkArn: __expectString,
1668
- serviceNetworkId: __expectString,
1669
- serviceNetworkName: __expectString,
1670
- status: __expectString,
1671
- });
1672
- Object.assign(contents, doc);
1673
- return contents;
1674
- };
1675
- export const de_GetServiceNetworkVpcAssociationCommand = async (output, context) => {
1676
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1677
- return de_CommandError(output, context);
1678
- }
1679
- const contents = map({
1680
- $metadata: deserializeMetadata(output),
1681
- });
1682
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1683
- const doc = take(data, {
1684
- arn: __expectString,
1685
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1686
- createdBy: __expectString,
1687
- dnsOptions: _json,
1688
- failureCode: __expectString,
1689
- failureMessage: __expectString,
1690
- id: __expectString,
1691
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1692
- privateDnsEnabled: __expectBoolean,
1693
- securityGroupIds: _json,
1694
- serviceNetworkArn: __expectString,
1695
- serviceNetworkId: __expectString,
1696
- serviceNetworkName: __expectString,
1697
- status: __expectString,
1698
- vpcId: __expectString,
1699
- });
1700
- Object.assign(contents, doc);
1701
- return contents;
1702
- };
1703
- export const de_GetTargetGroupCommand = async (output, context) => {
1704
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1705
- return de_CommandError(output, context);
1706
- }
1707
- const contents = map({
1708
- $metadata: deserializeMetadata(output),
1709
- });
1710
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1711
- const doc = take(data, {
1712
- arn: __expectString,
1713
- config: _json,
1714
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1715
- failureCode: __expectString,
1716
- failureMessage: __expectString,
1717
- id: __expectString,
1718
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1719
- name: __expectString,
1720
- serviceArns: _json,
1721
- status: __expectString,
1722
- type: __expectString,
1723
- });
1724
- Object.assign(contents, doc);
1725
- return contents;
1726
- };
1727
- export const de_ListAccessLogSubscriptionsCommand = async (output, context) => {
1728
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1729
- return de_CommandError(output, context);
1730
- }
1731
- const contents = map({
1732
- $metadata: deserializeMetadata(output),
1733
- });
1734
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1735
- const doc = take(data, {
1736
- items: (_) => de_AccessLogSubscriptionList(_, context),
1737
- nextToken: __expectString,
1738
- });
1739
- Object.assign(contents, doc);
1740
- return contents;
1741
- };
1742
- export const de_ListDomainVerificationsCommand = async (output, context) => {
1743
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1744
- return de_CommandError(output, context);
1745
- }
1746
- const contents = map({
1747
- $metadata: deserializeMetadata(output),
1748
- });
1749
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1750
- const doc = take(data, {
1751
- items: (_) => de_DomainVerificationList(_, context),
1752
- nextToken: __expectString,
1753
- });
1754
- Object.assign(contents, doc);
1755
- return contents;
1756
- };
1757
- export const de_ListListenersCommand = async (output, context) => {
1758
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1759
- return de_CommandError(output, context);
1760
- }
1761
- const contents = map({
1762
- $metadata: deserializeMetadata(output),
1763
- });
1764
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1765
- const doc = take(data, {
1766
- items: (_) => de_ListenerSummaryList(_, context),
1767
- nextToken: __expectString,
1768
- });
1769
- Object.assign(contents, doc);
1770
- return contents;
1771
- };
1772
- export const de_ListResourceConfigurationsCommand = async (output, context) => {
1773
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1774
- return de_CommandError(output, context);
1775
- }
1776
- const contents = map({
1777
- $metadata: deserializeMetadata(output),
1778
- });
1779
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1780
- const doc = take(data, {
1781
- items: (_) => de_ResourceConfigurationSummaryList(_, context),
1782
- nextToken: __expectString,
1783
- });
1784
- Object.assign(contents, doc);
1785
- return contents;
1786
- };
1787
- export const de_ListResourceEndpointAssociationsCommand = async (output, context) => {
1788
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1789
- return de_CommandError(output, context);
1790
- }
1791
- const contents = map({
1792
- $metadata: deserializeMetadata(output),
1793
- });
1794
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1795
- const doc = take(data, {
1796
- items: (_) => de_ResourceEndpointAssociationList(_, context),
1797
- nextToken: __expectString,
1798
- });
1799
- Object.assign(contents, doc);
1800
- return contents;
1801
- };
1802
- export const de_ListResourceGatewaysCommand = async (output, context) => {
1803
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1804
- return de_CommandError(output, context);
1805
- }
1806
- const contents = map({
1807
- $metadata: deserializeMetadata(output),
1808
- });
1809
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1810
- const doc = take(data, {
1811
- items: (_) => de_ResourceGatewayList(_, context),
1812
- nextToken: __expectString,
1813
- });
1814
- Object.assign(contents, doc);
1815
- return contents;
1816
- };
1817
- export const de_ListRulesCommand = async (output, context) => {
1818
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1819
- return de_CommandError(output, context);
1820
- }
1821
- const contents = map({
1822
- $metadata: deserializeMetadata(output),
1823
- });
1824
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1825
- const doc = take(data, {
1826
- items: (_) => de_RuleSummaryList(_, context),
1827
- nextToken: __expectString,
1828
- });
1829
- Object.assign(contents, doc);
1830
- return contents;
1831
- };
1832
- export const de_ListServiceNetworkResourceAssociationsCommand = async (output, context) => {
1833
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1834
- return de_CommandError(output, context);
1835
- }
1836
- const contents = map({
1837
- $metadata: deserializeMetadata(output),
1838
- });
1839
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1840
- const doc = take(data, {
1841
- items: (_) => de_ServiceNetworkResourceAssociationList(_, context),
1842
- nextToken: __expectString,
1843
- });
1844
- Object.assign(contents, doc);
1845
- return contents;
1846
- };
1847
- export const de_ListServiceNetworksCommand = async (output, context) => {
1848
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1849
- return de_CommandError(output, context);
1850
- }
1851
- const contents = map({
1852
- $metadata: deserializeMetadata(output),
1853
- });
1854
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1855
- const doc = take(data, {
1856
- items: (_) => de_ServiceNetworkList(_, context),
1857
- nextToken: __expectString,
1858
- });
1859
- Object.assign(contents, doc);
1860
- return contents;
1861
- };
1862
- export const de_ListServiceNetworkServiceAssociationsCommand = async (output, context) => {
1863
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1864
- return de_CommandError(output, context);
1865
- }
1866
- const contents = map({
1867
- $metadata: deserializeMetadata(output),
1868
- });
1869
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1870
- const doc = take(data, {
1871
- items: (_) => de_ServiceNetworkServiceAssociationList(_, context),
1872
- nextToken: __expectString,
1873
- });
1874
- Object.assign(contents, doc);
1875
- return contents;
1876
- };
1877
- export const de_ListServiceNetworkVpcAssociationsCommand = async (output, context) => {
1878
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1879
- return de_CommandError(output, context);
1880
- }
1881
- const contents = map({
1882
- $metadata: deserializeMetadata(output),
1883
- });
1884
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1885
- const doc = take(data, {
1886
- items: (_) => de_ServiceNetworkVpcAssociationList(_, context),
1887
- nextToken: __expectString,
1888
- });
1889
- Object.assign(contents, doc);
1890
- return contents;
1891
- };
1892
- export const de_ListServiceNetworkVpcEndpointAssociationsCommand = async (output, context) => {
1893
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1894
- return de_CommandError(output, context);
1895
- }
1896
- const contents = map({
1897
- $metadata: deserializeMetadata(output),
1898
- });
1899
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1900
- const doc = take(data, {
1901
- items: (_) => de_ServiceNetworkVpcEndpointAssociationList(_, context),
1902
- nextToken: __expectString,
1903
- });
1904
- Object.assign(contents, doc);
1905
- return contents;
1906
- };
1907
- export const de_ListServicesCommand = async (output, context) => {
1908
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1909
- return de_CommandError(output, context);
1910
- }
1911
- const contents = map({
1912
- $metadata: deserializeMetadata(output),
1913
- });
1914
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1915
- const doc = take(data, {
1916
- items: (_) => de_ServiceList(_, context),
1917
- nextToken: __expectString,
1918
- });
1919
- Object.assign(contents, doc);
1920
- return contents;
1921
- };
1922
- export const de_ListTagsForResourceCommand = async (output, context) => {
1923
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1924
- return de_CommandError(output, context);
1925
- }
1926
- const contents = map({
1927
- $metadata: deserializeMetadata(output),
1928
- });
1929
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1930
- const doc = take(data, {
1931
- tags: _json,
1932
- });
1933
- Object.assign(contents, doc);
1934
- return contents;
1935
- };
1936
- export const de_ListTargetGroupsCommand = async (output, context) => {
1937
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1938
- return de_CommandError(output, context);
1939
- }
1940
- const contents = map({
1941
- $metadata: deserializeMetadata(output),
1942
- });
1943
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1944
- const doc = take(data, {
1945
- items: (_) => de_TargetGroupList(_, context),
1946
- nextToken: __expectString,
1947
- });
1948
- Object.assign(contents, doc);
1949
- return contents;
1950
- };
1951
- export const de_ListTargetsCommand = async (output, context) => {
1952
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1953
- return de_CommandError(output, context);
1954
- }
1955
- const contents = map({
1956
- $metadata: deserializeMetadata(output),
1957
- });
1958
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1959
- const doc = take(data, {
1960
- items: _json,
1961
- nextToken: __expectString,
1962
- });
1963
- Object.assign(contents, doc);
1964
- return contents;
1965
- };
1966
- export const de_PutAuthPolicyCommand = async (output, context) => {
1967
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1968
- return de_CommandError(output, context);
1969
- }
1970
- const contents = map({
1971
- $metadata: deserializeMetadata(output),
1972
- });
1973
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1974
- const doc = take(data, {
1975
- policy: __expectString,
1976
- state: __expectString,
1977
- });
1978
- Object.assign(contents, doc);
1979
- return contents;
1980
- };
1981
- export const de_PutResourcePolicyCommand = async (output, context) => {
1982
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1983
- return de_CommandError(output, context);
1984
- }
1985
- const contents = map({
1986
- $metadata: deserializeMetadata(output),
1987
- });
1988
- await collectBody(output.body, context);
1989
- return contents;
1990
- };
1991
- export const de_RegisterTargetsCommand = async (output, context) => {
1992
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1993
- return de_CommandError(output, context);
1994
- }
1995
- const contents = map({
1996
- $metadata: deserializeMetadata(output),
1997
- });
1998
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1999
- const doc = take(data, {
2000
- successful: _json,
2001
- unsuccessful: _json,
2002
- });
2003
- Object.assign(contents, doc);
2004
- return contents;
2005
- };
2006
- export const de_StartDomainVerificationCommand = async (output, context) => {
2007
- if (output.statusCode !== 201 && output.statusCode >= 300) {
2008
- return de_CommandError(output, context);
2009
- }
2010
- const contents = map({
2011
- $metadata: deserializeMetadata(output),
2012
- });
2013
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2014
- const doc = take(data, {
2015
- arn: __expectString,
2016
- domainName: __expectString,
2017
- id: __expectString,
2018
- status: __expectString,
2019
- txtMethodConfig: _json,
2020
- });
2021
- Object.assign(contents, doc);
2022
- return contents;
2023
- };
2024
- export const de_TagResourceCommand = async (output, context) => {
2025
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2026
- return de_CommandError(output, context);
2027
- }
2028
- const contents = map({
2029
- $metadata: deserializeMetadata(output),
2030
- });
2031
- await collectBody(output.body, context);
2032
- return contents;
2033
- };
2034
- export const de_UntagResourceCommand = async (output, context) => {
2035
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2036
- return de_CommandError(output, context);
2037
- }
2038
- const contents = map({
2039
- $metadata: deserializeMetadata(output),
2040
- });
2041
- await collectBody(output.body, context);
2042
- return contents;
2043
- };
2044
- export const de_UpdateAccessLogSubscriptionCommand = async (output, context) => {
2045
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2046
- return de_CommandError(output, context);
2047
- }
2048
- const contents = map({
2049
- $metadata: deserializeMetadata(output),
2050
- });
2051
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2052
- const doc = take(data, {
2053
- arn: __expectString,
2054
- destinationArn: __expectString,
2055
- id: __expectString,
2056
- resourceArn: __expectString,
2057
- resourceId: __expectString,
2058
- });
2059
- Object.assign(contents, doc);
2060
- return contents;
2061
- };
2062
- export const de_UpdateListenerCommand = async (output, context) => {
2063
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2064
- return de_CommandError(output, context);
2065
- }
2066
- const contents = map({
2067
- $metadata: deserializeMetadata(output),
2068
- });
2069
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2070
- const doc = take(data, {
2071
- arn: __expectString,
2072
- defaultAction: (_) => _json(__expectUnion(_)),
2073
- id: __expectString,
2074
- name: __expectString,
2075
- port: __expectInt32,
2076
- protocol: __expectString,
2077
- serviceArn: __expectString,
2078
- serviceId: __expectString,
2079
- });
2080
- Object.assign(contents, doc);
2081
- return contents;
2082
- };
2083
- export const de_UpdateResourceConfigurationCommand = async (output, context) => {
2084
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2085
- return de_CommandError(output, context);
2086
- }
2087
- const contents = map({
2088
- $metadata: deserializeMetadata(output),
2089
- });
2090
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2091
- const doc = take(data, {
2092
- allowAssociationToShareableServiceNetwork: __expectBoolean,
2093
- arn: __expectString,
2094
- id: __expectString,
2095
- name: __expectString,
2096
- portRanges: _json,
2097
- protocol: __expectString,
2098
- resourceConfigurationDefinition: (_) => _json(__expectUnion(_)),
2099
- resourceConfigurationGroupId: __expectString,
2100
- resourceGatewayId: __expectString,
2101
- status: __expectString,
2102
- type: __expectString,
2103
- });
2104
- Object.assign(contents, doc);
2105
- return contents;
2106
- };
2107
- export const de_UpdateResourceGatewayCommand = async (output, context) => {
2108
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2109
- return de_CommandError(output, context);
2110
- }
2111
- const contents = map({
2112
- $metadata: deserializeMetadata(output),
2113
- });
2114
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2115
- const doc = take(data, {
2116
- arn: __expectString,
2117
- id: __expectString,
2118
- ipAddressType: __expectString,
2119
- name: __expectString,
2120
- securityGroupIds: _json,
2121
- status: __expectString,
2122
- subnetIds: _json,
2123
- vpcId: __expectString,
2124
- });
2125
- Object.assign(contents, doc);
2126
- return contents;
2127
- };
2128
- export const de_UpdateRuleCommand = async (output, context) => {
2129
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2130
- return de_CommandError(output, context);
2131
- }
2132
- const contents = map({
2133
- $metadata: deserializeMetadata(output),
2134
- });
2135
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2136
- const doc = take(data, {
2137
- action: (_) => _json(__expectUnion(_)),
2138
- arn: __expectString,
2139
- id: __expectString,
2140
- isDefault: __expectBoolean,
2141
- match: (_) => _json(__expectUnion(_)),
2142
- name: __expectString,
2143
- priority: __expectInt32,
2144
- });
2145
- Object.assign(contents, doc);
2146
- return contents;
2147
- };
2148
- export const de_UpdateServiceCommand = async (output, context) => {
2149
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2150
- return de_CommandError(output, context);
2151
- }
2152
- const contents = map({
2153
- $metadata: deserializeMetadata(output),
2154
- });
2155
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2156
- const doc = take(data, {
2157
- arn: __expectString,
2158
- authType: __expectString,
2159
- certificateArn: __expectString,
2160
- customDomainName: __expectString,
2161
- id: __expectString,
2162
- name: __expectString,
2163
- });
2164
- Object.assign(contents, doc);
2165
- return contents;
2166
- };
2167
- export const de_UpdateServiceNetworkCommand = async (output, context) => {
2168
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2169
- return de_CommandError(output, context);
2170
- }
2171
- const contents = map({
2172
- $metadata: deserializeMetadata(output),
2173
- });
2174
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2175
- const doc = take(data, {
2176
- arn: __expectString,
2177
- authType: __expectString,
2178
- id: __expectString,
2179
- name: __expectString,
2180
- });
2181
- Object.assign(contents, doc);
2182
- return contents;
2183
- };
2184
- export const de_UpdateServiceNetworkVpcAssociationCommand = async (output, context) => {
2185
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2186
- return de_CommandError(output, context);
2187
- }
2188
- const contents = map({
2189
- $metadata: deserializeMetadata(output),
2190
- });
2191
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2192
- const doc = take(data, {
2193
- arn: __expectString,
2194
- createdBy: __expectString,
2195
- id: __expectString,
2196
- securityGroupIds: _json,
2197
- status: __expectString,
2198
- });
2199
- Object.assign(contents, doc);
2200
- return contents;
2201
- };
2202
- export const de_UpdateTargetGroupCommand = async (output, context) => {
2203
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2204
- return de_CommandError(output, context);
2205
- }
2206
- const contents = map({
2207
- $metadata: deserializeMetadata(output),
2208
- });
2209
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2210
- const doc = take(data, {
2211
- arn: __expectString,
2212
- config: _json,
2213
- id: __expectString,
2214
- name: __expectString,
2215
- status: __expectString,
2216
- type: __expectString,
2217
- });
2218
- Object.assign(contents, doc);
2219
- return contents;
2220
- };
2221
- const de_CommandError = async (output, context) => {
2222
- const parsedOutput = {
2223
- ...output,
2224
- body: await parseErrorBody(output.body, context),
2225
- };
2226
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2227
- switch (errorCode) {
2228
- case "AccessDeniedException":
2229
- case "com.amazonaws.vpclattice#AccessDeniedException":
2230
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2231
- case "ConflictException":
2232
- case "com.amazonaws.vpclattice#ConflictException":
2233
- throw await de_ConflictExceptionRes(parsedOutput, context);
2234
- case "InternalServerException":
2235
- case "com.amazonaws.vpclattice#InternalServerException":
2236
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2237
- case "ResourceNotFoundException":
2238
- case "com.amazonaws.vpclattice#ResourceNotFoundException":
2239
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2240
- case "ThrottlingException":
2241
- case "com.amazonaws.vpclattice#ThrottlingException":
2242
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2243
- case "ValidationException":
2244
- case "com.amazonaws.vpclattice#ValidationException":
2245
- throw await de_ValidationExceptionRes(parsedOutput, context);
2246
- case "ServiceQuotaExceededException":
2247
- case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
2248
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2249
- default:
2250
- const parsedBody = parsedOutput.body;
2251
- return throwDefaultError({
2252
- output,
2253
- parsedBody,
2254
- errorCode,
2255
- });
2256
- }
2257
- };
2258
- const throwDefaultError = withBaseException(__BaseException);
2259
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2260
- const contents = map({});
2261
- const data = parsedOutput.body;
2262
- const doc = take(data, {
2263
- message: __expectString,
2264
- });
2265
- Object.assign(contents, doc);
2266
- const exception = new AccessDeniedException({
2267
- $metadata: deserializeMetadata(parsedOutput),
2268
- ...contents,
2269
- });
2270
- return __decorateServiceException(exception, parsedOutput.body);
2271
- };
2272
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
2273
- const contents = map({});
2274
- const data = parsedOutput.body;
2275
- const doc = take(data, {
2276
- message: __expectString,
2277
- resourceId: __expectString,
2278
- resourceType: __expectString,
2279
- });
2280
- Object.assign(contents, doc);
2281
- const exception = new ConflictException({
2282
- $metadata: deserializeMetadata(parsedOutput),
2283
- ...contents,
2284
- });
2285
- return __decorateServiceException(exception, parsedOutput.body);
2286
- };
2287
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
2288
- const contents = map({
2289
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
2290
- });
2291
- const data = parsedOutput.body;
2292
- const doc = take(data, {
2293
- message: __expectString,
2294
- });
2295
- Object.assign(contents, doc);
2296
- const exception = new InternalServerException({
2297
- $metadata: deserializeMetadata(parsedOutput),
2298
- ...contents,
2299
- });
2300
- return __decorateServiceException(exception, parsedOutput.body);
2301
- };
2302
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2303
- const contents = map({});
2304
- const data = parsedOutput.body;
2305
- const doc = take(data, {
2306
- message: __expectString,
2307
- resourceId: __expectString,
2308
- resourceType: __expectString,
2309
- });
2310
- Object.assign(contents, doc);
2311
- const exception = new ResourceNotFoundException({
2312
- $metadata: deserializeMetadata(parsedOutput),
2313
- ...contents,
2314
- });
2315
- return __decorateServiceException(exception, parsedOutput.body);
2316
- };
2317
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
2318
- const contents = map({});
2319
- const data = parsedOutput.body;
2320
- const doc = take(data, {
2321
- message: __expectString,
2322
- quotaCode: __expectString,
2323
- resourceId: __expectString,
2324
- resourceType: __expectString,
2325
- serviceCode: __expectString,
2326
- });
2327
- Object.assign(contents, doc);
2328
- const exception = new ServiceQuotaExceededException({
2329
- $metadata: deserializeMetadata(parsedOutput),
2330
- ...contents,
2331
- });
2332
- return __decorateServiceException(exception, parsedOutput.body);
2333
- };
2334
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
2335
- const contents = map({
2336
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
2337
- });
2338
- const data = parsedOutput.body;
2339
- const doc = take(data, {
2340
- message: __expectString,
2341
- quotaCode: __expectString,
2342
- serviceCode: __expectString,
2343
- });
2344
- Object.assign(contents, doc);
2345
- const exception = new ThrottlingException({
2346
- $metadata: deserializeMetadata(parsedOutput),
2347
- ...contents,
2348
- });
2349
- return __decorateServiceException(exception, parsedOutput.body);
2350
- };
2351
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
2352
- const contents = map({});
2353
- const data = parsedOutput.body;
2354
- const doc = take(data, {
2355
- fieldList: _json,
2356
- message: __expectString,
2357
- reason: __expectString,
2358
- });
2359
- Object.assign(contents, doc);
2360
- const exception = new ValidationException({
2361
- $metadata: deserializeMetadata(parsedOutput),
2362
- ...contents,
2363
- });
2364
- return __decorateServiceException(exception, parsedOutput.body);
2365
- };
2366
- const de_AccessLogSubscriptionList = (output, context) => {
2367
- const retVal = (output || [])
2368
- .filter((e) => e != null)
2369
- .map((entry) => {
2370
- return de_AccessLogSubscriptionSummary(entry, context);
2371
- });
2372
- return retVal;
2373
- };
2374
- const de_AccessLogSubscriptionSummary = (output, context) => {
2375
- return take(output, {
2376
- arn: __expectString,
2377
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2378
- destinationArn: __expectString,
2379
- id: __expectString,
2380
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2381
- resourceArn: __expectString,
2382
- resourceId: __expectString,
2383
- serviceNetworkLogType: __expectString,
2384
- });
2385
- };
2386
- const de_DomainVerificationList = (output, context) => {
2387
- const retVal = (output || [])
2388
- .filter((e) => e != null)
2389
- .map((entry) => {
2390
- return de_DomainVerificationSummary(entry, context);
2391
- });
2392
- return retVal;
2393
- };
2394
- const de_DomainVerificationSummary = (output, context) => {
2395
- return take(output, {
2396
- arn: __expectString,
2397
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2398
- domainName: __expectString,
2399
- id: __expectString,
2400
- lastVerifiedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2401
- status: __expectString,
2402
- tags: _json,
2403
- txtMethodConfig: _json,
2404
- });
2405
- };
2406
- const de_ListenerSummary = (output, context) => {
2407
- return take(output, {
2408
- arn: __expectString,
2409
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2410
- id: __expectString,
2411
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2412
- name: __expectString,
2413
- port: __expectInt32,
2414
- protocol: __expectString,
2415
- });
2416
- };
2417
- const de_ListenerSummaryList = (output, context) => {
2418
- const retVal = (output || [])
2419
- .filter((e) => e != null)
2420
- .map((entry) => {
2421
- return de_ListenerSummary(entry, context);
2422
- });
2423
- return retVal;
2424
- };
2425
- const de_ResourceConfigurationSummary = (output, context) => {
2426
- return take(output, {
2427
- amazonManaged: __expectBoolean,
2428
- arn: __expectString,
2429
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2430
- customDomainName: __expectString,
2431
- domainVerificationId: __expectString,
2432
- groupDomain: __expectString,
2433
- id: __expectString,
2434
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2435
- name: __expectString,
2436
- resourceConfigurationGroupId: __expectString,
2437
- resourceGatewayId: __expectString,
2438
- status: __expectString,
2439
- type: __expectString,
2440
- });
2441
- };
2442
- const de_ResourceConfigurationSummaryList = (output, context) => {
2443
- const retVal = (output || [])
2444
- .filter((e) => e != null)
2445
- .map((entry) => {
2446
- return de_ResourceConfigurationSummary(entry, context);
2447
- });
2448
- return retVal;
2449
- };
2450
- const de_ResourceEndpointAssociationList = (output, context) => {
2451
- const retVal = (output || [])
2452
- .filter((e) => e != null)
2453
- .map((entry) => {
2454
- return de_ResourceEndpointAssociationSummary(entry, context);
2455
- });
2456
- return retVal;
2457
- };
2458
- const de_ResourceEndpointAssociationSummary = (output, context) => {
2459
- return take(output, {
2460
- arn: __expectString,
2461
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2462
- createdBy: __expectString,
2463
- id: __expectString,
2464
- resourceConfigurationArn: __expectString,
2465
- resourceConfigurationId: __expectString,
2466
- resourceConfigurationName: __expectString,
2467
- vpcEndpointId: __expectString,
2468
- vpcEndpointOwner: __expectString,
2469
- });
2470
- };
2471
- const de_ResourceGatewayList = (output, context) => {
2472
- const retVal = (output || [])
2473
- .filter((e) => e != null)
2474
- .map((entry) => {
2475
- return de_ResourceGatewaySummary(entry, context);
2476
- });
2477
- return retVal;
2478
- };
2479
- const de_ResourceGatewaySummary = (output, context) => {
2480
- return take(output, {
2481
- arn: __expectString,
2482
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2483
- id: __expectString,
2484
- ipAddressType: __expectString,
2485
- ipv4AddressesPerEni: __expectInt32,
2486
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2487
- name: __expectString,
2488
- securityGroupIds: _json,
2489
- status: __expectString,
2490
- subnetIds: _json,
2491
- vpcIdentifier: __expectString,
2492
- });
2493
- };
2494
- const de_RuleSummary = (output, context) => {
2495
- return take(output, {
2496
- arn: __expectString,
2497
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2498
- id: __expectString,
2499
- isDefault: __expectBoolean,
2500
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2501
- name: __expectString,
2502
- priority: __expectInt32,
2503
- });
2504
- };
2505
- const de_RuleSummaryList = (output, context) => {
2506
- const retVal = (output || [])
2507
- .filter((e) => e != null)
2508
- .map((entry) => {
2509
- return de_RuleSummary(entry, context);
2510
- });
2511
- return retVal;
2512
- };
2513
- const de_ServiceList = (output, context) => {
2514
- const retVal = (output || [])
2515
- .filter((e) => e != null)
2516
- .map((entry) => {
2517
- return de_ServiceSummary(entry, context);
2518
- });
2519
- return retVal;
2520
- };
2521
- const de_ServiceNetworkEndpointAssociation = (output, context) => {
2522
- return take(output, {
2523
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2524
- id: __expectString,
2525
- serviceNetworkArn: __expectString,
2526
- state: __expectString,
2527
- vpcEndpointId: __expectString,
2528
- vpcEndpointOwnerId: __expectString,
2529
- vpcId: __expectString,
2530
- });
2531
- };
2532
- const de_ServiceNetworkList = (output, context) => {
2533
- const retVal = (output || [])
2534
- .filter((e) => e != null)
2535
- .map((entry) => {
2536
- return de_ServiceNetworkSummary(entry, context);
2537
- });
2538
- return retVal;
2539
- };
2540
- const de_ServiceNetworkResourceAssociationList = (output, context) => {
2541
- const retVal = (output || [])
2542
- .filter((e) => e != null)
2543
- .map((entry) => {
2544
- return de_ServiceNetworkResourceAssociationSummary(entry, context);
2545
- });
2546
- return retVal;
2547
- };
2548
- const de_ServiceNetworkResourceAssociationSummary = (output, context) => {
2549
- return take(output, {
2550
- arn: __expectString,
2551
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2552
- createdBy: __expectString,
2553
- dnsEntry: _json,
2554
- failureCode: __expectString,
2555
- id: __expectString,
2556
- isManagedAssociation: __expectBoolean,
2557
- privateDnsEnabled: __expectBoolean,
2558
- privateDnsEntry: _json,
2559
- resourceConfigurationArn: __expectString,
2560
- resourceConfigurationId: __expectString,
2561
- resourceConfigurationName: __expectString,
2562
- serviceNetworkArn: __expectString,
2563
- serviceNetworkId: __expectString,
2564
- serviceNetworkName: __expectString,
2565
- status: __expectString,
2566
- });
2567
- };
2568
- const de_ServiceNetworkServiceAssociationList = (output, context) => {
2569
- const retVal = (output || [])
2570
- .filter((e) => e != null)
2571
- .map((entry) => {
2572
- return de_ServiceNetworkServiceAssociationSummary(entry, context);
2573
- });
2574
- return retVal;
2575
- };
2576
- const de_ServiceNetworkServiceAssociationSummary = (output, context) => {
2577
- return take(output, {
2578
- arn: __expectString,
2579
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2580
- createdBy: __expectString,
2581
- customDomainName: __expectString,
2582
- dnsEntry: _json,
2583
- id: __expectString,
2584
- serviceArn: __expectString,
2585
- serviceId: __expectString,
2586
- serviceName: __expectString,
2587
- serviceNetworkArn: __expectString,
2588
- serviceNetworkId: __expectString,
2589
- serviceNetworkName: __expectString,
2590
- status: __expectString,
2591
- });
2592
- };
2593
- const de_ServiceNetworkSummary = (output, context) => {
2594
- return take(output, {
2595
- arn: __expectString,
2596
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2597
- id: __expectString,
2598
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2599
- name: __expectString,
2600
- numberOfAssociatedResourceConfigurations: __expectLong,
2601
- numberOfAssociatedServices: __expectLong,
2602
- numberOfAssociatedVPCs: __expectLong,
2603
- });
2604
- };
2605
- const de_ServiceNetworkVpcAssociationList = (output, context) => {
2606
- const retVal = (output || [])
2607
- .filter((e) => e != null)
2608
- .map((entry) => {
2609
- return de_ServiceNetworkVpcAssociationSummary(entry, context);
2610
- });
2611
- return retVal;
2612
- };
2613
- const de_ServiceNetworkVpcAssociationSummary = (output, context) => {
2614
- return take(output, {
2615
- arn: __expectString,
2616
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2617
- createdBy: __expectString,
2618
- dnsOptions: _json,
2619
- id: __expectString,
2620
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2621
- privateDnsEnabled: __expectBoolean,
2622
- serviceNetworkArn: __expectString,
2623
- serviceNetworkId: __expectString,
2624
- serviceNetworkName: __expectString,
2625
- status: __expectString,
2626
- vpcId: __expectString,
2627
- });
2628
- };
2629
- const de_ServiceNetworkVpcEndpointAssociationList = (output, context) => {
2630
- const retVal = (output || [])
2631
- .filter((e) => e != null)
2632
- .map((entry) => {
2633
- return de_ServiceNetworkEndpointAssociation(entry, context);
2634
- });
2635
- return retVal;
2636
- };
2637
- const de_ServiceSummary = (output, context) => {
2638
- return take(output, {
2639
- arn: __expectString,
2640
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2641
- customDomainName: __expectString,
2642
- dnsEntry: _json,
2643
- id: __expectString,
2644
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2645
- name: __expectString,
2646
- status: __expectString,
2647
- });
2648
- };
2649
- const de_TargetGroupList = (output, context) => {
2650
- const retVal = (output || [])
2651
- .filter((e) => e != null)
2652
- .map((entry) => {
2653
- return de_TargetGroupSummary(entry, context);
2654
- });
2655
- return retVal;
2656
- };
2657
- const de_TargetGroupSummary = (output, context) => {
2658
- return take(output, {
2659
- arn: __expectString,
2660
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2661
- id: __expectString,
2662
- ipAddressType: __expectString,
2663
- lambdaEventStructureVersion: __expectString,
2664
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2665
- name: __expectString,
2666
- port: __expectInt32,
2667
- protocol: __expectString,
2668
- serviceArns: _json,
2669
- status: __expectString,
2670
- type: __expectString,
2671
- vpcIdentifier: __expectString,
2672
- });
2673
- };
2674
- const deserializeMetadata = (output) => ({
2675
- httpStatusCode: output.statusCode,
2676
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2677
- extendedRequestId: output.headers["x-amz-id-2"],
2678
- cfId: output.headers["x-amz-cf-id"],
2679
- });
2680
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2681
- const _dVI = "domainVerificationIdentifier";
2682
- const _iC = "includeChildren";
2683
- const _mR = "maxResults";
2684
- const _nT = "nextToken";
2685
- const _rAS = "retryAfterSeconds";
2686
- const _rCGI = "resourceConfigurationGroupIdentifier";
2687
- const _rCI = "resourceConfigurationIdentifier";
2688
- const _rEAI = "resourceEndpointAssociationIdentifier";
2689
- const _rGI = "resourceGatewayIdentifier";
2690
- const _rI = "resourceIdentifier";
2691
- const _ra = "retry-after";
2692
- const _sI = "serviceIdentifier";
2693
- const _sNI = "serviceNetworkIdentifier";
2694
- const _tGT = "targetGroupType";
2695
- const _tK = "tagKeys";
2696
- const _vEI = "vpcEndpointId";
2697
- const _vEO = "vpcEndpointOwner";
2698
- const _vI = "vpcIdentifier";