@aws-sdk/client-grafana 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/ListPermissionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListWorkspacesPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +120 -256
- package/dist-es/pagination/ListPermissionsPaginator.js +2 -23
- package/dist-es/pagination/ListVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListWorkspacesPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +121 -257
- package/dist-types/pagination/ListPermissionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWorkspacesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListPermissionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWorkspacesPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,32 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, LazyJsonString as __LazyJsonString, map, parseEpochTimestamp as __parseEpochTimestamp,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, LazyJsonString as __LazyJsonString, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { GrafanaServiceException as __BaseException } from "../models/GrafanaServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export const se_AssociateLicenseCommand = async (input, context) => {
|
|
7
|
-
const
|
|
7
|
+
const b = rb(input, context);
|
|
8
8
|
const headers = {};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "licenseType", () => input.licenseType, "{licenseType}", false);
|
|
9
|
+
b.bp("/workspaces/{workspaceId}/licenses/{licenseType}");
|
|
10
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
11
|
+
b.p("licenseType", () => input.licenseType, "{licenseType}", false);
|
|
13
12
|
let body;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
hostname,
|
|
17
|
-
port,
|
|
18
|
-
method: "POST",
|
|
19
|
-
headers,
|
|
20
|
-
path: resolvedPath,
|
|
21
|
-
body,
|
|
22
|
-
});
|
|
13
|
+
b.m("POST").h(headers).b(body);
|
|
14
|
+
return b.build();
|
|
23
15
|
};
|
|
24
16
|
export const se_CreateWorkspaceCommand = async (input, context) => {
|
|
25
|
-
const
|
|
17
|
+
const b = rb(input, context);
|
|
26
18
|
const headers = {
|
|
27
19
|
"content-type": "application/json",
|
|
28
20
|
};
|
|
29
|
-
|
|
21
|
+
b.bp("/workspaces");
|
|
30
22
|
let body;
|
|
31
23
|
body = JSON.stringify(take(input, {
|
|
32
24
|
accountAccessType: [],
|
|
@@ -47,292 +39,181 @@ export const se_CreateWorkspaceCommand = async (input, context) => {
|
|
|
47
39
|
workspaceOrganizationalUnits: (_) => _json(_),
|
|
48
40
|
workspaceRoleArn: [],
|
|
49
41
|
}));
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
hostname,
|
|
53
|
-
port,
|
|
54
|
-
method: "POST",
|
|
55
|
-
headers,
|
|
56
|
-
path: resolvedPath,
|
|
57
|
-
body,
|
|
58
|
-
});
|
|
42
|
+
b.m("POST").h(headers).b(body);
|
|
43
|
+
return b.build();
|
|
59
44
|
};
|
|
60
45
|
export const se_CreateWorkspaceApiKeyCommand = async (input, context) => {
|
|
61
|
-
const
|
|
46
|
+
const b = rb(input, context);
|
|
62
47
|
const headers = {
|
|
63
48
|
"content-type": "application/json",
|
|
64
49
|
};
|
|
65
|
-
|
|
66
|
-
|
|
50
|
+
b.bp("/workspaces/{workspaceId}/apikeys");
|
|
51
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
67
52
|
let body;
|
|
68
53
|
body = JSON.stringify(take(input, {
|
|
69
54
|
keyName: [],
|
|
70
55
|
keyRole: [],
|
|
71
56
|
secondsToLive: [],
|
|
72
57
|
}));
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
hostname,
|
|
76
|
-
port,
|
|
77
|
-
method: "POST",
|
|
78
|
-
headers,
|
|
79
|
-
path: resolvedPath,
|
|
80
|
-
body,
|
|
81
|
-
});
|
|
58
|
+
b.m("POST").h(headers).b(body);
|
|
59
|
+
return b.build();
|
|
82
60
|
};
|
|
83
61
|
export const se_DeleteWorkspaceCommand = async (input, context) => {
|
|
84
|
-
const
|
|
62
|
+
const b = rb(input, context);
|
|
85
63
|
const headers = {};
|
|
86
|
-
|
|
87
|
-
|
|
64
|
+
b.bp("/workspaces/{workspaceId}");
|
|
65
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
88
66
|
let body;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
hostname,
|
|
92
|
-
port,
|
|
93
|
-
method: "DELETE",
|
|
94
|
-
headers,
|
|
95
|
-
path: resolvedPath,
|
|
96
|
-
body,
|
|
97
|
-
});
|
|
67
|
+
b.m("DELETE").h(headers).b(body);
|
|
68
|
+
return b.build();
|
|
98
69
|
};
|
|
99
70
|
export const se_DeleteWorkspaceApiKeyCommand = async (input, context) => {
|
|
100
|
-
const
|
|
71
|
+
const b = rb(input, context);
|
|
101
72
|
const headers = {};
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
73
|
+
b.bp("/workspaces/{workspaceId}/apikeys/{keyName}");
|
|
74
|
+
b.p("keyName", () => input.keyName, "{keyName}", false);
|
|
75
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
106
76
|
let body;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
hostname,
|
|
110
|
-
port,
|
|
111
|
-
method: "DELETE",
|
|
112
|
-
headers,
|
|
113
|
-
path: resolvedPath,
|
|
114
|
-
body,
|
|
115
|
-
});
|
|
77
|
+
b.m("DELETE").h(headers).b(body);
|
|
78
|
+
return b.build();
|
|
116
79
|
};
|
|
117
80
|
export const se_DescribeWorkspaceCommand = async (input, context) => {
|
|
118
|
-
const
|
|
81
|
+
const b = rb(input, context);
|
|
119
82
|
const headers = {};
|
|
120
|
-
|
|
121
|
-
|
|
83
|
+
b.bp("/workspaces/{workspaceId}");
|
|
84
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
122
85
|
let body;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
hostname,
|
|
126
|
-
port,
|
|
127
|
-
method: "GET",
|
|
128
|
-
headers,
|
|
129
|
-
path: resolvedPath,
|
|
130
|
-
body,
|
|
131
|
-
});
|
|
86
|
+
b.m("GET").h(headers).b(body);
|
|
87
|
+
return b.build();
|
|
132
88
|
};
|
|
133
89
|
export const se_DescribeWorkspaceAuthenticationCommand = async (input, context) => {
|
|
134
|
-
const
|
|
90
|
+
const b = rb(input, context);
|
|
135
91
|
const headers = {};
|
|
136
|
-
|
|
137
|
-
|
|
92
|
+
b.bp("/workspaces/{workspaceId}/authentication");
|
|
93
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
138
94
|
let body;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
hostname,
|
|
142
|
-
port,
|
|
143
|
-
method: "GET",
|
|
144
|
-
headers,
|
|
145
|
-
path: resolvedPath,
|
|
146
|
-
body,
|
|
147
|
-
});
|
|
95
|
+
b.m("GET").h(headers).b(body);
|
|
96
|
+
return b.build();
|
|
148
97
|
};
|
|
149
98
|
export const se_DescribeWorkspaceConfigurationCommand = async (input, context) => {
|
|
150
|
-
const
|
|
99
|
+
const b = rb(input, context);
|
|
151
100
|
const headers = {};
|
|
152
|
-
|
|
153
|
-
|
|
101
|
+
b.bp("/workspaces/{workspaceId}/configuration");
|
|
102
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
154
103
|
let body;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
hostname,
|
|
158
|
-
port,
|
|
159
|
-
method: "GET",
|
|
160
|
-
headers,
|
|
161
|
-
path: resolvedPath,
|
|
162
|
-
body,
|
|
163
|
-
});
|
|
104
|
+
b.m("GET").h(headers).b(body);
|
|
105
|
+
return b.build();
|
|
164
106
|
};
|
|
165
107
|
export const se_DisassociateLicenseCommand = async (input, context) => {
|
|
166
|
-
const
|
|
108
|
+
const b = rb(input, context);
|
|
167
109
|
const headers = {};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "licenseType", () => input.licenseType, "{licenseType}", false);
|
|
110
|
+
b.bp("/workspaces/{workspaceId}/licenses/{licenseType}");
|
|
111
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
112
|
+
b.p("licenseType", () => input.licenseType, "{licenseType}", false);
|
|
172
113
|
let body;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
hostname,
|
|
176
|
-
port,
|
|
177
|
-
method: "DELETE",
|
|
178
|
-
headers,
|
|
179
|
-
path: resolvedPath,
|
|
180
|
-
body,
|
|
181
|
-
});
|
|
114
|
+
b.m("DELETE").h(headers).b(body);
|
|
115
|
+
return b.build();
|
|
182
116
|
};
|
|
183
117
|
export const se_ListPermissionsCommand = async (input, context) => {
|
|
184
|
-
const
|
|
118
|
+
const b = rb(input, context);
|
|
185
119
|
const headers = {};
|
|
186
|
-
|
|
187
|
-
|
|
120
|
+
b.bp("/workspaces/{workspaceId}/permissions");
|
|
121
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
188
122
|
const query = map({
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
123
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
124
|
+
[_nT]: [, input[_nT]],
|
|
125
|
+
[_uT]: [, input[_uT]],
|
|
126
|
+
[_uI]: [, input[_uI]],
|
|
127
|
+
[_gI]: [, input[_gI]],
|
|
194
128
|
});
|
|
195
129
|
let body;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
hostname,
|
|
199
|
-
port,
|
|
200
|
-
method: "GET",
|
|
201
|
-
headers,
|
|
202
|
-
path: resolvedPath,
|
|
203
|
-
query,
|
|
204
|
-
body,
|
|
205
|
-
});
|
|
130
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
131
|
+
return b.build();
|
|
206
132
|
};
|
|
207
133
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
208
|
-
const
|
|
134
|
+
const b = rb(input, context);
|
|
209
135
|
const headers = {};
|
|
210
|
-
|
|
211
|
-
|
|
136
|
+
b.bp("/tags/{resourceArn}");
|
|
137
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
212
138
|
let body;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
hostname,
|
|
216
|
-
port,
|
|
217
|
-
method: "GET",
|
|
218
|
-
headers,
|
|
219
|
-
path: resolvedPath,
|
|
220
|
-
body,
|
|
221
|
-
});
|
|
139
|
+
b.m("GET").h(headers).b(body);
|
|
140
|
+
return b.build();
|
|
222
141
|
};
|
|
223
142
|
export const se_ListVersionsCommand = async (input, context) => {
|
|
224
|
-
const
|
|
143
|
+
const b = rb(input, context);
|
|
225
144
|
const headers = {};
|
|
226
|
-
|
|
145
|
+
b.bp("/versions");
|
|
227
146
|
const query = map({
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
147
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
148
|
+
[_nT]: [, input[_nT]],
|
|
149
|
+
[_wi]: [, input[_wI]],
|
|
231
150
|
});
|
|
232
151
|
let body;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
hostname,
|
|
236
|
-
port,
|
|
237
|
-
method: "GET",
|
|
238
|
-
headers,
|
|
239
|
-
path: resolvedPath,
|
|
240
|
-
query,
|
|
241
|
-
body,
|
|
242
|
-
});
|
|
152
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
153
|
+
return b.build();
|
|
243
154
|
};
|
|
244
155
|
export const se_ListWorkspacesCommand = async (input, context) => {
|
|
245
|
-
const
|
|
156
|
+
const b = rb(input, context);
|
|
246
157
|
const headers = {};
|
|
247
|
-
|
|
158
|
+
b.bp("/workspaces");
|
|
248
159
|
const query = map({
|
|
249
|
-
|
|
250
|
-
|
|
160
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
161
|
+
[_nT]: [, input[_nT]],
|
|
251
162
|
});
|
|
252
163
|
let body;
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
hostname,
|
|
256
|
-
port,
|
|
257
|
-
method: "GET",
|
|
258
|
-
headers,
|
|
259
|
-
path: resolvedPath,
|
|
260
|
-
query,
|
|
261
|
-
body,
|
|
262
|
-
});
|
|
164
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
165
|
+
return b.build();
|
|
263
166
|
};
|
|
264
167
|
export const se_TagResourceCommand = async (input, context) => {
|
|
265
|
-
const
|
|
168
|
+
const b = rb(input, context);
|
|
266
169
|
const headers = {
|
|
267
170
|
"content-type": "application/json",
|
|
268
171
|
};
|
|
269
|
-
|
|
270
|
-
|
|
172
|
+
b.bp("/tags/{resourceArn}");
|
|
173
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
271
174
|
let body;
|
|
272
175
|
body = JSON.stringify(take(input, {
|
|
273
176
|
tags: (_) => _json(_),
|
|
274
177
|
}));
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
hostname,
|
|
278
|
-
port,
|
|
279
|
-
method: "POST",
|
|
280
|
-
headers,
|
|
281
|
-
path: resolvedPath,
|
|
282
|
-
body,
|
|
283
|
-
});
|
|
178
|
+
b.m("POST").h(headers).b(body);
|
|
179
|
+
return b.build();
|
|
284
180
|
};
|
|
285
181
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
286
|
-
const
|
|
182
|
+
const b = rb(input, context);
|
|
287
183
|
const headers = {};
|
|
288
|
-
|
|
289
|
-
|
|
184
|
+
b.bp("/tags/{resourceArn}");
|
|
185
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
290
186
|
const query = map({
|
|
291
|
-
|
|
187
|
+
[_tK]: [
|
|
292
188
|
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
293
|
-
() => (input
|
|
189
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
294
190
|
],
|
|
295
191
|
});
|
|
296
192
|
let body;
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
hostname,
|
|
300
|
-
port,
|
|
301
|
-
method: "DELETE",
|
|
302
|
-
headers,
|
|
303
|
-
path: resolvedPath,
|
|
304
|
-
query,
|
|
305
|
-
body,
|
|
306
|
-
});
|
|
193
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
194
|
+
return b.build();
|
|
307
195
|
};
|
|
308
196
|
export const se_UpdatePermissionsCommand = async (input, context) => {
|
|
309
|
-
const
|
|
197
|
+
const b = rb(input, context);
|
|
310
198
|
const headers = {
|
|
311
199
|
"content-type": "application/json",
|
|
312
200
|
};
|
|
313
|
-
|
|
314
|
-
|
|
201
|
+
b.bp("/workspaces/{workspaceId}/permissions");
|
|
202
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
315
203
|
let body;
|
|
316
204
|
body = JSON.stringify(take(input, {
|
|
317
205
|
updateInstructionBatch: (_) => _json(_),
|
|
318
206
|
}));
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
hostname,
|
|
322
|
-
port,
|
|
323
|
-
method: "PATCH",
|
|
324
|
-
headers,
|
|
325
|
-
path: resolvedPath,
|
|
326
|
-
body,
|
|
327
|
-
});
|
|
207
|
+
b.m("PATCH").h(headers).b(body);
|
|
208
|
+
return b.build();
|
|
328
209
|
};
|
|
329
210
|
export const se_UpdateWorkspaceCommand = async (input, context) => {
|
|
330
|
-
const
|
|
211
|
+
const b = rb(input, context);
|
|
331
212
|
const headers = {
|
|
332
213
|
"content-type": "application/json",
|
|
333
214
|
};
|
|
334
|
-
|
|
335
|
-
|
|
215
|
+
b.bp("/workspaces/{workspaceId}");
|
|
216
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
336
217
|
let body;
|
|
337
218
|
body = JSON.stringify(take(input, {
|
|
338
219
|
accountAccessType: [],
|
|
@@ -350,59 +231,38 @@ export const se_UpdateWorkspaceCommand = async (input, context) => {
|
|
|
350
231
|
workspaceOrganizationalUnits: (_) => _json(_),
|
|
351
232
|
workspaceRoleArn: [],
|
|
352
233
|
}));
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
hostname,
|
|
356
|
-
port,
|
|
357
|
-
method: "PUT",
|
|
358
|
-
headers,
|
|
359
|
-
path: resolvedPath,
|
|
360
|
-
body,
|
|
361
|
-
});
|
|
234
|
+
b.m("PUT").h(headers).b(body);
|
|
235
|
+
return b.build();
|
|
362
236
|
};
|
|
363
237
|
export const se_UpdateWorkspaceAuthenticationCommand = async (input, context) => {
|
|
364
|
-
const
|
|
238
|
+
const b = rb(input, context);
|
|
365
239
|
const headers = {
|
|
366
240
|
"content-type": "application/json",
|
|
367
241
|
};
|
|
368
|
-
|
|
369
|
-
|
|
242
|
+
b.bp("/workspaces/{workspaceId}/authentication");
|
|
243
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
370
244
|
let body;
|
|
371
245
|
body = JSON.stringify(take(input, {
|
|
372
246
|
authenticationProviders: (_) => _json(_),
|
|
373
247
|
samlConfiguration: (_) => _json(_),
|
|
374
248
|
}));
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
hostname,
|
|
378
|
-
port,
|
|
379
|
-
method: "POST",
|
|
380
|
-
headers,
|
|
381
|
-
path: resolvedPath,
|
|
382
|
-
body,
|
|
383
|
-
});
|
|
249
|
+
b.m("POST").h(headers).b(body);
|
|
250
|
+
return b.build();
|
|
384
251
|
};
|
|
385
252
|
export const se_UpdateWorkspaceConfigurationCommand = async (input, context) => {
|
|
386
|
-
const
|
|
253
|
+
const b = rb(input, context);
|
|
387
254
|
const headers = {
|
|
388
255
|
"content-type": "application/json",
|
|
389
256
|
};
|
|
390
|
-
|
|
391
|
-
|
|
257
|
+
b.bp("/workspaces/{workspaceId}/configuration");
|
|
258
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
392
259
|
let body;
|
|
393
260
|
body = JSON.stringify(take(input, {
|
|
394
261
|
configuration: (_) => __LazyJsonString.fromObject(_),
|
|
395
262
|
grafanaVersion: [],
|
|
396
263
|
}));
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
hostname,
|
|
400
|
-
port,
|
|
401
|
-
method: "PUT",
|
|
402
|
-
headers,
|
|
403
|
-
path: resolvedPath,
|
|
404
|
-
body,
|
|
405
|
-
});
|
|
264
|
+
b.m("PUT").h(headers).b(body);
|
|
265
|
+
return b.build();
|
|
406
266
|
};
|
|
407
267
|
export const de_AssociateLicenseCommand = async (output, context) => {
|
|
408
268
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -1300,10 +1160,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1300
1160
|
};
|
|
1301
1161
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1302
1162
|
const contents = map({
|
|
1303
|
-
|
|
1304
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
1305
|
-
() => __strictParseInt32(parsedOutput.headers["retry-after"]),
|
|
1306
|
-
],
|
|
1163
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
1307
1164
|
});
|
|
1308
1165
|
const data = parsedOutput.body;
|
|
1309
1166
|
const doc = take(data, {
|
|
@@ -1350,10 +1207,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1350
1207
|
};
|
|
1351
1208
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1352
1209
|
const contents = map({
|
|
1353
|
-
|
|
1354
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
1355
|
-
() => __strictParseInt32(parsedOutput.headers["retry-after"]),
|
|
1356
|
-
],
|
|
1210
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
1357
1211
|
});
|
|
1358
1212
|
const data = parsedOutput.body;
|
|
1359
1213
|
const doc = take(data, {
|
|
@@ -1446,6 +1300,16 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1446
1300
|
value !== "" &&
|
|
1447
1301
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1448
1302
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1303
|
+
const _gI = "groupId";
|
|
1304
|
+
const _mR = "maxResults";
|
|
1305
|
+
const _nT = "nextToken";
|
|
1306
|
+
const _rAS = "retryAfterSeconds";
|
|
1307
|
+
const _ra = "retry-after";
|
|
1308
|
+
const _tK = "tagKeys";
|
|
1309
|
+
const _uI = "userId";
|
|
1310
|
+
const _uT = "userType";
|
|
1311
|
+
const _wI = "workspaceId";
|
|
1312
|
+
const _wi = "workspace-id";
|
|
1449
1313
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1450
1314
|
if (encoded.length) {
|
|
1451
1315
|
return JSON.parse(encoded);
|
|
@@ -4,4 +4,4 @@ import { GrafanaPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListPermissions: (config: GrafanaPaginationConfiguration, input: ListPermissionsCommandInput, ...rest: any[]) => Paginator<ListPermissionsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { GrafanaPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListVersions: (config: GrafanaPaginationConfiguration, input: ListVersionsCommandInput, ...rest: any[]) => Paginator<ListVersionsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { GrafanaPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListWorkspaces: (config: GrafanaPaginationConfiguration, input: ListWorkspacesCommandInput, ...rest: any[]) => Paginator<ListWorkspacesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListPermissionsCommandOutput,
|
|
5
5
|
} from "../commands/ListPermissionsCommand";
|
|
6
6
|
import { GrafanaPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListPermissions: (
|
|
8
8
|
config: GrafanaPaginationConfiguration,
|
|
9
9
|
input: ListPermissionsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListPermissionsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListVersionsCommandOutput,
|
|
5
5
|
} from "../commands/ListVersionsCommand";
|
|
6
6
|
import { GrafanaPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListVersions: (
|
|
8
8
|
config: GrafanaPaginationConfiguration,
|
|
9
9
|
input: ListVersionsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListVersionsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListWorkspacesCommandOutput,
|
|
5
5
|
} from "../commands/ListWorkspacesCommand";
|
|
6
6
|
import { GrafanaPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListWorkspaces: (
|
|
8
8
|
config: GrafanaPaginationConfiguration,
|
|
9
9
|
input: ListWorkspacesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListWorkspacesCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-grafana",
|
|
3
3
|
"description": "AWS SDK for JavaScript Grafana 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",
|