@aws-sdk/client-osis 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,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_ValidatePipelineCommand = exports.de_UpdatePipelineCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopPipelineCommand = exports.de_StartPipelineCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPipelinesCommand = exports.de_ListPipelineBlueprintsCommand = exports.de_GetPipelineChangeProgressCommand = exports.de_GetPipelineBlueprintCommand = exports.de_GetPipelineCommand = exports.de_DeletePipelineCommand = exports.de_CreatePipelineCommand = exports.se_ValidatePipelineCommand = exports.se_UpdatePipelineCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopPipelineCommand = exports.se_StartPipelineCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPipelinesCommand = exports.se_ListPipelineBlueprintsCommand = exports.se_GetPipelineChangeProgressCommand = exports.se_GetPipelineBlueprintCommand = exports.se_GetPipelineCommand = exports.se_DeletePipelineCommand = exports.se_CreatePipelineCommand = 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 models_0_1 = require("../models/models_0");
7
7
  const OSISServiceException_1 = require("../models/OSISServiceException");
8
8
  const se_CreatePipelineCommand = 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
11
  "content-type": "application/json",
12
12
  };
13
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/createPipeline";
13
+ b.bp("/2022-01-01/osis/createPipeline");
14
14
  let body;
15
15
  body = JSON.stringify((0, smithy_client_1.take)(input, {
16
16
  BufferOptions: (_) => (0, smithy_client_1._json)(_),
@@ -23,243 +23,148 @@ const se_CreatePipelineCommand = async (input, context) => {
23
23
  Tags: (_) => (0, smithy_client_1._json)(_),
24
24
  VpcOptions: (_) => (0, smithy_client_1._json)(_),
25
25
  }));
26
- return new protocol_http_1.HttpRequest({
27
- protocol,
28
- hostname,
29
- port,
30
- method: "POST",
31
- headers,
32
- path: resolvedPath,
33
- body,
34
- });
26
+ b.m("POST").h(headers).b(body);
27
+ return b.build();
35
28
  };
36
29
  exports.se_CreatePipelineCommand = se_CreatePipelineCommand;
37
30
  const se_DeletePipelineCommand = async (input, context) => {
38
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
31
+ const b = (0, core_1.requestBuilder)(input, context);
39
32
  const headers = {};
40
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
41
- "/2022-01-01/osis/deletePipeline/{PipelineName}";
42
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PipelineName", () => input.PipelineName, "{PipelineName}", false);
33
+ b.bp("/2022-01-01/osis/deletePipeline/{PipelineName}");
34
+ b.p("PipelineName", () => input.PipelineName, "{PipelineName}", false);
43
35
  let body;
44
- return new protocol_http_1.HttpRequest({
45
- protocol,
46
- hostname,
47
- port,
48
- method: "DELETE",
49
- headers,
50
- path: resolvedPath,
51
- body,
52
- });
36
+ b.m("DELETE").h(headers).b(body);
37
+ return b.build();
53
38
  };
54
39
  exports.se_DeletePipelineCommand = se_DeletePipelineCommand;
55
40
  const se_GetPipelineCommand = async (input, context) => {
56
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
41
+ const b = (0, core_1.requestBuilder)(input, context);
57
42
  const headers = {};
58
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
59
- "/2022-01-01/osis/getPipeline/{PipelineName}";
60
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PipelineName", () => input.PipelineName, "{PipelineName}", false);
43
+ b.bp("/2022-01-01/osis/getPipeline/{PipelineName}");
44
+ b.p("PipelineName", () => input.PipelineName, "{PipelineName}", false);
61
45
  let body;
62
- return new protocol_http_1.HttpRequest({
63
- protocol,
64
- hostname,
65
- port,
66
- method: "GET",
67
- headers,
68
- path: resolvedPath,
69
- body,
70
- });
46
+ b.m("GET").h(headers).b(body);
47
+ return b.build();
71
48
  };
72
49
  exports.se_GetPipelineCommand = se_GetPipelineCommand;
73
50
  const se_GetPipelineBlueprintCommand = async (input, context) => {
74
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
51
+ const b = (0, core_1.requestBuilder)(input, context);
75
52
  const headers = {};
76
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
77
- "/2022-01-01/osis/getPipelineBlueprint/{BlueprintName}";
78
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BlueprintName", () => input.BlueprintName, "{BlueprintName}", false);
53
+ b.bp("/2022-01-01/osis/getPipelineBlueprint/{BlueprintName}");
54
+ b.p("BlueprintName", () => input.BlueprintName, "{BlueprintName}", false);
79
55
  let body;
80
- return new protocol_http_1.HttpRequest({
81
- protocol,
82
- hostname,
83
- port,
84
- method: "GET",
85
- headers,
86
- path: resolvedPath,
87
- body,
88
- });
56
+ b.m("GET").h(headers).b(body);
57
+ return b.build();
89
58
  };
90
59
  exports.se_GetPipelineBlueprintCommand = se_GetPipelineBlueprintCommand;
91
60
  const se_GetPipelineChangeProgressCommand = async (input, context) => {
92
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
61
+ const b = (0, core_1.requestBuilder)(input, context);
93
62
  const headers = {};
94
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
95
- "/2022-01-01/osis/getPipelineChangeProgress/{PipelineName}";
96
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PipelineName", () => input.PipelineName, "{PipelineName}", false);
63
+ b.bp("/2022-01-01/osis/getPipelineChangeProgress/{PipelineName}");
64
+ b.p("PipelineName", () => input.PipelineName, "{PipelineName}", false);
97
65
  let body;
98
- return new protocol_http_1.HttpRequest({
99
- protocol,
100
- hostname,
101
- port,
102
- method: "GET",
103
- headers,
104
- path: resolvedPath,
105
- body,
106
- });
66
+ b.m("GET").h(headers).b(body);
67
+ return b.build();
107
68
  };
108
69
  exports.se_GetPipelineChangeProgressCommand = se_GetPipelineChangeProgressCommand;
109
70
  const se_ListPipelineBlueprintsCommand = async (input, context) => {
110
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
71
+ const b = (0, core_1.requestBuilder)(input, context);
111
72
  const headers = {
112
73
  "content-type": "application/json",
113
74
  };
114
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/listPipelineBlueprints";
75
+ b.bp("/2022-01-01/osis/listPipelineBlueprints");
115
76
  let body;
116
77
  body = "";
117
- return new protocol_http_1.HttpRequest({
118
- protocol,
119
- hostname,
120
- port,
121
- method: "POST",
122
- headers,
123
- path: resolvedPath,
124
- body,
125
- });
78
+ b.m("POST").h(headers).b(body);
79
+ return b.build();
126
80
  };
127
81
  exports.se_ListPipelineBlueprintsCommand = se_ListPipelineBlueprintsCommand;
128
82
  const se_ListPipelinesCommand = async (input, context) => {
129
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
83
+ const b = (0, core_1.requestBuilder)(input, context);
130
84
  const headers = {};
131
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/listPipelines";
85
+ b.bp("/2022-01-01/osis/listPipelines");
132
86
  const query = (0, smithy_client_1.map)({
133
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
134
- nextToken: [, input.NextToken],
87
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
88
+ [_nT]: [, input[_NT]],
135
89
  });
136
90
  let body;
137
- return new protocol_http_1.HttpRequest({
138
- protocol,
139
- hostname,
140
- port,
141
- method: "GET",
142
- headers,
143
- path: resolvedPath,
144
- query,
145
- body,
146
- });
91
+ b.m("GET").h(headers).q(query).b(body);
92
+ return b.build();
147
93
  };
148
94
  exports.se_ListPipelinesCommand = se_ListPipelinesCommand;
149
95
  const se_ListTagsForResourceCommand = async (input, context) => {
150
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
96
+ const b = (0, core_1.requestBuilder)(input, context);
151
97
  const headers = {};
152
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/listTagsForResource";
98
+ b.bp("/2022-01-01/osis/listTagsForResource");
153
99
  const query = (0, smithy_client_1.map)({
154
- arn: [, (0, smithy_client_1.expectNonNull)(input.Arn, `Arn`)],
100
+ [_a]: [, (0, smithy_client_1.expectNonNull)(input[_A], `Arn`)],
155
101
  });
156
102
  let body;
157
- return new protocol_http_1.HttpRequest({
158
- protocol,
159
- hostname,
160
- port,
161
- method: "GET",
162
- headers,
163
- path: resolvedPath,
164
- query,
165
- body,
166
- });
103
+ b.m("GET").h(headers).q(query).b(body);
104
+ return b.build();
167
105
  };
168
106
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
169
107
  const se_StartPipelineCommand = async (input, context) => {
170
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
108
+ const b = (0, core_1.requestBuilder)(input, context);
171
109
  const headers = {};
172
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
173
- "/2022-01-01/osis/startPipeline/{PipelineName}";
174
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PipelineName", () => input.PipelineName, "{PipelineName}", false);
110
+ b.bp("/2022-01-01/osis/startPipeline/{PipelineName}");
111
+ b.p("PipelineName", () => input.PipelineName, "{PipelineName}", false);
175
112
  let body;
176
- return new protocol_http_1.HttpRequest({
177
- protocol,
178
- hostname,
179
- port,
180
- method: "PUT",
181
- headers,
182
- path: resolvedPath,
183
- body,
184
- });
113
+ b.m("PUT").h(headers).b(body);
114
+ return b.build();
185
115
  };
186
116
  exports.se_StartPipelineCommand = se_StartPipelineCommand;
187
117
  const se_StopPipelineCommand = async (input, context) => {
188
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
118
+ const b = (0, core_1.requestBuilder)(input, context);
189
119
  const headers = {};
190
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
191
- "/2022-01-01/osis/stopPipeline/{PipelineName}";
192
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PipelineName", () => input.PipelineName, "{PipelineName}", false);
120
+ b.bp("/2022-01-01/osis/stopPipeline/{PipelineName}");
121
+ b.p("PipelineName", () => input.PipelineName, "{PipelineName}", false);
193
122
  let body;
194
- return new protocol_http_1.HttpRequest({
195
- protocol,
196
- hostname,
197
- port,
198
- method: "PUT",
199
- headers,
200
- path: resolvedPath,
201
- body,
202
- });
123
+ b.m("PUT").h(headers).b(body);
124
+ return b.build();
203
125
  };
204
126
  exports.se_StopPipelineCommand = se_StopPipelineCommand;
205
127
  const se_TagResourceCommand = async (input, context) => {
206
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
128
+ const b = (0, core_1.requestBuilder)(input, context);
207
129
  const headers = {
208
130
  "content-type": "application/json",
209
131
  };
210
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/tagResource";
132
+ b.bp("/2022-01-01/osis/tagResource");
211
133
  const query = (0, smithy_client_1.map)({
212
- arn: [, (0, smithy_client_1.expectNonNull)(input.Arn, `Arn`)],
134
+ [_a]: [, (0, smithy_client_1.expectNonNull)(input[_A], `Arn`)],
213
135
  });
214
136
  let body;
215
137
  body = JSON.stringify((0, smithy_client_1.take)(input, {
216
138
  Tags: (_) => (0, smithy_client_1._json)(_),
217
139
  }));
218
- return new protocol_http_1.HttpRequest({
219
- protocol,
220
- hostname,
221
- port,
222
- method: "POST",
223
- headers,
224
- path: resolvedPath,
225
- query,
226
- body,
227
- });
140
+ b.m("POST").h(headers).q(query).b(body);
141
+ return b.build();
228
142
  };
229
143
  exports.se_TagResourceCommand = se_TagResourceCommand;
230
144
  const se_UntagResourceCommand = async (input, context) => {
231
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
145
+ const b = (0, core_1.requestBuilder)(input, context);
232
146
  const headers = {
233
147
  "content-type": "application/json",
234
148
  };
235
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/untagResource";
149
+ b.bp("/2022-01-01/osis/untagResource");
236
150
  const query = (0, smithy_client_1.map)({
237
- arn: [, (0, smithy_client_1.expectNonNull)(input.Arn, `Arn`)],
151
+ [_a]: [, (0, smithy_client_1.expectNonNull)(input[_A], `Arn`)],
238
152
  });
239
153
  let body;
240
154
  body = JSON.stringify((0, smithy_client_1.take)(input, {
241
155
  TagKeys: (_) => (0, smithy_client_1._json)(_),
242
156
  }));
243
- return new protocol_http_1.HttpRequest({
244
- protocol,
245
- hostname,
246
- port,
247
- method: "POST",
248
- headers,
249
- path: resolvedPath,
250
- query,
251
- body,
252
- });
157
+ b.m("POST").h(headers).q(query).b(body);
158
+ return b.build();
253
159
  };
254
160
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
255
161
  const se_UpdatePipelineCommand = async (input, context) => {
256
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
162
+ const b = (0, core_1.requestBuilder)(input, context);
257
163
  const headers = {
258
164
  "content-type": "application/json",
259
165
  };
260
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
261
- "/2022-01-01/osis/updatePipeline/{PipelineName}";
262
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PipelineName", () => input.PipelineName, "{PipelineName}", false);
166
+ b.bp("/2022-01-01/osis/updatePipeline/{PipelineName}");
167
+ b.p("PipelineName", () => input.PipelineName, "{PipelineName}", false);
263
168
  let body;
264
169
  body = JSON.stringify((0, smithy_client_1.take)(input, {
265
170
  BufferOptions: (_) => (0, smithy_client_1._json)(_),
@@ -269,36 +174,22 @@ const se_UpdatePipelineCommand = async (input, context) => {
269
174
  MinUnits: [],
270
175
  PipelineConfigurationBody: [],
271
176
  }));
272
- return new protocol_http_1.HttpRequest({
273
- protocol,
274
- hostname,
275
- port,
276
- method: "PUT",
277
- headers,
278
- path: resolvedPath,
279
- body,
280
- });
177
+ b.m("PUT").h(headers).b(body);
178
+ return b.build();
281
179
  };
282
180
  exports.se_UpdatePipelineCommand = se_UpdatePipelineCommand;
283
181
  const se_ValidatePipelineCommand = async (input, context) => {
284
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
182
+ const b = (0, core_1.requestBuilder)(input, context);
285
183
  const headers = {
286
184
  "content-type": "application/json",
287
185
  };
288
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/validatePipeline";
186
+ b.bp("/2022-01-01/osis/validatePipeline");
289
187
  let body;
290
188
  body = JSON.stringify((0, smithy_client_1.take)(input, {
291
189
  PipelineConfigurationBody: [],
292
190
  }));
293
- return new protocol_http_1.HttpRequest({
294
- protocol,
295
- hostname,
296
- port,
297
- method: "POST",
298
- headers,
299
- path: resolvedPath,
300
- body,
301
- });
191
+ b.m("POST").h(headers).b(body);
192
+ return b.build();
302
193
  };
303
194
  exports.se_ValidatePipelineCommand = se_ValidatePipelineCommand;
304
195
  const de_CreatePipelineCommand = async (output, context) => {
@@ -1101,6 +992,12 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1101
992
  value !== "" &&
1102
993
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1103
994
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
995
+ const _A = "Arn";
996
+ const _MR = "MaxResults";
997
+ const _NT = "NextToken";
998
+ const _a = "arn";
999
+ const _mR = "maxResults";
1000
+ const _nT = "nextToken";
1104
1001
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1105
1002
  if (encoded.length) {
1106
1003
  return JSON.parse(encoded);
@@ -1,13 +1,13 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, 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, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { AccessDeniedException, ConflictException, InternalException, InvalidPaginationTokenException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
4
4
  import { OSISServiceException as __BaseException } from "../models/OSISServiceException";
5
5
  export const se_CreatePipelineCommand = 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
8
  "content-type": "application/json",
9
9
  };
10
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/createPipeline";
10
+ b.bp("/2022-01-01/osis/createPipeline");
11
11
  let body;
12
12
  body = JSON.stringify(take(input, {
13
13
  BufferOptions: (_) => _json(_),
@@ -20,231 +20,136 @@ export const se_CreatePipelineCommand = async (input, context) => {
20
20
  Tags: (_) => _json(_),
21
21
  VpcOptions: (_) => _json(_),
22
22
  }));
23
- return new __HttpRequest({
24
- protocol,
25
- hostname,
26
- port,
27
- method: "POST",
28
- headers,
29
- path: resolvedPath,
30
- body,
31
- });
23
+ b.m("POST").h(headers).b(body);
24
+ return b.build();
32
25
  };
33
26
  export const se_DeletePipelineCommand = async (input, context) => {
34
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
+ const b = rb(input, context);
35
28
  const headers = {};
36
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
37
- "/2022-01-01/osis/deletePipeline/{PipelineName}";
38
- resolvedPath = __resolvedPath(resolvedPath, input, "PipelineName", () => input.PipelineName, "{PipelineName}", false);
29
+ b.bp("/2022-01-01/osis/deletePipeline/{PipelineName}");
30
+ b.p("PipelineName", () => input.PipelineName, "{PipelineName}", false);
39
31
  let body;
40
- return new __HttpRequest({
41
- protocol,
42
- hostname,
43
- port,
44
- method: "DELETE",
45
- headers,
46
- path: resolvedPath,
47
- body,
48
- });
32
+ b.m("DELETE").h(headers).b(body);
33
+ return b.build();
49
34
  };
50
35
  export const se_GetPipelineCommand = async (input, context) => {
51
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
36
+ const b = rb(input, context);
52
37
  const headers = {};
53
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
54
- "/2022-01-01/osis/getPipeline/{PipelineName}";
55
- resolvedPath = __resolvedPath(resolvedPath, input, "PipelineName", () => input.PipelineName, "{PipelineName}", false);
38
+ b.bp("/2022-01-01/osis/getPipeline/{PipelineName}");
39
+ b.p("PipelineName", () => input.PipelineName, "{PipelineName}", false);
56
40
  let body;
57
- return new __HttpRequest({
58
- protocol,
59
- hostname,
60
- port,
61
- method: "GET",
62
- headers,
63
- path: resolvedPath,
64
- body,
65
- });
41
+ b.m("GET").h(headers).b(body);
42
+ return b.build();
66
43
  };
67
44
  export const se_GetPipelineBlueprintCommand = async (input, context) => {
68
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
45
+ const b = rb(input, context);
69
46
  const headers = {};
70
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
71
- "/2022-01-01/osis/getPipelineBlueprint/{BlueprintName}";
72
- resolvedPath = __resolvedPath(resolvedPath, input, "BlueprintName", () => input.BlueprintName, "{BlueprintName}", false);
47
+ b.bp("/2022-01-01/osis/getPipelineBlueprint/{BlueprintName}");
48
+ b.p("BlueprintName", () => input.BlueprintName, "{BlueprintName}", false);
73
49
  let body;
74
- return new __HttpRequest({
75
- protocol,
76
- hostname,
77
- port,
78
- method: "GET",
79
- headers,
80
- path: resolvedPath,
81
- body,
82
- });
50
+ b.m("GET").h(headers).b(body);
51
+ return b.build();
83
52
  };
84
53
  export const se_GetPipelineChangeProgressCommand = async (input, context) => {
85
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
54
+ const b = rb(input, context);
86
55
  const headers = {};
87
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
88
- "/2022-01-01/osis/getPipelineChangeProgress/{PipelineName}";
89
- resolvedPath = __resolvedPath(resolvedPath, input, "PipelineName", () => input.PipelineName, "{PipelineName}", false);
56
+ b.bp("/2022-01-01/osis/getPipelineChangeProgress/{PipelineName}");
57
+ b.p("PipelineName", () => input.PipelineName, "{PipelineName}", false);
90
58
  let body;
91
- return new __HttpRequest({
92
- protocol,
93
- hostname,
94
- port,
95
- method: "GET",
96
- headers,
97
- path: resolvedPath,
98
- body,
99
- });
59
+ b.m("GET").h(headers).b(body);
60
+ return b.build();
100
61
  };
101
62
  export const se_ListPipelineBlueprintsCommand = async (input, context) => {
102
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
63
+ const b = rb(input, context);
103
64
  const headers = {
104
65
  "content-type": "application/json",
105
66
  };
106
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/listPipelineBlueprints";
67
+ b.bp("/2022-01-01/osis/listPipelineBlueprints");
107
68
  let body;
108
69
  body = "";
109
- return new __HttpRequest({
110
- protocol,
111
- hostname,
112
- port,
113
- method: "POST",
114
- headers,
115
- path: resolvedPath,
116
- body,
117
- });
70
+ b.m("POST").h(headers).b(body);
71
+ return b.build();
118
72
  };
119
73
  export const se_ListPipelinesCommand = async (input, context) => {
120
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
74
+ const b = rb(input, context);
121
75
  const headers = {};
122
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/listPipelines";
76
+ b.bp("/2022-01-01/osis/listPipelines");
123
77
  const query = map({
124
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
125
- nextToken: [, input.NextToken],
78
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
79
+ [_nT]: [, input[_NT]],
126
80
  });
127
81
  let body;
128
- return new __HttpRequest({
129
- protocol,
130
- hostname,
131
- port,
132
- method: "GET",
133
- headers,
134
- path: resolvedPath,
135
- query,
136
- body,
137
- });
82
+ b.m("GET").h(headers).q(query).b(body);
83
+ return b.build();
138
84
  };
139
85
  export const se_ListTagsForResourceCommand = async (input, context) => {
140
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
86
+ const b = rb(input, context);
141
87
  const headers = {};
142
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/listTagsForResource";
88
+ b.bp("/2022-01-01/osis/listTagsForResource");
143
89
  const query = map({
144
- arn: [, __expectNonNull(input.Arn, `Arn`)],
90
+ [_a]: [, __expectNonNull(input[_A], `Arn`)],
145
91
  });
146
92
  let body;
147
- return new __HttpRequest({
148
- protocol,
149
- hostname,
150
- port,
151
- method: "GET",
152
- headers,
153
- path: resolvedPath,
154
- query,
155
- body,
156
- });
93
+ b.m("GET").h(headers).q(query).b(body);
94
+ return b.build();
157
95
  };
158
96
  export const se_StartPipelineCommand = async (input, context) => {
159
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
97
+ const b = rb(input, context);
160
98
  const headers = {};
161
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
162
- "/2022-01-01/osis/startPipeline/{PipelineName}";
163
- resolvedPath = __resolvedPath(resolvedPath, input, "PipelineName", () => input.PipelineName, "{PipelineName}", false);
99
+ b.bp("/2022-01-01/osis/startPipeline/{PipelineName}");
100
+ b.p("PipelineName", () => input.PipelineName, "{PipelineName}", false);
164
101
  let body;
165
- return new __HttpRequest({
166
- protocol,
167
- hostname,
168
- port,
169
- method: "PUT",
170
- headers,
171
- path: resolvedPath,
172
- body,
173
- });
102
+ b.m("PUT").h(headers).b(body);
103
+ return b.build();
174
104
  };
175
105
  export const se_StopPipelineCommand = async (input, context) => {
176
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
106
+ const b = rb(input, context);
177
107
  const headers = {};
178
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
179
- "/2022-01-01/osis/stopPipeline/{PipelineName}";
180
- resolvedPath = __resolvedPath(resolvedPath, input, "PipelineName", () => input.PipelineName, "{PipelineName}", false);
108
+ b.bp("/2022-01-01/osis/stopPipeline/{PipelineName}");
109
+ b.p("PipelineName", () => input.PipelineName, "{PipelineName}", false);
181
110
  let body;
182
- return new __HttpRequest({
183
- protocol,
184
- hostname,
185
- port,
186
- method: "PUT",
187
- headers,
188
- path: resolvedPath,
189
- body,
190
- });
111
+ b.m("PUT").h(headers).b(body);
112
+ return b.build();
191
113
  };
192
114
  export const se_TagResourceCommand = async (input, context) => {
193
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
115
+ const b = rb(input, context);
194
116
  const headers = {
195
117
  "content-type": "application/json",
196
118
  };
197
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/tagResource";
119
+ b.bp("/2022-01-01/osis/tagResource");
198
120
  const query = map({
199
- arn: [, __expectNonNull(input.Arn, `Arn`)],
121
+ [_a]: [, __expectNonNull(input[_A], `Arn`)],
200
122
  });
201
123
  let body;
202
124
  body = JSON.stringify(take(input, {
203
125
  Tags: (_) => _json(_),
204
126
  }));
205
- return new __HttpRequest({
206
- protocol,
207
- hostname,
208
- port,
209
- method: "POST",
210
- headers,
211
- path: resolvedPath,
212
- query,
213
- body,
214
- });
127
+ b.m("POST").h(headers).q(query).b(body);
128
+ return b.build();
215
129
  };
216
130
  export const se_UntagResourceCommand = async (input, context) => {
217
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
131
+ const b = rb(input, context);
218
132
  const headers = {
219
133
  "content-type": "application/json",
220
134
  };
221
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/untagResource";
135
+ b.bp("/2022-01-01/osis/untagResource");
222
136
  const query = map({
223
- arn: [, __expectNonNull(input.Arn, `Arn`)],
137
+ [_a]: [, __expectNonNull(input[_A], `Arn`)],
224
138
  });
225
139
  let body;
226
140
  body = JSON.stringify(take(input, {
227
141
  TagKeys: (_) => _json(_),
228
142
  }));
229
- return new __HttpRequest({
230
- protocol,
231
- hostname,
232
- port,
233
- method: "POST",
234
- headers,
235
- path: resolvedPath,
236
- query,
237
- body,
238
- });
143
+ b.m("POST").h(headers).q(query).b(body);
144
+ return b.build();
239
145
  };
240
146
  export const se_UpdatePipelineCommand = async (input, context) => {
241
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
147
+ const b = rb(input, context);
242
148
  const headers = {
243
149
  "content-type": "application/json",
244
150
  };
245
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
246
- "/2022-01-01/osis/updatePipeline/{PipelineName}";
247
- resolvedPath = __resolvedPath(resolvedPath, input, "PipelineName", () => input.PipelineName, "{PipelineName}", false);
151
+ b.bp("/2022-01-01/osis/updatePipeline/{PipelineName}");
152
+ b.p("PipelineName", () => input.PipelineName, "{PipelineName}", false);
248
153
  let body;
249
154
  body = JSON.stringify(take(input, {
250
155
  BufferOptions: (_) => _json(_),
@@ -254,35 +159,21 @@ export const se_UpdatePipelineCommand = async (input, context) => {
254
159
  MinUnits: [],
255
160
  PipelineConfigurationBody: [],
256
161
  }));
257
- return new __HttpRequest({
258
- protocol,
259
- hostname,
260
- port,
261
- method: "PUT",
262
- headers,
263
- path: resolvedPath,
264
- body,
265
- });
162
+ b.m("PUT").h(headers).b(body);
163
+ return b.build();
266
164
  };
267
165
  export const se_ValidatePipelineCommand = async (input, context) => {
268
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
166
+ const b = rb(input, context);
269
167
  const headers = {
270
168
  "content-type": "application/json",
271
169
  };
272
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/validatePipeline";
170
+ b.bp("/2022-01-01/osis/validatePipeline");
273
171
  let body;
274
172
  body = JSON.stringify(take(input, {
275
173
  PipelineConfigurationBody: [],
276
174
  }));
277
- return new __HttpRequest({
278
- protocol,
279
- hostname,
280
- port,
281
- method: "POST",
282
- headers,
283
- path: resolvedPath,
284
- body,
285
- });
175
+ b.m("POST").h(headers).b(body);
176
+ return b.build();
286
177
  };
287
178
  export const de_CreatePipelineCommand = async (output, context) => {
288
179
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1070,6 +961,12 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1070
961
  value !== "" &&
1071
962
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1072
963
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
964
+ const _A = "Arn";
965
+ const _MR = "MaxResults";
966
+ const _NT = "NextToken";
967
+ const _a = "arn";
968
+ const _mR = "maxResults";
969
+ const _nT = "nextToken";
1073
970
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1074
971
  if (encoded.length) {
1075
972
  return JSON.parse(encoded);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-osis",
3
3
  "description": "AWS SDK for JavaScript Osis 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",