@aws-sdk/client-ssm-sap 3.476.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,105 +1,77 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_UpdateApplicationSettingsCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartApplicationRefreshCommand = exports.de_RegisterApplicationCommand = exports.de_PutResourcePermissionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListOperationsCommand = exports.de_ListDatabasesCommand = exports.de_ListComponentsCommand = exports.de_ListApplicationsCommand = exports.de_GetResourcePermissionCommand = exports.de_GetOperationCommand = exports.de_GetDatabaseCommand = exports.de_GetComponentCommand = exports.de_GetApplicationCommand = exports.de_DeregisterApplicationCommand = exports.de_DeleteResourcePermissionCommand = exports.se_UpdateApplicationSettingsCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartApplicationRefreshCommand = exports.se_RegisterApplicationCommand = exports.se_PutResourcePermissionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListOperationsCommand = exports.se_ListDatabasesCommand = exports.se_ListComponentsCommand = exports.se_ListApplicationsCommand = exports.se_GetResourcePermissionCommand = exports.se_GetOperationCommand = exports.se_GetDatabaseCommand = exports.se_GetComponentCommand = exports.se_GetApplicationCommand = exports.se_DeregisterApplicationCommand = exports.se_DeleteResourcePermissionCommand = 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 SsmSapServiceException_1 = require("../models/SsmSapServiceException");
|
|
8
8
|
const se_DeleteResourcePermissionCommand = 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
|
-
|
|
13
|
+
b.bp("/delete-resource-permission");
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
16
|
ActionType: [],
|
|
17
17
|
ResourceArn: [],
|
|
18
18
|
SourceResourceArn: [],
|
|
19
19
|
}));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
hostname,
|
|
23
|
-
port,
|
|
24
|
-
method: "POST",
|
|
25
|
-
headers,
|
|
26
|
-
path: resolvedPath,
|
|
27
|
-
body,
|
|
28
|
-
});
|
|
20
|
+
b.m("POST").h(headers).b(body);
|
|
21
|
+
return b.build();
|
|
29
22
|
};
|
|
30
23
|
exports.se_DeleteResourcePermissionCommand = se_DeleteResourcePermissionCommand;
|
|
31
24
|
const se_DeregisterApplicationCommand = async (input, context) => {
|
|
32
|
-
const
|
|
25
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
33
26
|
const headers = {
|
|
34
27
|
"content-type": "application/json",
|
|
35
28
|
};
|
|
36
|
-
|
|
29
|
+
b.bp("/deregister-application");
|
|
37
30
|
let body;
|
|
38
31
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
39
32
|
ApplicationId: [],
|
|
40
33
|
}));
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
hostname,
|
|
44
|
-
port,
|
|
45
|
-
method: "POST",
|
|
46
|
-
headers,
|
|
47
|
-
path: resolvedPath,
|
|
48
|
-
body,
|
|
49
|
-
});
|
|
34
|
+
b.m("POST").h(headers).b(body);
|
|
35
|
+
return b.build();
|
|
50
36
|
};
|
|
51
37
|
exports.se_DeregisterApplicationCommand = se_DeregisterApplicationCommand;
|
|
52
38
|
const se_GetApplicationCommand = async (input, context) => {
|
|
53
|
-
const
|
|
39
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
54
40
|
const headers = {
|
|
55
41
|
"content-type": "application/json",
|
|
56
42
|
};
|
|
57
|
-
|
|
43
|
+
b.bp("/get-application");
|
|
58
44
|
let body;
|
|
59
45
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
60
46
|
AppRegistryArn: [],
|
|
61
47
|
ApplicationArn: [],
|
|
62
48
|
ApplicationId: [],
|
|
63
49
|
}));
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
hostname,
|
|
67
|
-
port,
|
|
68
|
-
method: "POST",
|
|
69
|
-
headers,
|
|
70
|
-
path: resolvedPath,
|
|
71
|
-
body,
|
|
72
|
-
});
|
|
50
|
+
b.m("POST").h(headers).b(body);
|
|
51
|
+
return b.build();
|
|
73
52
|
};
|
|
74
53
|
exports.se_GetApplicationCommand = se_GetApplicationCommand;
|
|
75
54
|
const se_GetComponentCommand = async (input, context) => {
|
|
76
|
-
const
|
|
55
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
77
56
|
const headers = {
|
|
78
57
|
"content-type": "application/json",
|
|
79
58
|
};
|
|
80
|
-
|
|
59
|
+
b.bp("/get-component");
|
|
81
60
|
let body;
|
|
82
61
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
83
62
|
ApplicationId: [],
|
|
84
63
|
ComponentId: [],
|
|
85
64
|
}));
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
hostname,
|
|
89
|
-
port,
|
|
90
|
-
method: "POST",
|
|
91
|
-
headers,
|
|
92
|
-
path: resolvedPath,
|
|
93
|
-
body,
|
|
94
|
-
});
|
|
65
|
+
b.m("POST").h(headers).b(body);
|
|
66
|
+
return b.build();
|
|
95
67
|
};
|
|
96
68
|
exports.se_GetComponentCommand = se_GetComponentCommand;
|
|
97
69
|
const se_GetDatabaseCommand = async (input, context) => {
|
|
98
|
-
const
|
|
70
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
99
71
|
const headers = {
|
|
100
72
|
"content-type": "application/json",
|
|
101
73
|
};
|
|
102
|
-
|
|
74
|
+
b.bp("/get-database");
|
|
103
75
|
let body;
|
|
104
76
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
105
77
|
ApplicationId: [],
|
|
@@ -107,112 +79,77 @@ const se_GetDatabaseCommand = async (input, context) => {
|
|
|
107
79
|
DatabaseArn: [],
|
|
108
80
|
DatabaseId: [],
|
|
109
81
|
}));
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
hostname,
|
|
113
|
-
port,
|
|
114
|
-
method: "POST",
|
|
115
|
-
headers,
|
|
116
|
-
path: resolvedPath,
|
|
117
|
-
body,
|
|
118
|
-
});
|
|
82
|
+
b.m("POST").h(headers).b(body);
|
|
83
|
+
return b.build();
|
|
119
84
|
};
|
|
120
85
|
exports.se_GetDatabaseCommand = se_GetDatabaseCommand;
|
|
121
86
|
const se_GetOperationCommand = async (input, context) => {
|
|
122
|
-
const
|
|
87
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
123
88
|
const headers = {
|
|
124
89
|
"content-type": "application/json",
|
|
125
90
|
};
|
|
126
|
-
|
|
91
|
+
b.bp("/get-operation");
|
|
127
92
|
let body;
|
|
128
93
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
129
94
|
OperationId: [],
|
|
130
95
|
}));
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
hostname,
|
|
134
|
-
port,
|
|
135
|
-
method: "POST",
|
|
136
|
-
headers,
|
|
137
|
-
path: resolvedPath,
|
|
138
|
-
body,
|
|
139
|
-
});
|
|
96
|
+
b.m("POST").h(headers).b(body);
|
|
97
|
+
return b.build();
|
|
140
98
|
};
|
|
141
99
|
exports.se_GetOperationCommand = se_GetOperationCommand;
|
|
142
100
|
const se_GetResourcePermissionCommand = async (input, context) => {
|
|
143
|
-
const
|
|
101
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
144
102
|
const headers = {
|
|
145
103
|
"content-type": "application/json",
|
|
146
104
|
};
|
|
147
|
-
|
|
105
|
+
b.bp("/get-resource-permission");
|
|
148
106
|
let body;
|
|
149
107
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
150
108
|
ActionType: [],
|
|
151
109
|
ResourceArn: [],
|
|
152
110
|
}));
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
hostname,
|
|
156
|
-
port,
|
|
157
|
-
method: "POST",
|
|
158
|
-
headers,
|
|
159
|
-
path: resolvedPath,
|
|
160
|
-
body,
|
|
161
|
-
});
|
|
111
|
+
b.m("POST").h(headers).b(body);
|
|
112
|
+
return b.build();
|
|
162
113
|
};
|
|
163
114
|
exports.se_GetResourcePermissionCommand = se_GetResourcePermissionCommand;
|
|
164
115
|
const se_ListApplicationsCommand = async (input, context) => {
|
|
165
|
-
const
|
|
116
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
166
117
|
const headers = {
|
|
167
118
|
"content-type": "application/json",
|
|
168
119
|
};
|
|
169
|
-
|
|
120
|
+
b.bp("/list-applications");
|
|
170
121
|
let body;
|
|
171
122
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
172
123
|
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
173
124
|
MaxResults: [],
|
|
174
125
|
NextToken: [],
|
|
175
126
|
}));
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
hostname,
|
|
179
|
-
port,
|
|
180
|
-
method: "POST",
|
|
181
|
-
headers,
|
|
182
|
-
path: resolvedPath,
|
|
183
|
-
body,
|
|
184
|
-
});
|
|
127
|
+
b.m("POST").h(headers).b(body);
|
|
128
|
+
return b.build();
|
|
185
129
|
};
|
|
186
130
|
exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
|
|
187
131
|
const se_ListComponentsCommand = async (input, context) => {
|
|
188
|
-
const
|
|
132
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
189
133
|
const headers = {
|
|
190
134
|
"content-type": "application/json",
|
|
191
135
|
};
|
|
192
|
-
|
|
136
|
+
b.bp("/list-components");
|
|
193
137
|
let body;
|
|
194
138
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
195
139
|
ApplicationId: [],
|
|
196
140
|
MaxResults: [],
|
|
197
141
|
NextToken: [],
|
|
198
142
|
}));
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
hostname,
|
|
202
|
-
port,
|
|
203
|
-
method: "POST",
|
|
204
|
-
headers,
|
|
205
|
-
path: resolvedPath,
|
|
206
|
-
body,
|
|
207
|
-
});
|
|
143
|
+
b.m("POST").h(headers).b(body);
|
|
144
|
+
return b.build();
|
|
208
145
|
};
|
|
209
146
|
exports.se_ListComponentsCommand = se_ListComponentsCommand;
|
|
210
147
|
const se_ListDatabasesCommand = async (input, context) => {
|
|
211
|
-
const
|
|
148
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
212
149
|
const headers = {
|
|
213
150
|
"content-type": "application/json",
|
|
214
151
|
};
|
|
215
|
-
|
|
152
|
+
b.bp("/list-databases");
|
|
216
153
|
let body;
|
|
217
154
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
218
155
|
ApplicationId: [],
|
|
@@ -220,23 +157,16 @@ const se_ListDatabasesCommand = async (input, context) => {
|
|
|
220
157
|
MaxResults: [],
|
|
221
158
|
NextToken: [],
|
|
222
159
|
}));
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
hostname,
|
|
226
|
-
port,
|
|
227
|
-
method: "POST",
|
|
228
|
-
headers,
|
|
229
|
-
path: resolvedPath,
|
|
230
|
-
body,
|
|
231
|
-
});
|
|
160
|
+
b.m("POST").h(headers).b(body);
|
|
161
|
+
return b.build();
|
|
232
162
|
};
|
|
233
163
|
exports.se_ListDatabasesCommand = se_ListDatabasesCommand;
|
|
234
164
|
const se_ListOperationsCommand = async (input, context) => {
|
|
235
|
-
const
|
|
165
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
236
166
|
const headers = {
|
|
237
167
|
"content-type": "application/json",
|
|
238
168
|
};
|
|
239
|
-
|
|
169
|
+
b.bp("/list-operations");
|
|
240
170
|
let body;
|
|
241
171
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
242
172
|
ApplicationId: [],
|
|
@@ -244,63 +174,42 @@ const se_ListOperationsCommand = async (input, context) => {
|
|
|
244
174
|
MaxResults: [],
|
|
245
175
|
NextToken: [],
|
|
246
176
|
}));
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
hostname,
|
|
250
|
-
port,
|
|
251
|
-
method: "POST",
|
|
252
|
-
headers,
|
|
253
|
-
path: resolvedPath,
|
|
254
|
-
body,
|
|
255
|
-
});
|
|
177
|
+
b.m("POST").h(headers).b(body);
|
|
178
|
+
return b.build();
|
|
256
179
|
};
|
|
257
180
|
exports.se_ListOperationsCommand = se_ListOperationsCommand;
|
|
258
181
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
259
|
-
const
|
|
182
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
260
183
|
const headers = {};
|
|
261
|
-
|
|
262
|
-
|
|
184
|
+
b.bp("/tags/{resourceArn}");
|
|
185
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
263
186
|
let body;
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
hostname,
|
|
267
|
-
port,
|
|
268
|
-
method: "GET",
|
|
269
|
-
headers,
|
|
270
|
-
path: resolvedPath,
|
|
271
|
-
body,
|
|
272
|
-
});
|
|
187
|
+
b.m("GET").h(headers).b(body);
|
|
188
|
+
return b.build();
|
|
273
189
|
};
|
|
274
190
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
275
191
|
const se_PutResourcePermissionCommand = async (input, context) => {
|
|
276
|
-
const
|
|
192
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
277
193
|
const headers = {
|
|
278
194
|
"content-type": "application/json",
|
|
279
195
|
};
|
|
280
|
-
|
|
196
|
+
b.bp("/put-resource-permission");
|
|
281
197
|
let body;
|
|
282
198
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
283
199
|
ActionType: [],
|
|
284
200
|
ResourceArn: [],
|
|
285
201
|
SourceResourceArn: [],
|
|
286
202
|
}));
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
hostname,
|
|
290
|
-
port,
|
|
291
|
-
method: "POST",
|
|
292
|
-
headers,
|
|
293
|
-
path: resolvedPath,
|
|
294
|
-
body,
|
|
295
|
-
});
|
|
203
|
+
b.m("POST").h(headers).b(body);
|
|
204
|
+
return b.build();
|
|
296
205
|
};
|
|
297
206
|
exports.se_PutResourcePermissionCommand = se_PutResourcePermissionCommand;
|
|
298
207
|
const se_RegisterApplicationCommand = async (input, context) => {
|
|
299
|
-
const
|
|
208
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
300
209
|
const headers = {
|
|
301
210
|
"content-type": "application/json",
|
|
302
211
|
};
|
|
303
|
-
|
|
212
|
+
b.bp("/register-application");
|
|
304
213
|
let body;
|
|
305
214
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
306
215
|
ApplicationId: [],
|
|
@@ -312,90 +221,61 @@ const se_RegisterApplicationCommand = async (input, context) => {
|
|
|
312
221
|
Sid: [],
|
|
313
222
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
314
223
|
}));
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
hostname,
|
|
318
|
-
port,
|
|
319
|
-
method: "POST",
|
|
320
|
-
headers,
|
|
321
|
-
path: resolvedPath,
|
|
322
|
-
body,
|
|
323
|
-
});
|
|
224
|
+
b.m("POST").h(headers).b(body);
|
|
225
|
+
return b.build();
|
|
324
226
|
};
|
|
325
227
|
exports.se_RegisterApplicationCommand = se_RegisterApplicationCommand;
|
|
326
228
|
const se_StartApplicationRefreshCommand = async (input, context) => {
|
|
327
|
-
const
|
|
229
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
328
230
|
const headers = {
|
|
329
231
|
"content-type": "application/json",
|
|
330
232
|
};
|
|
331
|
-
|
|
233
|
+
b.bp("/start-application-refresh");
|
|
332
234
|
let body;
|
|
333
235
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
334
236
|
ApplicationId: [],
|
|
335
237
|
}));
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
hostname,
|
|
339
|
-
port,
|
|
340
|
-
method: "POST",
|
|
341
|
-
headers,
|
|
342
|
-
path: resolvedPath,
|
|
343
|
-
body,
|
|
344
|
-
});
|
|
238
|
+
b.m("POST").h(headers).b(body);
|
|
239
|
+
return b.build();
|
|
345
240
|
};
|
|
346
241
|
exports.se_StartApplicationRefreshCommand = se_StartApplicationRefreshCommand;
|
|
347
242
|
const se_TagResourceCommand = async (input, context) => {
|
|
348
|
-
const
|
|
243
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
349
244
|
const headers = {
|
|
350
245
|
"content-type": "application/json",
|
|
351
246
|
};
|
|
352
|
-
|
|
353
|
-
|
|
247
|
+
b.bp("/tags/{resourceArn}");
|
|
248
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
354
249
|
let body;
|
|
355
250
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
356
251
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
357
252
|
}));
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
hostname,
|
|
361
|
-
port,
|
|
362
|
-
method: "POST",
|
|
363
|
-
headers,
|
|
364
|
-
path: resolvedPath,
|
|
365
|
-
body,
|
|
366
|
-
});
|
|
253
|
+
b.m("POST").h(headers).b(body);
|
|
254
|
+
return b.build();
|
|
367
255
|
};
|
|
368
256
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
369
257
|
const se_UntagResourceCommand = async (input, context) => {
|
|
370
|
-
const
|
|
258
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
371
259
|
const headers = {};
|
|
372
|
-
|
|
373
|
-
|
|
260
|
+
b.bp("/tags/{resourceArn}");
|
|
261
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
374
262
|
const query = (0, smithy_client_1.map)({
|
|
375
|
-
|
|
263
|
+
[_tK]: [
|
|
376
264
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
377
|
-
() => (input
|
|
265
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
378
266
|
],
|
|
379
267
|
});
|
|
380
268
|
let body;
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
hostname,
|
|
384
|
-
port,
|
|
385
|
-
method: "DELETE",
|
|
386
|
-
headers,
|
|
387
|
-
path: resolvedPath,
|
|
388
|
-
query,
|
|
389
|
-
body,
|
|
390
|
-
});
|
|
269
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
270
|
+
return b.build();
|
|
391
271
|
};
|
|
392
272
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
393
273
|
const se_UpdateApplicationSettingsCommand = async (input, context) => {
|
|
394
|
-
const
|
|
274
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
395
275
|
const headers = {
|
|
396
276
|
"content-type": "application/json",
|
|
397
277
|
};
|
|
398
|
-
|
|
278
|
+
b.bp("/update-application-settings");
|
|
399
279
|
let body;
|
|
400
280
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
401
281
|
ApplicationId: [],
|
|
@@ -404,15 +284,8 @@ const se_UpdateApplicationSettingsCommand = async (input, context) => {
|
|
|
404
284
|
CredentialsToRemove: (_) => (0, smithy_client_1._json)(_),
|
|
405
285
|
DatabaseArn: [],
|
|
406
286
|
}));
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
hostname,
|
|
410
|
-
port,
|
|
411
|
-
method: "POST",
|
|
412
|
-
headers,
|
|
413
|
-
path: resolvedPath,
|
|
414
|
-
body,
|
|
415
|
-
});
|
|
287
|
+
b.m("POST").h(headers).b(body);
|
|
288
|
+
return b.build();
|
|
416
289
|
};
|
|
417
290
|
exports.se_UpdateApplicationSettingsCommand = se_UpdateApplicationSettingsCommand;
|
|
418
291
|
const de_DeleteResourcePermissionCommand = async (output, context) => {
|
|
@@ -1301,6 +1174,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1301
1174
|
value !== "" &&
|
|
1302
1175
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1303
1176
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1177
|
+
const _tK = "tagKeys";
|
|
1304
1178
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1305
1179
|
if (encoded.length) {
|
|
1306
1180
|
return JSON.parse(encoded);
|
|
@@ -1,98 +1,70 @@
|
|
|
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, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { ConflictException, InternalServerException, ResourceNotFoundException, UnauthorizedException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { SsmSapServiceException as __BaseException } from "../models/SsmSapServiceException";
|
|
5
5
|
export const se_DeleteResourcePermissionCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
b.bp("/delete-resource-permission");
|
|
11
11
|
let body;
|
|
12
12
|
body = JSON.stringify(take(input, {
|
|
13
13
|
ActionType: [],
|
|
14
14
|
ResourceArn: [],
|
|
15
15
|
SourceResourceArn: [],
|
|
16
16
|
}));
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
hostname,
|
|
20
|
-
port,
|
|
21
|
-
method: "POST",
|
|
22
|
-
headers,
|
|
23
|
-
path: resolvedPath,
|
|
24
|
-
body,
|
|
25
|
-
});
|
|
17
|
+
b.m("POST").h(headers).b(body);
|
|
18
|
+
return b.build();
|
|
26
19
|
};
|
|
27
20
|
export const se_DeregisterApplicationCommand = async (input, context) => {
|
|
28
|
-
const
|
|
21
|
+
const b = rb(input, context);
|
|
29
22
|
const headers = {
|
|
30
23
|
"content-type": "application/json",
|
|
31
24
|
};
|
|
32
|
-
|
|
25
|
+
b.bp("/deregister-application");
|
|
33
26
|
let body;
|
|
34
27
|
body = JSON.stringify(take(input, {
|
|
35
28
|
ApplicationId: [],
|
|
36
29
|
}));
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
hostname,
|
|
40
|
-
port,
|
|
41
|
-
method: "POST",
|
|
42
|
-
headers,
|
|
43
|
-
path: resolvedPath,
|
|
44
|
-
body,
|
|
45
|
-
});
|
|
30
|
+
b.m("POST").h(headers).b(body);
|
|
31
|
+
return b.build();
|
|
46
32
|
};
|
|
47
33
|
export const se_GetApplicationCommand = async (input, context) => {
|
|
48
|
-
const
|
|
34
|
+
const b = rb(input, context);
|
|
49
35
|
const headers = {
|
|
50
36
|
"content-type": "application/json",
|
|
51
37
|
};
|
|
52
|
-
|
|
38
|
+
b.bp("/get-application");
|
|
53
39
|
let body;
|
|
54
40
|
body = JSON.stringify(take(input, {
|
|
55
41
|
AppRegistryArn: [],
|
|
56
42
|
ApplicationArn: [],
|
|
57
43
|
ApplicationId: [],
|
|
58
44
|
}));
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
hostname,
|
|
62
|
-
port,
|
|
63
|
-
method: "POST",
|
|
64
|
-
headers,
|
|
65
|
-
path: resolvedPath,
|
|
66
|
-
body,
|
|
67
|
-
});
|
|
45
|
+
b.m("POST").h(headers).b(body);
|
|
46
|
+
return b.build();
|
|
68
47
|
};
|
|
69
48
|
export const se_GetComponentCommand = async (input, context) => {
|
|
70
|
-
const
|
|
49
|
+
const b = rb(input, context);
|
|
71
50
|
const headers = {
|
|
72
51
|
"content-type": "application/json",
|
|
73
52
|
};
|
|
74
|
-
|
|
53
|
+
b.bp("/get-component");
|
|
75
54
|
let body;
|
|
76
55
|
body = JSON.stringify(take(input, {
|
|
77
56
|
ApplicationId: [],
|
|
78
57
|
ComponentId: [],
|
|
79
58
|
}));
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
hostname,
|
|
83
|
-
port,
|
|
84
|
-
method: "POST",
|
|
85
|
-
headers,
|
|
86
|
-
path: resolvedPath,
|
|
87
|
-
body,
|
|
88
|
-
});
|
|
59
|
+
b.m("POST").h(headers).b(body);
|
|
60
|
+
return b.build();
|
|
89
61
|
};
|
|
90
62
|
export const se_GetDatabaseCommand = async (input, context) => {
|
|
91
|
-
const
|
|
63
|
+
const b = rb(input, context);
|
|
92
64
|
const headers = {
|
|
93
65
|
"content-type": "application/json",
|
|
94
66
|
};
|
|
95
|
-
|
|
67
|
+
b.bp("/get-database");
|
|
96
68
|
let body;
|
|
97
69
|
body = JSON.stringify(take(input, {
|
|
98
70
|
ApplicationId: [],
|
|
@@ -100,107 +72,72 @@ export const se_GetDatabaseCommand = async (input, context) => {
|
|
|
100
72
|
DatabaseArn: [],
|
|
101
73
|
DatabaseId: [],
|
|
102
74
|
}));
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
hostname,
|
|
106
|
-
port,
|
|
107
|
-
method: "POST",
|
|
108
|
-
headers,
|
|
109
|
-
path: resolvedPath,
|
|
110
|
-
body,
|
|
111
|
-
});
|
|
75
|
+
b.m("POST").h(headers).b(body);
|
|
76
|
+
return b.build();
|
|
112
77
|
};
|
|
113
78
|
export const se_GetOperationCommand = async (input, context) => {
|
|
114
|
-
const
|
|
79
|
+
const b = rb(input, context);
|
|
115
80
|
const headers = {
|
|
116
81
|
"content-type": "application/json",
|
|
117
82
|
};
|
|
118
|
-
|
|
83
|
+
b.bp("/get-operation");
|
|
119
84
|
let body;
|
|
120
85
|
body = JSON.stringify(take(input, {
|
|
121
86
|
OperationId: [],
|
|
122
87
|
}));
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
hostname,
|
|
126
|
-
port,
|
|
127
|
-
method: "POST",
|
|
128
|
-
headers,
|
|
129
|
-
path: resolvedPath,
|
|
130
|
-
body,
|
|
131
|
-
});
|
|
88
|
+
b.m("POST").h(headers).b(body);
|
|
89
|
+
return b.build();
|
|
132
90
|
};
|
|
133
91
|
export const se_GetResourcePermissionCommand = async (input, context) => {
|
|
134
|
-
const
|
|
92
|
+
const b = rb(input, context);
|
|
135
93
|
const headers = {
|
|
136
94
|
"content-type": "application/json",
|
|
137
95
|
};
|
|
138
|
-
|
|
96
|
+
b.bp("/get-resource-permission");
|
|
139
97
|
let body;
|
|
140
98
|
body = JSON.stringify(take(input, {
|
|
141
99
|
ActionType: [],
|
|
142
100
|
ResourceArn: [],
|
|
143
101
|
}));
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
hostname,
|
|
147
|
-
port,
|
|
148
|
-
method: "POST",
|
|
149
|
-
headers,
|
|
150
|
-
path: resolvedPath,
|
|
151
|
-
body,
|
|
152
|
-
});
|
|
102
|
+
b.m("POST").h(headers).b(body);
|
|
103
|
+
return b.build();
|
|
153
104
|
};
|
|
154
105
|
export const se_ListApplicationsCommand = async (input, context) => {
|
|
155
|
-
const
|
|
106
|
+
const b = rb(input, context);
|
|
156
107
|
const headers = {
|
|
157
108
|
"content-type": "application/json",
|
|
158
109
|
};
|
|
159
|
-
|
|
110
|
+
b.bp("/list-applications");
|
|
160
111
|
let body;
|
|
161
112
|
body = JSON.stringify(take(input, {
|
|
162
113
|
Filters: (_) => _json(_),
|
|
163
114
|
MaxResults: [],
|
|
164
115
|
NextToken: [],
|
|
165
116
|
}));
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
hostname,
|
|
169
|
-
port,
|
|
170
|
-
method: "POST",
|
|
171
|
-
headers,
|
|
172
|
-
path: resolvedPath,
|
|
173
|
-
body,
|
|
174
|
-
});
|
|
117
|
+
b.m("POST").h(headers).b(body);
|
|
118
|
+
return b.build();
|
|
175
119
|
};
|
|
176
120
|
export const se_ListComponentsCommand = async (input, context) => {
|
|
177
|
-
const
|
|
121
|
+
const b = rb(input, context);
|
|
178
122
|
const headers = {
|
|
179
123
|
"content-type": "application/json",
|
|
180
124
|
};
|
|
181
|
-
|
|
125
|
+
b.bp("/list-components");
|
|
182
126
|
let body;
|
|
183
127
|
body = JSON.stringify(take(input, {
|
|
184
128
|
ApplicationId: [],
|
|
185
129
|
MaxResults: [],
|
|
186
130
|
NextToken: [],
|
|
187
131
|
}));
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
hostname,
|
|
191
|
-
port,
|
|
192
|
-
method: "POST",
|
|
193
|
-
headers,
|
|
194
|
-
path: resolvedPath,
|
|
195
|
-
body,
|
|
196
|
-
});
|
|
132
|
+
b.m("POST").h(headers).b(body);
|
|
133
|
+
return b.build();
|
|
197
134
|
};
|
|
198
135
|
export const se_ListDatabasesCommand = async (input, context) => {
|
|
199
|
-
const
|
|
136
|
+
const b = rb(input, context);
|
|
200
137
|
const headers = {
|
|
201
138
|
"content-type": "application/json",
|
|
202
139
|
};
|
|
203
|
-
|
|
140
|
+
b.bp("/list-databases");
|
|
204
141
|
let body;
|
|
205
142
|
body = JSON.stringify(take(input, {
|
|
206
143
|
ApplicationId: [],
|
|
@@ -208,22 +145,15 @@ export const se_ListDatabasesCommand = async (input, context) => {
|
|
|
208
145
|
MaxResults: [],
|
|
209
146
|
NextToken: [],
|
|
210
147
|
}));
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
hostname,
|
|
214
|
-
port,
|
|
215
|
-
method: "POST",
|
|
216
|
-
headers,
|
|
217
|
-
path: resolvedPath,
|
|
218
|
-
body,
|
|
219
|
-
});
|
|
148
|
+
b.m("POST").h(headers).b(body);
|
|
149
|
+
return b.build();
|
|
220
150
|
};
|
|
221
151
|
export const se_ListOperationsCommand = async (input, context) => {
|
|
222
|
-
const
|
|
152
|
+
const b = rb(input, context);
|
|
223
153
|
const headers = {
|
|
224
154
|
"content-type": "application/json",
|
|
225
155
|
};
|
|
226
|
-
|
|
156
|
+
b.bp("/list-operations");
|
|
227
157
|
let body;
|
|
228
158
|
body = JSON.stringify(take(input, {
|
|
229
159
|
ApplicationId: [],
|
|
@@ -231,60 +161,39 @@ export const se_ListOperationsCommand = async (input, context) => {
|
|
|
231
161
|
MaxResults: [],
|
|
232
162
|
NextToken: [],
|
|
233
163
|
}));
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
hostname,
|
|
237
|
-
port,
|
|
238
|
-
method: "POST",
|
|
239
|
-
headers,
|
|
240
|
-
path: resolvedPath,
|
|
241
|
-
body,
|
|
242
|
-
});
|
|
164
|
+
b.m("POST").h(headers).b(body);
|
|
165
|
+
return b.build();
|
|
243
166
|
};
|
|
244
167
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
245
|
-
const
|
|
168
|
+
const b = rb(input, context);
|
|
246
169
|
const headers = {};
|
|
247
|
-
|
|
248
|
-
|
|
170
|
+
b.bp("/tags/{resourceArn}");
|
|
171
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
249
172
|
let body;
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
hostname,
|
|
253
|
-
port,
|
|
254
|
-
method: "GET",
|
|
255
|
-
headers,
|
|
256
|
-
path: resolvedPath,
|
|
257
|
-
body,
|
|
258
|
-
});
|
|
173
|
+
b.m("GET").h(headers).b(body);
|
|
174
|
+
return b.build();
|
|
259
175
|
};
|
|
260
176
|
export const se_PutResourcePermissionCommand = async (input, context) => {
|
|
261
|
-
const
|
|
177
|
+
const b = rb(input, context);
|
|
262
178
|
const headers = {
|
|
263
179
|
"content-type": "application/json",
|
|
264
180
|
};
|
|
265
|
-
|
|
181
|
+
b.bp("/put-resource-permission");
|
|
266
182
|
let body;
|
|
267
183
|
body = JSON.stringify(take(input, {
|
|
268
184
|
ActionType: [],
|
|
269
185
|
ResourceArn: [],
|
|
270
186
|
SourceResourceArn: [],
|
|
271
187
|
}));
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
hostname,
|
|
275
|
-
port,
|
|
276
|
-
method: "POST",
|
|
277
|
-
headers,
|
|
278
|
-
path: resolvedPath,
|
|
279
|
-
body,
|
|
280
|
-
});
|
|
188
|
+
b.m("POST").h(headers).b(body);
|
|
189
|
+
return b.build();
|
|
281
190
|
};
|
|
282
191
|
export const se_RegisterApplicationCommand = async (input, context) => {
|
|
283
|
-
const
|
|
192
|
+
const b = rb(input, context);
|
|
284
193
|
const headers = {
|
|
285
194
|
"content-type": "application/json",
|
|
286
195
|
};
|
|
287
|
-
|
|
196
|
+
b.bp("/register-application");
|
|
288
197
|
let body;
|
|
289
198
|
body = JSON.stringify(take(input, {
|
|
290
199
|
ApplicationId: [],
|
|
@@ -296,86 +205,57 @@ export const se_RegisterApplicationCommand = async (input, context) => {
|
|
|
296
205
|
Sid: [],
|
|
297
206
|
Tags: (_) => _json(_),
|
|
298
207
|
}));
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
hostname,
|
|
302
|
-
port,
|
|
303
|
-
method: "POST",
|
|
304
|
-
headers,
|
|
305
|
-
path: resolvedPath,
|
|
306
|
-
body,
|
|
307
|
-
});
|
|
208
|
+
b.m("POST").h(headers).b(body);
|
|
209
|
+
return b.build();
|
|
308
210
|
};
|
|
309
211
|
export const se_StartApplicationRefreshCommand = async (input, context) => {
|
|
310
|
-
const
|
|
212
|
+
const b = rb(input, context);
|
|
311
213
|
const headers = {
|
|
312
214
|
"content-type": "application/json",
|
|
313
215
|
};
|
|
314
|
-
|
|
216
|
+
b.bp("/start-application-refresh");
|
|
315
217
|
let body;
|
|
316
218
|
body = JSON.stringify(take(input, {
|
|
317
219
|
ApplicationId: [],
|
|
318
220
|
}));
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
hostname,
|
|
322
|
-
port,
|
|
323
|
-
method: "POST",
|
|
324
|
-
headers,
|
|
325
|
-
path: resolvedPath,
|
|
326
|
-
body,
|
|
327
|
-
});
|
|
221
|
+
b.m("POST").h(headers).b(body);
|
|
222
|
+
return b.build();
|
|
328
223
|
};
|
|
329
224
|
export const se_TagResourceCommand = async (input, context) => {
|
|
330
|
-
const
|
|
225
|
+
const b = rb(input, context);
|
|
331
226
|
const headers = {
|
|
332
227
|
"content-type": "application/json",
|
|
333
228
|
};
|
|
334
|
-
|
|
335
|
-
|
|
229
|
+
b.bp("/tags/{resourceArn}");
|
|
230
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
336
231
|
let body;
|
|
337
232
|
body = JSON.stringify(take(input, {
|
|
338
233
|
tags: (_) => _json(_),
|
|
339
234
|
}));
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
hostname,
|
|
343
|
-
port,
|
|
344
|
-
method: "POST",
|
|
345
|
-
headers,
|
|
346
|
-
path: resolvedPath,
|
|
347
|
-
body,
|
|
348
|
-
});
|
|
235
|
+
b.m("POST").h(headers).b(body);
|
|
236
|
+
return b.build();
|
|
349
237
|
};
|
|
350
238
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
351
|
-
const
|
|
239
|
+
const b = rb(input, context);
|
|
352
240
|
const headers = {};
|
|
353
|
-
|
|
354
|
-
|
|
241
|
+
b.bp("/tags/{resourceArn}");
|
|
242
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
355
243
|
const query = map({
|
|
356
|
-
|
|
244
|
+
[_tK]: [
|
|
357
245
|
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
358
|
-
() => (input
|
|
246
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
359
247
|
],
|
|
360
248
|
});
|
|
361
249
|
let body;
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
hostname,
|
|
365
|
-
port,
|
|
366
|
-
method: "DELETE",
|
|
367
|
-
headers,
|
|
368
|
-
path: resolvedPath,
|
|
369
|
-
query,
|
|
370
|
-
body,
|
|
371
|
-
});
|
|
250
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
251
|
+
return b.build();
|
|
372
252
|
};
|
|
373
253
|
export const se_UpdateApplicationSettingsCommand = async (input, context) => {
|
|
374
|
-
const
|
|
254
|
+
const b = rb(input, context);
|
|
375
255
|
const headers = {
|
|
376
256
|
"content-type": "application/json",
|
|
377
257
|
};
|
|
378
|
-
|
|
258
|
+
b.bp("/update-application-settings");
|
|
379
259
|
let body;
|
|
380
260
|
body = JSON.stringify(take(input, {
|
|
381
261
|
ApplicationId: [],
|
|
@@ -384,15 +264,8 @@ export const se_UpdateApplicationSettingsCommand = async (input, context) => {
|
|
|
384
264
|
CredentialsToRemove: (_) => _json(_),
|
|
385
265
|
DatabaseArn: [],
|
|
386
266
|
}));
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
hostname,
|
|
390
|
-
port,
|
|
391
|
-
method: "POST",
|
|
392
|
-
headers,
|
|
393
|
-
path: resolvedPath,
|
|
394
|
-
body,
|
|
395
|
-
});
|
|
267
|
+
b.m("POST").h(headers).b(body);
|
|
268
|
+
return b.build();
|
|
396
269
|
};
|
|
397
270
|
export const de_DeleteResourcePermissionCommand = async (output, context) => {
|
|
398
271
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1262,6 +1135,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1262
1135
|
value !== "" &&
|
|
1263
1136
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1264
1137
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1138
|
+
const _tK = "tagKeys";
|
|
1265
1139
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1266
1140
|
if (encoded.length) {
|
|
1267
1141
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ssm-sap",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ssm Sap Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
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",
|