@aws-sdk/client-pipes 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,17 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_UpdatePipeCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopPipeCommand = exports.de_StartPipeCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPipesCommand = exports.de_DescribePipeCommand = exports.de_DeletePipeCommand = exports.de_CreatePipeCommand = exports.se_UpdatePipeCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopPipeCommand = exports.se_StartPipeCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPipesCommand = exports.se_DescribePipeCommand = exports.se_DeletePipeCommand = exports.se_CreatePipeCommand = 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 PipesServiceException_1 = require("../models/PipesServiceException");
8
8
  const se_CreatePipeCommand = 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
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}";
14
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
13
+ b.bp("/v1/pipes/{Name}");
14
+ b.p("Name", () => input.Name, "{Name}", false);
15
15
  let body;
16
16
  body = JSON.stringify((0, smithy_client_1.take)(input, {
17
17
  Description: [],
@@ -26,181 +26,116 @@ const se_CreatePipeCommand = async (input, context) => {
26
26
  Target: [],
27
27
  TargetParameters: (_) => (0, smithy_client_1._json)(_),
28
28
  }));
29
- return new protocol_http_1.HttpRequest({
30
- protocol,
31
- hostname,
32
- port,
33
- method: "POST",
34
- headers,
35
- path: resolvedPath,
36
- body,
37
- });
29
+ b.m("POST").h(headers).b(body);
30
+ return b.build();
38
31
  };
39
32
  exports.se_CreatePipeCommand = se_CreatePipeCommand;
40
33
  const se_DeletePipeCommand = async (input, context) => {
41
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
34
+ const b = (0, core_1.requestBuilder)(input, context);
42
35
  const headers = {};
43
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}";
44
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
36
+ b.bp("/v1/pipes/{Name}");
37
+ b.p("Name", () => input.Name, "{Name}", false);
45
38
  let body;
46
- return new protocol_http_1.HttpRequest({
47
- protocol,
48
- hostname,
49
- port,
50
- method: "DELETE",
51
- headers,
52
- path: resolvedPath,
53
- body,
54
- });
39
+ b.m("DELETE").h(headers).b(body);
40
+ return b.build();
55
41
  };
56
42
  exports.se_DeletePipeCommand = se_DeletePipeCommand;
57
43
  const se_DescribePipeCommand = async (input, context) => {
58
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
44
+ const b = (0, core_1.requestBuilder)(input, context);
59
45
  const headers = {};
60
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}";
61
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
46
+ b.bp("/v1/pipes/{Name}");
47
+ b.p("Name", () => input.Name, "{Name}", false);
62
48
  let body;
63
- return new protocol_http_1.HttpRequest({
64
- protocol,
65
- hostname,
66
- port,
67
- method: "GET",
68
- headers,
69
- path: resolvedPath,
70
- body,
71
- });
49
+ b.m("GET").h(headers).b(body);
50
+ return b.build();
72
51
  };
73
52
  exports.se_DescribePipeCommand = se_DescribePipeCommand;
74
53
  const se_ListPipesCommand = async (input, context) => {
75
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
54
+ const b = (0, core_1.requestBuilder)(input, context);
76
55
  const headers = {};
77
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes";
56
+ b.bp("/v1/pipes");
78
57
  const query = (0, smithy_client_1.map)({
79
- NamePrefix: [, input.NamePrefix],
80
- DesiredState: [, input.DesiredState],
81
- CurrentState: [, input.CurrentState],
82
- SourcePrefix: [, input.SourcePrefix],
83
- TargetPrefix: [, input.TargetPrefix],
84
- NextToken: [, input.NextToken],
85
- Limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
58
+ [_NP]: [, input[_NP]],
59
+ [_DS]: [, input[_DS]],
60
+ [_CS]: [, input[_CS]],
61
+ [_SP]: [, input[_SP]],
62
+ [_TP]: [, input[_TP]],
63
+ [_NT]: [, input[_NT]],
64
+ [_L]: [() => input.Limit !== void 0, () => input[_L].toString()],
86
65
  });
87
66
  let body;
88
- return new protocol_http_1.HttpRequest({
89
- protocol,
90
- hostname,
91
- port,
92
- method: "GET",
93
- headers,
94
- path: resolvedPath,
95
- query,
96
- body,
97
- });
67
+ b.m("GET").h(headers).q(query).b(body);
68
+ return b.build();
98
69
  };
99
70
  exports.se_ListPipesCommand = se_ListPipesCommand;
100
71
  const se_ListTagsForResourceCommand = async (input, context) => {
101
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
72
+ const b = (0, core_1.requestBuilder)(input, context);
102
73
  const headers = {};
103
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
104
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
74
+ b.bp("/tags/{resourceArn}");
75
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
105
76
  let body;
106
- return new protocol_http_1.HttpRequest({
107
- protocol,
108
- hostname,
109
- port,
110
- method: "GET",
111
- headers,
112
- path: resolvedPath,
113
- body,
114
- });
77
+ b.m("GET").h(headers).b(body);
78
+ return b.build();
115
79
  };
116
80
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
117
81
  const se_StartPipeCommand = async (input, context) => {
118
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
82
+ const b = (0, core_1.requestBuilder)(input, context);
119
83
  const headers = {};
120
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}/start";
121
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
84
+ b.bp("/v1/pipes/{Name}/start");
85
+ b.p("Name", () => input.Name, "{Name}", false);
122
86
  let body;
123
- return new protocol_http_1.HttpRequest({
124
- protocol,
125
- hostname,
126
- port,
127
- method: "POST",
128
- headers,
129
- path: resolvedPath,
130
- body,
131
- });
87
+ b.m("POST").h(headers).b(body);
88
+ return b.build();
132
89
  };
133
90
  exports.se_StartPipeCommand = se_StartPipeCommand;
134
91
  const se_StopPipeCommand = async (input, context) => {
135
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
92
+ const b = (0, core_1.requestBuilder)(input, context);
136
93
  const headers = {};
137
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}/stop";
138
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
94
+ b.bp("/v1/pipes/{Name}/stop");
95
+ b.p("Name", () => input.Name, "{Name}", false);
139
96
  let body;
140
- return new protocol_http_1.HttpRequest({
141
- protocol,
142
- hostname,
143
- port,
144
- method: "POST",
145
- headers,
146
- path: resolvedPath,
147
- body,
148
- });
97
+ b.m("POST").h(headers).b(body);
98
+ return b.build();
149
99
  };
150
100
  exports.se_StopPipeCommand = se_StopPipeCommand;
151
101
  const se_TagResourceCommand = async (input, context) => {
152
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
102
+ const b = (0, core_1.requestBuilder)(input, context);
153
103
  const headers = {
154
104
  "content-type": "application/json",
155
105
  };
156
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
157
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
106
+ b.bp("/tags/{resourceArn}");
107
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
158
108
  let body;
159
109
  body = JSON.stringify((0, smithy_client_1.take)(input, {
160
110
  tags: (_) => (0, smithy_client_1._json)(_),
161
111
  }));
162
- return new protocol_http_1.HttpRequest({
163
- protocol,
164
- hostname,
165
- port,
166
- method: "POST",
167
- headers,
168
- path: resolvedPath,
169
- body,
170
- });
112
+ b.m("POST").h(headers).b(body);
113
+ return b.build();
171
114
  };
172
115
  exports.se_TagResourceCommand = se_TagResourceCommand;
173
116
  const se_UntagResourceCommand = async (input, context) => {
174
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
117
+ const b = (0, core_1.requestBuilder)(input, context);
175
118
  const headers = {};
176
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
177
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
119
+ b.bp("/tags/{resourceArn}");
120
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
178
121
  const query = (0, smithy_client_1.map)({
179
- tagKeys: [
122
+ [_tK]: [
180
123
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
181
- () => (input.tagKeys || []).map((_entry) => _entry),
124
+ () => (input[_tK] || []).map((_entry) => _entry),
182
125
  ],
183
126
  });
184
127
  let body;
185
- return new protocol_http_1.HttpRequest({
186
- protocol,
187
- hostname,
188
- port,
189
- method: "DELETE",
190
- headers,
191
- path: resolvedPath,
192
- query,
193
- body,
194
- });
128
+ b.m("DELETE").h(headers).q(query).b(body);
129
+ return b.build();
195
130
  };
196
131
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
197
132
  const se_UpdatePipeCommand = async (input, context) => {
198
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
133
+ const b = (0, core_1.requestBuilder)(input, context);
199
134
  const headers = {
200
135
  "content-type": "application/json",
201
136
  };
202
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}";
203
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
137
+ b.bp("/v1/pipes/{Name}");
138
+ b.p("Name", () => input.Name, "{Name}", false);
204
139
  let body;
205
140
  body = JSON.stringify((0, smithy_client_1.take)(input, {
206
141
  Description: [],
@@ -213,15 +148,8 @@ const se_UpdatePipeCommand = async (input, context) => {
213
148
  Target: [],
214
149
  TargetParameters: (_) => (0, smithy_client_1._json)(_),
215
150
  }));
216
- return new protocol_http_1.HttpRequest({
217
- protocol,
218
- hostname,
219
- port,
220
- method: "PUT",
221
- headers,
222
- path: resolvedPath,
223
- body,
224
- });
151
+ b.m("PUT").h(headers).b(body);
152
+ return b.build();
225
153
  };
226
154
  exports.se_UpdatePipeCommand = se_UpdatePipeCommand;
227
155
  const de_CreatePipeCommand = async (output, context) => {
@@ -712,10 +640,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
712
640
  };
713
641
  const de_InternalExceptionRes = async (parsedOutput, context) => {
714
642
  const contents = (0, smithy_client_1.map)({
715
- retryAfterSeconds: [
716
- () => void 0 !== parsedOutput.headers["retry-after"],
717
- () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
718
- ],
643
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
719
644
  });
720
645
  const data = parsedOutput.body;
721
646
  const doc = (0, smithy_client_1.take)(data, {
@@ -760,10 +685,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
760
685
  };
761
686
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
762
687
  const contents = (0, smithy_client_1.map)({
763
- retryAfterSeconds: [
764
- () => void 0 !== parsedOutput.headers["retry-after"],
765
- () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
766
- ],
688
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
767
689
  });
768
690
  const data = parsedOutput.body;
769
691
  const doc = (0, smithy_client_1.take)(data, {
@@ -876,6 +798,16 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
876
798
  value !== "" &&
877
799
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
878
800
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
801
+ const _CS = "CurrentState";
802
+ const _DS = "DesiredState";
803
+ const _L = "Limit";
804
+ const _NP = "NamePrefix";
805
+ const _NT = "NextToken";
806
+ const _SP = "SourcePrefix";
807
+ const _TP = "TargetPrefix";
808
+ const _rAS = "retryAfterSeconds";
809
+ const _ra = "retry-after";
810
+ const _tK = "tagKeys";
879
811
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
880
812
  if (encoded.length) {
881
813
  return JSON.parse(encoded);
@@ -1,14 +1,14 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { ConflictException, InternalException, NotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
4
4
  import { PipesServiceException as __BaseException } from "../models/PipesServiceException";
5
5
  export const se_CreatePipeCommand = 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
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}";
11
- resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
10
+ b.bp("/v1/pipes/{Name}");
11
+ b.p("Name", () => input.Name, "{Name}", false);
12
12
  let body;
13
13
  body = JSON.stringify(take(input, {
14
14
  Description: [],
@@ -23,172 +23,107 @@ export const se_CreatePipeCommand = async (input, context) => {
23
23
  Target: [],
24
24
  TargetParameters: (_) => _json(_),
25
25
  }));
26
- return new __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
  export const se_DeletePipeCommand = async (input, context) => {
37
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
30
+ const b = rb(input, context);
38
31
  const headers = {};
39
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}";
40
- resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
32
+ b.bp("/v1/pipes/{Name}");
33
+ b.p("Name", () => input.Name, "{Name}", false);
41
34
  let body;
42
- return new __HttpRequest({
43
- protocol,
44
- hostname,
45
- port,
46
- method: "DELETE",
47
- headers,
48
- path: resolvedPath,
49
- body,
50
- });
35
+ b.m("DELETE").h(headers).b(body);
36
+ return b.build();
51
37
  };
52
38
  export const se_DescribePipeCommand = async (input, context) => {
53
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
39
+ const b = rb(input, context);
54
40
  const headers = {};
55
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}";
56
- resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
41
+ b.bp("/v1/pipes/{Name}");
42
+ b.p("Name", () => input.Name, "{Name}", false);
57
43
  let body;
58
- return new __HttpRequest({
59
- protocol,
60
- hostname,
61
- port,
62
- method: "GET",
63
- headers,
64
- path: resolvedPath,
65
- body,
66
- });
44
+ b.m("GET").h(headers).b(body);
45
+ return b.build();
67
46
  };
68
47
  export const se_ListPipesCommand = async (input, context) => {
69
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
48
+ const b = rb(input, context);
70
49
  const headers = {};
71
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes";
50
+ b.bp("/v1/pipes");
72
51
  const query = map({
73
- NamePrefix: [, input.NamePrefix],
74
- DesiredState: [, input.DesiredState],
75
- CurrentState: [, input.CurrentState],
76
- SourcePrefix: [, input.SourcePrefix],
77
- TargetPrefix: [, input.TargetPrefix],
78
- NextToken: [, input.NextToken],
79
- Limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
52
+ [_NP]: [, input[_NP]],
53
+ [_DS]: [, input[_DS]],
54
+ [_CS]: [, input[_CS]],
55
+ [_SP]: [, input[_SP]],
56
+ [_TP]: [, input[_TP]],
57
+ [_NT]: [, input[_NT]],
58
+ [_L]: [() => input.Limit !== void 0, () => input[_L].toString()],
80
59
  });
81
60
  let body;
82
- return new __HttpRequest({
83
- protocol,
84
- hostname,
85
- port,
86
- method: "GET",
87
- headers,
88
- path: resolvedPath,
89
- query,
90
- body,
91
- });
61
+ b.m("GET").h(headers).q(query).b(body);
62
+ return b.build();
92
63
  };
93
64
  export const se_ListTagsForResourceCommand = async (input, context) => {
94
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
65
+ const b = rb(input, context);
95
66
  const headers = {};
96
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
97
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
67
+ b.bp("/tags/{resourceArn}");
68
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
98
69
  let body;
99
- return new __HttpRequest({
100
- protocol,
101
- hostname,
102
- port,
103
- method: "GET",
104
- headers,
105
- path: resolvedPath,
106
- body,
107
- });
70
+ b.m("GET").h(headers).b(body);
71
+ return b.build();
108
72
  };
109
73
  export const se_StartPipeCommand = async (input, context) => {
110
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
74
+ const b = rb(input, context);
111
75
  const headers = {};
112
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}/start";
113
- resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
76
+ b.bp("/v1/pipes/{Name}/start");
77
+ b.p("Name", () => input.Name, "{Name}", false);
114
78
  let body;
115
- return new __HttpRequest({
116
- protocol,
117
- hostname,
118
- port,
119
- method: "POST",
120
- headers,
121
- path: resolvedPath,
122
- body,
123
- });
79
+ b.m("POST").h(headers).b(body);
80
+ return b.build();
124
81
  };
125
82
  export const se_StopPipeCommand = async (input, context) => {
126
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
83
+ const b = rb(input, context);
127
84
  const headers = {};
128
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}/stop";
129
- resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
85
+ b.bp("/v1/pipes/{Name}/stop");
86
+ b.p("Name", () => input.Name, "{Name}", false);
130
87
  let body;
131
- return new __HttpRequest({
132
- protocol,
133
- hostname,
134
- port,
135
- method: "POST",
136
- headers,
137
- path: resolvedPath,
138
- body,
139
- });
88
+ b.m("POST").h(headers).b(body);
89
+ return b.build();
140
90
  };
141
91
  export const se_TagResourceCommand = async (input, context) => {
142
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
92
+ const b = rb(input, context);
143
93
  const headers = {
144
94
  "content-type": "application/json",
145
95
  };
146
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
147
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
96
+ b.bp("/tags/{resourceArn}");
97
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
148
98
  let body;
149
99
  body = JSON.stringify(take(input, {
150
100
  tags: (_) => _json(_),
151
101
  }));
152
- return new __HttpRequest({
153
- protocol,
154
- hostname,
155
- port,
156
- method: "POST",
157
- headers,
158
- path: resolvedPath,
159
- body,
160
- });
102
+ b.m("POST").h(headers).b(body);
103
+ return b.build();
161
104
  };
162
105
  export const se_UntagResourceCommand = async (input, context) => {
163
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
106
+ const b = rb(input, context);
164
107
  const headers = {};
165
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
166
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
108
+ b.bp("/tags/{resourceArn}");
109
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
167
110
  const query = map({
168
- tagKeys: [
111
+ [_tK]: [
169
112
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
170
- () => (input.tagKeys || []).map((_entry) => _entry),
113
+ () => (input[_tK] || []).map((_entry) => _entry),
171
114
  ],
172
115
  });
173
116
  let body;
174
- return new __HttpRequest({
175
- protocol,
176
- hostname,
177
- port,
178
- method: "DELETE",
179
- headers,
180
- path: resolvedPath,
181
- query,
182
- body,
183
- });
117
+ b.m("DELETE").h(headers).q(query).b(body);
118
+ return b.build();
184
119
  };
185
120
  export const se_UpdatePipeCommand = async (input, context) => {
186
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
121
+ const b = rb(input, context);
187
122
  const headers = {
188
123
  "content-type": "application/json",
189
124
  };
190
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}";
191
- resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
125
+ b.bp("/v1/pipes/{Name}");
126
+ b.p("Name", () => input.Name, "{Name}", false);
192
127
  let body;
193
128
  body = JSON.stringify(take(input, {
194
129
  Description: [],
@@ -201,15 +136,8 @@ export const se_UpdatePipeCommand = async (input, context) => {
201
136
  Target: [],
202
137
  TargetParameters: (_) => _json(_),
203
138
  }));
204
- return new __HttpRequest({
205
- protocol,
206
- hostname,
207
- port,
208
- method: "PUT",
209
- headers,
210
- path: resolvedPath,
211
- body,
212
- });
139
+ b.m("PUT").h(headers).b(body);
140
+ return b.build();
213
141
  };
214
142
  export const de_CreatePipeCommand = async (output, context) => {
215
143
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -689,10 +617,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
689
617
  };
690
618
  const de_InternalExceptionRes = async (parsedOutput, context) => {
691
619
  const contents = map({
692
- retryAfterSeconds: [
693
- () => void 0 !== parsedOutput.headers["retry-after"],
694
- () => __strictParseInt32(parsedOutput.headers["retry-after"]),
695
- ],
620
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
696
621
  });
697
622
  const data = parsedOutput.body;
698
623
  const doc = take(data, {
@@ -737,10 +662,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
737
662
  };
738
663
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
739
664
  const contents = map({
740
- retryAfterSeconds: [
741
- () => void 0 !== parsedOutput.headers["retry-after"],
742
- () => __strictParseInt32(parsedOutput.headers["retry-after"]),
743
- ],
665
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
744
666
  });
745
667
  const data = parsedOutput.body;
746
668
  const doc = take(data, {
@@ -853,6 +775,16 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
853
775
  value !== "" &&
854
776
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
855
777
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
778
+ const _CS = "CurrentState";
779
+ const _DS = "DesiredState";
780
+ const _L = "Limit";
781
+ const _NP = "NamePrefix";
782
+ const _NT = "NextToken";
783
+ const _SP = "SourcePrefix";
784
+ const _TP = "TargetPrefix";
785
+ const _rAS = "retryAfterSeconds";
786
+ const _ra = "retry-after";
787
+ const _tK = "tagKeys";
856
788
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
857
789
  if (encoded.length) {
858
790
  return JSON.parse(encoded);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pipes",
3
3
  "description": "AWS SDK for JavaScript Pipes 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",