@aws-sdk/client-route53-recovery-control-config 3.474.0 → 3.477.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.
@@ -1,40 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_UpdateSafetyRuleCommand = exports.de_UpdateRoutingControlCommand = exports.de_UpdateControlPanelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSafetyRulesCommand = exports.de_ListRoutingControlsCommand = exports.de_ListControlPanelsCommand = exports.de_ListClustersCommand = exports.de_ListAssociatedRoute53HealthChecksCommand = exports.de_GetResourcePolicyCommand = exports.de_DescribeSafetyRuleCommand = exports.de_DescribeRoutingControlCommand = exports.de_DescribeControlPanelCommand = exports.de_DescribeClusterCommand = exports.de_DeleteSafetyRuleCommand = exports.de_DeleteRoutingControlCommand = exports.de_DeleteControlPanelCommand = exports.de_DeleteClusterCommand = exports.de_CreateSafetyRuleCommand = exports.de_CreateRoutingControlCommand = exports.de_CreateControlPanelCommand = exports.de_CreateClusterCommand = exports.se_UpdateSafetyRuleCommand = exports.se_UpdateRoutingControlCommand = exports.se_UpdateControlPanelCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSafetyRulesCommand = exports.se_ListRoutingControlsCommand = exports.se_ListControlPanelsCommand = exports.se_ListClustersCommand = exports.se_ListAssociatedRoute53HealthChecksCommand = exports.se_GetResourcePolicyCommand = exports.se_DescribeSafetyRuleCommand = exports.se_DescribeRoutingControlCommand = exports.se_DescribeControlPanelCommand = exports.se_DescribeClusterCommand = exports.se_DeleteSafetyRuleCommand = exports.se_DeleteRoutingControlCommand = exports.se_DeleteControlPanelCommand = exports.se_DeleteClusterCommand = exports.se_CreateSafetyRuleCommand = exports.se_CreateRoutingControlCommand = exports.se_CreateControlPanelCommand = exports.se_CreateClusterCommand = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
4
+ const core_1 = require("@smithy/core");
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const uuid_1 = require("uuid");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Route53RecoveryControlConfigServiceException_1 = require("../models/Route53RecoveryControlConfigServiceException");
9
9
  const se_CreateClusterCommand = async (input, context) => {
10
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const b = (0, core_1.requestBuilder)(input, context);
11
11
  const headers = {
12
12
  "content-type": "application/json",
13
13
  };
14
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster";
14
+ b.bp("/cluster");
15
15
  let body;
16
16
  body = JSON.stringify((0, smithy_client_1.take)(input, {
17
17
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
18
18
  ClusterName: [],
19
19
  Tags: (_) => (0, smithy_client_1._json)(_),
20
20
  }));
21
- return new protocol_http_1.HttpRequest({
22
- protocol,
23
- hostname,
24
- port,
25
- method: "POST",
26
- headers,
27
- path: resolvedPath,
28
- body,
29
- });
21
+ b.m("POST").h(headers).b(body);
22
+ return b.build();
30
23
  };
31
24
  exports.se_CreateClusterCommand = se_CreateClusterCommand;
32
25
  const se_CreateControlPanelCommand = async (input, context) => {
33
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
26
+ const b = (0, core_1.requestBuilder)(input, context);
34
27
  const headers = {
35
28
  "content-type": "application/json",
36
29
  };
37
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanel";
30
+ b.bp("/controlpanel");
38
31
  let body;
39
32
  body = JSON.stringify((0, smithy_client_1.take)(input, {
40
33
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -42,23 +35,16 @@ const se_CreateControlPanelCommand = async (input, context) => {
42
35
  ControlPanelName: [],
43
36
  Tags: (_) => (0, smithy_client_1._json)(_),
44
37
  }));
45
- return new protocol_http_1.HttpRequest({
46
- protocol,
47
- hostname,
48
- port,
49
- method: "POST",
50
- headers,
51
- path: resolvedPath,
52
- body,
53
- });
38
+ b.m("POST").h(headers).b(body);
39
+ return b.build();
54
40
  };
55
41
  exports.se_CreateControlPanelCommand = se_CreateControlPanelCommand;
56
42
  const se_CreateRoutingControlCommand = async (input, context) => {
57
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
43
+ const b = (0, core_1.requestBuilder)(input, context);
58
44
  const headers = {
59
45
  "content-type": "application/json",
60
46
  };
61
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routingcontrol";
47
+ b.bp("/routingcontrol");
62
48
  let body;
63
49
  body = JSON.stringify((0, smithy_client_1.take)(input, {
64
50
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -66,23 +52,16 @@ const se_CreateRoutingControlCommand = async (input, context) => {
66
52
  ControlPanelArn: [],
67
53
  RoutingControlName: [],
68
54
  }));
69
- return new protocol_http_1.HttpRequest({
70
- protocol,
71
- hostname,
72
- port,
73
- method: "POST",
74
- headers,
75
- path: resolvedPath,
76
- body,
77
- });
55
+ b.m("POST").h(headers).b(body);
56
+ return b.build();
78
57
  };
79
58
  exports.se_CreateRoutingControlCommand = se_CreateRoutingControlCommand;
80
59
  const se_CreateSafetyRuleCommand = async (input, context) => {
81
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
60
+ const b = (0, core_1.requestBuilder)(input, context);
82
61
  const headers = {
83
62
  "content-type": "application/json",
84
63
  };
85
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/safetyrule";
64
+ b.bp("/safetyrule");
86
65
  let body;
87
66
  body = JSON.stringify((0, smithy_client_1.take)(input, {
88
67
  AssertionRule: (_) => (0, smithy_client_1._json)(_),
@@ -90,409 +69,253 @@ const se_CreateSafetyRuleCommand = async (input, context) => {
90
69
  GatingRule: (_) => (0, smithy_client_1._json)(_),
91
70
  Tags: (_) => (0, smithy_client_1._json)(_),
92
71
  }));
93
- return new protocol_http_1.HttpRequest({
94
- protocol,
95
- hostname,
96
- port,
97
- method: "POST",
98
- headers,
99
- path: resolvedPath,
100
- body,
101
- });
72
+ b.m("POST").h(headers).b(body);
73
+ return b.build();
102
74
  };
103
75
  exports.se_CreateSafetyRuleCommand = se_CreateSafetyRuleCommand;
104
76
  const se_DeleteClusterCommand = async (input, context) => {
105
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
77
+ const b = (0, core_1.requestBuilder)(input, context);
106
78
  const headers = {};
107
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster/{ClusterArn}";
108
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
79
+ b.bp("/cluster/{ClusterArn}");
80
+ b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
109
81
  let body;
110
- return new protocol_http_1.HttpRequest({
111
- protocol,
112
- hostname,
113
- port,
114
- method: "DELETE",
115
- headers,
116
- path: resolvedPath,
117
- body,
118
- });
82
+ b.m("DELETE").h(headers).b(body);
83
+ return b.build();
119
84
  };
120
85
  exports.se_DeleteClusterCommand = se_DeleteClusterCommand;
121
86
  const se_DeleteControlPanelCommand = async (input, context) => {
122
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
87
+ const b = (0, core_1.requestBuilder)(input, context);
123
88
  const headers = {};
124
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanel/{ControlPanelArn}";
125
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
89
+ b.bp("/controlpanel/{ControlPanelArn}");
90
+ b.p("ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
126
91
  let body;
127
- return new protocol_http_1.HttpRequest({
128
- protocol,
129
- hostname,
130
- port,
131
- method: "DELETE",
132
- headers,
133
- path: resolvedPath,
134
- body,
135
- });
92
+ b.m("DELETE").h(headers).b(body);
93
+ return b.build();
136
94
  };
137
95
  exports.se_DeleteControlPanelCommand = se_DeleteControlPanelCommand;
138
96
  const se_DeleteRoutingControlCommand = async (input, context) => {
139
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
97
+ const b = (0, core_1.requestBuilder)(input, context);
140
98
  const headers = {};
141
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routingcontrol/{RoutingControlArn}";
142
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RoutingControlArn", () => input.RoutingControlArn, "{RoutingControlArn}", false);
99
+ b.bp("/routingcontrol/{RoutingControlArn}");
100
+ b.p("RoutingControlArn", () => input.RoutingControlArn, "{RoutingControlArn}", false);
143
101
  let body;
144
- return new protocol_http_1.HttpRequest({
145
- protocol,
146
- hostname,
147
- port,
148
- method: "DELETE",
149
- headers,
150
- path: resolvedPath,
151
- body,
152
- });
102
+ b.m("DELETE").h(headers).b(body);
103
+ return b.build();
153
104
  };
154
105
  exports.se_DeleteRoutingControlCommand = se_DeleteRoutingControlCommand;
155
106
  const se_DeleteSafetyRuleCommand = async (input, context) => {
156
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
107
+ const b = (0, core_1.requestBuilder)(input, context);
157
108
  const headers = {};
158
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/safetyrule/{SafetyRuleArn}";
159
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SafetyRuleArn", () => input.SafetyRuleArn, "{SafetyRuleArn}", false);
109
+ b.bp("/safetyrule/{SafetyRuleArn}");
110
+ b.p("SafetyRuleArn", () => input.SafetyRuleArn, "{SafetyRuleArn}", false);
160
111
  let body;
161
- return new protocol_http_1.HttpRequest({
162
- protocol,
163
- hostname,
164
- port,
165
- method: "DELETE",
166
- headers,
167
- path: resolvedPath,
168
- body,
169
- });
112
+ b.m("DELETE").h(headers).b(body);
113
+ return b.build();
170
114
  };
171
115
  exports.se_DeleteSafetyRuleCommand = se_DeleteSafetyRuleCommand;
172
116
  const se_DescribeClusterCommand = async (input, context) => {
173
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
117
+ const b = (0, core_1.requestBuilder)(input, context);
174
118
  const headers = {};
175
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster/{ClusterArn}";
176
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
119
+ b.bp("/cluster/{ClusterArn}");
120
+ b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
177
121
  let body;
178
- return new protocol_http_1.HttpRequest({
179
- protocol,
180
- hostname,
181
- port,
182
- method: "GET",
183
- headers,
184
- path: resolvedPath,
185
- body,
186
- });
122
+ b.m("GET").h(headers).b(body);
123
+ return b.build();
187
124
  };
188
125
  exports.se_DescribeClusterCommand = se_DescribeClusterCommand;
189
126
  const se_DescribeControlPanelCommand = async (input, context) => {
190
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
127
+ const b = (0, core_1.requestBuilder)(input, context);
191
128
  const headers = {};
192
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanel/{ControlPanelArn}";
193
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
129
+ b.bp("/controlpanel/{ControlPanelArn}");
130
+ b.p("ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
194
131
  let body;
195
- return new protocol_http_1.HttpRequest({
196
- protocol,
197
- hostname,
198
- port,
199
- method: "GET",
200
- headers,
201
- path: resolvedPath,
202
- body,
203
- });
132
+ b.m("GET").h(headers).b(body);
133
+ return b.build();
204
134
  };
205
135
  exports.se_DescribeControlPanelCommand = se_DescribeControlPanelCommand;
206
136
  const se_DescribeRoutingControlCommand = async (input, context) => {
207
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
137
+ const b = (0, core_1.requestBuilder)(input, context);
208
138
  const headers = {};
209
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routingcontrol/{RoutingControlArn}";
210
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RoutingControlArn", () => input.RoutingControlArn, "{RoutingControlArn}", false);
139
+ b.bp("/routingcontrol/{RoutingControlArn}");
140
+ b.p("RoutingControlArn", () => input.RoutingControlArn, "{RoutingControlArn}", false);
211
141
  let body;
212
- return new protocol_http_1.HttpRequest({
213
- protocol,
214
- hostname,
215
- port,
216
- method: "GET",
217
- headers,
218
- path: resolvedPath,
219
- body,
220
- });
142
+ b.m("GET").h(headers).b(body);
143
+ return b.build();
221
144
  };
222
145
  exports.se_DescribeRoutingControlCommand = se_DescribeRoutingControlCommand;
223
146
  const se_DescribeSafetyRuleCommand = async (input, context) => {
224
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
147
+ const b = (0, core_1.requestBuilder)(input, context);
225
148
  const headers = {};
226
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/safetyrule/{SafetyRuleArn}";
227
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SafetyRuleArn", () => input.SafetyRuleArn, "{SafetyRuleArn}", false);
149
+ b.bp("/safetyrule/{SafetyRuleArn}");
150
+ b.p("SafetyRuleArn", () => input.SafetyRuleArn, "{SafetyRuleArn}", false);
228
151
  let body;
229
- return new protocol_http_1.HttpRequest({
230
- protocol,
231
- hostname,
232
- port,
233
- method: "GET",
234
- headers,
235
- path: resolvedPath,
236
- body,
237
- });
152
+ b.m("GET").h(headers).b(body);
153
+ return b.build();
238
154
  };
239
155
  exports.se_DescribeSafetyRuleCommand = se_DescribeSafetyRuleCommand;
240
156
  const se_GetResourcePolicyCommand = async (input, context) => {
241
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
157
+ const b = (0, core_1.requestBuilder)(input, context);
242
158
  const headers = {};
243
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcePolicy/{ResourceArn}";
244
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
159
+ b.bp("/resourcePolicy/{ResourceArn}");
160
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
245
161
  let body;
246
- return new protocol_http_1.HttpRequest({
247
- protocol,
248
- hostname,
249
- port,
250
- method: "GET",
251
- headers,
252
- path: resolvedPath,
253
- body,
254
- });
162
+ b.m("GET").h(headers).b(body);
163
+ return b.build();
255
164
  };
256
165
  exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
257
166
  const se_ListAssociatedRoute53HealthChecksCommand = async (input, context) => {
258
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
167
+ const b = (0, core_1.requestBuilder)(input, context);
259
168
  const headers = {};
260
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
261
- "/routingcontrol/{RoutingControlArn}/associatedRoute53HealthChecks";
262
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RoutingControlArn", () => input.RoutingControlArn, "{RoutingControlArn}", false);
169
+ b.bp("/routingcontrol/{RoutingControlArn}/associatedRoute53HealthChecks");
170
+ b.p("RoutingControlArn", () => input.RoutingControlArn, "{RoutingControlArn}", false);
263
171
  const query = (0, smithy_client_1.map)({
264
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
265
- NextToken: [, input.NextToken],
172
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
173
+ [_NT]: [, input[_NT]],
266
174
  });
267
175
  let body;
268
- return new protocol_http_1.HttpRequest({
269
- protocol,
270
- hostname,
271
- port,
272
- method: "GET",
273
- headers,
274
- path: resolvedPath,
275
- query,
276
- body,
277
- });
176
+ b.m("GET").h(headers).q(query).b(body);
177
+ return b.build();
278
178
  };
279
179
  exports.se_ListAssociatedRoute53HealthChecksCommand = se_ListAssociatedRoute53HealthChecksCommand;
280
180
  const se_ListClustersCommand = async (input, context) => {
281
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
181
+ const b = (0, core_1.requestBuilder)(input, context);
282
182
  const headers = {};
283
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster";
183
+ b.bp("/cluster");
284
184
  const query = (0, smithy_client_1.map)({
285
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
286
- NextToken: [, input.NextToken],
185
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
186
+ [_NT]: [, input[_NT]],
287
187
  });
288
188
  let body;
289
- return new protocol_http_1.HttpRequest({
290
- protocol,
291
- hostname,
292
- port,
293
- method: "GET",
294
- headers,
295
- path: resolvedPath,
296
- query,
297
- body,
298
- });
189
+ b.m("GET").h(headers).q(query).b(body);
190
+ return b.build();
299
191
  };
300
192
  exports.se_ListClustersCommand = se_ListClustersCommand;
301
193
  const se_ListControlPanelsCommand = async (input, context) => {
302
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
194
+ const b = (0, core_1.requestBuilder)(input, context);
303
195
  const headers = {};
304
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanels";
196
+ b.bp("/controlpanels");
305
197
  const query = (0, smithy_client_1.map)({
306
- ClusterArn: [, input.ClusterArn],
307
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
308
- NextToken: [, input.NextToken],
198
+ [_CA]: [, input[_CA]],
199
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
200
+ [_NT]: [, input[_NT]],
309
201
  });
310
202
  let body;
311
- return new protocol_http_1.HttpRequest({
312
- protocol,
313
- hostname,
314
- port,
315
- method: "GET",
316
- headers,
317
- path: resolvedPath,
318
- query,
319
- body,
320
- });
203
+ b.m("GET").h(headers).q(query).b(body);
204
+ return b.build();
321
205
  };
322
206
  exports.se_ListControlPanelsCommand = se_ListControlPanelsCommand;
323
207
  const se_ListRoutingControlsCommand = async (input, context) => {
324
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
208
+ const b = (0, core_1.requestBuilder)(input, context);
325
209
  const headers = {};
326
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
327
- "/controlpanel/{ControlPanelArn}/routingcontrols";
328
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
210
+ b.bp("/controlpanel/{ControlPanelArn}/routingcontrols");
211
+ b.p("ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
329
212
  const query = (0, smithy_client_1.map)({
330
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
331
- NextToken: [, input.NextToken],
213
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
214
+ [_NT]: [, input[_NT]],
332
215
  });
333
216
  let body;
334
- return new protocol_http_1.HttpRequest({
335
- protocol,
336
- hostname,
337
- port,
338
- method: "GET",
339
- headers,
340
- path: resolvedPath,
341
- query,
342
- body,
343
- });
217
+ b.m("GET").h(headers).q(query).b(body);
218
+ return b.build();
344
219
  };
345
220
  exports.se_ListRoutingControlsCommand = se_ListRoutingControlsCommand;
346
221
  const se_ListSafetyRulesCommand = async (input, context) => {
347
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
222
+ const b = (0, core_1.requestBuilder)(input, context);
348
223
  const headers = {};
349
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
350
- "/controlpanel/{ControlPanelArn}/safetyrules";
351
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
224
+ b.bp("/controlpanel/{ControlPanelArn}/safetyrules");
225
+ b.p("ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
352
226
  const query = (0, smithy_client_1.map)({
353
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
354
- NextToken: [, input.NextToken],
227
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
228
+ [_NT]: [, input[_NT]],
355
229
  });
356
230
  let body;
357
- return new protocol_http_1.HttpRequest({
358
- protocol,
359
- hostname,
360
- port,
361
- method: "GET",
362
- headers,
363
- path: resolvedPath,
364
- query,
365
- body,
366
- });
231
+ b.m("GET").h(headers).q(query).b(body);
232
+ return b.build();
367
233
  };
368
234
  exports.se_ListSafetyRulesCommand = se_ListSafetyRulesCommand;
369
235
  const se_ListTagsForResourceCommand = async (input, context) => {
370
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
236
+ const b = (0, core_1.requestBuilder)(input, context);
371
237
  const headers = {};
372
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
373
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
238
+ b.bp("/tags/{ResourceArn}");
239
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
374
240
  let body;
375
- return new protocol_http_1.HttpRequest({
376
- protocol,
377
- hostname,
378
- port,
379
- method: "GET",
380
- headers,
381
- path: resolvedPath,
382
- body,
383
- });
241
+ b.m("GET").h(headers).b(body);
242
+ return b.build();
384
243
  };
385
244
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
386
245
  const se_TagResourceCommand = async (input, context) => {
387
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
246
+ const b = (0, core_1.requestBuilder)(input, context);
388
247
  const headers = {
389
248
  "content-type": "application/json",
390
249
  };
391
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
392
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
250
+ b.bp("/tags/{ResourceArn}");
251
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
393
252
  let body;
394
253
  body = JSON.stringify((0, smithy_client_1.take)(input, {
395
254
  Tags: (_) => (0, smithy_client_1._json)(_),
396
255
  }));
397
- return new protocol_http_1.HttpRequest({
398
- protocol,
399
- hostname,
400
- port,
401
- method: "POST",
402
- headers,
403
- path: resolvedPath,
404
- body,
405
- });
256
+ b.m("POST").h(headers).b(body);
257
+ return b.build();
406
258
  };
407
259
  exports.se_TagResourceCommand = se_TagResourceCommand;
408
260
  const se_UntagResourceCommand = async (input, context) => {
409
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
261
+ const b = (0, core_1.requestBuilder)(input, context);
410
262
  const headers = {};
411
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
412
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
263
+ b.bp("/tags/{ResourceArn}");
264
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
413
265
  const query = (0, smithy_client_1.map)({
414
- TagKeys: [
266
+ [_TK]: [
415
267
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
416
- () => (input.TagKeys || []).map((_entry) => _entry),
268
+ () => (input[_TK] || []).map((_entry) => _entry),
417
269
  ],
418
270
  });
419
271
  let body;
420
- return new protocol_http_1.HttpRequest({
421
- protocol,
422
- hostname,
423
- port,
424
- method: "DELETE",
425
- headers,
426
- path: resolvedPath,
427
- query,
428
- body,
429
- });
272
+ b.m("DELETE").h(headers).q(query).b(body);
273
+ return b.build();
430
274
  };
431
275
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
432
276
  const se_UpdateControlPanelCommand = async (input, context) => {
433
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
277
+ const b = (0, core_1.requestBuilder)(input, context);
434
278
  const headers = {
435
279
  "content-type": "application/json",
436
280
  };
437
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanel";
281
+ b.bp("/controlpanel");
438
282
  let body;
439
283
  body = JSON.stringify((0, smithy_client_1.take)(input, {
440
284
  ControlPanelArn: [],
441
285
  ControlPanelName: [],
442
286
  }));
443
- return new protocol_http_1.HttpRequest({
444
- protocol,
445
- hostname,
446
- port,
447
- method: "PUT",
448
- headers,
449
- path: resolvedPath,
450
- body,
451
- });
287
+ b.m("PUT").h(headers).b(body);
288
+ return b.build();
452
289
  };
453
290
  exports.se_UpdateControlPanelCommand = se_UpdateControlPanelCommand;
454
291
  const se_UpdateRoutingControlCommand = async (input, context) => {
455
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
292
+ const b = (0, core_1.requestBuilder)(input, context);
456
293
  const headers = {
457
294
  "content-type": "application/json",
458
295
  };
459
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routingcontrol";
296
+ b.bp("/routingcontrol");
460
297
  let body;
461
298
  body = JSON.stringify((0, smithy_client_1.take)(input, {
462
299
  RoutingControlArn: [],
463
300
  RoutingControlName: [],
464
301
  }));
465
- return new protocol_http_1.HttpRequest({
466
- protocol,
467
- hostname,
468
- port,
469
- method: "PUT",
470
- headers,
471
- path: resolvedPath,
472
- body,
473
- });
302
+ b.m("PUT").h(headers).b(body);
303
+ return b.build();
474
304
  };
475
305
  exports.se_UpdateRoutingControlCommand = se_UpdateRoutingControlCommand;
476
306
  const se_UpdateSafetyRuleCommand = async (input, context) => {
477
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
307
+ const b = (0, core_1.requestBuilder)(input, context);
478
308
  const headers = {
479
309
  "content-type": "application/json",
480
310
  };
481
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/safetyrule";
311
+ b.bp("/safetyrule");
482
312
  let body;
483
313
  body = JSON.stringify((0, smithy_client_1.take)(input, {
484
314
  AssertionRuleUpdate: (_) => (0, smithy_client_1._json)(_),
485
315
  GatingRuleUpdate: (_) => (0, smithy_client_1._json)(_),
486
316
  }));
487
- return new protocol_http_1.HttpRequest({
488
- protocol,
489
- hostname,
490
- port,
491
- method: "PUT",
492
- headers,
493
- path: resolvedPath,
494
- body,
495
- });
317
+ b.m("PUT").h(headers).b(body);
318
+ return b.build();
496
319
  };
497
320
  exports.se_UpdateSafetyRuleCommand = se_UpdateSafetyRuleCommand;
498
321
  const de_CreateClusterCommand = async (output, context) => {
@@ -1666,6 +1489,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1666
1489
  value !== "" &&
1667
1490
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1668
1491
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1492
+ const _CA = "ClusterArn";
1493
+ const _MR = "MaxResults";
1494
+ const _NT = "NextToken";
1495
+ const _TK = "TagKeys";
1669
1496
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1670
1497
  if (encoded.length) {
1671
1498
  return JSON.parse(encoded);
@@ -1,36 +1,29 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  import { Route53RecoveryControlConfigServiceException as __BaseException } from "../models/Route53RecoveryControlConfigServiceException";
6
6
  export const se_CreateClusterCommand = async (input, context) => {
7
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
+ const b = rb(input, context);
8
8
  const headers = {
9
9
  "content-type": "application/json",
10
10
  };
11
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster";
11
+ b.bp("/cluster");
12
12
  let body;
13
13
  body = JSON.stringify(take(input, {
14
14
  ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
15
15
  ClusterName: [],
16
16
  Tags: (_) => _json(_),
17
17
  }));
18
- return new __HttpRequest({
19
- protocol,
20
- hostname,
21
- port,
22
- method: "POST",
23
- headers,
24
- path: resolvedPath,
25
- body,
26
- });
18
+ b.m("POST").h(headers).b(body);
19
+ return b.build();
27
20
  };
28
21
  export const se_CreateControlPanelCommand = async (input, context) => {
29
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
22
+ const b = rb(input, context);
30
23
  const headers = {
31
24
  "content-type": "application/json",
32
25
  };
33
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanel";
26
+ b.bp("/controlpanel");
34
27
  let body;
35
28
  body = JSON.stringify(take(input, {
36
29
  ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -38,22 +31,15 @@ export const se_CreateControlPanelCommand = async (input, context) => {
38
31
  ControlPanelName: [],
39
32
  Tags: (_) => _json(_),
40
33
  }));
41
- return new __HttpRequest({
42
- protocol,
43
- hostname,
44
- port,
45
- method: "POST",
46
- headers,
47
- path: resolvedPath,
48
- body,
49
- });
34
+ b.m("POST").h(headers).b(body);
35
+ return b.build();
50
36
  };
51
37
  export const se_CreateRoutingControlCommand = async (input, context) => {
52
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
38
+ const b = rb(input, context);
53
39
  const headers = {
54
40
  "content-type": "application/json",
55
41
  };
56
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routingcontrol";
42
+ b.bp("/routingcontrol");
57
43
  let body;
58
44
  body = JSON.stringify(take(input, {
59
45
  ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -61,22 +47,15 @@ export const se_CreateRoutingControlCommand = async (input, context) => {
61
47
  ControlPanelArn: [],
62
48
  RoutingControlName: [],
63
49
  }));
64
- return new __HttpRequest({
65
- protocol,
66
- hostname,
67
- port,
68
- method: "POST",
69
- headers,
70
- path: resolvedPath,
71
- body,
72
- });
50
+ b.m("POST").h(headers).b(body);
51
+ return b.build();
73
52
  };
74
53
  export const se_CreateSafetyRuleCommand = async (input, context) => {
75
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
54
+ const b = rb(input, context);
76
55
  const headers = {
77
56
  "content-type": "application/json",
78
57
  };
79
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/safetyrule";
58
+ b.bp("/safetyrule");
80
59
  let body;
81
60
  body = JSON.stringify(take(input, {
82
61
  AssertionRule: (_) => _json(_),
@@ -84,389 +63,233 @@ export const se_CreateSafetyRuleCommand = async (input, context) => {
84
63
  GatingRule: (_) => _json(_),
85
64
  Tags: (_) => _json(_),
86
65
  }));
87
- return new __HttpRequest({
88
- protocol,
89
- hostname,
90
- port,
91
- method: "POST",
92
- headers,
93
- path: resolvedPath,
94
- body,
95
- });
66
+ b.m("POST").h(headers).b(body);
67
+ return b.build();
96
68
  };
97
69
  export const se_DeleteClusterCommand = async (input, context) => {
98
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
70
+ const b = rb(input, context);
99
71
  const headers = {};
100
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster/{ClusterArn}";
101
- resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
72
+ b.bp("/cluster/{ClusterArn}");
73
+ b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
102
74
  let body;
103
- return new __HttpRequest({
104
- protocol,
105
- hostname,
106
- port,
107
- method: "DELETE",
108
- headers,
109
- path: resolvedPath,
110
- body,
111
- });
75
+ b.m("DELETE").h(headers).b(body);
76
+ return b.build();
112
77
  };
113
78
  export const se_DeleteControlPanelCommand = async (input, context) => {
114
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
79
+ const b = rb(input, context);
115
80
  const headers = {};
116
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanel/{ControlPanelArn}";
117
- resolvedPath = __resolvedPath(resolvedPath, input, "ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
81
+ b.bp("/controlpanel/{ControlPanelArn}");
82
+ b.p("ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
118
83
  let body;
119
- return new __HttpRequest({
120
- protocol,
121
- hostname,
122
- port,
123
- method: "DELETE",
124
- headers,
125
- path: resolvedPath,
126
- body,
127
- });
84
+ b.m("DELETE").h(headers).b(body);
85
+ return b.build();
128
86
  };
129
87
  export const se_DeleteRoutingControlCommand = async (input, context) => {
130
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
88
+ const b = rb(input, context);
131
89
  const headers = {};
132
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routingcontrol/{RoutingControlArn}";
133
- resolvedPath = __resolvedPath(resolvedPath, input, "RoutingControlArn", () => input.RoutingControlArn, "{RoutingControlArn}", false);
90
+ b.bp("/routingcontrol/{RoutingControlArn}");
91
+ b.p("RoutingControlArn", () => input.RoutingControlArn, "{RoutingControlArn}", false);
134
92
  let body;
135
- return new __HttpRequest({
136
- protocol,
137
- hostname,
138
- port,
139
- method: "DELETE",
140
- headers,
141
- path: resolvedPath,
142
- body,
143
- });
93
+ b.m("DELETE").h(headers).b(body);
94
+ return b.build();
144
95
  };
145
96
  export const se_DeleteSafetyRuleCommand = async (input, context) => {
146
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
97
+ const b = rb(input, context);
147
98
  const headers = {};
148
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/safetyrule/{SafetyRuleArn}";
149
- resolvedPath = __resolvedPath(resolvedPath, input, "SafetyRuleArn", () => input.SafetyRuleArn, "{SafetyRuleArn}", false);
99
+ b.bp("/safetyrule/{SafetyRuleArn}");
100
+ b.p("SafetyRuleArn", () => input.SafetyRuleArn, "{SafetyRuleArn}", false);
150
101
  let body;
151
- return new __HttpRequest({
152
- protocol,
153
- hostname,
154
- port,
155
- method: "DELETE",
156
- headers,
157
- path: resolvedPath,
158
- body,
159
- });
102
+ b.m("DELETE").h(headers).b(body);
103
+ return b.build();
160
104
  };
161
105
  export const se_DescribeClusterCommand = async (input, context) => {
162
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
106
+ const b = rb(input, context);
163
107
  const headers = {};
164
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster/{ClusterArn}";
165
- resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
108
+ b.bp("/cluster/{ClusterArn}");
109
+ b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
166
110
  let body;
167
- return new __HttpRequest({
168
- protocol,
169
- hostname,
170
- port,
171
- method: "GET",
172
- headers,
173
- path: resolvedPath,
174
- body,
175
- });
111
+ b.m("GET").h(headers).b(body);
112
+ return b.build();
176
113
  };
177
114
  export const se_DescribeControlPanelCommand = async (input, context) => {
178
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
115
+ const b = rb(input, context);
179
116
  const headers = {};
180
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanel/{ControlPanelArn}";
181
- resolvedPath = __resolvedPath(resolvedPath, input, "ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
117
+ b.bp("/controlpanel/{ControlPanelArn}");
118
+ b.p("ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
182
119
  let body;
183
- return new __HttpRequest({
184
- protocol,
185
- hostname,
186
- port,
187
- method: "GET",
188
- headers,
189
- path: resolvedPath,
190
- body,
191
- });
120
+ b.m("GET").h(headers).b(body);
121
+ return b.build();
192
122
  };
193
123
  export const se_DescribeRoutingControlCommand = async (input, context) => {
194
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
124
+ const b = rb(input, context);
195
125
  const headers = {};
196
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routingcontrol/{RoutingControlArn}";
197
- resolvedPath = __resolvedPath(resolvedPath, input, "RoutingControlArn", () => input.RoutingControlArn, "{RoutingControlArn}", false);
126
+ b.bp("/routingcontrol/{RoutingControlArn}");
127
+ b.p("RoutingControlArn", () => input.RoutingControlArn, "{RoutingControlArn}", false);
198
128
  let body;
199
- return new __HttpRequest({
200
- protocol,
201
- hostname,
202
- port,
203
- method: "GET",
204
- headers,
205
- path: resolvedPath,
206
- body,
207
- });
129
+ b.m("GET").h(headers).b(body);
130
+ return b.build();
208
131
  };
209
132
  export const se_DescribeSafetyRuleCommand = async (input, context) => {
210
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
133
+ const b = rb(input, context);
211
134
  const headers = {};
212
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/safetyrule/{SafetyRuleArn}";
213
- resolvedPath = __resolvedPath(resolvedPath, input, "SafetyRuleArn", () => input.SafetyRuleArn, "{SafetyRuleArn}", false);
135
+ b.bp("/safetyrule/{SafetyRuleArn}");
136
+ b.p("SafetyRuleArn", () => input.SafetyRuleArn, "{SafetyRuleArn}", false);
214
137
  let body;
215
- return new __HttpRequest({
216
- protocol,
217
- hostname,
218
- port,
219
- method: "GET",
220
- headers,
221
- path: resolvedPath,
222
- body,
223
- });
138
+ b.m("GET").h(headers).b(body);
139
+ return b.build();
224
140
  };
225
141
  export const se_GetResourcePolicyCommand = async (input, context) => {
226
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
142
+ const b = rb(input, context);
227
143
  const headers = {};
228
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcePolicy/{ResourceArn}";
229
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
144
+ b.bp("/resourcePolicy/{ResourceArn}");
145
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
230
146
  let body;
231
- return new __HttpRequest({
232
- protocol,
233
- hostname,
234
- port,
235
- method: "GET",
236
- headers,
237
- path: resolvedPath,
238
- body,
239
- });
147
+ b.m("GET").h(headers).b(body);
148
+ return b.build();
240
149
  };
241
150
  export const se_ListAssociatedRoute53HealthChecksCommand = async (input, context) => {
242
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
151
+ const b = rb(input, context);
243
152
  const headers = {};
244
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
245
- "/routingcontrol/{RoutingControlArn}/associatedRoute53HealthChecks";
246
- resolvedPath = __resolvedPath(resolvedPath, input, "RoutingControlArn", () => input.RoutingControlArn, "{RoutingControlArn}", false);
153
+ b.bp("/routingcontrol/{RoutingControlArn}/associatedRoute53HealthChecks");
154
+ b.p("RoutingControlArn", () => input.RoutingControlArn, "{RoutingControlArn}", false);
247
155
  const query = map({
248
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
249
- NextToken: [, input.NextToken],
156
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
157
+ [_NT]: [, input[_NT]],
250
158
  });
251
159
  let body;
252
- return new __HttpRequest({
253
- protocol,
254
- hostname,
255
- port,
256
- method: "GET",
257
- headers,
258
- path: resolvedPath,
259
- query,
260
- body,
261
- });
160
+ b.m("GET").h(headers).q(query).b(body);
161
+ return b.build();
262
162
  };
263
163
  export const se_ListClustersCommand = async (input, context) => {
264
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
164
+ const b = rb(input, context);
265
165
  const headers = {};
266
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster";
166
+ b.bp("/cluster");
267
167
  const query = map({
268
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
269
- NextToken: [, input.NextToken],
168
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
169
+ [_NT]: [, input[_NT]],
270
170
  });
271
171
  let body;
272
- return new __HttpRequest({
273
- protocol,
274
- hostname,
275
- port,
276
- method: "GET",
277
- headers,
278
- path: resolvedPath,
279
- query,
280
- body,
281
- });
172
+ b.m("GET").h(headers).q(query).b(body);
173
+ return b.build();
282
174
  };
283
175
  export const se_ListControlPanelsCommand = async (input, context) => {
284
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
176
+ const b = rb(input, context);
285
177
  const headers = {};
286
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanels";
178
+ b.bp("/controlpanels");
287
179
  const query = map({
288
- ClusterArn: [, input.ClusterArn],
289
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
290
- NextToken: [, input.NextToken],
180
+ [_CA]: [, input[_CA]],
181
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
182
+ [_NT]: [, input[_NT]],
291
183
  });
292
184
  let body;
293
- return new __HttpRequest({
294
- protocol,
295
- hostname,
296
- port,
297
- method: "GET",
298
- headers,
299
- path: resolvedPath,
300
- query,
301
- body,
302
- });
185
+ b.m("GET").h(headers).q(query).b(body);
186
+ return b.build();
303
187
  };
304
188
  export const se_ListRoutingControlsCommand = async (input, context) => {
305
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
189
+ const b = rb(input, context);
306
190
  const headers = {};
307
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
308
- "/controlpanel/{ControlPanelArn}/routingcontrols";
309
- resolvedPath = __resolvedPath(resolvedPath, input, "ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
191
+ b.bp("/controlpanel/{ControlPanelArn}/routingcontrols");
192
+ b.p("ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
310
193
  const query = map({
311
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
312
- NextToken: [, input.NextToken],
194
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
195
+ [_NT]: [, input[_NT]],
313
196
  });
314
197
  let body;
315
- return new __HttpRequest({
316
- protocol,
317
- hostname,
318
- port,
319
- method: "GET",
320
- headers,
321
- path: resolvedPath,
322
- query,
323
- body,
324
- });
198
+ b.m("GET").h(headers).q(query).b(body);
199
+ return b.build();
325
200
  };
326
201
  export const se_ListSafetyRulesCommand = async (input, context) => {
327
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
202
+ const b = rb(input, context);
328
203
  const headers = {};
329
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
330
- "/controlpanel/{ControlPanelArn}/safetyrules";
331
- resolvedPath = __resolvedPath(resolvedPath, input, "ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
204
+ b.bp("/controlpanel/{ControlPanelArn}/safetyrules");
205
+ b.p("ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
332
206
  const query = map({
333
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
334
- NextToken: [, input.NextToken],
207
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
208
+ [_NT]: [, input[_NT]],
335
209
  });
336
210
  let body;
337
- return new __HttpRequest({
338
- protocol,
339
- hostname,
340
- port,
341
- method: "GET",
342
- headers,
343
- path: resolvedPath,
344
- query,
345
- body,
346
- });
211
+ b.m("GET").h(headers).q(query).b(body);
212
+ return b.build();
347
213
  };
348
214
  export const se_ListTagsForResourceCommand = async (input, context) => {
349
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
215
+ const b = rb(input, context);
350
216
  const headers = {};
351
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
352
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
217
+ b.bp("/tags/{ResourceArn}");
218
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
353
219
  let body;
354
- return new __HttpRequest({
355
- protocol,
356
- hostname,
357
- port,
358
- method: "GET",
359
- headers,
360
- path: resolvedPath,
361
- body,
362
- });
220
+ b.m("GET").h(headers).b(body);
221
+ return b.build();
363
222
  };
364
223
  export const se_TagResourceCommand = async (input, context) => {
365
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
224
+ const b = rb(input, context);
366
225
  const headers = {
367
226
  "content-type": "application/json",
368
227
  };
369
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
370
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
228
+ b.bp("/tags/{ResourceArn}");
229
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
371
230
  let body;
372
231
  body = JSON.stringify(take(input, {
373
232
  Tags: (_) => _json(_),
374
233
  }));
375
- return new __HttpRequest({
376
- protocol,
377
- hostname,
378
- port,
379
- method: "POST",
380
- headers,
381
- path: resolvedPath,
382
- body,
383
- });
234
+ b.m("POST").h(headers).b(body);
235
+ return b.build();
384
236
  };
385
237
  export const se_UntagResourceCommand = async (input, context) => {
386
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
238
+ const b = rb(input, context);
387
239
  const headers = {};
388
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
389
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
240
+ b.bp("/tags/{ResourceArn}");
241
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
390
242
  const query = map({
391
- TagKeys: [
243
+ [_TK]: [
392
244
  __expectNonNull(input.TagKeys, `TagKeys`) != null,
393
- () => (input.TagKeys || []).map((_entry) => _entry),
245
+ () => (input[_TK] || []).map((_entry) => _entry),
394
246
  ],
395
247
  });
396
248
  let body;
397
- return new __HttpRequest({
398
- protocol,
399
- hostname,
400
- port,
401
- method: "DELETE",
402
- headers,
403
- path: resolvedPath,
404
- query,
405
- body,
406
- });
249
+ b.m("DELETE").h(headers).q(query).b(body);
250
+ return b.build();
407
251
  };
408
252
  export const se_UpdateControlPanelCommand = async (input, context) => {
409
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
253
+ const b = rb(input, context);
410
254
  const headers = {
411
255
  "content-type": "application/json",
412
256
  };
413
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanel";
257
+ b.bp("/controlpanel");
414
258
  let body;
415
259
  body = JSON.stringify(take(input, {
416
260
  ControlPanelArn: [],
417
261
  ControlPanelName: [],
418
262
  }));
419
- return new __HttpRequest({
420
- protocol,
421
- hostname,
422
- port,
423
- method: "PUT",
424
- headers,
425
- path: resolvedPath,
426
- body,
427
- });
263
+ b.m("PUT").h(headers).b(body);
264
+ return b.build();
428
265
  };
429
266
  export const se_UpdateRoutingControlCommand = async (input, context) => {
430
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
267
+ const b = rb(input, context);
431
268
  const headers = {
432
269
  "content-type": "application/json",
433
270
  };
434
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routingcontrol";
271
+ b.bp("/routingcontrol");
435
272
  let body;
436
273
  body = JSON.stringify(take(input, {
437
274
  RoutingControlArn: [],
438
275
  RoutingControlName: [],
439
276
  }));
440
- return new __HttpRequest({
441
- protocol,
442
- hostname,
443
- port,
444
- method: "PUT",
445
- headers,
446
- path: resolvedPath,
447
- body,
448
- });
277
+ b.m("PUT").h(headers).b(body);
278
+ return b.build();
449
279
  };
450
280
  export const se_UpdateSafetyRuleCommand = async (input, context) => {
451
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
281
+ const b = rb(input, context);
452
282
  const headers = {
453
283
  "content-type": "application/json",
454
284
  };
455
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/safetyrule";
285
+ b.bp("/safetyrule");
456
286
  let body;
457
287
  body = JSON.stringify(take(input, {
458
288
  AssertionRuleUpdate: (_) => _json(_),
459
289
  GatingRuleUpdate: (_) => _json(_),
460
290
  }));
461
- return new __HttpRequest({
462
- protocol,
463
- hostname,
464
- port,
465
- method: "PUT",
466
- headers,
467
- path: resolvedPath,
468
- body,
469
- });
291
+ b.m("PUT").h(headers).b(body);
292
+ return b.build();
470
293
  };
471
294
  export const de_CreateClusterCommand = async (output, context) => {
472
295
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1615,6 +1438,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1615
1438
  value !== "" &&
1616
1439
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1617
1440
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1441
+ const _CA = "ClusterArn";
1442
+ const _MR = "MaxResults";
1443
+ const _NT = "NextToken";
1444
+ const _TK = "TagKeys";
1618
1445
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1619
1446
  if (encoded.length) {
1620
1447
  return JSON.parse(encoded);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-route53-recovery-control-config",
3
3
  "description": "AWS SDK for JavaScript Route53 Recovery Control Config Client for Node.js, Browser and React Native",
4
- "version": "3.474.0",
4
+ "version": "3.477.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.474.0",
24
- "@aws-sdk/core": "3.474.0",
25
- "@aws-sdk/credential-provider-node": "3.474.0",
23
+ "@aws-sdk/client-sts": "3.477.0",
24
+ "@aws-sdk/core": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.477.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
@@ -34,6 +34,7 @@
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",
37
+ "@smithy/core": "^1.2.0",
37
38
  "@smithy/fetch-http-handler": "^2.3.1",
38
39
  "@smithy/hash-node": "^2.0.17",
39
40
  "@smithy/invalid-dependency": "^2.0.15",