@aws-sdk/client-workspaces-thin-client 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/ListDevicesPaginator.js +2 -24
- package/dist-cjs/pagination/ListEnvironmentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSoftwareSetsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +112 -216
- package/dist-es/pagination/ListDevicesPaginator.js +2 -23
- package/dist-es/pagination/ListEnvironmentsPaginator.js +2 -23
- package/dist-es/pagination/ListSoftwareSetsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +114 -218
- package/dist-types/pagination/ListDevicesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEnvironmentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSoftwareSetsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListDevicesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSoftwareSetsPaginator.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.paginateListDevices = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDevicesCommand_1 = require("../commands/ListDevicesCommand");
|
|
5
6
|
const WorkSpacesThinClientClient_1 = require("../WorkSpacesThinClientClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDevicesCommand_1.ListDevicesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDevices(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["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkSpacesThinClientClient_1.WorkSpacesThinClientClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkSpacesThinClient | WorkSpacesThinClientClient");
|
|
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.paginateListDevices = paginateListDevices;
|
|
7
|
+
exports.paginateListDevices = (0, core_1.createPaginator)(WorkSpacesThinClientClient_1.WorkSpacesThinClientClient, ListDevicesCommand_1.ListDevicesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListEnvironments = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListEnvironmentsCommand_1 = require("../commands/ListEnvironmentsCommand");
|
|
5
6
|
const WorkSpacesThinClientClient_1 = require("../WorkSpacesThinClientClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListEnvironmentsCommand_1.ListEnvironmentsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListEnvironments(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["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkSpacesThinClientClient_1.WorkSpacesThinClientClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkSpacesThinClient | WorkSpacesThinClientClient");
|
|
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.paginateListEnvironments = paginateListEnvironments;
|
|
7
|
+
exports.paginateListEnvironments = (0, core_1.createPaginator)(WorkSpacesThinClientClient_1.WorkSpacesThinClientClient, ListEnvironmentsCommand_1.ListEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSoftwareSets = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListSoftwareSetsCommand_1 = require("../commands/ListSoftwareSetsCommand");
|
|
5
6
|
const WorkSpacesThinClientClient_1 = require("../WorkSpacesThinClientClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSoftwareSetsCommand_1.ListSoftwareSetsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSoftwareSets(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["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkSpacesThinClientClient_1.WorkSpacesThinClientClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkSpacesThinClient | WorkSpacesThinClientClient");
|
|
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.paginateListSoftwareSets = paginateListSoftwareSets;
|
|
7
|
+
exports.paginateListSoftwareSets = (0, core_1.createPaginator)(WorkSpacesThinClientClient_1.WorkSpacesThinClientClient, ListSoftwareSetsCommand_1.ListSoftwareSetsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_UpdateSoftwareSetCommand = exports.de_UpdateEnvironmentCommand = exports.de_UpdateDeviceCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSoftwareSetsCommand = exports.de_ListEnvironmentsCommand = exports.de_ListDevicesCommand = exports.de_GetSoftwareSetCommand = exports.de_GetEnvironmentCommand = exports.de_GetDeviceCommand = exports.de_DeregisterDeviceCommand = exports.de_DeleteEnvironmentCommand = exports.de_DeleteDeviceCommand = exports.de_CreateEnvironmentCommand = exports.se_UpdateSoftwareSetCommand = exports.se_UpdateEnvironmentCommand = exports.se_UpdateDeviceCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSoftwareSetsCommand = exports.se_ListEnvironmentsCommand = exports.se_ListDevicesCommand = exports.se_GetSoftwareSetCommand = exports.se_GetEnvironmentCommand = exports.se_GetDeviceCommand = exports.se_DeregisterDeviceCommand = exports.se_DeleteEnvironmentCommand = exports.se_DeleteDeviceCommand = exports.se_CreateEnvironmentCommand = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const uuid_1 = require("uuid");
|
|
7
8
|
const models_0_1 = require("../models/models_0");
|
|
8
9
|
const WorkSpacesThinClientServiceException_1 = require("../models/WorkSpacesThinClientServiceException");
|
|
9
10
|
const se_CreateEnvironmentCommand = async (input, context) => {
|
|
10
|
-
const
|
|
11
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
12
|
const headers = {
|
|
12
13
|
"content-type": "application/json",
|
|
13
14
|
};
|
|
14
|
-
|
|
15
|
+
b.bp("/environments");
|
|
15
16
|
let body;
|
|
16
17
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
18
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -32,24 +33,18 @@ const se_CreateEnvironmentCommand = async (input, context) => {
|
|
|
32
33
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
port,
|
|
39
|
-
method: "POST",
|
|
40
|
-
headers,
|
|
41
|
-
path: resolvedPath,
|
|
42
|
-
body,
|
|
43
|
-
});
|
|
36
|
+
b.hn(resolvedHostname);
|
|
37
|
+
b.m("POST").h(headers).b(body);
|
|
38
|
+
return b.build();
|
|
44
39
|
};
|
|
45
40
|
exports.se_CreateEnvironmentCommand = se_CreateEnvironmentCommand;
|
|
46
41
|
const se_DeleteDeviceCommand = async (input, context) => {
|
|
47
|
-
const
|
|
42
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
48
43
|
const headers = {};
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
b.bp("/devices/{id}");
|
|
45
|
+
b.p("id", () => input.id, "{id}", false);
|
|
51
46
|
const query = (0, smithy_client_1.map)({
|
|
52
|
-
|
|
47
|
+
[_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
|
|
53
48
|
});
|
|
54
49
|
let body;
|
|
55
50
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -59,25 +54,18 @@ const se_DeleteDeviceCommand = async (input, context) => {
|
|
|
59
54
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
60
55
|
}
|
|
61
56
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
port,
|
|
66
|
-
method: "DELETE",
|
|
67
|
-
headers,
|
|
68
|
-
path: resolvedPath,
|
|
69
|
-
query,
|
|
70
|
-
body,
|
|
71
|
-
});
|
|
57
|
+
b.hn(resolvedHostname);
|
|
58
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
59
|
+
return b.build();
|
|
72
60
|
};
|
|
73
61
|
exports.se_DeleteDeviceCommand = se_DeleteDeviceCommand;
|
|
74
62
|
const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
75
|
-
const
|
|
63
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
76
64
|
const headers = {};
|
|
77
|
-
|
|
78
|
-
|
|
65
|
+
b.bp("/environments/{id}");
|
|
66
|
+
b.p("id", () => input.id, "{id}", false);
|
|
79
67
|
const query = (0, smithy_client_1.map)({
|
|
80
|
-
|
|
68
|
+
[_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
|
|
81
69
|
});
|
|
82
70
|
let body;
|
|
83
71
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -87,25 +75,18 @@ const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
|
87
75
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
88
76
|
}
|
|
89
77
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
port,
|
|
94
|
-
method: "DELETE",
|
|
95
|
-
headers,
|
|
96
|
-
path: resolvedPath,
|
|
97
|
-
query,
|
|
98
|
-
body,
|
|
99
|
-
});
|
|
78
|
+
b.hn(resolvedHostname);
|
|
79
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
80
|
+
return b.build();
|
|
100
81
|
};
|
|
101
82
|
exports.se_DeleteEnvironmentCommand = se_DeleteEnvironmentCommand;
|
|
102
83
|
const se_DeregisterDeviceCommand = async (input, context) => {
|
|
103
|
-
const
|
|
84
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
104
85
|
const headers = {
|
|
105
86
|
"content-type": "application/json",
|
|
106
87
|
};
|
|
107
|
-
|
|
108
|
-
|
|
88
|
+
b.bp("/deregister-device/{id}");
|
|
89
|
+
b.p("id", () => input.id, "{id}", false);
|
|
109
90
|
let body;
|
|
110
91
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
111
92
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -118,22 +99,16 @@ const se_DeregisterDeviceCommand = async (input, context) => {
|
|
|
118
99
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
119
100
|
}
|
|
120
101
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
port,
|
|
125
|
-
method: "POST",
|
|
126
|
-
headers,
|
|
127
|
-
path: resolvedPath,
|
|
128
|
-
body,
|
|
129
|
-
});
|
|
102
|
+
b.hn(resolvedHostname);
|
|
103
|
+
b.m("POST").h(headers).b(body);
|
|
104
|
+
return b.build();
|
|
130
105
|
};
|
|
131
106
|
exports.se_DeregisterDeviceCommand = se_DeregisterDeviceCommand;
|
|
132
107
|
const se_GetDeviceCommand = async (input, context) => {
|
|
133
|
-
const
|
|
108
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
134
109
|
const headers = {};
|
|
135
|
-
|
|
136
|
-
|
|
110
|
+
b.bp("/devices/{id}");
|
|
111
|
+
b.p("id", () => input.id, "{id}", false);
|
|
137
112
|
let body;
|
|
138
113
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
139
114
|
if (context.disableHostPrefix !== true) {
|
|
@@ -142,22 +117,16 @@ const se_GetDeviceCommand = async (input, context) => {
|
|
|
142
117
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
143
118
|
}
|
|
144
119
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
port,
|
|
149
|
-
method: "GET",
|
|
150
|
-
headers,
|
|
151
|
-
path: resolvedPath,
|
|
152
|
-
body,
|
|
153
|
-
});
|
|
120
|
+
b.hn(resolvedHostname);
|
|
121
|
+
b.m("GET").h(headers).b(body);
|
|
122
|
+
return b.build();
|
|
154
123
|
};
|
|
155
124
|
exports.se_GetDeviceCommand = se_GetDeviceCommand;
|
|
156
125
|
const se_GetEnvironmentCommand = async (input, context) => {
|
|
157
|
-
const
|
|
126
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
158
127
|
const headers = {};
|
|
159
|
-
|
|
160
|
-
|
|
128
|
+
b.bp("/environments/{id}");
|
|
129
|
+
b.p("id", () => input.id, "{id}", false);
|
|
161
130
|
let body;
|
|
162
131
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
163
132
|
if (context.disableHostPrefix !== true) {
|
|
@@ -166,22 +135,16 @@ const se_GetEnvironmentCommand = async (input, context) => {
|
|
|
166
135
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
167
136
|
}
|
|
168
137
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
port,
|
|
173
|
-
method: "GET",
|
|
174
|
-
headers,
|
|
175
|
-
path: resolvedPath,
|
|
176
|
-
body,
|
|
177
|
-
});
|
|
138
|
+
b.hn(resolvedHostname);
|
|
139
|
+
b.m("GET").h(headers).b(body);
|
|
140
|
+
return b.build();
|
|
178
141
|
};
|
|
179
142
|
exports.se_GetEnvironmentCommand = se_GetEnvironmentCommand;
|
|
180
143
|
const se_GetSoftwareSetCommand = async (input, context) => {
|
|
181
|
-
const
|
|
144
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
182
145
|
const headers = {};
|
|
183
|
-
|
|
184
|
-
|
|
146
|
+
b.bp("/softwaresets/{id}");
|
|
147
|
+
b.p("id", () => input.id, "{id}", false);
|
|
185
148
|
let body;
|
|
186
149
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
187
150
|
if (context.disableHostPrefix !== true) {
|
|
@@ -190,24 +153,18 @@ const se_GetSoftwareSetCommand = async (input, context) => {
|
|
|
190
153
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
191
154
|
}
|
|
192
155
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
port,
|
|
197
|
-
method: "GET",
|
|
198
|
-
headers,
|
|
199
|
-
path: resolvedPath,
|
|
200
|
-
body,
|
|
201
|
-
});
|
|
156
|
+
b.hn(resolvedHostname);
|
|
157
|
+
b.m("GET").h(headers).b(body);
|
|
158
|
+
return b.build();
|
|
202
159
|
};
|
|
203
160
|
exports.se_GetSoftwareSetCommand = se_GetSoftwareSetCommand;
|
|
204
161
|
const se_ListDevicesCommand = async (input, context) => {
|
|
205
|
-
const
|
|
162
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
206
163
|
const headers = {};
|
|
207
|
-
|
|
164
|
+
b.bp("/devices");
|
|
208
165
|
const query = (0, smithy_client_1.map)({
|
|
209
|
-
|
|
210
|
-
|
|
166
|
+
[_nT]: [, input[_nT]],
|
|
167
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
211
168
|
});
|
|
212
169
|
let body;
|
|
213
170
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -217,25 +174,18 @@ const se_ListDevicesCommand = async (input, context) => {
|
|
|
217
174
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
218
175
|
}
|
|
219
176
|
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
port,
|
|
224
|
-
method: "GET",
|
|
225
|
-
headers,
|
|
226
|
-
path: resolvedPath,
|
|
227
|
-
query,
|
|
228
|
-
body,
|
|
229
|
-
});
|
|
177
|
+
b.hn(resolvedHostname);
|
|
178
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
179
|
+
return b.build();
|
|
230
180
|
};
|
|
231
181
|
exports.se_ListDevicesCommand = se_ListDevicesCommand;
|
|
232
182
|
const se_ListEnvironmentsCommand = async (input, context) => {
|
|
233
|
-
const
|
|
183
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
234
184
|
const headers = {};
|
|
235
|
-
|
|
185
|
+
b.bp("/environments");
|
|
236
186
|
const query = (0, smithy_client_1.map)({
|
|
237
|
-
|
|
238
|
-
|
|
187
|
+
[_nT]: [, input[_nT]],
|
|
188
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
239
189
|
});
|
|
240
190
|
let body;
|
|
241
191
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -245,25 +195,18 @@ const se_ListEnvironmentsCommand = async (input, context) => {
|
|
|
245
195
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
246
196
|
}
|
|
247
197
|
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
port,
|
|
252
|
-
method: "GET",
|
|
253
|
-
headers,
|
|
254
|
-
path: resolvedPath,
|
|
255
|
-
query,
|
|
256
|
-
body,
|
|
257
|
-
});
|
|
198
|
+
b.hn(resolvedHostname);
|
|
199
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
200
|
+
return b.build();
|
|
258
201
|
};
|
|
259
202
|
exports.se_ListEnvironmentsCommand = se_ListEnvironmentsCommand;
|
|
260
203
|
const se_ListSoftwareSetsCommand = async (input, context) => {
|
|
261
|
-
const
|
|
204
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
262
205
|
const headers = {};
|
|
263
|
-
|
|
206
|
+
b.bp("/softwaresets");
|
|
264
207
|
const query = (0, smithy_client_1.map)({
|
|
265
|
-
|
|
266
|
-
|
|
208
|
+
[_nT]: [, input[_nT]],
|
|
209
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
267
210
|
});
|
|
268
211
|
let body;
|
|
269
212
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -273,23 +216,16 @@ const se_ListSoftwareSetsCommand = async (input, context) => {
|
|
|
273
216
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
274
217
|
}
|
|
275
218
|
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
port,
|
|
280
|
-
method: "GET",
|
|
281
|
-
headers,
|
|
282
|
-
path: resolvedPath,
|
|
283
|
-
query,
|
|
284
|
-
body,
|
|
285
|
-
});
|
|
219
|
+
b.hn(resolvedHostname);
|
|
220
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
221
|
+
return b.build();
|
|
286
222
|
};
|
|
287
223
|
exports.se_ListSoftwareSetsCommand = se_ListSoftwareSetsCommand;
|
|
288
224
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
289
|
-
const
|
|
225
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
290
226
|
const headers = {};
|
|
291
|
-
|
|
292
|
-
|
|
227
|
+
b.bp("/tags/{resourceArn}");
|
|
228
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
293
229
|
let body;
|
|
294
230
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
295
231
|
if (context.disableHostPrefix !== true) {
|
|
@@ -298,24 +234,18 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
298
234
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
299
235
|
}
|
|
300
236
|
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
port,
|
|
305
|
-
method: "GET",
|
|
306
|
-
headers,
|
|
307
|
-
path: resolvedPath,
|
|
308
|
-
body,
|
|
309
|
-
});
|
|
237
|
+
b.hn(resolvedHostname);
|
|
238
|
+
b.m("GET").h(headers).b(body);
|
|
239
|
+
return b.build();
|
|
310
240
|
};
|
|
311
241
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
312
242
|
const se_TagResourceCommand = async (input, context) => {
|
|
313
|
-
const
|
|
243
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
314
244
|
const headers = {
|
|
315
245
|
"content-type": "application/json",
|
|
316
246
|
};
|
|
317
|
-
|
|
318
|
-
|
|
247
|
+
b.bp("/tags/{resourceArn}");
|
|
248
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
319
249
|
let body;
|
|
320
250
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
321
251
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -327,26 +257,20 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
327
257
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
328
258
|
}
|
|
329
259
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
port,
|
|
334
|
-
method: "POST",
|
|
335
|
-
headers,
|
|
336
|
-
path: resolvedPath,
|
|
337
|
-
body,
|
|
338
|
-
});
|
|
260
|
+
b.hn(resolvedHostname);
|
|
261
|
+
b.m("POST").h(headers).b(body);
|
|
262
|
+
return b.build();
|
|
339
263
|
};
|
|
340
264
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
341
265
|
const se_UntagResourceCommand = async (input, context) => {
|
|
342
|
-
const
|
|
266
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
343
267
|
const headers = {};
|
|
344
|
-
|
|
345
|
-
|
|
268
|
+
b.bp("/tags/{resourceArn}");
|
|
269
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
346
270
|
const query = (0, smithy_client_1.map)({
|
|
347
|
-
|
|
271
|
+
[_tK]: [
|
|
348
272
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
349
|
-
() => (input
|
|
273
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
350
274
|
],
|
|
351
275
|
});
|
|
352
276
|
let body;
|
|
@@ -357,25 +281,18 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
357
281
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
358
282
|
}
|
|
359
283
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
port,
|
|
364
|
-
method: "DELETE",
|
|
365
|
-
headers,
|
|
366
|
-
path: resolvedPath,
|
|
367
|
-
query,
|
|
368
|
-
body,
|
|
369
|
-
});
|
|
284
|
+
b.hn(resolvedHostname);
|
|
285
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
286
|
+
return b.build();
|
|
370
287
|
};
|
|
371
288
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
372
289
|
const se_UpdateDeviceCommand = async (input, context) => {
|
|
373
|
-
const
|
|
290
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
374
291
|
const headers = {
|
|
375
292
|
"content-type": "application/json",
|
|
376
293
|
};
|
|
377
|
-
|
|
378
|
-
|
|
294
|
+
b.bp("/devices/{id}");
|
|
295
|
+
b.p("id", () => input.id, "{id}", false);
|
|
379
296
|
let body;
|
|
380
297
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
381
298
|
desiredSoftwareSetId: [],
|
|
@@ -390,24 +307,18 @@ const se_UpdateDeviceCommand = async (input, context) => {
|
|
|
390
307
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
391
308
|
}
|
|
392
309
|
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
port,
|
|
397
|
-
method: "PATCH",
|
|
398
|
-
headers,
|
|
399
|
-
path: resolvedPath,
|
|
400
|
-
body,
|
|
401
|
-
});
|
|
310
|
+
b.hn(resolvedHostname);
|
|
311
|
+
b.m("PATCH").h(headers).b(body);
|
|
312
|
+
return b.build();
|
|
402
313
|
};
|
|
403
314
|
exports.se_UpdateDeviceCommand = se_UpdateDeviceCommand;
|
|
404
315
|
const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
405
|
-
const
|
|
316
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
406
317
|
const headers = {
|
|
407
318
|
"content-type": "application/json",
|
|
408
319
|
};
|
|
409
|
-
|
|
410
|
-
|
|
320
|
+
b.bp("/environments/{id}");
|
|
321
|
+
b.p("id", () => input.id, "{id}", false);
|
|
411
322
|
let body;
|
|
412
323
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
413
324
|
desiredSoftwareSetId: [],
|
|
@@ -425,24 +336,18 @@ const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
|
425
336
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
426
337
|
}
|
|
427
338
|
}
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
port,
|
|
432
|
-
method: "PATCH",
|
|
433
|
-
headers,
|
|
434
|
-
path: resolvedPath,
|
|
435
|
-
body,
|
|
436
|
-
});
|
|
339
|
+
b.hn(resolvedHostname);
|
|
340
|
+
b.m("PATCH").h(headers).b(body);
|
|
341
|
+
return b.build();
|
|
437
342
|
};
|
|
438
343
|
exports.se_UpdateEnvironmentCommand = se_UpdateEnvironmentCommand;
|
|
439
344
|
const se_UpdateSoftwareSetCommand = async (input, context) => {
|
|
440
|
-
const
|
|
345
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
441
346
|
const headers = {
|
|
442
347
|
"content-type": "application/json",
|
|
443
348
|
};
|
|
444
|
-
|
|
445
|
-
|
|
349
|
+
b.bp("/softwaresets/{id}");
|
|
350
|
+
b.p("id", () => input.id, "{id}", false);
|
|
446
351
|
let body;
|
|
447
352
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
448
353
|
validationStatus: [],
|
|
@@ -454,15 +359,9 @@ const se_UpdateSoftwareSetCommand = async (input, context) => {
|
|
|
454
359
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
455
360
|
}
|
|
456
361
|
}
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
port,
|
|
461
|
-
method: "PATCH",
|
|
462
|
-
headers,
|
|
463
|
-
path: resolvedPath,
|
|
464
|
-
body,
|
|
465
|
-
});
|
|
362
|
+
b.hn(resolvedHostname);
|
|
363
|
+
b.m("PATCH").h(headers).b(body);
|
|
364
|
+
return b.build();
|
|
466
365
|
};
|
|
467
366
|
exports.se_UpdateSoftwareSetCommand = se_UpdateSoftwareSetCommand;
|
|
468
367
|
const de_CreateEnvironmentCommand = async (output, context) => {
|
|
@@ -1199,10 +1098,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1199
1098
|
};
|
|
1200
1099
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1201
1100
|
const contents = (0, smithy_client_1.map)({
|
|
1202
|
-
|
|
1203
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
1204
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
1205
|
-
],
|
|
1101
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
1206
1102
|
});
|
|
1207
1103
|
const data = parsedOutput.body;
|
|
1208
1104
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -1217,10 +1113,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1217
1113
|
};
|
|
1218
1114
|
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
1219
1115
|
const contents = (0, smithy_client_1.map)({
|
|
1220
|
-
|
|
1221
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
1222
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
1223
|
-
],
|
|
1116
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
1224
1117
|
});
|
|
1225
1118
|
const data = parsedOutput.body;
|
|
1226
1119
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -1267,10 +1160,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1267
1160
|
};
|
|
1268
1161
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1269
1162
|
const contents = (0, smithy_client_1.map)({
|
|
1270
|
-
|
|
1271
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
1272
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
1273
|
-
],
|
|
1163
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
1274
1164
|
});
|
|
1275
1165
|
const data = parsedOutput.body;
|
|
1276
1166
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -1444,6 +1334,12 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1444
1334
|
value !== "" &&
|
|
1445
1335
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1446
1336
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1337
|
+
const _cT = "clientToken";
|
|
1338
|
+
const _mR = "maxResults";
|
|
1339
|
+
const _nT = "nextToken";
|
|
1340
|
+
const _rAS = "retryAfterSeconds";
|
|
1341
|
+
const _ra = "retry-after";
|
|
1342
|
+
const _tK = "tagKeys";
|
|
1447
1343
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1448
1344
|
if (encoded.length) {
|
|
1449
1345
|
return JSON.parse(encoded);
|