@aws-sdk/client-arc-zonal-shift 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,33 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_UpdateZonalShiftCommand = exports.de_UpdateZonalAutoshiftConfigurationCommand = exports.de_UpdatePracticeRunConfigurationCommand = exports.de_StartZonalShiftCommand = exports.de_ListZonalShiftsCommand = exports.de_ListManagedResourcesCommand = exports.de_ListAutoshiftsCommand = exports.de_GetManagedResourceCommand = exports.de_DeletePracticeRunConfigurationCommand = exports.de_CreatePracticeRunConfigurationCommand = exports.de_CancelZonalShiftCommand = exports.se_UpdateZonalShiftCommand = exports.se_UpdateZonalAutoshiftConfigurationCommand = exports.se_UpdatePracticeRunConfigurationCommand = exports.se_StartZonalShiftCommand = exports.se_ListZonalShiftsCommand = exports.se_ListManagedResourcesCommand = exports.se_ListAutoshiftsCommand = exports.se_GetManagedResourceCommand = exports.se_DeletePracticeRunConfigurationCommand = exports.se_CreatePracticeRunConfigurationCommand = exports.se_CancelZonalShiftCommand = 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 ARCZonalShiftServiceException_1 = require("../models/ARCZonalShiftServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const se_CancelZonalShiftCommand = async (input, context) => {
9
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
9
+ const b = (0, core_1.requestBuilder)(input, context);
10
10
  const headers = {};
11
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/zonalshifts/{zonalShiftId}";
12
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "zonalShiftId", () => input.zonalShiftId, "{zonalShiftId}", false);
11
+ b.bp("/zonalshifts/{zonalShiftId}");
12
+ b.p("zonalShiftId", () => input.zonalShiftId, "{zonalShiftId}", false);
13
13
  let body;
14
- return new protocol_http_1.HttpRequest({
15
- protocol,
16
- hostname,
17
- port,
18
- method: "DELETE",
19
- headers,
20
- path: resolvedPath,
21
- body,
22
- });
14
+ b.m("DELETE").h(headers).b(body);
15
+ return b.build();
23
16
  };
24
17
  exports.se_CancelZonalShiftCommand = se_CancelZonalShiftCommand;
25
18
  const se_CreatePracticeRunConfigurationCommand = async (input, context) => {
26
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
19
+ const b = (0, core_1.requestBuilder)(input, context);
27
20
  const headers = {
28
21
  "content-type": "application/json",
29
22
  };
30
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration";
23
+ b.bp("/configuration");
31
24
  let body;
32
25
  body = JSON.stringify((0, smithy_client_1.take)(input, {
33
26
  blockedDates: (_) => (0, smithy_client_1._json)(_),
@@ -36,123 +29,78 @@ const se_CreatePracticeRunConfigurationCommand = async (input, context) => {
36
29
  outcomeAlarms: (_) => (0, smithy_client_1._json)(_),
37
30
  resourceIdentifier: [],
38
31
  }));
39
- return new protocol_http_1.HttpRequest({
40
- protocol,
41
- hostname,
42
- port,
43
- method: "POST",
44
- headers,
45
- path: resolvedPath,
46
- body,
47
- });
32
+ b.m("POST").h(headers).b(body);
33
+ return b.build();
48
34
  };
49
35
  exports.se_CreatePracticeRunConfigurationCommand = se_CreatePracticeRunConfigurationCommand;
50
36
  const se_DeletePracticeRunConfigurationCommand = async (input, context) => {
51
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
37
+ const b = (0, core_1.requestBuilder)(input, context);
52
38
  const headers = {};
53
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/{resourceIdentifier}";
54
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
39
+ b.bp("/configuration/{resourceIdentifier}");
40
+ b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
55
41
  let body;
56
- return new protocol_http_1.HttpRequest({
57
- protocol,
58
- hostname,
59
- port,
60
- method: "DELETE",
61
- headers,
62
- path: resolvedPath,
63
- body,
64
- });
42
+ b.m("DELETE").h(headers).b(body);
43
+ return b.build();
65
44
  };
66
45
  exports.se_DeletePracticeRunConfigurationCommand = se_DeletePracticeRunConfigurationCommand;
67
46
  const se_GetManagedResourceCommand = async (input, context) => {
68
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
47
+ const b = (0, core_1.requestBuilder)(input, context);
69
48
  const headers = {};
70
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managedresources/{resourceIdentifier}";
71
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
49
+ b.bp("/managedresources/{resourceIdentifier}");
50
+ b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
72
51
  let body;
73
- return new protocol_http_1.HttpRequest({
74
- protocol,
75
- hostname,
76
- port,
77
- method: "GET",
78
- headers,
79
- path: resolvedPath,
80
- body,
81
- });
52
+ b.m("GET").h(headers).b(body);
53
+ return b.build();
82
54
  };
83
55
  exports.se_GetManagedResourceCommand = se_GetManagedResourceCommand;
84
56
  const se_ListAutoshiftsCommand = async (input, context) => {
85
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
57
+ const b = (0, core_1.requestBuilder)(input, context);
86
58
  const headers = {};
87
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/autoshifts";
59
+ b.bp("/autoshifts");
88
60
  const query = (0, smithy_client_1.map)({
89
- nextToken: [, input.nextToken],
90
- status: [, input.status],
91
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
61
+ [_nT]: [, input[_nT]],
62
+ [_s]: [, input[_s]],
63
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
92
64
  });
93
65
  let body;
94
- return new protocol_http_1.HttpRequest({
95
- protocol,
96
- hostname,
97
- port,
98
- method: "GET",
99
- headers,
100
- path: resolvedPath,
101
- query,
102
- body,
103
- });
66
+ b.m("GET").h(headers).q(query).b(body);
67
+ return b.build();
104
68
  };
105
69
  exports.se_ListAutoshiftsCommand = se_ListAutoshiftsCommand;
106
70
  const se_ListManagedResourcesCommand = async (input, context) => {
107
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
71
+ const b = (0, core_1.requestBuilder)(input, context);
108
72
  const headers = {};
109
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managedresources";
73
+ b.bp("/managedresources");
110
74
  const query = (0, smithy_client_1.map)({
111
- nextToken: [, input.nextToken],
112
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
75
+ [_nT]: [, input[_nT]],
76
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
113
77
  });
114
78
  let body;
115
- return new protocol_http_1.HttpRequest({
116
- protocol,
117
- hostname,
118
- port,
119
- method: "GET",
120
- headers,
121
- path: resolvedPath,
122
- query,
123
- body,
124
- });
79
+ b.m("GET").h(headers).q(query).b(body);
80
+ return b.build();
125
81
  };
126
82
  exports.se_ListManagedResourcesCommand = se_ListManagedResourcesCommand;
127
83
  const se_ListZonalShiftsCommand = async (input, context) => {
128
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
84
+ const b = (0, core_1.requestBuilder)(input, context);
129
85
  const headers = {};
130
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/zonalshifts";
86
+ b.bp("/zonalshifts");
131
87
  const query = (0, smithy_client_1.map)({
132
- nextToken: [, input.nextToken],
133
- status: [, input.status],
134
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
135
- resourceIdentifier: [, input.resourceIdentifier],
88
+ [_nT]: [, input[_nT]],
89
+ [_s]: [, input[_s]],
90
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
91
+ [_rI]: [, input[_rI]],
136
92
  });
137
93
  let body;
138
- return new protocol_http_1.HttpRequest({
139
- protocol,
140
- hostname,
141
- port,
142
- method: "GET",
143
- headers,
144
- path: resolvedPath,
145
- query,
146
- body,
147
- });
94
+ b.m("GET").h(headers).q(query).b(body);
95
+ return b.build();
148
96
  };
149
97
  exports.se_ListZonalShiftsCommand = se_ListZonalShiftsCommand;
150
98
  const se_StartZonalShiftCommand = async (input, context) => {
151
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
99
+ const b = (0, core_1.requestBuilder)(input, context);
152
100
  const headers = {
153
101
  "content-type": "application/json",
154
102
  };
155
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/zonalshifts";
103
+ b.bp("/zonalshifts");
156
104
  let body;
157
105
  body = JSON.stringify((0, smithy_client_1.take)(input, {
158
106
  awayFrom: [],
@@ -160,24 +108,17 @@ const se_StartZonalShiftCommand = async (input, context) => {
160
108
  expiresIn: [],
161
109
  resourceIdentifier: [],
162
110
  }));
163
- return new protocol_http_1.HttpRequest({
164
- protocol,
165
- hostname,
166
- port,
167
- method: "POST",
168
- headers,
169
- path: resolvedPath,
170
- body,
171
- });
111
+ b.m("POST").h(headers).b(body);
112
+ return b.build();
172
113
  };
173
114
  exports.se_StartZonalShiftCommand = se_StartZonalShiftCommand;
174
115
  const se_UpdatePracticeRunConfigurationCommand = async (input, context) => {
175
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
116
+ const b = (0, core_1.requestBuilder)(input, context);
176
117
  const headers = {
177
118
  "content-type": "application/json",
178
119
  };
179
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/{resourceIdentifier}";
180
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
120
+ b.bp("/configuration/{resourceIdentifier}");
121
+ b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
181
122
  let body;
182
123
  body = JSON.stringify((0, smithy_client_1.take)(input, {
183
124
  blockedDates: (_) => (0, smithy_client_1._json)(_),
@@ -185,60 +126,39 @@ const se_UpdatePracticeRunConfigurationCommand = async (input, context) => {
185
126
  blockingAlarms: (_) => (0, smithy_client_1._json)(_),
186
127
  outcomeAlarms: (_) => (0, smithy_client_1._json)(_),
187
128
  }));
188
- return new protocol_http_1.HttpRequest({
189
- protocol,
190
- hostname,
191
- port,
192
- method: "PATCH",
193
- headers,
194
- path: resolvedPath,
195
- body,
196
- });
129
+ b.m("PATCH").h(headers).b(body);
130
+ return b.build();
197
131
  };
198
132
  exports.se_UpdatePracticeRunConfigurationCommand = se_UpdatePracticeRunConfigurationCommand;
199
133
  const se_UpdateZonalAutoshiftConfigurationCommand = async (input, context) => {
200
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
134
+ const b = (0, core_1.requestBuilder)(input, context);
201
135
  const headers = {
202
136
  "content-type": "application/json",
203
137
  };
204
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managedresources/{resourceIdentifier}";
205
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
138
+ b.bp("/managedresources/{resourceIdentifier}");
139
+ b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
206
140
  let body;
207
141
  body = JSON.stringify((0, smithy_client_1.take)(input, {
208
142
  zonalAutoshiftStatus: [],
209
143
  }));
210
- return new protocol_http_1.HttpRequest({
211
- protocol,
212
- hostname,
213
- port,
214
- method: "PUT",
215
- headers,
216
- path: resolvedPath,
217
- body,
218
- });
144
+ b.m("PUT").h(headers).b(body);
145
+ return b.build();
219
146
  };
220
147
  exports.se_UpdateZonalAutoshiftConfigurationCommand = se_UpdateZonalAutoshiftConfigurationCommand;
221
148
  const se_UpdateZonalShiftCommand = async (input, context) => {
222
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
149
+ const b = (0, core_1.requestBuilder)(input, context);
223
150
  const headers = {
224
151
  "content-type": "application/json",
225
152
  };
226
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/zonalshifts/{zonalShiftId}";
227
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "zonalShiftId", () => input.zonalShiftId, "{zonalShiftId}", false);
153
+ b.bp("/zonalshifts/{zonalShiftId}");
154
+ b.p("zonalShiftId", () => input.zonalShiftId, "{zonalShiftId}", false);
228
155
  let body;
229
156
  body = JSON.stringify((0, smithy_client_1.take)(input, {
230
157
  comment: [],
231
158
  expiresIn: [],
232
159
  }));
233
- return new protocol_http_1.HttpRequest({
234
- protocol,
235
- hostname,
236
- port,
237
- method: "PATCH",
238
- headers,
239
- path: resolvedPath,
240
- body,
241
- });
160
+ b.m("PATCH").h(headers).b(body);
161
+ return b.build();
242
162
  };
243
163
  exports.se_UpdateZonalShiftCommand = se_UpdateZonalShiftCommand;
244
164
  const de_CancelZonalShiftCommand = async (output, context) => {
@@ -989,6 +909,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
989
909
  value !== "" &&
990
910
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
991
911
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
912
+ const _mR = "maxResults";
913
+ const _nT = "nextToken";
914
+ const _rI = "resourceIdentifier";
915
+ const _s = "status";
992
916
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
993
917
  if (encoded.length) {
994
918
  return JSON.parse(encoded);
@@ -1,29 +1,22 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp, 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, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { ARCZonalShiftServiceException as __BaseException } from "../models/ARCZonalShiftServiceException";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  export const se_CancelZonalShiftCommand = async (input, context) => {
6
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6
+ const b = rb(input, context);
7
7
  const headers = {};
8
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/zonalshifts/{zonalShiftId}";
9
- resolvedPath = __resolvedPath(resolvedPath, input, "zonalShiftId", () => input.zonalShiftId, "{zonalShiftId}", false);
8
+ b.bp("/zonalshifts/{zonalShiftId}");
9
+ b.p("zonalShiftId", () => input.zonalShiftId, "{zonalShiftId}", false);
10
10
  let body;
11
- return new __HttpRequest({
12
- protocol,
13
- hostname,
14
- port,
15
- method: "DELETE",
16
- headers,
17
- path: resolvedPath,
18
- body,
19
- });
11
+ b.m("DELETE").h(headers).b(body);
12
+ return b.build();
20
13
  };
21
14
  export const se_CreatePracticeRunConfigurationCommand = async (input, context) => {
22
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
15
+ const b = rb(input, context);
23
16
  const headers = {
24
17
  "content-type": "application/json",
25
18
  };
26
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration";
19
+ b.bp("/configuration");
27
20
  let body;
28
21
  body = JSON.stringify(take(input, {
29
22
  blockedDates: (_) => _json(_),
@@ -32,117 +25,72 @@ export const se_CreatePracticeRunConfigurationCommand = async (input, context) =
32
25
  outcomeAlarms: (_) => _json(_),
33
26
  resourceIdentifier: [],
34
27
  }));
35
- return new __HttpRequest({
36
- protocol,
37
- hostname,
38
- port,
39
- method: "POST",
40
- headers,
41
- path: resolvedPath,
42
- body,
43
- });
28
+ b.m("POST").h(headers).b(body);
29
+ return b.build();
44
30
  };
45
31
  export const se_DeletePracticeRunConfigurationCommand = async (input, context) => {
46
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
32
+ const b = rb(input, context);
47
33
  const headers = {};
48
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/{resourceIdentifier}";
49
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
34
+ b.bp("/configuration/{resourceIdentifier}");
35
+ b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
50
36
  let body;
51
- return new __HttpRequest({
52
- protocol,
53
- hostname,
54
- port,
55
- method: "DELETE",
56
- headers,
57
- path: resolvedPath,
58
- body,
59
- });
37
+ b.m("DELETE").h(headers).b(body);
38
+ return b.build();
60
39
  };
61
40
  export const se_GetManagedResourceCommand = async (input, context) => {
62
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
41
+ const b = rb(input, context);
63
42
  const headers = {};
64
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managedresources/{resourceIdentifier}";
65
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
43
+ b.bp("/managedresources/{resourceIdentifier}");
44
+ b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
66
45
  let body;
67
- return new __HttpRequest({
68
- protocol,
69
- hostname,
70
- port,
71
- method: "GET",
72
- headers,
73
- path: resolvedPath,
74
- body,
75
- });
46
+ b.m("GET").h(headers).b(body);
47
+ return b.build();
76
48
  };
77
49
  export const se_ListAutoshiftsCommand = async (input, context) => {
78
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
50
+ const b = rb(input, context);
79
51
  const headers = {};
80
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/autoshifts";
52
+ b.bp("/autoshifts");
81
53
  const query = map({
82
- nextToken: [, input.nextToken],
83
- status: [, input.status],
84
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
54
+ [_nT]: [, input[_nT]],
55
+ [_s]: [, input[_s]],
56
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
85
57
  });
86
58
  let body;
87
- return new __HttpRequest({
88
- protocol,
89
- hostname,
90
- port,
91
- method: "GET",
92
- headers,
93
- path: resolvedPath,
94
- query,
95
- body,
96
- });
59
+ b.m("GET").h(headers).q(query).b(body);
60
+ return b.build();
97
61
  };
98
62
  export const se_ListManagedResourcesCommand = async (input, context) => {
99
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
63
+ const b = rb(input, context);
100
64
  const headers = {};
101
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managedresources";
65
+ b.bp("/managedresources");
102
66
  const query = map({
103
- nextToken: [, input.nextToken],
104
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
67
+ [_nT]: [, input[_nT]],
68
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
105
69
  });
106
70
  let body;
107
- return new __HttpRequest({
108
- protocol,
109
- hostname,
110
- port,
111
- method: "GET",
112
- headers,
113
- path: resolvedPath,
114
- query,
115
- body,
116
- });
71
+ b.m("GET").h(headers).q(query).b(body);
72
+ return b.build();
117
73
  };
118
74
  export const se_ListZonalShiftsCommand = async (input, context) => {
119
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
75
+ const b = rb(input, context);
120
76
  const headers = {};
121
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/zonalshifts";
77
+ b.bp("/zonalshifts");
122
78
  const query = map({
123
- nextToken: [, input.nextToken],
124
- status: [, input.status],
125
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
126
- resourceIdentifier: [, input.resourceIdentifier],
79
+ [_nT]: [, input[_nT]],
80
+ [_s]: [, input[_s]],
81
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
82
+ [_rI]: [, input[_rI]],
127
83
  });
128
84
  let body;
129
- return new __HttpRequest({
130
- protocol,
131
- hostname,
132
- port,
133
- method: "GET",
134
- headers,
135
- path: resolvedPath,
136
- query,
137
- body,
138
- });
85
+ b.m("GET").h(headers).q(query).b(body);
86
+ return b.build();
139
87
  };
140
88
  export const se_StartZonalShiftCommand = async (input, context) => {
141
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
89
+ const b = rb(input, context);
142
90
  const headers = {
143
91
  "content-type": "application/json",
144
92
  };
145
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/zonalshifts";
93
+ b.bp("/zonalshifts");
146
94
  let body;
147
95
  body = JSON.stringify(take(input, {
148
96
  awayFrom: [],
@@ -150,23 +98,16 @@ export const se_StartZonalShiftCommand = async (input, context) => {
150
98
  expiresIn: [],
151
99
  resourceIdentifier: [],
152
100
  }));
153
- return new __HttpRequest({
154
- protocol,
155
- hostname,
156
- port,
157
- method: "POST",
158
- headers,
159
- path: resolvedPath,
160
- body,
161
- });
101
+ b.m("POST").h(headers).b(body);
102
+ return b.build();
162
103
  };
163
104
  export const se_UpdatePracticeRunConfigurationCommand = async (input, context) => {
164
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
105
+ const b = rb(input, context);
165
106
  const headers = {
166
107
  "content-type": "application/json",
167
108
  };
168
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/{resourceIdentifier}";
169
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
109
+ b.bp("/configuration/{resourceIdentifier}");
110
+ b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
170
111
  let body;
171
112
  body = JSON.stringify(take(input, {
172
113
  blockedDates: (_) => _json(_),
@@ -174,58 +115,37 @@ export const se_UpdatePracticeRunConfigurationCommand = async (input, context) =
174
115
  blockingAlarms: (_) => _json(_),
175
116
  outcomeAlarms: (_) => _json(_),
176
117
  }));
177
- return new __HttpRequest({
178
- protocol,
179
- hostname,
180
- port,
181
- method: "PATCH",
182
- headers,
183
- path: resolvedPath,
184
- body,
185
- });
118
+ b.m("PATCH").h(headers).b(body);
119
+ return b.build();
186
120
  };
187
121
  export const se_UpdateZonalAutoshiftConfigurationCommand = async (input, context) => {
188
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
122
+ const b = rb(input, context);
189
123
  const headers = {
190
124
  "content-type": "application/json",
191
125
  };
192
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managedresources/{resourceIdentifier}";
193
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
126
+ b.bp("/managedresources/{resourceIdentifier}");
127
+ b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
194
128
  let body;
195
129
  body = JSON.stringify(take(input, {
196
130
  zonalAutoshiftStatus: [],
197
131
  }));
198
- return new __HttpRequest({
199
- protocol,
200
- hostname,
201
- port,
202
- method: "PUT",
203
- headers,
204
- path: resolvedPath,
205
- body,
206
- });
132
+ b.m("PUT").h(headers).b(body);
133
+ return b.build();
207
134
  };
208
135
  export const se_UpdateZonalShiftCommand = async (input, context) => {
209
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
136
+ const b = rb(input, context);
210
137
  const headers = {
211
138
  "content-type": "application/json",
212
139
  };
213
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/zonalshifts/{zonalShiftId}";
214
- resolvedPath = __resolvedPath(resolvedPath, input, "zonalShiftId", () => input.zonalShiftId, "{zonalShiftId}", false);
140
+ b.bp("/zonalshifts/{zonalShiftId}");
141
+ b.p("zonalShiftId", () => input.zonalShiftId, "{zonalShiftId}", false);
215
142
  let body;
216
143
  body = JSON.stringify(take(input, {
217
144
  comment: [],
218
145
  expiresIn: [],
219
146
  }));
220
- return new __HttpRequest({
221
- protocol,
222
- hostname,
223
- port,
224
- method: "PATCH",
225
- headers,
226
- path: resolvedPath,
227
- body,
228
- });
147
+ b.m("PATCH").h(headers).b(body);
148
+ return b.build();
229
149
  };
230
150
  export const de_CancelZonalShiftCommand = async (output, context) => {
231
151
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -964,6 +884,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
964
884
  value !== "" &&
965
885
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
966
886
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
887
+ const _mR = "maxResults";
888
+ const _nT = "nextToken";
889
+ const _rI = "resourceIdentifier";
890
+ const _s = "status";
967
891
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
968
892
  if (encoded.length) {
969
893
  return JSON.parse(encoded);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-arc-zonal-shift",
3
3
  "description": "AWS SDK for JavaScript Arc Zonal Shift 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",