@aws-sdk/client-grafana 3.315.0 → 3.319.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/Grafana.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Grafana = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const AssociateLicenseCommand_1 = require("./commands/AssociateLicenseCommand");
|
|
5
6
|
const CreateWorkspaceApiKeyCommand_1 = require("./commands/CreateWorkspaceApiKeyCommand");
|
|
6
7
|
const CreateWorkspaceCommand_1 = require("./commands/CreateWorkspaceCommand");
|
|
@@ -20,258 +21,27 @@ const UpdateWorkspaceAuthenticationCommand_1 = require("./commands/UpdateWorkspa
|
|
|
20
21
|
const UpdateWorkspaceCommand_1 = require("./commands/UpdateWorkspaceCommand");
|
|
21
22
|
const UpdateWorkspaceConfigurationCommand_1 = require("./commands/UpdateWorkspaceConfigurationCommand");
|
|
22
23
|
const GrafanaClient_1 = require("./GrafanaClient");
|
|
24
|
+
const commands = {
|
|
25
|
+
AssociateLicenseCommand: AssociateLicenseCommand_1.AssociateLicenseCommand,
|
|
26
|
+
CreateWorkspaceCommand: CreateWorkspaceCommand_1.CreateWorkspaceCommand,
|
|
27
|
+
CreateWorkspaceApiKeyCommand: CreateWorkspaceApiKeyCommand_1.CreateWorkspaceApiKeyCommand,
|
|
28
|
+
DeleteWorkspaceCommand: DeleteWorkspaceCommand_1.DeleteWorkspaceCommand,
|
|
29
|
+
DeleteWorkspaceApiKeyCommand: DeleteWorkspaceApiKeyCommand_1.DeleteWorkspaceApiKeyCommand,
|
|
30
|
+
DescribeWorkspaceCommand: DescribeWorkspaceCommand_1.DescribeWorkspaceCommand,
|
|
31
|
+
DescribeWorkspaceAuthenticationCommand: DescribeWorkspaceAuthenticationCommand_1.DescribeWorkspaceAuthenticationCommand,
|
|
32
|
+
DescribeWorkspaceConfigurationCommand: DescribeWorkspaceConfigurationCommand_1.DescribeWorkspaceConfigurationCommand,
|
|
33
|
+
DisassociateLicenseCommand: DisassociateLicenseCommand_1.DisassociateLicenseCommand,
|
|
34
|
+
ListPermissionsCommand: ListPermissionsCommand_1.ListPermissionsCommand,
|
|
35
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
36
|
+
ListWorkspacesCommand: ListWorkspacesCommand_1.ListWorkspacesCommand,
|
|
37
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
38
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
39
|
+
UpdatePermissionsCommand: UpdatePermissionsCommand_1.UpdatePermissionsCommand,
|
|
40
|
+
UpdateWorkspaceCommand: UpdateWorkspaceCommand_1.UpdateWorkspaceCommand,
|
|
41
|
+
UpdateWorkspaceAuthenticationCommand: UpdateWorkspaceAuthenticationCommand_1.UpdateWorkspaceAuthenticationCommand,
|
|
42
|
+
UpdateWorkspaceConfigurationCommand: UpdateWorkspaceConfigurationCommand_1.UpdateWorkspaceConfigurationCommand,
|
|
43
|
+
};
|
|
23
44
|
class Grafana extends GrafanaClient_1.GrafanaClient {
|
|
24
|
-
associateLicense(args, optionsOrCb, cb) {
|
|
25
|
-
const command = new AssociateLicenseCommand_1.AssociateLicenseCommand(args);
|
|
26
|
-
if (typeof optionsOrCb === "function") {
|
|
27
|
-
this.send(command, optionsOrCb);
|
|
28
|
-
}
|
|
29
|
-
else if (typeof cb === "function") {
|
|
30
|
-
if (typeof optionsOrCb !== "object")
|
|
31
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
32
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
return this.send(command, optionsOrCb);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
createWorkspace(args, optionsOrCb, cb) {
|
|
39
|
-
const command = new CreateWorkspaceCommand_1.CreateWorkspaceCommand(args);
|
|
40
|
-
if (typeof optionsOrCb === "function") {
|
|
41
|
-
this.send(command, optionsOrCb);
|
|
42
|
-
}
|
|
43
|
-
else if (typeof cb === "function") {
|
|
44
|
-
if (typeof optionsOrCb !== "object")
|
|
45
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
46
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
return this.send(command, optionsOrCb);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
createWorkspaceApiKey(args, optionsOrCb, cb) {
|
|
53
|
-
const command = new CreateWorkspaceApiKeyCommand_1.CreateWorkspaceApiKeyCommand(args);
|
|
54
|
-
if (typeof optionsOrCb === "function") {
|
|
55
|
-
this.send(command, optionsOrCb);
|
|
56
|
-
}
|
|
57
|
-
else if (typeof cb === "function") {
|
|
58
|
-
if (typeof optionsOrCb !== "object")
|
|
59
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
60
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
return this.send(command, optionsOrCb);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
deleteWorkspace(args, optionsOrCb, cb) {
|
|
67
|
-
const command = new DeleteWorkspaceCommand_1.DeleteWorkspaceCommand(args);
|
|
68
|
-
if (typeof optionsOrCb === "function") {
|
|
69
|
-
this.send(command, optionsOrCb);
|
|
70
|
-
}
|
|
71
|
-
else if (typeof cb === "function") {
|
|
72
|
-
if (typeof optionsOrCb !== "object")
|
|
73
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
74
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
return this.send(command, optionsOrCb);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
deleteWorkspaceApiKey(args, optionsOrCb, cb) {
|
|
81
|
-
const command = new DeleteWorkspaceApiKeyCommand_1.DeleteWorkspaceApiKeyCommand(args);
|
|
82
|
-
if (typeof optionsOrCb === "function") {
|
|
83
|
-
this.send(command, optionsOrCb);
|
|
84
|
-
}
|
|
85
|
-
else if (typeof cb === "function") {
|
|
86
|
-
if (typeof optionsOrCb !== "object")
|
|
87
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
88
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
return this.send(command, optionsOrCb);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
describeWorkspace(args, optionsOrCb, cb) {
|
|
95
|
-
const command = new DescribeWorkspaceCommand_1.DescribeWorkspaceCommand(args);
|
|
96
|
-
if (typeof optionsOrCb === "function") {
|
|
97
|
-
this.send(command, optionsOrCb);
|
|
98
|
-
}
|
|
99
|
-
else if (typeof cb === "function") {
|
|
100
|
-
if (typeof optionsOrCb !== "object")
|
|
101
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
102
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
return this.send(command, optionsOrCb);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
describeWorkspaceAuthentication(args, optionsOrCb, cb) {
|
|
109
|
-
const command = new DescribeWorkspaceAuthenticationCommand_1.DescribeWorkspaceAuthenticationCommand(args);
|
|
110
|
-
if (typeof optionsOrCb === "function") {
|
|
111
|
-
this.send(command, optionsOrCb);
|
|
112
|
-
}
|
|
113
|
-
else if (typeof cb === "function") {
|
|
114
|
-
if (typeof optionsOrCb !== "object")
|
|
115
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
116
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
return this.send(command, optionsOrCb);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
describeWorkspaceConfiguration(args, optionsOrCb, cb) {
|
|
123
|
-
const command = new DescribeWorkspaceConfigurationCommand_1.DescribeWorkspaceConfigurationCommand(args);
|
|
124
|
-
if (typeof optionsOrCb === "function") {
|
|
125
|
-
this.send(command, optionsOrCb);
|
|
126
|
-
}
|
|
127
|
-
else if (typeof cb === "function") {
|
|
128
|
-
if (typeof optionsOrCb !== "object")
|
|
129
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
130
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
return this.send(command, optionsOrCb);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
disassociateLicense(args, optionsOrCb, cb) {
|
|
137
|
-
const command = new DisassociateLicenseCommand_1.DisassociateLicenseCommand(args);
|
|
138
|
-
if (typeof optionsOrCb === "function") {
|
|
139
|
-
this.send(command, optionsOrCb);
|
|
140
|
-
}
|
|
141
|
-
else if (typeof cb === "function") {
|
|
142
|
-
if (typeof optionsOrCb !== "object")
|
|
143
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
144
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
return this.send(command, optionsOrCb);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
listPermissions(args, optionsOrCb, cb) {
|
|
151
|
-
const command = new ListPermissionsCommand_1.ListPermissionsCommand(args);
|
|
152
|
-
if (typeof optionsOrCb === "function") {
|
|
153
|
-
this.send(command, optionsOrCb);
|
|
154
|
-
}
|
|
155
|
-
else if (typeof cb === "function") {
|
|
156
|
-
if (typeof optionsOrCb !== "object")
|
|
157
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
158
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
return this.send(command, optionsOrCb);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
165
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
166
|
-
if (typeof optionsOrCb === "function") {
|
|
167
|
-
this.send(command, optionsOrCb);
|
|
168
|
-
}
|
|
169
|
-
else if (typeof cb === "function") {
|
|
170
|
-
if (typeof optionsOrCb !== "object")
|
|
171
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
172
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
return this.send(command, optionsOrCb);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
listWorkspaces(args, optionsOrCb, cb) {
|
|
179
|
-
const command = new ListWorkspacesCommand_1.ListWorkspacesCommand(args);
|
|
180
|
-
if (typeof optionsOrCb === "function") {
|
|
181
|
-
this.send(command, optionsOrCb);
|
|
182
|
-
}
|
|
183
|
-
else if (typeof cb === "function") {
|
|
184
|
-
if (typeof optionsOrCb !== "object")
|
|
185
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
186
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
return this.send(command, optionsOrCb);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
tagResource(args, optionsOrCb, cb) {
|
|
193
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
194
|
-
if (typeof optionsOrCb === "function") {
|
|
195
|
-
this.send(command, optionsOrCb);
|
|
196
|
-
}
|
|
197
|
-
else if (typeof cb === "function") {
|
|
198
|
-
if (typeof optionsOrCb !== "object")
|
|
199
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
200
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
201
|
-
}
|
|
202
|
-
else {
|
|
203
|
-
return this.send(command, optionsOrCb);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
untagResource(args, optionsOrCb, cb) {
|
|
207
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
208
|
-
if (typeof optionsOrCb === "function") {
|
|
209
|
-
this.send(command, optionsOrCb);
|
|
210
|
-
}
|
|
211
|
-
else if (typeof cb === "function") {
|
|
212
|
-
if (typeof optionsOrCb !== "object")
|
|
213
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
214
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
215
|
-
}
|
|
216
|
-
else {
|
|
217
|
-
return this.send(command, optionsOrCb);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
updatePermissions(args, optionsOrCb, cb) {
|
|
221
|
-
const command = new UpdatePermissionsCommand_1.UpdatePermissionsCommand(args);
|
|
222
|
-
if (typeof optionsOrCb === "function") {
|
|
223
|
-
this.send(command, optionsOrCb);
|
|
224
|
-
}
|
|
225
|
-
else if (typeof cb === "function") {
|
|
226
|
-
if (typeof optionsOrCb !== "object")
|
|
227
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
228
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
229
|
-
}
|
|
230
|
-
else {
|
|
231
|
-
return this.send(command, optionsOrCb);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
updateWorkspace(args, optionsOrCb, cb) {
|
|
235
|
-
const command = new UpdateWorkspaceCommand_1.UpdateWorkspaceCommand(args);
|
|
236
|
-
if (typeof optionsOrCb === "function") {
|
|
237
|
-
this.send(command, optionsOrCb);
|
|
238
|
-
}
|
|
239
|
-
else if (typeof cb === "function") {
|
|
240
|
-
if (typeof optionsOrCb !== "object")
|
|
241
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
242
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
243
|
-
}
|
|
244
|
-
else {
|
|
245
|
-
return this.send(command, optionsOrCb);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
updateWorkspaceAuthentication(args, optionsOrCb, cb) {
|
|
249
|
-
const command = new UpdateWorkspaceAuthenticationCommand_1.UpdateWorkspaceAuthenticationCommand(args);
|
|
250
|
-
if (typeof optionsOrCb === "function") {
|
|
251
|
-
this.send(command, optionsOrCb);
|
|
252
|
-
}
|
|
253
|
-
else if (typeof cb === "function") {
|
|
254
|
-
if (typeof optionsOrCb !== "object")
|
|
255
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
256
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
257
|
-
}
|
|
258
|
-
else {
|
|
259
|
-
return this.send(command, optionsOrCb);
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
updateWorkspaceConfiguration(args, optionsOrCb, cb) {
|
|
263
|
-
const command = new UpdateWorkspaceConfigurationCommand_1.UpdateWorkspaceConfigurationCommand(args);
|
|
264
|
-
if (typeof optionsOrCb === "function") {
|
|
265
|
-
this.send(command, optionsOrCb);
|
|
266
|
-
}
|
|
267
|
-
else if (typeof cb === "function") {
|
|
268
|
-
if (typeof optionsOrCb !== "object")
|
|
269
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
270
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
271
|
-
}
|
|
272
|
-
else {
|
|
273
|
-
return this.send(command, optionsOrCb);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
45
|
}
|
|
277
46
|
exports.Grafana = Grafana;
|
|
47
|
+
(0, smithy_client_1.createAggregatedClient)(commands, Grafana);
|
|
@@ -35,7 +35,7 @@ const se_CreateWorkspaceCommand = async (input, context) => {
|
|
|
35
35
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
36
36
|
accountAccessType: [],
|
|
37
37
|
authenticationProviders: (_) => (0, smithy_client_1._json)(_),
|
|
38
|
-
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
38
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
39
39
|
configuration: (_) => smithy_client_1.LazyJsonString.fromObject(_),
|
|
40
40
|
networkAccessControl: (_) => (0, smithy_client_1._json)(_),
|
|
41
41
|
organizationRoleName: [],
|
package/dist-es/Grafana.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { AssociateLicenseCommand, } from "./commands/AssociateLicenseCommand";
|
|
2
3
|
import { CreateWorkspaceApiKeyCommand, } from "./commands/CreateWorkspaceApiKeyCommand";
|
|
3
4
|
import { CreateWorkspaceCommand, } from "./commands/CreateWorkspaceCommand";
|
|
@@ -17,257 +18,26 @@ import { UpdateWorkspaceAuthenticationCommand, } from "./commands/UpdateWorkspac
|
|
|
17
18
|
import { UpdateWorkspaceCommand, } from "./commands/UpdateWorkspaceCommand";
|
|
18
19
|
import { UpdateWorkspaceConfigurationCommand, } from "./commands/UpdateWorkspaceConfigurationCommand";
|
|
19
20
|
import { GrafanaClient } from "./GrafanaClient";
|
|
21
|
+
const commands = {
|
|
22
|
+
AssociateLicenseCommand,
|
|
23
|
+
CreateWorkspaceCommand,
|
|
24
|
+
CreateWorkspaceApiKeyCommand,
|
|
25
|
+
DeleteWorkspaceCommand,
|
|
26
|
+
DeleteWorkspaceApiKeyCommand,
|
|
27
|
+
DescribeWorkspaceCommand,
|
|
28
|
+
DescribeWorkspaceAuthenticationCommand,
|
|
29
|
+
DescribeWorkspaceConfigurationCommand,
|
|
30
|
+
DisassociateLicenseCommand,
|
|
31
|
+
ListPermissionsCommand,
|
|
32
|
+
ListTagsForResourceCommand,
|
|
33
|
+
ListWorkspacesCommand,
|
|
34
|
+
TagResourceCommand,
|
|
35
|
+
UntagResourceCommand,
|
|
36
|
+
UpdatePermissionsCommand,
|
|
37
|
+
UpdateWorkspaceCommand,
|
|
38
|
+
UpdateWorkspaceAuthenticationCommand,
|
|
39
|
+
UpdateWorkspaceConfigurationCommand,
|
|
40
|
+
};
|
|
20
41
|
export class Grafana extends GrafanaClient {
|
|
21
|
-
associateLicense(args, optionsOrCb, cb) {
|
|
22
|
-
const command = new AssociateLicenseCommand(args);
|
|
23
|
-
if (typeof optionsOrCb === "function") {
|
|
24
|
-
this.send(command, optionsOrCb);
|
|
25
|
-
}
|
|
26
|
-
else if (typeof cb === "function") {
|
|
27
|
-
if (typeof optionsOrCb !== "object")
|
|
28
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
29
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
return this.send(command, optionsOrCb);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
createWorkspace(args, optionsOrCb, cb) {
|
|
36
|
-
const command = new CreateWorkspaceCommand(args);
|
|
37
|
-
if (typeof optionsOrCb === "function") {
|
|
38
|
-
this.send(command, optionsOrCb);
|
|
39
|
-
}
|
|
40
|
-
else if (typeof cb === "function") {
|
|
41
|
-
if (typeof optionsOrCb !== "object")
|
|
42
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
43
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
return this.send(command, optionsOrCb);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
createWorkspaceApiKey(args, optionsOrCb, cb) {
|
|
50
|
-
const command = new CreateWorkspaceApiKeyCommand(args);
|
|
51
|
-
if (typeof optionsOrCb === "function") {
|
|
52
|
-
this.send(command, optionsOrCb);
|
|
53
|
-
}
|
|
54
|
-
else if (typeof cb === "function") {
|
|
55
|
-
if (typeof optionsOrCb !== "object")
|
|
56
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
57
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
return this.send(command, optionsOrCb);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
deleteWorkspace(args, optionsOrCb, cb) {
|
|
64
|
-
const command = new DeleteWorkspaceCommand(args);
|
|
65
|
-
if (typeof optionsOrCb === "function") {
|
|
66
|
-
this.send(command, optionsOrCb);
|
|
67
|
-
}
|
|
68
|
-
else if (typeof cb === "function") {
|
|
69
|
-
if (typeof optionsOrCb !== "object")
|
|
70
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
71
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
return this.send(command, optionsOrCb);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
deleteWorkspaceApiKey(args, optionsOrCb, cb) {
|
|
78
|
-
const command = new DeleteWorkspaceApiKeyCommand(args);
|
|
79
|
-
if (typeof optionsOrCb === "function") {
|
|
80
|
-
this.send(command, optionsOrCb);
|
|
81
|
-
}
|
|
82
|
-
else if (typeof cb === "function") {
|
|
83
|
-
if (typeof optionsOrCb !== "object")
|
|
84
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
85
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
return this.send(command, optionsOrCb);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
describeWorkspace(args, optionsOrCb, cb) {
|
|
92
|
-
const command = new DescribeWorkspaceCommand(args);
|
|
93
|
-
if (typeof optionsOrCb === "function") {
|
|
94
|
-
this.send(command, optionsOrCb);
|
|
95
|
-
}
|
|
96
|
-
else if (typeof cb === "function") {
|
|
97
|
-
if (typeof optionsOrCb !== "object")
|
|
98
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
99
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
return this.send(command, optionsOrCb);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
describeWorkspaceAuthentication(args, optionsOrCb, cb) {
|
|
106
|
-
const command = new DescribeWorkspaceAuthenticationCommand(args);
|
|
107
|
-
if (typeof optionsOrCb === "function") {
|
|
108
|
-
this.send(command, optionsOrCb);
|
|
109
|
-
}
|
|
110
|
-
else if (typeof cb === "function") {
|
|
111
|
-
if (typeof optionsOrCb !== "object")
|
|
112
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
113
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
return this.send(command, optionsOrCb);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
describeWorkspaceConfiguration(args, optionsOrCb, cb) {
|
|
120
|
-
const command = new DescribeWorkspaceConfigurationCommand(args);
|
|
121
|
-
if (typeof optionsOrCb === "function") {
|
|
122
|
-
this.send(command, optionsOrCb);
|
|
123
|
-
}
|
|
124
|
-
else if (typeof cb === "function") {
|
|
125
|
-
if (typeof optionsOrCb !== "object")
|
|
126
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
127
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
return this.send(command, optionsOrCb);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
disassociateLicense(args, optionsOrCb, cb) {
|
|
134
|
-
const command = new DisassociateLicenseCommand(args);
|
|
135
|
-
if (typeof optionsOrCb === "function") {
|
|
136
|
-
this.send(command, optionsOrCb);
|
|
137
|
-
}
|
|
138
|
-
else if (typeof cb === "function") {
|
|
139
|
-
if (typeof optionsOrCb !== "object")
|
|
140
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
141
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
return this.send(command, optionsOrCb);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
listPermissions(args, optionsOrCb, cb) {
|
|
148
|
-
const command = new ListPermissionsCommand(args);
|
|
149
|
-
if (typeof optionsOrCb === "function") {
|
|
150
|
-
this.send(command, optionsOrCb);
|
|
151
|
-
}
|
|
152
|
-
else if (typeof cb === "function") {
|
|
153
|
-
if (typeof optionsOrCb !== "object")
|
|
154
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
155
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
return this.send(command, optionsOrCb);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
162
|
-
const command = new ListTagsForResourceCommand(args);
|
|
163
|
-
if (typeof optionsOrCb === "function") {
|
|
164
|
-
this.send(command, optionsOrCb);
|
|
165
|
-
}
|
|
166
|
-
else if (typeof cb === "function") {
|
|
167
|
-
if (typeof optionsOrCb !== "object")
|
|
168
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
169
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
170
|
-
}
|
|
171
|
-
else {
|
|
172
|
-
return this.send(command, optionsOrCb);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
listWorkspaces(args, optionsOrCb, cb) {
|
|
176
|
-
const command = new ListWorkspacesCommand(args);
|
|
177
|
-
if (typeof optionsOrCb === "function") {
|
|
178
|
-
this.send(command, optionsOrCb);
|
|
179
|
-
}
|
|
180
|
-
else if (typeof cb === "function") {
|
|
181
|
-
if (typeof optionsOrCb !== "object")
|
|
182
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
183
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
184
|
-
}
|
|
185
|
-
else {
|
|
186
|
-
return this.send(command, optionsOrCb);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
tagResource(args, optionsOrCb, cb) {
|
|
190
|
-
const command = new TagResourceCommand(args);
|
|
191
|
-
if (typeof optionsOrCb === "function") {
|
|
192
|
-
this.send(command, optionsOrCb);
|
|
193
|
-
}
|
|
194
|
-
else if (typeof cb === "function") {
|
|
195
|
-
if (typeof optionsOrCb !== "object")
|
|
196
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
197
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
198
|
-
}
|
|
199
|
-
else {
|
|
200
|
-
return this.send(command, optionsOrCb);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
untagResource(args, optionsOrCb, cb) {
|
|
204
|
-
const command = new UntagResourceCommand(args);
|
|
205
|
-
if (typeof optionsOrCb === "function") {
|
|
206
|
-
this.send(command, optionsOrCb);
|
|
207
|
-
}
|
|
208
|
-
else if (typeof cb === "function") {
|
|
209
|
-
if (typeof optionsOrCb !== "object")
|
|
210
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
211
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
212
|
-
}
|
|
213
|
-
else {
|
|
214
|
-
return this.send(command, optionsOrCb);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
updatePermissions(args, optionsOrCb, cb) {
|
|
218
|
-
const command = new UpdatePermissionsCommand(args);
|
|
219
|
-
if (typeof optionsOrCb === "function") {
|
|
220
|
-
this.send(command, optionsOrCb);
|
|
221
|
-
}
|
|
222
|
-
else if (typeof cb === "function") {
|
|
223
|
-
if (typeof optionsOrCb !== "object")
|
|
224
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
225
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
226
|
-
}
|
|
227
|
-
else {
|
|
228
|
-
return this.send(command, optionsOrCb);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
updateWorkspace(args, optionsOrCb, cb) {
|
|
232
|
-
const command = new UpdateWorkspaceCommand(args);
|
|
233
|
-
if (typeof optionsOrCb === "function") {
|
|
234
|
-
this.send(command, optionsOrCb);
|
|
235
|
-
}
|
|
236
|
-
else if (typeof cb === "function") {
|
|
237
|
-
if (typeof optionsOrCb !== "object")
|
|
238
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
239
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
240
|
-
}
|
|
241
|
-
else {
|
|
242
|
-
return this.send(command, optionsOrCb);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
updateWorkspaceAuthentication(args, optionsOrCb, cb) {
|
|
246
|
-
const command = new UpdateWorkspaceAuthenticationCommand(args);
|
|
247
|
-
if (typeof optionsOrCb === "function") {
|
|
248
|
-
this.send(command, optionsOrCb);
|
|
249
|
-
}
|
|
250
|
-
else if (typeof cb === "function") {
|
|
251
|
-
if (typeof optionsOrCb !== "object")
|
|
252
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
253
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
return this.send(command, optionsOrCb);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
updateWorkspaceConfiguration(args, optionsOrCb, cb) {
|
|
260
|
-
const command = new UpdateWorkspaceConfigurationCommand(args);
|
|
261
|
-
if (typeof optionsOrCb === "function") {
|
|
262
|
-
this.send(command, optionsOrCb);
|
|
263
|
-
}
|
|
264
|
-
else if (typeof cb === "function") {
|
|
265
|
-
if (typeof optionsOrCb !== "object")
|
|
266
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
267
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
268
|
-
}
|
|
269
|
-
else {
|
|
270
|
-
return this.send(command, optionsOrCb);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
42
|
}
|
|
43
|
+
createAggregatedClient(commands, Grafana);
|
|
@@ -31,7 +31,7 @@ export const se_CreateWorkspaceCommand = async (input, context) => {
|
|
|
31
31
|
body = JSON.stringify(take(input, {
|
|
32
32
|
accountAccessType: [],
|
|
33
33
|
authenticationProviders: (_) => _json(_),
|
|
34
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
34
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
35
35
|
configuration: (_) => __LazyJsonString.fromObject(_),
|
|
36
36
|
networkAccessControl: (_) => _json(_),
|
|
37
37
|
organizationRoleName: [],
|
package/dist-types/Grafana.d.ts
CHANGED
|
@@ -18,180 +18,127 @@ import { UpdateWorkspaceAuthenticationCommandInput, UpdateWorkspaceAuthenticatio
|
|
|
18
18
|
import { UpdateWorkspaceCommandInput, UpdateWorkspaceCommandOutput } from "./commands/UpdateWorkspaceCommand";
|
|
19
19
|
import { UpdateWorkspaceConfigurationCommandInput, UpdateWorkspaceConfigurationCommandOutput } from "./commands/UpdateWorkspaceConfigurationCommand";
|
|
20
20
|
import { GrafanaClient } from "./GrafanaClient";
|
|
21
|
-
|
|
22
|
-
* @public
|
|
23
|
-
* <p>Amazon Managed Grafana is a fully managed and secure data visualization service that
|
|
24
|
-
* you can use to instantly query, correlate, and visualize operational metrics, logs, and
|
|
25
|
-
* traces from multiple sources. Amazon Managed Grafana makes it easy to deploy, operate, and
|
|
26
|
-
* scale Grafana, a widely deployed data visualization tool that is popular for its
|
|
27
|
-
* extensible data support.</p>
|
|
28
|
-
* <p>With Amazon Managed Grafana, you create logically isolated Grafana servers called
|
|
29
|
-
* <i>workspaces</i>. In a workspace, you can create Grafana dashboards
|
|
30
|
-
* and visualizations to analyze your metrics, logs, and traces without having to build,
|
|
31
|
-
* package, or deploy any hardware to run Grafana servers. </p>
|
|
32
|
-
*/
|
|
33
|
-
export declare class Grafana extends GrafanaClient {
|
|
21
|
+
export interface Grafana {
|
|
34
22
|
/**
|
|
35
|
-
* @
|
|
36
|
-
* <p>Assigns a Grafana Enterprise license to a workspace. Upgrading to Grafana Enterprise
|
|
37
|
-
* incurs additional fees. For more information, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/upgrade-to-Grafana-Enterprise.html">Upgrade a
|
|
38
|
-
* workspace to Grafana Enterprise</a>.</p>
|
|
23
|
+
* @see {@link AssociateLicenseCommand}
|
|
39
24
|
*/
|
|
40
25
|
associateLicense(args: AssociateLicenseCommandInput, options?: __HttpHandlerOptions): Promise<AssociateLicenseCommandOutput>;
|
|
41
26
|
associateLicense(args: AssociateLicenseCommandInput, cb: (err: any, data?: AssociateLicenseCommandOutput) => void): void;
|
|
42
27
|
associateLicense(args: AssociateLicenseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateLicenseCommandOutput) => void): void;
|
|
43
28
|
/**
|
|
44
|
-
* @
|
|
45
|
-
* <p>Creates a <i>workspace</i>. In a workspace, you can create Grafana
|
|
46
|
-
* dashboards and visualizations to analyze your metrics, logs, and traces. You don't have
|
|
47
|
-
* to build, package, or deploy any hardware to run the Grafana server.</p>
|
|
48
|
-
* <p>Don't use <code>CreateWorkspace</code> to modify an existing workspace. Instead, use
|
|
49
|
-
* <a href="https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdateWorkspace.html">UpdateWorkspace</a>.</p>
|
|
29
|
+
* @see {@link CreateWorkspaceCommand}
|
|
50
30
|
*/
|
|
51
31
|
createWorkspace(args: CreateWorkspaceCommandInput, options?: __HttpHandlerOptions): Promise<CreateWorkspaceCommandOutput>;
|
|
52
32
|
createWorkspace(args: CreateWorkspaceCommandInput, cb: (err: any, data?: CreateWorkspaceCommandOutput) => void): void;
|
|
53
33
|
createWorkspace(args: CreateWorkspaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWorkspaceCommandOutput) => void): void;
|
|
54
34
|
/**
|
|
55
|
-
* @
|
|
56
|
-
* <p>Creates a Grafana API key for the workspace. This key can be used to authenticate
|
|
57
|
-
* requests sent to the workspace's HTTP API. See <a href="https://docs.aws.amazon.com/grafana/latest/userguide/Using-Grafana-APIs.html">https://docs.aws.amazon.com/grafana/latest/userguide/Using-Grafana-APIs.html</a>
|
|
58
|
-
* for available APIs and example requests.</p>
|
|
35
|
+
* @see {@link CreateWorkspaceApiKeyCommand}
|
|
59
36
|
*/
|
|
60
37
|
createWorkspaceApiKey(args: CreateWorkspaceApiKeyCommandInput, options?: __HttpHandlerOptions): Promise<CreateWorkspaceApiKeyCommandOutput>;
|
|
61
38
|
createWorkspaceApiKey(args: CreateWorkspaceApiKeyCommandInput, cb: (err: any, data?: CreateWorkspaceApiKeyCommandOutput) => void): void;
|
|
62
39
|
createWorkspaceApiKey(args: CreateWorkspaceApiKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWorkspaceApiKeyCommandOutput) => void): void;
|
|
63
40
|
/**
|
|
64
|
-
* @
|
|
65
|
-
* <p>Deletes an Amazon Managed Grafana workspace.</p>
|
|
41
|
+
* @see {@link DeleteWorkspaceCommand}
|
|
66
42
|
*/
|
|
67
43
|
deleteWorkspace(args: DeleteWorkspaceCommandInput, options?: __HttpHandlerOptions): Promise<DeleteWorkspaceCommandOutput>;
|
|
68
44
|
deleteWorkspace(args: DeleteWorkspaceCommandInput, cb: (err: any, data?: DeleteWorkspaceCommandOutput) => void): void;
|
|
69
45
|
deleteWorkspace(args: DeleteWorkspaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteWorkspaceCommandOutput) => void): void;
|
|
70
46
|
/**
|
|
71
|
-
* @
|
|
72
|
-
* <p>Deletes a Grafana API key for the workspace.</p>
|
|
47
|
+
* @see {@link DeleteWorkspaceApiKeyCommand}
|
|
73
48
|
*/
|
|
74
49
|
deleteWorkspaceApiKey(args: DeleteWorkspaceApiKeyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteWorkspaceApiKeyCommandOutput>;
|
|
75
50
|
deleteWorkspaceApiKey(args: DeleteWorkspaceApiKeyCommandInput, cb: (err: any, data?: DeleteWorkspaceApiKeyCommandOutput) => void): void;
|
|
76
51
|
deleteWorkspaceApiKey(args: DeleteWorkspaceApiKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteWorkspaceApiKeyCommandOutput) => void): void;
|
|
77
52
|
/**
|
|
78
|
-
* @
|
|
79
|
-
* <p>Displays information about one Amazon Managed Grafana workspace.</p>
|
|
53
|
+
* @see {@link DescribeWorkspaceCommand}
|
|
80
54
|
*/
|
|
81
55
|
describeWorkspace(args: DescribeWorkspaceCommandInput, options?: __HttpHandlerOptions): Promise<DescribeWorkspaceCommandOutput>;
|
|
82
56
|
describeWorkspace(args: DescribeWorkspaceCommandInput, cb: (err: any, data?: DescribeWorkspaceCommandOutput) => void): void;
|
|
83
57
|
describeWorkspace(args: DescribeWorkspaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeWorkspaceCommandOutput) => void): void;
|
|
84
58
|
/**
|
|
85
|
-
* @
|
|
86
|
-
* <p>Displays information about the authentication methods used in one Amazon Managed Grafana
|
|
87
|
-
* workspace.</p>
|
|
59
|
+
* @see {@link DescribeWorkspaceAuthenticationCommand}
|
|
88
60
|
*/
|
|
89
61
|
describeWorkspaceAuthentication(args: DescribeWorkspaceAuthenticationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeWorkspaceAuthenticationCommandOutput>;
|
|
90
62
|
describeWorkspaceAuthentication(args: DescribeWorkspaceAuthenticationCommandInput, cb: (err: any, data?: DescribeWorkspaceAuthenticationCommandOutput) => void): void;
|
|
91
63
|
describeWorkspaceAuthentication(args: DescribeWorkspaceAuthenticationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeWorkspaceAuthenticationCommandOutput) => void): void;
|
|
92
64
|
/**
|
|
93
|
-
* @
|
|
94
|
-
* <p>Gets the current configuration string for the given workspace.</p>
|
|
65
|
+
* @see {@link DescribeWorkspaceConfigurationCommand}
|
|
95
66
|
*/
|
|
96
67
|
describeWorkspaceConfiguration(args: DescribeWorkspaceConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeWorkspaceConfigurationCommandOutput>;
|
|
97
68
|
describeWorkspaceConfiguration(args: DescribeWorkspaceConfigurationCommandInput, cb: (err: any, data?: DescribeWorkspaceConfigurationCommandOutput) => void): void;
|
|
98
69
|
describeWorkspaceConfiguration(args: DescribeWorkspaceConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeWorkspaceConfigurationCommandOutput) => void): void;
|
|
99
70
|
/**
|
|
100
|
-
* @
|
|
101
|
-
* <p>Removes the Grafana Enterprise license from a workspace.</p>
|
|
71
|
+
* @see {@link DisassociateLicenseCommand}
|
|
102
72
|
*/
|
|
103
73
|
disassociateLicense(args: DisassociateLicenseCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateLicenseCommandOutput>;
|
|
104
74
|
disassociateLicense(args: DisassociateLicenseCommandInput, cb: (err: any, data?: DisassociateLicenseCommandOutput) => void): void;
|
|
105
75
|
disassociateLicense(args: DisassociateLicenseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateLicenseCommandOutput) => void): void;
|
|
106
76
|
/**
|
|
107
|
-
* @
|
|
108
|
-
* <p>Lists the users and groups who have the Grafana <code>Admin</code> and
|
|
109
|
-
* <code>Editor</code> roles in this workspace. If you use this operation without
|
|
110
|
-
* specifying <code>userId</code> or <code>groupId</code>, the operation returns the roles
|
|
111
|
-
* of all users and groups. If you specify a <code>userId</code> or a <code>groupId</code>,
|
|
112
|
-
* only the roles for that user or group are returned. If you do this, you can specify only
|
|
113
|
-
* one <code>userId</code> or one <code>groupId</code>.</p>
|
|
77
|
+
* @see {@link ListPermissionsCommand}
|
|
114
78
|
*/
|
|
115
79
|
listPermissions(args: ListPermissionsCommandInput, options?: __HttpHandlerOptions): Promise<ListPermissionsCommandOutput>;
|
|
116
80
|
listPermissions(args: ListPermissionsCommandInput, cb: (err: any, data?: ListPermissionsCommandOutput) => void): void;
|
|
117
81
|
listPermissions(args: ListPermissionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPermissionsCommandOutput) => void): void;
|
|
118
82
|
/**
|
|
119
|
-
* @
|
|
120
|
-
* <p>The <code>ListTagsForResource</code> operation returns the tags that are associated
|
|
121
|
-
* with the Amazon Managed Service for Grafana resource specified by the
|
|
122
|
-
* <code>resourceArn</code>. Currently, the only resource that can be tagged is a
|
|
123
|
-
* workspace. </p>
|
|
83
|
+
* @see {@link ListTagsForResourceCommand}
|
|
124
84
|
*/
|
|
125
85
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
126
86
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
127
87
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
128
88
|
/**
|
|
129
|
-
* @
|
|
130
|
-
* <p>Returns a list of Amazon Managed Grafana workspaces in the account, with some information
|
|
131
|
-
* about each workspace. For more complete information about one workspace, use <a href="https://docs.aws.amazon.com/AAMG/latest/APIReference/API_DescribeWorkspace.html">DescribeWorkspace</a>.</p>
|
|
89
|
+
* @see {@link ListWorkspacesCommand}
|
|
132
90
|
*/
|
|
133
91
|
listWorkspaces(args: ListWorkspacesCommandInput, options?: __HttpHandlerOptions): Promise<ListWorkspacesCommandOutput>;
|
|
134
92
|
listWorkspaces(args: ListWorkspacesCommandInput, cb: (err: any, data?: ListWorkspacesCommandOutput) => void): void;
|
|
135
93
|
listWorkspaces(args: ListWorkspacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWorkspacesCommandOutput) => void): void;
|
|
136
94
|
/**
|
|
137
|
-
* @
|
|
138
|
-
* <p>The <code>TagResource</code> operation associates tags with an Amazon Managed Grafana
|
|
139
|
-
* resource. Currently, the only resource that can be tagged is workspaces. </p>
|
|
140
|
-
* <p>If you specify a new tag key for the resource, this tag is appended to the list of
|
|
141
|
-
* tags associated with the resource. If you specify a tag key that is already associated
|
|
142
|
-
* with the resource, the new tag value that you specify replaces the previous value for
|
|
143
|
-
* that tag.</p>
|
|
95
|
+
* @see {@link TagResourceCommand}
|
|
144
96
|
*/
|
|
145
97
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
146
98
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
147
99
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
148
100
|
/**
|
|
149
|
-
* @
|
|
150
|
-
* <p>The <code>UntagResource</code> operation removes the association of the tag with the
|
|
151
|
-
* Amazon Managed Grafana resource. </p>
|
|
101
|
+
* @see {@link UntagResourceCommand}
|
|
152
102
|
*/
|
|
153
103
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
154
104
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
155
105
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
156
106
|
/**
|
|
157
|
-
* @
|
|
158
|
-
* <p>Updates which users in a workspace have the Grafana <code>Admin</code> or
|
|
159
|
-
* <code>Editor</code> roles.</p>
|
|
107
|
+
* @see {@link UpdatePermissionsCommand}
|
|
160
108
|
*/
|
|
161
109
|
updatePermissions(args: UpdatePermissionsCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePermissionsCommandOutput>;
|
|
162
110
|
updatePermissions(args: UpdatePermissionsCommandInput, cb: (err: any, data?: UpdatePermissionsCommandOutput) => void): void;
|
|
163
111
|
updatePermissions(args: UpdatePermissionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePermissionsCommandOutput) => void): void;
|
|
164
112
|
/**
|
|
165
|
-
* @
|
|
166
|
-
* <p>Modifies an existing Amazon Managed Grafana workspace. If you use this operation and omit
|
|
167
|
-
* any optional parameters, the existing values of those parameters are not changed.</p>
|
|
168
|
-
* <p>To modify the user authentication methods that the workspace uses, such as SAML or
|
|
169
|
-
* IAM Identity Center, use <a href="https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdateWorkspaceAuthentication.html">UpdateWorkspaceAuthentication</a>.</p>
|
|
170
|
-
* <p>To modify which users in the workspace have the <code>Admin</code> and
|
|
171
|
-
* <code>Editor</code> Grafana roles, use <a href="https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdatePermissions.html">UpdatePermissions</a>.</p>
|
|
113
|
+
* @see {@link UpdateWorkspaceCommand}
|
|
172
114
|
*/
|
|
173
115
|
updateWorkspace(args: UpdateWorkspaceCommandInput, options?: __HttpHandlerOptions): Promise<UpdateWorkspaceCommandOutput>;
|
|
174
116
|
updateWorkspace(args: UpdateWorkspaceCommandInput, cb: (err: any, data?: UpdateWorkspaceCommandOutput) => void): void;
|
|
175
117
|
updateWorkspace(args: UpdateWorkspaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateWorkspaceCommandOutput) => void): void;
|
|
176
118
|
/**
|
|
177
|
-
* @
|
|
178
|
-
* <p>Use this operation to define the identity provider (IdP) that this workspace
|
|
179
|
-
* authenticates users from, using SAML. You can also map SAML assertion attributes to
|
|
180
|
-
* workspace user information and define which groups in the assertion attribute are to
|
|
181
|
-
* have the <code>Admin</code> and <code>Editor</code> roles in the workspace.</p>
|
|
182
|
-
* <note>
|
|
183
|
-
* <p>Changes to the authentication method for a workspace may take a few minutes to
|
|
184
|
-
* take effect.</p>
|
|
185
|
-
* </note>
|
|
119
|
+
* @see {@link UpdateWorkspaceAuthenticationCommand}
|
|
186
120
|
*/
|
|
187
121
|
updateWorkspaceAuthentication(args: UpdateWorkspaceAuthenticationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateWorkspaceAuthenticationCommandOutput>;
|
|
188
122
|
updateWorkspaceAuthentication(args: UpdateWorkspaceAuthenticationCommandInput, cb: (err: any, data?: UpdateWorkspaceAuthenticationCommandOutput) => void): void;
|
|
189
123
|
updateWorkspaceAuthentication(args: UpdateWorkspaceAuthenticationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateWorkspaceAuthenticationCommandOutput) => void): void;
|
|
190
124
|
/**
|
|
191
|
-
* @
|
|
192
|
-
* <p>Updates the configuration string for the given workspace</p>
|
|
125
|
+
* @see {@link UpdateWorkspaceConfigurationCommand}
|
|
193
126
|
*/
|
|
194
127
|
updateWorkspaceConfiguration(args: UpdateWorkspaceConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateWorkspaceConfigurationCommandOutput>;
|
|
195
128
|
updateWorkspaceConfiguration(args: UpdateWorkspaceConfigurationCommandInput, cb: (err: any, data?: UpdateWorkspaceConfigurationCommandOutput) => void): void;
|
|
196
129
|
updateWorkspaceConfiguration(args: UpdateWorkspaceConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateWorkspaceConfigurationCommandOutput) => void): void;
|
|
197
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* @public
|
|
133
|
+
* <p>Amazon Managed Grafana is a fully managed and secure data visualization service that
|
|
134
|
+
* you can use to instantly query, correlate, and visualize operational metrics, logs, and
|
|
135
|
+
* traces from multiple sources. Amazon Managed Grafana makes it easy to deploy, operate, and
|
|
136
|
+
* scale Grafana, a widely deployed data visualization tool that is popular for its
|
|
137
|
+
* extensible data support.</p>
|
|
138
|
+
* <p>With Amazon Managed Grafana, you create logically isolated Grafana servers called
|
|
139
|
+
* <i>workspaces</i>. In a workspace, you can create Grafana dashboards
|
|
140
|
+
* and visualizations to analyze your metrics, logs, and traces without having to build,
|
|
141
|
+
* package, or deploy any hardware to run Grafana servers. </p>
|
|
142
|
+
*/
|
|
143
|
+
export declare class Grafana extends GrafanaClient implements Grafana {
|
|
144
|
+
}
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
UpdateWorkspaceConfigurationCommandOutput,
|
|
73
73
|
} from "./commands/UpdateWorkspaceConfigurationCommand";
|
|
74
74
|
import { GrafanaClient } from "./GrafanaClient";
|
|
75
|
-
export
|
|
75
|
+
export interface Grafana {
|
|
76
76
|
associateLicense(
|
|
77
77
|
args: AssociateLicenseCommandInput,
|
|
78
78
|
options?: __HttpHandlerOptions
|
|
@@ -308,3 +308,4 @@ export declare class Grafana extends GrafanaClient {
|
|
|
308
308
|
cb: (err: any, data?: UpdateWorkspaceConfigurationCommandOutput) => void
|
|
309
309
|
): void;
|
|
310
310
|
}
|
|
311
|
+
export declare class Grafana extends GrafanaClient implements Grafana {}
|
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.319.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",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|