@aws-sdk/client-pipes 3.476.0 → 3.478.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.
- package/dist-cjs/pagination/ListPipesPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +71 -139
- package/dist-es/pagination/ListPipesPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +72 -140
- package/dist-types/pagination/ListPipesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListPipesPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListPipes = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListPipesCommand_1 = require("../commands/ListPipesCommand");
|
|
5
6
|
const PipesClient_1 = require("../PipesClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListPipesCommand_1.ListPipesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListPipes(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof PipesClient_1.PipesClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Pipes | PipesClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListPipes = paginateListPipes;
|
|
7
|
+
exports.paginateListPipes = (0, core_1.createPaginator)(PipesClient_1.PipesClient, ListPipesCommand_1.ListPipesCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -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
|
|
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
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
12
12
|
};
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
30
|
-
|
|
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
|
|
34
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
42
35
|
const headers = {};
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
b.bp("/v1/pipes/{Name}");
|
|
37
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
45
38
|
let body;
|
|
46
|
-
|
|
47
|
-
|
|
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
|
|
44
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
59
45
|
const headers = {};
|
|
60
|
-
|
|
61
|
-
|
|
46
|
+
b.bp("/v1/pipes/{Name}");
|
|
47
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
62
48
|
let body;
|
|
63
|
-
|
|
64
|
-
|
|
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
|
|
54
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
76
55
|
const headers = {};
|
|
77
|
-
|
|
56
|
+
b.bp("/v1/pipes");
|
|
78
57
|
const query = (0, smithy_client_1.map)({
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
|
|
89
|
-
|
|
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
|
|
72
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
102
73
|
const headers = {};
|
|
103
|
-
|
|
104
|
-
|
|
74
|
+
b.bp("/tags/{resourceArn}");
|
|
75
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
105
76
|
let body;
|
|
106
|
-
|
|
107
|
-
|
|
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
|
|
82
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
119
83
|
const headers = {};
|
|
120
|
-
|
|
121
|
-
|
|
84
|
+
b.bp("/v1/pipes/{Name}/start");
|
|
85
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
122
86
|
let body;
|
|
123
|
-
|
|
124
|
-
|
|
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
|
|
92
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
136
93
|
const headers = {};
|
|
137
|
-
|
|
138
|
-
|
|
94
|
+
b.bp("/v1/pipes/{Name}/stop");
|
|
95
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
139
96
|
let body;
|
|
140
|
-
|
|
141
|
-
|
|
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
|
|
102
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
153
103
|
const headers = {
|
|
154
104
|
"content-type": "application/json",
|
|
155
105
|
};
|
|
156
|
-
|
|
157
|
-
|
|
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
|
-
|
|
163
|
-
|
|
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
|
|
117
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
175
118
|
const headers = {};
|
|
176
|
-
|
|
177
|
-
|
|
119
|
+
b.bp("/tags/{resourceArn}");
|
|
120
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
178
121
|
const query = (0, smithy_client_1.map)({
|
|
179
|
-
|
|
122
|
+
[_tK]: [
|
|
180
123
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
181
|
-
() => (input
|
|
124
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
182
125
|
],
|
|
183
126
|
});
|
|
184
127
|
let body;
|
|
185
|
-
|
|
186
|
-
|
|
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
|
|
133
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
199
134
|
const headers = {
|
|
200
135
|
"content-type": "application/json",
|
|
201
136
|
};
|
|
202
|
-
|
|
203
|
-
|
|
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
|
-
|
|
217
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPipesCommand } from "../commands/ListPipesCommand";
|
|
2
3
|
import { PipesClient } from "../PipesClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPipesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPipes(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof PipesClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Pipes | PipesClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPipes = createPaginator(PipesClient, ListPipesCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
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,
|
|
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
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
27
|
-
|
|
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
|
|
30
|
+
const b = rb(input, context);
|
|
38
31
|
const headers = {};
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
b.bp("/v1/pipes/{Name}");
|
|
33
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
41
34
|
let body;
|
|
42
|
-
|
|
43
|
-
|
|
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
|
|
39
|
+
const b = rb(input, context);
|
|
54
40
|
const headers = {};
|
|
55
|
-
|
|
56
|
-
|
|
41
|
+
b.bp("/v1/pipes/{Name}");
|
|
42
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
57
43
|
let body;
|
|
58
|
-
|
|
59
|
-
|
|
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
|
|
48
|
+
const b = rb(input, context);
|
|
70
49
|
const headers = {};
|
|
71
|
-
|
|
50
|
+
b.bp("/v1/pipes");
|
|
72
51
|
const query = map({
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
-
|
|
83
|
-
|
|
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
|
|
65
|
+
const b = rb(input, context);
|
|
95
66
|
const headers = {};
|
|
96
|
-
|
|
97
|
-
|
|
67
|
+
b.bp("/tags/{resourceArn}");
|
|
68
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
98
69
|
let body;
|
|
99
|
-
|
|
100
|
-
|
|
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
|
|
74
|
+
const b = rb(input, context);
|
|
111
75
|
const headers = {};
|
|
112
|
-
|
|
113
|
-
|
|
76
|
+
b.bp("/v1/pipes/{Name}/start");
|
|
77
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
114
78
|
let body;
|
|
115
|
-
|
|
116
|
-
|
|
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
|
|
83
|
+
const b = rb(input, context);
|
|
127
84
|
const headers = {};
|
|
128
|
-
|
|
129
|
-
|
|
85
|
+
b.bp("/v1/pipes/{Name}/stop");
|
|
86
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
130
87
|
let body;
|
|
131
|
-
|
|
132
|
-
|
|
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
|
|
92
|
+
const b = rb(input, context);
|
|
143
93
|
const headers = {
|
|
144
94
|
"content-type": "application/json",
|
|
145
95
|
};
|
|
146
|
-
|
|
147
|
-
|
|
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
|
-
|
|
153
|
-
|
|
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
|
|
106
|
+
const b = rb(input, context);
|
|
164
107
|
const headers = {};
|
|
165
|
-
|
|
166
|
-
|
|
108
|
+
b.bp("/tags/{resourceArn}");
|
|
109
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
167
110
|
const query = map({
|
|
168
|
-
|
|
111
|
+
[_tK]: [
|
|
169
112
|
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
170
|
-
() => (input
|
|
113
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
171
114
|
],
|
|
172
115
|
});
|
|
173
116
|
let body;
|
|
174
|
-
|
|
175
|
-
|
|
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
|
|
121
|
+
const b = rb(input, context);
|
|
187
122
|
const headers = {
|
|
188
123
|
"content-type": "application/json",
|
|
189
124
|
};
|
|
190
|
-
|
|
191
|
-
|
|
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
|
-
|
|
205
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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);
|
|
@@ -4,4 +4,4 @@ import { PipesPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListPipes: (config: PipesPaginationConfiguration, input: ListPipesCommandInput, ...rest: any[]) => Paginator<ListPipesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListPipesCommandOutput,
|
|
5
5
|
} from "../commands/ListPipesCommand";
|
|
6
6
|
import { PipesPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListPipes: (
|
|
8
8
|
config: PipesPaginationConfiguration,
|
|
9
9
|
input: ListPipesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListPipesCommandOutput>;
|
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.
|
|
4
|
+
"version": "3.478.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,20 +20,21 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.478.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.478.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",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.468.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.478.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.470.0",
|
|
32
32
|
"@aws-sdk/types": "3.468.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.478.0",
|
|
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",
|