@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.
@@ -1,32 +1,24 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
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, resolvedPath as __resolvedPath, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, 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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
+ const b = rb(input, context);
8
8
  const headers = {};
9
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
10
- "/workspaces/{workspaceId}/licenses/{licenseType}";
11
- resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
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
- return new __HttpRequest({
15
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
17
+ const b = rb(input, context);
26
18
  const headers = {
27
19
  "content-type": "application/json",
28
20
  };
29
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces";
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
- return new __HttpRequest({
51
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
46
+ const b = rb(input, context);
62
47
  const headers = {
63
48
  "content-type": "application/json",
64
49
  };
65
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/apikeys";
66
- resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
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
- return new __HttpRequest({
74
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
62
+ const b = rb(input, context);
85
63
  const headers = {};
86
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
87
- resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
64
+ b.bp("/workspaces/{workspaceId}");
65
+ b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
88
66
  let body;
89
- return new __HttpRequest({
90
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
71
+ const b = rb(input, context);
101
72
  const headers = {};
102
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
103
- "/workspaces/{workspaceId}/apikeys/{keyName}";
104
- resolvedPath = __resolvedPath(resolvedPath, input, "keyName", () => input.keyName, "{keyName}", false);
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
- return new __HttpRequest({
108
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
81
+ const b = rb(input, context);
119
82
  const headers = {};
120
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
121
- resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
83
+ b.bp("/workspaces/{workspaceId}");
84
+ b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
122
85
  let body;
123
- return new __HttpRequest({
124
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
90
+ const b = rb(input, context);
135
91
  const headers = {};
136
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/authentication";
137
- resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
92
+ b.bp("/workspaces/{workspaceId}/authentication");
93
+ b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
138
94
  let body;
139
- return new __HttpRequest({
140
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
99
+ const b = rb(input, context);
151
100
  const headers = {};
152
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/configuration";
153
- resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
101
+ b.bp("/workspaces/{workspaceId}/configuration");
102
+ b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
154
103
  let body;
155
- return new __HttpRequest({
156
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
108
+ const b = rb(input, context);
167
109
  const headers = {};
168
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
169
- "/workspaces/{workspaceId}/licenses/{licenseType}";
170
- resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
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
- return new __HttpRequest({
174
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
118
+ const b = rb(input, context);
185
119
  const headers = {};
186
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/permissions";
187
- resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
120
+ b.bp("/workspaces/{workspaceId}/permissions");
121
+ b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
188
122
  const query = map({
189
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
190
- nextToken: [, input.nextToken],
191
- userType: [, input.userType],
192
- userId: [, input.userId],
193
- groupId: [, input.groupId],
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
- return new __HttpRequest({
197
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
134
+ const b = rb(input, context);
209
135
  const headers = {};
210
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
211
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
136
+ b.bp("/tags/{resourceArn}");
137
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
212
138
  let body;
213
- return new __HttpRequest({
214
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
143
+ const b = rb(input, context);
225
144
  const headers = {};
226
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/versions";
145
+ b.bp("/versions");
227
146
  const query = map({
228
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
229
- nextToken: [, input.nextToken],
230
- "workspace-id": [, input.workspaceId],
147
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
148
+ [_nT]: [, input[_nT]],
149
+ [_wi]: [, input[_wI]],
231
150
  });
232
151
  let body;
233
- return new __HttpRequest({
234
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
156
+ const b = rb(input, context);
246
157
  const headers = {};
247
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces";
158
+ b.bp("/workspaces");
248
159
  const query = map({
249
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
250
- nextToken: [, input.nextToken],
160
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
161
+ [_nT]: [, input[_nT]],
251
162
  });
252
163
  let body;
253
- return new __HttpRequest({
254
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
168
+ const b = rb(input, context);
266
169
  const headers = {
267
170
  "content-type": "application/json",
268
171
  };
269
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
270
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
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
- return new __HttpRequest({
276
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
182
+ const b = rb(input, context);
287
183
  const headers = {};
288
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
289
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
184
+ b.bp("/tags/{resourceArn}");
185
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
290
186
  const query = map({
291
- tagKeys: [
187
+ [_tK]: [
292
188
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
293
- () => (input.tagKeys || []).map((_entry) => _entry),
189
+ () => (input[_tK] || []).map((_entry) => _entry),
294
190
  ],
295
191
  });
296
192
  let body;
297
- return new __HttpRequest({
298
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
197
+ const b = rb(input, context);
310
198
  const headers = {
311
199
  "content-type": "application/json",
312
200
  };
313
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/permissions";
314
- resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
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
- return new __HttpRequest({
320
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
211
+ const b = rb(input, context);
331
212
  const headers = {
332
213
  "content-type": "application/json",
333
214
  };
334
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
335
- resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
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
- return new __HttpRequest({
354
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
238
+ const b = rb(input, context);
365
239
  const headers = {
366
240
  "content-type": "application/json",
367
241
  };
368
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/authentication";
369
- resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
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
- return new __HttpRequest({
376
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
253
+ const b = rb(input, context);
387
254
  const headers = {
388
255
  "content-type": "application/json",
389
256
  };
390
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/configuration";
391
- resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
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
- return new __HttpRequest({
398
- protocol,
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
- retryAfterSeconds: [
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
- retryAfterSeconds: [
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 function paginateListPermissions(config: GrafanaPaginationConfiguration, input: ListPermissionsCommandInput, ...additionalArguments: any): Paginator<ListPermissionsCommandOutput>;
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 function paginateListVersions(config: GrafanaPaginationConfiguration, input: ListVersionsCommandInput, ...additionalArguments: any): Paginator<ListVersionsCommandOutput>;
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 function paginateListWorkspaces(config: GrafanaPaginationConfiguration, input: ListWorkspacesCommandInput, ...additionalArguments: any): Paginator<ListWorkspacesCommandOutput>;
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 function paginateListPermissions(
7
+ export declare const paginateListPermissions: (
8
8
  config: GrafanaPaginationConfiguration,
9
9
  input: ListPermissionsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListPermissionsCommandOutput>;
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 function paginateListVersions(
7
+ export declare const paginateListVersions: (
8
8
  config: GrafanaPaginationConfiguration,
9
9
  input: ListVersionsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListVersionsCommandOutput>;
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 function paginateListWorkspaces(
7
+ export declare const paginateListWorkspaces: (
8
8
  config: GrafanaPaginationConfiguration,
9
9
  input: ListWorkspacesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListWorkspacesCommandOutput>;
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.476.0",
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.476.0",
24
- "@aws-sdk/core": "3.476.0",
25
- "@aws-sdk/credential-provider-node": "3.476.0",
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.470.0",
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.470.0",
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",