@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,36 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_UpdateWorkspaceConfigurationCommand = exports.de_UpdateWorkspaceAuthenticationCommand = exports.de_UpdateWorkspaceCommand = exports.de_UpdatePermissionsCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListWorkspacesCommand = exports.de_ListVersionsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPermissionsCommand = exports.de_DisassociateLicenseCommand = exports.de_DescribeWorkspaceConfigurationCommand = exports.de_DescribeWorkspaceAuthenticationCommand = exports.de_DescribeWorkspaceCommand = exports.de_DeleteWorkspaceApiKeyCommand = exports.de_DeleteWorkspaceCommand = exports.de_CreateWorkspaceApiKeyCommand = exports.de_CreateWorkspaceCommand = exports.de_AssociateLicenseCommand = exports.se_UpdateWorkspaceConfigurationCommand = exports.se_UpdateWorkspaceAuthenticationCommand = exports.se_UpdateWorkspaceCommand = exports.se_UpdatePermissionsCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListWorkspacesCommand = exports.se_ListVersionsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPermissionsCommand = exports.se_DisassociateLicenseCommand = exports.se_DescribeWorkspaceConfigurationCommand = exports.se_DescribeWorkspaceAuthenticationCommand = exports.se_DescribeWorkspaceCommand = exports.se_DeleteWorkspaceApiKeyCommand = exports.se_DeleteWorkspaceCommand = exports.se_CreateWorkspaceApiKeyCommand = exports.se_CreateWorkspaceCommand = exports.se_AssociateLicenseCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
7
|
const GrafanaServiceException_1 = require("../models/GrafanaServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_AssociateLicenseCommand = async (input, context) => {
|
|
10
|
-
const
|
|
10
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
11
|
const headers = {};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "licenseType", () => input.licenseType, "{licenseType}", false);
|
|
12
|
+
b.bp("/workspaces/{workspaceId}/licenses/{licenseType}");
|
|
13
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
14
|
+
b.p("licenseType", () => input.licenseType, "{licenseType}", false);
|
|
16
15
|
let body;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
hostname,
|
|
20
|
-
port,
|
|
21
|
-
method: "POST",
|
|
22
|
-
headers,
|
|
23
|
-
path: resolvedPath,
|
|
24
|
-
body,
|
|
25
|
-
});
|
|
16
|
+
b.m("POST").h(headers).b(body);
|
|
17
|
+
return b.build();
|
|
26
18
|
};
|
|
27
19
|
exports.se_AssociateLicenseCommand = se_AssociateLicenseCommand;
|
|
28
20
|
const se_CreateWorkspaceCommand = async (input, context) => {
|
|
29
|
-
const
|
|
21
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
30
22
|
const headers = {
|
|
31
23
|
"content-type": "application/json",
|
|
32
24
|
};
|
|
33
|
-
|
|
25
|
+
b.bp("/workspaces");
|
|
34
26
|
let body;
|
|
35
27
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
36
28
|
accountAccessType: [],
|
|
@@ -51,307 +43,196 @@ const se_CreateWorkspaceCommand = async (input, context) => {
|
|
|
51
43
|
workspaceOrganizationalUnits: (_) => (0, smithy_client_1._json)(_),
|
|
52
44
|
workspaceRoleArn: [],
|
|
53
45
|
}));
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
hostname,
|
|
57
|
-
port,
|
|
58
|
-
method: "POST",
|
|
59
|
-
headers,
|
|
60
|
-
path: resolvedPath,
|
|
61
|
-
body,
|
|
62
|
-
});
|
|
46
|
+
b.m("POST").h(headers).b(body);
|
|
47
|
+
return b.build();
|
|
63
48
|
};
|
|
64
49
|
exports.se_CreateWorkspaceCommand = se_CreateWorkspaceCommand;
|
|
65
50
|
const se_CreateWorkspaceApiKeyCommand = async (input, context) => {
|
|
66
|
-
const
|
|
51
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
67
52
|
const headers = {
|
|
68
53
|
"content-type": "application/json",
|
|
69
54
|
};
|
|
70
|
-
|
|
71
|
-
|
|
55
|
+
b.bp("/workspaces/{workspaceId}/apikeys");
|
|
56
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
72
57
|
let body;
|
|
73
58
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
74
59
|
keyName: [],
|
|
75
60
|
keyRole: [],
|
|
76
61
|
secondsToLive: [],
|
|
77
62
|
}));
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
hostname,
|
|
81
|
-
port,
|
|
82
|
-
method: "POST",
|
|
83
|
-
headers,
|
|
84
|
-
path: resolvedPath,
|
|
85
|
-
body,
|
|
86
|
-
});
|
|
63
|
+
b.m("POST").h(headers).b(body);
|
|
64
|
+
return b.build();
|
|
87
65
|
};
|
|
88
66
|
exports.se_CreateWorkspaceApiKeyCommand = se_CreateWorkspaceApiKeyCommand;
|
|
89
67
|
const se_DeleteWorkspaceCommand = async (input, context) => {
|
|
90
|
-
const
|
|
68
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
91
69
|
const headers = {};
|
|
92
|
-
|
|
93
|
-
|
|
70
|
+
b.bp("/workspaces/{workspaceId}");
|
|
71
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
94
72
|
let body;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
hostname,
|
|
98
|
-
port,
|
|
99
|
-
method: "DELETE",
|
|
100
|
-
headers,
|
|
101
|
-
path: resolvedPath,
|
|
102
|
-
body,
|
|
103
|
-
});
|
|
73
|
+
b.m("DELETE").h(headers).b(body);
|
|
74
|
+
return b.build();
|
|
104
75
|
};
|
|
105
76
|
exports.se_DeleteWorkspaceCommand = se_DeleteWorkspaceCommand;
|
|
106
77
|
const se_DeleteWorkspaceApiKeyCommand = async (input, context) => {
|
|
107
|
-
const
|
|
78
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
108
79
|
const headers = {};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
80
|
+
b.bp("/workspaces/{workspaceId}/apikeys/{keyName}");
|
|
81
|
+
b.p("keyName", () => input.keyName, "{keyName}", false);
|
|
82
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
113
83
|
let body;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
hostname,
|
|
117
|
-
port,
|
|
118
|
-
method: "DELETE",
|
|
119
|
-
headers,
|
|
120
|
-
path: resolvedPath,
|
|
121
|
-
body,
|
|
122
|
-
});
|
|
84
|
+
b.m("DELETE").h(headers).b(body);
|
|
85
|
+
return b.build();
|
|
123
86
|
};
|
|
124
87
|
exports.se_DeleteWorkspaceApiKeyCommand = se_DeleteWorkspaceApiKeyCommand;
|
|
125
88
|
const se_DescribeWorkspaceCommand = async (input, context) => {
|
|
126
|
-
const
|
|
89
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
127
90
|
const headers = {};
|
|
128
|
-
|
|
129
|
-
|
|
91
|
+
b.bp("/workspaces/{workspaceId}");
|
|
92
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
130
93
|
let body;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
hostname,
|
|
134
|
-
port,
|
|
135
|
-
method: "GET",
|
|
136
|
-
headers,
|
|
137
|
-
path: resolvedPath,
|
|
138
|
-
body,
|
|
139
|
-
});
|
|
94
|
+
b.m("GET").h(headers).b(body);
|
|
95
|
+
return b.build();
|
|
140
96
|
};
|
|
141
97
|
exports.se_DescribeWorkspaceCommand = se_DescribeWorkspaceCommand;
|
|
142
98
|
const se_DescribeWorkspaceAuthenticationCommand = async (input, context) => {
|
|
143
|
-
const
|
|
99
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
144
100
|
const headers = {};
|
|
145
|
-
|
|
146
|
-
|
|
101
|
+
b.bp("/workspaces/{workspaceId}/authentication");
|
|
102
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
147
103
|
let body;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
hostname,
|
|
151
|
-
port,
|
|
152
|
-
method: "GET",
|
|
153
|
-
headers,
|
|
154
|
-
path: resolvedPath,
|
|
155
|
-
body,
|
|
156
|
-
});
|
|
104
|
+
b.m("GET").h(headers).b(body);
|
|
105
|
+
return b.build();
|
|
157
106
|
};
|
|
158
107
|
exports.se_DescribeWorkspaceAuthenticationCommand = se_DescribeWorkspaceAuthenticationCommand;
|
|
159
108
|
const se_DescribeWorkspaceConfigurationCommand = async (input, context) => {
|
|
160
|
-
const
|
|
109
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
161
110
|
const headers = {};
|
|
162
|
-
|
|
163
|
-
|
|
111
|
+
b.bp("/workspaces/{workspaceId}/configuration");
|
|
112
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
164
113
|
let body;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
hostname,
|
|
168
|
-
port,
|
|
169
|
-
method: "GET",
|
|
170
|
-
headers,
|
|
171
|
-
path: resolvedPath,
|
|
172
|
-
body,
|
|
173
|
-
});
|
|
114
|
+
b.m("GET").h(headers).b(body);
|
|
115
|
+
return b.build();
|
|
174
116
|
};
|
|
175
117
|
exports.se_DescribeWorkspaceConfigurationCommand = se_DescribeWorkspaceConfigurationCommand;
|
|
176
118
|
const se_DisassociateLicenseCommand = async (input, context) => {
|
|
177
|
-
const
|
|
119
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
178
120
|
const headers = {};
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "licenseType", () => input.licenseType, "{licenseType}", false);
|
|
121
|
+
b.bp("/workspaces/{workspaceId}/licenses/{licenseType}");
|
|
122
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
123
|
+
b.p("licenseType", () => input.licenseType, "{licenseType}", false);
|
|
183
124
|
let body;
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
hostname,
|
|
187
|
-
port,
|
|
188
|
-
method: "DELETE",
|
|
189
|
-
headers,
|
|
190
|
-
path: resolvedPath,
|
|
191
|
-
body,
|
|
192
|
-
});
|
|
125
|
+
b.m("DELETE").h(headers).b(body);
|
|
126
|
+
return b.build();
|
|
193
127
|
};
|
|
194
128
|
exports.se_DisassociateLicenseCommand = se_DisassociateLicenseCommand;
|
|
195
129
|
const se_ListPermissionsCommand = async (input, context) => {
|
|
196
|
-
const
|
|
130
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
197
131
|
const headers = {};
|
|
198
|
-
|
|
199
|
-
|
|
132
|
+
b.bp("/workspaces/{workspaceId}/permissions");
|
|
133
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
200
134
|
const query = (0, smithy_client_1.map)({
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
135
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
136
|
+
[_nT]: [, input[_nT]],
|
|
137
|
+
[_uT]: [, input[_uT]],
|
|
138
|
+
[_uI]: [, input[_uI]],
|
|
139
|
+
[_gI]: [, input[_gI]],
|
|
206
140
|
});
|
|
207
141
|
let body;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
hostname,
|
|
211
|
-
port,
|
|
212
|
-
method: "GET",
|
|
213
|
-
headers,
|
|
214
|
-
path: resolvedPath,
|
|
215
|
-
query,
|
|
216
|
-
body,
|
|
217
|
-
});
|
|
142
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
143
|
+
return b.build();
|
|
218
144
|
};
|
|
219
145
|
exports.se_ListPermissionsCommand = se_ListPermissionsCommand;
|
|
220
146
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
221
|
-
const
|
|
147
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
222
148
|
const headers = {};
|
|
223
|
-
|
|
224
|
-
|
|
149
|
+
b.bp("/tags/{resourceArn}");
|
|
150
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
225
151
|
let body;
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
hostname,
|
|
229
|
-
port,
|
|
230
|
-
method: "GET",
|
|
231
|
-
headers,
|
|
232
|
-
path: resolvedPath,
|
|
233
|
-
body,
|
|
234
|
-
});
|
|
152
|
+
b.m("GET").h(headers).b(body);
|
|
153
|
+
return b.build();
|
|
235
154
|
};
|
|
236
155
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
237
156
|
const se_ListVersionsCommand = async (input, context) => {
|
|
238
|
-
const
|
|
157
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
239
158
|
const headers = {};
|
|
240
|
-
|
|
159
|
+
b.bp("/versions");
|
|
241
160
|
const query = (0, smithy_client_1.map)({
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
161
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
162
|
+
[_nT]: [, input[_nT]],
|
|
163
|
+
[_wi]: [, input[_wI]],
|
|
245
164
|
});
|
|
246
165
|
let body;
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
hostname,
|
|
250
|
-
port,
|
|
251
|
-
method: "GET",
|
|
252
|
-
headers,
|
|
253
|
-
path: resolvedPath,
|
|
254
|
-
query,
|
|
255
|
-
body,
|
|
256
|
-
});
|
|
166
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
167
|
+
return b.build();
|
|
257
168
|
};
|
|
258
169
|
exports.se_ListVersionsCommand = se_ListVersionsCommand;
|
|
259
170
|
const se_ListWorkspacesCommand = async (input, context) => {
|
|
260
|
-
const
|
|
171
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
261
172
|
const headers = {};
|
|
262
|
-
|
|
173
|
+
b.bp("/workspaces");
|
|
263
174
|
const query = (0, smithy_client_1.map)({
|
|
264
|
-
|
|
265
|
-
|
|
175
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
176
|
+
[_nT]: [, input[_nT]],
|
|
266
177
|
});
|
|
267
178
|
let body;
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
hostname,
|
|
271
|
-
port,
|
|
272
|
-
method: "GET",
|
|
273
|
-
headers,
|
|
274
|
-
path: resolvedPath,
|
|
275
|
-
query,
|
|
276
|
-
body,
|
|
277
|
-
});
|
|
179
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
180
|
+
return b.build();
|
|
278
181
|
};
|
|
279
182
|
exports.se_ListWorkspacesCommand = se_ListWorkspacesCommand;
|
|
280
183
|
const se_TagResourceCommand = async (input, context) => {
|
|
281
|
-
const
|
|
184
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
282
185
|
const headers = {
|
|
283
186
|
"content-type": "application/json",
|
|
284
187
|
};
|
|
285
|
-
|
|
286
|
-
|
|
188
|
+
b.bp("/tags/{resourceArn}");
|
|
189
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
287
190
|
let body;
|
|
288
191
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
289
192
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
290
193
|
}));
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
hostname,
|
|
294
|
-
port,
|
|
295
|
-
method: "POST",
|
|
296
|
-
headers,
|
|
297
|
-
path: resolvedPath,
|
|
298
|
-
body,
|
|
299
|
-
});
|
|
194
|
+
b.m("POST").h(headers).b(body);
|
|
195
|
+
return b.build();
|
|
300
196
|
};
|
|
301
197
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
302
198
|
const se_UntagResourceCommand = async (input, context) => {
|
|
303
|
-
const
|
|
199
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
304
200
|
const headers = {};
|
|
305
|
-
|
|
306
|
-
|
|
201
|
+
b.bp("/tags/{resourceArn}");
|
|
202
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
307
203
|
const query = (0, smithy_client_1.map)({
|
|
308
|
-
|
|
204
|
+
[_tK]: [
|
|
309
205
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
310
|
-
() => (input
|
|
206
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
311
207
|
],
|
|
312
208
|
});
|
|
313
209
|
let body;
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
hostname,
|
|
317
|
-
port,
|
|
318
|
-
method: "DELETE",
|
|
319
|
-
headers,
|
|
320
|
-
path: resolvedPath,
|
|
321
|
-
query,
|
|
322
|
-
body,
|
|
323
|
-
});
|
|
210
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
211
|
+
return b.build();
|
|
324
212
|
};
|
|
325
213
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
326
214
|
const se_UpdatePermissionsCommand = async (input, context) => {
|
|
327
|
-
const
|
|
215
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
328
216
|
const headers = {
|
|
329
217
|
"content-type": "application/json",
|
|
330
218
|
};
|
|
331
|
-
|
|
332
|
-
|
|
219
|
+
b.bp("/workspaces/{workspaceId}/permissions");
|
|
220
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
333
221
|
let body;
|
|
334
222
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
335
223
|
updateInstructionBatch: (_) => (0, smithy_client_1._json)(_),
|
|
336
224
|
}));
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
hostname,
|
|
340
|
-
port,
|
|
341
|
-
method: "PATCH",
|
|
342
|
-
headers,
|
|
343
|
-
path: resolvedPath,
|
|
344
|
-
body,
|
|
345
|
-
});
|
|
225
|
+
b.m("PATCH").h(headers).b(body);
|
|
226
|
+
return b.build();
|
|
346
227
|
};
|
|
347
228
|
exports.se_UpdatePermissionsCommand = se_UpdatePermissionsCommand;
|
|
348
229
|
const se_UpdateWorkspaceCommand = async (input, context) => {
|
|
349
|
-
const
|
|
230
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
350
231
|
const headers = {
|
|
351
232
|
"content-type": "application/json",
|
|
352
233
|
};
|
|
353
|
-
|
|
354
|
-
|
|
234
|
+
b.bp("/workspaces/{workspaceId}");
|
|
235
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
355
236
|
let body;
|
|
356
237
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
357
238
|
accountAccessType: [],
|
|
@@ -369,61 +250,40 @@ const se_UpdateWorkspaceCommand = async (input, context) => {
|
|
|
369
250
|
workspaceOrganizationalUnits: (_) => (0, smithy_client_1._json)(_),
|
|
370
251
|
workspaceRoleArn: [],
|
|
371
252
|
}));
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
hostname,
|
|
375
|
-
port,
|
|
376
|
-
method: "PUT",
|
|
377
|
-
headers,
|
|
378
|
-
path: resolvedPath,
|
|
379
|
-
body,
|
|
380
|
-
});
|
|
253
|
+
b.m("PUT").h(headers).b(body);
|
|
254
|
+
return b.build();
|
|
381
255
|
};
|
|
382
256
|
exports.se_UpdateWorkspaceCommand = se_UpdateWorkspaceCommand;
|
|
383
257
|
const se_UpdateWorkspaceAuthenticationCommand = async (input, context) => {
|
|
384
|
-
const
|
|
258
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
385
259
|
const headers = {
|
|
386
260
|
"content-type": "application/json",
|
|
387
261
|
};
|
|
388
|
-
|
|
389
|
-
|
|
262
|
+
b.bp("/workspaces/{workspaceId}/authentication");
|
|
263
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
390
264
|
let body;
|
|
391
265
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
392
266
|
authenticationProviders: (_) => (0, smithy_client_1._json)(_),
|
|
393
267
|
samlConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
394
268
|
}));
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
hostname,
|
|
398
|
-
port,
|
|
399
|
-
method: "POST",
|
|
400
|
-
headers,
|
|
401
|
-
path: resolvedPath,
|
|
402
|
-
body,
|
|
403
|
-
});
|
|
269
|
+
b.m("POST").h(headers).b(body);
|
|
270
|
+
return b.build();
|
|
404
271
|
};
|
|
405
272
|
exports.se_UpdateWorkspaceAuthenticationCommand = se_UpdateWorkspaceAuthenticationCommand;
|
|
406
273
|
const se_UpdateWorkspaceConfigurationCommand = async (input, context) => {
|
|
407
|
-
const
|
|
274
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
408
275
|
const headers = {
|
|
409
276
|
"content-type": "application/json",
|
|
410
277
|
};
|
|
411
|
-
|
|
412
|
-
|
|
278
|
+
b.bp("/workspaces/{workspaceId}/configuration");
|
|
279
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
413
280
|
let body;
|
|
414
281
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
415
282
|
configuration: (_) => smithy_client_1.LazyJsonString.fromObject(_),
|
|
416
283
|
grafanaVersion: [],
|
|
417
284
|
}));
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
hostname,
|
|
421
|
-
port,
|
|
422
|
-
method: "PUT",
|
|
423
|
-
headers,
|
|
424
|
-
path: resolvedPath,
|
|
425
|
-
body,
|
|
426
|
-
});
|
|
285
|
+
b.m("PUT").h(headers).b(body);
|
|
286
|
+
return b.build();
|
|
427
287
|
};
|
|
428
288
|
exports.se_UpdateWorkspaceConfigurationCommand = se_UpdateWorkspaceConfigurationCommand;
|
|
429
289
|
const de_AssociateLicenseCommand = async (output, context) => {
|
|
@@ -1341,10 +1201,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1341
1201
|
};
|
|
1342
1202
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1343
1203
|
const contents = (0, smithy_client_1.map)({
|
|
1344
|
-
|
|
1345
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
1346
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
1347
|
-
],
|
|
1204
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
1348
1205
|
});
|
|
1349
1206
|
const data = parsedOutput.body;
|
|
1350
1207
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -1391,10 +1248,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1391
1248
|
};
|
|
1392
1249
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1393
1250
|
const contents = (0, smithy_client_1.map)({
|
|
1394
|
-
|
|
1395
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
1396
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
1397
|
-
],
|
|
1251
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
1398
1252
|
});
|
|
1399
1253
|
const data = parsedOutput.body;
|
|
1400
1254
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -1487,6 +1341,16 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1487
1341
|
value !== "" &&
|
|
1488
1342
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1489
1343
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1344
|
+
const _gI = "groupId";
|
|
1345
|
+
const _mR = "maxResults";
|
|
1346
|
+
const _nT = "nextToken";
|
|
1347
|
+
const _rAS = "retryAfterSeconds";
|
|
1348
|
+
const _ra = "retry-after";
|
|
1349
|
+
const _tK = "tagKeys";
|
|
1350
|
+
const _uI = "userId";
|
|
1351
|
+
const _uT = "userType";
|
|
1352
|
+
const _wI = "workspaceId";
|
|
1353
|
+
const _wi = "workspace-id";
|
|
1490
1354
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1491
1355
|
if (encoded.length) {
|
|
1492
1356
|
return JSON.parse(encoded);
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPermissionsCommand, } from "../commands/ListPermissionsCommand";
|
|
2
3
|
import { GrafanaClient } from "../GrafanaClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPermissionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPermissions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GrafanaClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Grafana | GrafanaClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPermissions = createPaginator(GrafanaClient, ListPermissionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListVersionsCommand, } from "../commands/ListVersionsCommand";
|
|
2
3
|
import { GrafanaClient } from "../GrafanaClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListVersionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListVersions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GrafanaClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Grafana | GrafanaClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListVersions = createPaginator(GrafanaClient, ListVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListWorkspacesCommand, } from "../commands/ListWorkspacesCommand";
|
|
2
3
|
import { GrafanaClient } from "../GrafanaClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListWorkspacesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListWorkspaces(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof GrafanaClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Grafana | GrafanaClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListWorkspaces = createPaginator(GrafanaClient, ListWorkspacesCommand, "nextToken", "nextToken", "maxResults");
|