@aws-sdk/client-grafana 3.489.0 → 3.495.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 +1 -49
- package/dist-cjs/GrafanaClient.js +1 -43
- package/dist-cjs/commands/AssociateLicenseCommand.js +1 -29
- package/dist-cjs/commands/CreateWorkspaceApiKeyCommand.js +1 -29
- package/dist-cjs/commands/CreateWorkspaceCommand.js +1 -29
- package/dist-cjs/commands/DeleteWorkspaceApiKeyCommand.js +1 -28
- package/dist-cjs/commands/DeleteWorkspaceCommand.js +1 -29
- package/dist-cjs/commands/DescribeWorkspaceAuthenticationCommand.js +1 -29
- package/dist-cjs/commands/DescribeWorkspaceCommand.js +1 -29
- package/dist-cjs/commands/DescribeWorkspaceConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DisassociateLicenseCommand.js +1 -29
- package/dist-cjs/commands/ListPermissionsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListVersionsCommand.js +1 -28
- package/dist-cjs/commands/ListWorkspacesCommand.js +1 -29
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdatePermissionsCommand.js +1 -28
- package/dist-cjs/commands/UpdateWorkspaceAuthenticationCommand.js +1 -29
- package/dist-cjs/commands/UpdateWorkspaceCommand.js +1 -29
- package/dist-cjs/commands/UpdateWorkspaceConfigurationCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -22
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2415 -11
- package/dist-cjs/models/GrafanaServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -300
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListPermissionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListVersionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListWorkspacesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -7
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1393
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,2416 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
AccountAccessType: () => AccountAccessType,
|
|
26
|
+
AssociateLicenseCommand: () => AssociateLicenseCommand,
|
|
27
|
+
AssociateLicenseResponseFilterSensitiveLog: () => AssociateLicenseResponseFilterSensitiveLog,
|
|
28
|
+
AuthenticationDescriptionFilterSensitiveLog: () => AuthenticationDescriptionFilterSensitiveLog,
|
|
29
|
+
AuthenticationProviderTypes: () => AuthenticationProviderTypes,
|
|
30
|
+
ConflictException: () => ConflictException,
|
|
31
|
+
CreateWorkspaceApiKeyCommand: () => CreateWorkspaceApiKeyCommand,
|
|
32
|
+
CreateWorkspaceApiKeyResponseFilterSensitiveLog: () => CreateWorkspaceApiKeyResponseFilterSensitiveLog,
|
|
33
|
+
CreateWorkspaceCommand: () => CreateWorkspaceCommand,
|
|
34
|
+
CreateWorkspaceRequestFilterSensitiveLog: () => CreateWorkspaceRequestFilterSensitiveLog,
|
|
35
|
+
CreateWorkspaceResponseFilterSensitiveLog: () => CreateWorkspaceResponseFilterSensitiveLog,
|
|
36
|
+
DataSourceType: () => DataSourceType,
|
|
37
|
+
DeleteWorkspaceApiKeyCommand: () => DeleteWorkspaceApiKeyCommand,
|
|
38
|
+
DeleteWorkspaceCommand: () => DeleteWorkspaceCommand,
|
|
39
|
+
DeleteWorkspaceResponseFilterSensitiveLog: () => DeleteWorkspaceResponseFilterSensitiveLog,
|
|
40
|
+
DescribeWorkspaceAuthenticationCommand: () => DescribeWorkspaceAuthenticationCommand,
|
|
41
|
+
DescribeWorkspaceAuthenticationResponseFilterSensitiveLog: () => DescribeWorkspaceAuthenticationResponseFilterSensitiveLog,
|
|
42
|
+
DescribeWorkspaceCommand: () => DescribeWorkspaceCommand,
|
|
43
|
+
DescribeWorkspaceConfigurationCommand: () => DescribeWorkspaceConfigurationCommand,
|
|
44
|
+
DescribeWorkspaceResponseFilterSensitiveLog: () => DescribeWorkspaceResponseFilterSensitiveLog,
|
|
45
|
+
DisassociateLicenseCommand: () => DisassociateLicenseCommand,
|
|
46
|
+
DisassociateLicenseResponseFilterSensitiveLog: () => DisassociateLicenseResponseFilterSensitiveLog,
|
|
47
|
+
Grafana: () => Grafana,
|
|
48
|
+
GrafanaClient: () => GrafanaClient,
|
|
49
|
+
GrafanaServiceException: () => GrafanaServiceException,
|
|
50
|
+
IdpMetadata: () => IdpMetadata,
|
|
51
|
+
InternalServerException: () => InternalServerException,
|
|
52
|
+
LicenseType: () => LicenseType,
|
|
53
|
+
ListPermissionsCommand: () => ListPermissionsCommand,
|
|
54
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
55
|
+
ListVersionsCommand: () => ListVersionsCommand,
|
|
56
|
+
ListWorkspacesCommand: () => ListWorkspacesCommand,
|
|
57
|
+
ListWorkspacesResponseFilterSensitiveLog: () => ListWorkspacesResponseFilterSensitiveLog,
|
|
58
|
+
NotificationDestinationType: () => NotificationDestinationType,
|
|
59
|
+
PermissionType: () => PermissionType,
|
|
60
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
61
|
+
Role: () => Role,
|
|
62
|
+
RoleValuesFilterSensitiveLog: () => RoleValuesFilterSensitiveLog,
|
|
63
|
+
SamlAuthenticationFilterSensitiveLog: () => SamlAuthenticationFilterSensitiveLog,
|
|
64
|
+
SamlConfigurationFilterSensitiveLog: () => SamlConfigurationFilterSensitiveLog,
|
|
65
|
+
SamlConfigurationStatus: () => SamlConfigurationStatus,
|
|
66
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
67
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
68
|
+
ThrottlingException: () => ThrottlingException,
|
|
69
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
70
|
+
UpdateAction: () => UpdateAction,
|
|
71
|
+
UpdatePermissionsCommand: () => UpdatePermissionsCommand,
|
|
72
|
+
UpdateWorkspaceAuthenticationCommand: () => UpdateWorkspaceAuthenticationCommand,
|
|
73
|
+
UpdateWorkspaceAuthenticationRequestFilterSensitiveLog: () => UpdateWorkspaceAuthenticationRequestFilterSensitiveLog,
|
|
74
|
+
UpdateWorkspaceAuthenticationResponseFilterSensitiveLog: () => UpdateWorkspaceAuthenticationResponseFilterSensitiveLog,
|
|
75
|
+
UpdateWorkspaceCommand: () => UpdateWorkspaceCommand,
|
|
76
|
+
UpdateWorkspaceConfigurationCommand: () => UpdateWorkspaceConfigurationCommand,
|
|
77
|
+
UpdateWorkspaceRequestFilterSensitiveLog: () => UpdateWorkspaceRequestFilterSensitiveLog,
|
|
78
|
+
UpdateWorkspaceResponseFilterSensitiveLog: () => UpdateWorkspaceResponseFilterSensitiveLog,
|
|
79
|
+
UserType: () => UserType,
|
|
80
|
+
ValidationException: () => ValidationException,
|
|
81
|
+
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
82
|
+
WorkspaceDescriptionFilterSensitiveLog: () => WorkspaceDescriptionFilterSensitiveLog,
|
|
83
|
+
WorkspaceStatus: () => WorkspaceStatus,
|
|
84
|
+
WorkspaceSummaryFilterSensitiveLog: () => WorkspaceSummaryFilterSensitiveLog,
|
|
85
|
+
__Client: () => import_smithy_client.Client,
|
|
86
|
+
paginateListPermissions: () => paginateListPermissions,
|
|
87
|
+
paginateListVersions: () => paginateListVersions,
|
|
88
|
+
paginateListWorkspaces: () => paginateListWorkspaces
|
|
89
|
+
});
|
|
90
|
+
module.exports = __toCommonJS(src_exports);
|
|
91
|
+
|
|
92
|
+
// src/GrafanaClient.ts
|
|
93
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
94
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
95
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
96
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
97
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
98
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
99
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
100
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
101
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
// src/endpoint/EndpointParameters.ts
|
|
105
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
106
|
+
return {
|
|
107
|
+
...options,
|
|
108
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
109
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
110
|
+
defaultSigningName: "grafana"
|
|
111
|
+
};
|
|
112
|
+
}, "resolveClientEndpointParameters");
|
|
113
|
+
var commonParams = {
|
|
114
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
115
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
116
|
+
Region: { type: "builtInParams", name: "region" },
|
|
117
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
// src/GrafanaClient.ts
|
|
121
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
122
|
+
|
|
123
|
+
// src/runtimeExtensions.ts
|
|
124
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
125
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
126
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
127
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
128
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
129
|
+
const extensionConfiguration = {
|
|
130
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
131
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
132
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
133
|
+
};
|
|
134
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
135
|
+
return {
|
|
136
|
+
...runtimeConfig,
|
|
137
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
138
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
139
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
140
|
+
};
|
|
141
|
+
}, "resolveRuntimeExtensions");
|
|
142
|
+
|
|
143
|
+
// src/GrafanaClient.ts
|
|
144
|
+
var _GrafanaClient = class _GrafanaClient extends import_smithy_client.Client {
|
|
145
|
+
constructor(...[configuration]) {
|
|
146
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
147
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
148
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
149
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
150
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
151
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
152
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
153
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
154
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
155
|
+
super(_config_8);
|
|
156
|
+
this.config = _config_8;
|
|
157
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
158
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
159
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
160
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
161
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
162
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
163
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
167
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
168
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
169
|
+
*/
|
|
170
|
+
destroy() {
|
|
171
|
+
super.destroy();
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
__name(_GrafanaClient, "GrafanaClient");
|
|
175
|
+
var GrafanaClient = _GrafanaClient;
|
|
176
|
+
|
|
177
|
+
// src/Grafana.ts
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
// src/commands/AssociateLicenseCommand.ts
|
|
181
|
+
|
|
182
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
183
|
+
|
|
184
|
+
var import_types = require("@smithy/types");
|
|
185
|
+
|
|
186
|
+
// src/models/models_0.ts
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
// src/models/GrafanaServiceException.ts
|
|
190
|
+
|
|
191
|
+
var _GrafanaServiceException = class _GrafanaServiceException extends import_smithy_client.ServiceException {
|
|
192
|
+
/**
|
|
193
|
+
* @internal
|
|
194
|
+
*/
|
|
195
|
+
constructor(options) {
|
|
196
|
+
super(options);
|
|
197
|
+
Object.setPrototypeOf(this, _GrafanaServiceException.prototype);
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
__name(_GrafanaServiceException, "GrafanaServiceException");
|
|
201
|
+
var GrafanaServiceException = _GrafanaServiceException;
|
|
202
|
+
|
|
203
|
+
// src/models/models_0.ts
|
|
204
|
+
var _AccessDeniedException = class _AccessDeniedException extends GrafanaServiceException {
|
|
205
|
+
/**
|
|
206
|
+
* @internal
|
|
207
|
+
*/
|
|
208
|
+
constructor(opts) {
|
|
209
|
+
super({
|
|
210
|
+
name: "AccessDeniedException",
|
|
211
|
+
$fault: "client",
|
|
212
|
+
...opts
|
|
213
|
+
});
|
|
214
|
+
this.name = "AccessDeniedException";
|
|
215
|
+
this.$fault = "client";
|
|
216
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
220
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
221
|
+
var AccountAccessType = {
|
|
222
|
+
/**
|
|
223
|
+
* Indicates that the customer is using Grafana to monitor resources in their current account.
|
|
224
|
+
*/
|
|
225
|
+
CURRENT_ACCOUNT: "CURRENT_ACCOUNT",
|
|
226
|
+
/**
|
|
227
|
+
* Indicates that the customer is using Grafana to monitor resources in organizational units.
|
|
228
|
+
*/
|
|
229
|
+
ORGANIZATION: "ORGANIZATION"
|
|
230
|
+
};
|
|
231
|
+
var _ConflictException = class _ConflictException extends GrafanaServiceException {
|
|
232
|
+
/**
|
|
233
|
+
* @internal
|
|
234
|
+
*/
|
|
235
|
+
constructor(opts) {
|
|
236
|
+
super({
|
|
237
|
+
name: "ConflictException",
|
|
238
|
+
$fault: "client",
|
|
239
|
+
...opts
|
|
240
|
+
});
|
|
241
|
+
this.name = "ConflictException";
|
|
242
|
+
this.$fault = "client";
|
|
243
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
244
|
+
this.resourceId = opts.resourceId;
|
|
245
|
+
this.resourceType = opts.resourceType;
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
__name(_ConflictException, "ConflictException");
|
|
249
|
+
var ConflictException = _ConflictException;
|
|
250
|
+
var _InternalServerException = class _InternalServerException extends GrafanaServiceException {
|
|
251
|
+
/**
|
|
252
|
+
* @internal
|
|
253
|
+
*/
|
|
254
|
+
constructor(opts) {
|
|
255
|
+
super({
|
|
256
|
+
name: "InternalServerException",
|
|
257
|
+
$fault: "server",
|
|
258
|
+
...opts
|
|
259
|
+
});
|
|
260
|
+
this.name = "InternalServerException";
|
|
261
|
+
this.$fault = "server";
|
|
262
|
+
this.$retryable = {};
|
|
263
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
264
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
__name(_InternalServerException, "InternalServerException");
|
|
268
|
+
var InternalServerException = _InternalServerException;
|
|
269
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends GrafanaServiceException {
|
|
270
|
+
/**
|
|
271
|
+
* @internal
|
|
272
|
+
*/
|
|
273
|
+
constructor(opts) {
|
|
274
|
+
super({
|
|
275
|
+
name: "ResourceNotFoundException",
|
|
276
|
+
$fault: "client",
|
|
277
|
+
...opts
|
|
278
|
+
});
|
|
279
|
+
this.name = "ResourceNotFoundException";
|
|
280
|
+
this.$fault = "client";
|
|
281
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
282
|
+
this.resourceId = opts.resourceId;
|
|
283
|
+
this.resourceType = opts.resourceType;
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
287
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
288
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends GrafanaServiceException {
|
|
289
|
+
/**
|
|
290
|
+
* @internal
|
|
291
|
+
*/
|
|
292
|
+
constructor(opts) {
|
|
293
|
+
super({
|
|
294
|
+
name: "ServiceQuotaExceededException",
|
|
295
|
+
$fault: "client",
|
|
296
|
+
...opts
|
|
297
|
+
});
|
|
298
|
+
this.name = "ServiceQuotaExceededException";
|
|
299
|
+
this.$fault = "client";
|
|
300
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
301
|
+
this.resourceId = opts.resourceId;
|
|
302
|
+
this.resourceType = opts.resourceType;
|
|
303
|
+
this.serviceCode = opts.serviceCode;
|
|
304
|
+
this.quotaCode = opts.quotaCode;
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
308
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
309
|
+
var _ThrottlingException = class _ThrottlingException extends GrafanaServiceException {
|
|
310
|
+
/**
|
|
311
|
+
* @internal
|
|
312
|
+
*/
|
|
313
|
+
constructor(opts) {
|
|
314
|
+
super({
|
|
315
|
+
name: "ThrottlingException",
|
|
316
|
+
$fault: "client",
|
|
317
|
+
...opts
|
|
318
|
+
});
|
|
319
|
+
this.name = "ThrottlingException";
|
|
320
|
+
this.$fault = "client";
|
|
321
|
+
this.$retryable = {};
|
|
322
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
323
|
+
this.serviceCode = opts.serviceCode;
|
|
324
|
+
this.quotaCode = opts.quotaCode;
|
|
325
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
329
|
+
var ThrottlingException = _ThrottlingException;
|
|
330
|
+
var ValidationExceptionReason = {
|
|
331
|
+
CANNOT_PARSE: "CANNOT_PARSE",
|
|
332
|
+
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
333
|
+
OTHER: "OTHER",
|
|
334
|
+
UNKNOWN_OPERATION: "UNKNOWN_OPERATION"
|
|
335
|
+
};
|
|
336
|
+
var _ValidationException = class _ValidationException extends GrafanaServiceException {
|
|
337
|
+
/**
|
|
338
|
+
* @internal
|
|
339
|
+
*/
|
|
340
|
+
constructor(opts) {
|
|
341
|
+
super({
|
|
342
|
+
name: "ValidationException",
|
|
343
|
+
$fault: "client",
|
|
344
|
+
...opts
|
|
345
|
+
});
|
|
346
|
+
this.name = "ValidationException";
|
|
347
|
+
this.$fault = "client";
|
|
348
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
349
|
+
this.reason = opts.reason;
|
|
350
|
+
this.fieldList = opts.fieldList;
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
__name(_ValidationException, "ValidationException");
|
|
354
|
+
var ValidationException = _ValidationException;
|
|
355
|
+
var LicenseType = {
|
|
356
|
+
/**
|
|
357
|
+
* Grafana Enterprise License.
|
|
358
|
+
*/
|
|
359
|
+
ENTERPRISE: "ENTERPRISE",
|
|
360
|
+
/**
|
|
361
|
+
* Grafana Enterprise Free Trial License.
|
|
362
|
+
*/
|
|
363
|
+
ENTERPRISE_FREE_TRIAL: "ENTERPRISE_FREE_TRIAL"
|
|
364
|
+
};
|
|
365
|
+
var AuthenticationProviderTypes = {
|
|
366
|
+
/**
|
|
367
|
+
* Indicates that AMG workspace has AWS SSO enabled as its authentication provider.
|
|
368
|
+
*/
|
|
369
|
+
AWS_SSO: "AWS_SSO",
|
|
370
|
+
/**
|
|
371
|
+
* Indicates that the AMG workspace has SAML enabled as its authentication provider.
|
|
372
|
+
*/
|
|
373
|
+
SAML: "SAML"
|
|
374
|
+
};
|
|
375
|
+
var SamlConfigurationStatus = {
|
|
376
|
+
/**
|
|
377
|
+
* Indicates that SAML on an AMG workspace is enabled and has been configured.
|
|
378
|
+
*/
|
|
379
|
+
CONFIGURED: "CONFIGURED",
|
|
380
|
+
/**
|
|
381
|
+
* Indicates that SAML on an AMG workspace is enabled but has not been configured.
|
|
382
|
+
*/
|
|
383
|
+
NOT_CONFIGURED: "NOT_CONFIGURED"
|
|
384
|
+
};
|
|
385
|
+
var DataSourceType = {
|
|
386
|
+
/**
|
|
387
|
+
* Amazon OpenSearch Service
|
|
388
|
+
*/
|
|
389
|
+
AMAZON_OPENSEARCH_SERVICE: "AMAZON_OPENSEARCH_SERVICE",
|
|
390
|
+
/**
|
|
391
|
+
* Amazon Athena
|
|
392
|
+
*/
|
|
393
|
+
ATHENA: "ATHENA",
|
|
394
|
+
/**
|
|
395
|
+
* CloudWatch Logs
|
|
396
|
+
*/
|
|
397
|
+
CLOUDWATCH: "CLOUDWATCH",
|
|
398
|
+
/**
|
|
399
|
+
* Managed Prometheus
|
|
400
|
+
*/
|
|
401
|
+
PROMETHEUS: "PROMETHEUS",
|
|
402
|
+
/**
|
|
403
|
+
* Redshift
|
|
404
|
+
*/
|
|
405
|
+
REDSHIFT: "REDSHIFT",
|
|
406
|
+
/**
|
|
407
|
+
* IoT SiteWise
|
|
408
|
+
*/
|
|
409
|
+
SITEWISE: "SITEWISE",
|
|
410
|
+
/**
|
|
411
|
+
* Timestream
|
|
412
|
+
*/
|
|
413
|
+
TIMESTREAM: "TIMESTREAM",
|
|
414
|
+
/**
|
|
415
|
+
* IoT TwinMaker
|
|
416
|
+
*/
|
|
417
|
+
TWINMAKER: "TWINMAKER",
|
|
418
|
+
/**
|
|
419
|
+
* X-Ray
|
|
420
|
+
*/
|
|
421
|
+
XRAY: "XRAY"
|
|
422
|
+
};
|
|
423
|
+
var NotificationDestinationType = {
|
|
424
|
+
/**
|
|
425
|
+
* AWS Simple Notification Service
|
|
426
|
+
*/
|
|
427
|
+
SNS: "SNS"
|
|
428
|
+
};
|
|
429
|
+
var PermissionType = {
|
|
430
|
+
/**
|
|
431
|
+
* Customer Managed
|
|
432
|
+
*/
|
|
433
|
+
CUSTOMER_MANAGED: "CUSTOMER_MANAGED",
|
|
434
|
+
/**
|
|
435
|
+
* Service Managed
|
|
436
|
+
*/
|
|
437
|
+
SERVICE_MANAGED: "SERVICE_MANAGED"
|
|
438
|
+
};
|
|
439
|
+
var WorkspaceStatus = {
|
|
440
|
+
/**
|
|
441
|
+
* Workspace is active.
|
|
442
|
+
*/
|
|
443
|
+
ACTIVE: "ACTIVE",
|
|
444
|
+
/**
|
|
445
|
+
* Workspace is being created.
|
|
446
|
+
*/
|
|
447
|
+
CREATING: "CREATING",
|
|
448
|
+
/**
|
|
449
|
+
* Workspace creation failed.
|
|
450
|
+
*/
|
|
451
|
+
CREATION_FAILED: "CREATION_FAILED",
|
|
452
|
+
/**
|
|
453
|
+
* Workspace is being deleted.
|
|
454
|
+
*/
|
|
455
|
+
DELETING: "DELETING",
|
|
456
|
+
/**
|
|
457
|
+
* Workspace deletion failed.
|
|
458
|
+
*/
|
|
459
|
+
DELETION_FAILED: "DELETION_FAILED",
|
|
460
|
+
/**
|
|
461
|
+
* Workspace is in an invalid state, it can only and should be deleted.
|
|
462
|
+
*/
|
|
463
|
+
FAILED: "FAILED",
|
|
464
|
+
/**
|
|
465
|
+
* Failed to remove enterprise license from workspace.
|
|
466
|
+
*/
|
|
467
|
+
LICENSE_REMOVAL_FAILED: "LICENSE_REMOVAL_FAILED",
|
|
468
|
+
/**
|
|
469
|
+
* Workspace update failed.
|
|
470
|
+
*/
|
|
471
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
472
|
+
/**
|
|
473
|
+
* Workspace is being updated.
|
|
474
|
+
*/
|
|
475
|
+
UPDATING: "UPDATING",
|
|
476
|
+
/**
|
|
477
|
+
* Workspace upgrade failed.
|
|
478
|
+
*/
|
|
479
|
+
UPGRADE_FAILED: "UPGRADE_FAILED",
|
|
480
|
+
/**
|
|
481
|
+
* Workspace is being upgraded to enterprise.
|
|
482
|
+
*/
|
|
483
|
+
UPGRADING: "UPGRADING",
|
|
484
|
+
/**
|
|
485
|
+
* Workspace version update failed.
|
|
486
|
+
*/
|
|
487
|
+
VERSION_UPDATE_FAILED: "VERSION_UPDATE_FAILED",
|
|
488
|
+
/**
|
|
489
|
+
* Workspace version is being updated.
|
|
490
|
+
*/
|
|
491
|
+
VERSION_UPDATING: "VERSION_UPDATING"
|
|
492
|
+
};
|
|
493
|
+
var IdpMetadata;
|
|
494
|
+
((IdpMetadata3) => {
|
|
495
|
+
IdpMetadata3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
496
|
+
if (value.url !== void 0)
|
|
497
|
+
return visitor.url(value.url);
|
|
498
|
+
if (value.xml !== void 0)
|
|
499
|
+
return visitor.xml(value.xml);
|
|
500
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
501
|
+
}, "visit");
|
|
502
|
+
})(IdpMetadata || (IdpMetadata = {}));
|
|
503
|
+
var UserType = {
|
|
504
|
+
/**
|
|
505
|
+
* SSO group.
|
|
506
|
+
*/
|
|
507
|
+
SSO_GROUP: "SSO_GROUP",
|
|
508
|
+
/**
|
|
509
|
+
* SSO user.
|
|
510
|
+
*/
|
|
511
|
+
SSO_USER: "SSO_USER"
|
|
512
|
+
};
|
|
513
|
+
var Role = {
|
|
514
|
+
/**
|
|
515
|
+
* Role Admin.
|
|
516
|
+
*/
|
|
517
|
+
ADMIN: "ADMIN",
|
|
518
|
+
/**
|
|
519
|
+
* Role Editor.
|
|
520
|
+
*/
|
|
521
|
+
EDITOR: "EDITOR",
|
|
522
|
+
/**
|
|
523
|
+
* Role Viewer.
|
|
524
|
+
*/
|
|
525
|
+
VIEWER: "VIEWER"
|
|
526
|
+
};
|
|
527
|
+
var UpdateAction = {
|
|
528
|
+
/**
|
|
529
|
+
* Add permissions.
|
|
530
|
+
*/
|
|
531
|
+
ADD: "ADD",
|
|
532
|
+
/**
|
|
533
|
+
* Revoke permissions.
|
|
534
|
+
*/
|
|
535
|
+
REVOKE: "REVOKE"
|
|
536
|
+
};
|
|
537
|
+
var CreateWorkspaceApiKeyResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
538
|
+
...obj,
|
|
539
|
+
...obj.key && { key: import_smithy_client.SENSITIVE_STRING }
|
|
540
|
+
}), "CreateWorkspaceApiKeyResponseFilterSensitiveLog");
|
|
541
|
+
var WorkspaceDescriptionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
542
|
+
...obj,
|
|
543
|
+
...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
|
|
544
|
+
...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
|
|
545
|
+
...obj.organizationRoleName && { organizationRoleName: import_smithy_client.SENSITIVE_STRING },
|
|
546
|
+
...obj.organizationalUnits && { organizationalUnits: import_smithy_client.SENSITIVE_STRING },
|
|
547
|
+
...obj.workspaceRoleArn && { workspaceRoleArn: import_smithy_client.SENSITIVE_STRING }
|
|
548
|
+
}), "WorkspaceDescriptionFilterSensitiveLog");
|
|
549
|
+
var AssociateLicenseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
550
|
+
...obj,
|
|
551
|
+
...obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }
|
|
552
|
+
}), "AssociateLicenseResponseFilterSensitiveLog");
|
|
553
|
+
var RoleValuesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
554
|
+
...obj,
|
|
555
|
+
...obj.editor && { editor: import_smithy_client.SENSITIVE_STRING },
|
|
556
|
+
...obj.admin && { admin: import_smithy_client.SENSITIVE_STRING }
|
|
557
|
+
}), "RoleValuesFilterSensitiveLog");
|
|
558
|
+
var SamlConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
559
|
+
...obj,
|
|
560
|
+
...obj.idpMetadata && { idpMetadata: obj.idpMetadata },
|
|
561
|
+
...obj.roleValues && { roleValues: RoleValuesFilterSensitiveLog(obj.roleValues) }
|
|
562
|
+
}), "SamlConfigurationFilterSensitiveLog");
|
|
563
|
+
var SamlAuthenticationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
564
|
+
...obj,
|
|
565
|
+
...obj.configuration && { configuration: SamlConfigurationFilterSensitiveLog(obj.configuration) }
|
|
566
|
+
}), "SamlAuthenticationFilterSensitiveLog");
|
|
567
|
+
var AuthenticationDescriptionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
568
|
+
...obj,
|
|
569
|
+
...obj.saml && { saml: SamlAuthenticationFilterSensitiveLog(obj.saml) }
|
|
570
|
+
}), "AuthenticationDescriptionFilterSensitiveLog");
|
|
571
|
+
var DescribeWorkspaceAuthenticationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
572
|
+
...obj,
|
|
573
|
+
...obj.authentication && { authentication: AuthenticationDescriptionFilterSensitiveLog(obj.authentication) }
|
|
574
|
+
}), "DescribeWorkspaceAuthenticationResponseFilterSensitiveLog");
|
|
575
|
+
var UpdateWorkspaceAuthenticationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
576
|
+
...obj,
|
|
577
|
+
...obj.samlConfiguration && { samlConfiguration: SamlConfigurationFilterSensitiveLog(obj.samlConfiguration) }
|
|
578
|
+
}), "UpdateWorkspaceAuthenticationRequestFilterSensitiveLog");
|
|
579
|
+
var UpdateWorkspaceAuthenticationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
580
|
+
...obj,
|
|
581
|
+
...obj.authentication && { authentication: AuthenticationDescriptionFilterSensitiveLog(obj.authentication) }
|
|
582
|
+
}), "UpdateWorkspaceAuthenticationResponseFilterSensitiveLog");
|
|
583
|
+
var DisassociateLicenseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
584
|
+
...obj,
|
|
585
|
+
...obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }
|
|
586
|
+
}), "DisassociateLicenseResponseFilterSensitiveLog");
|
|
587
|
+
var CreateWorkspaceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
588
|
+
...obj,
|
|
589
|
+
...obj.organizationRoleName && { organizationRoleName: import_smithy_client.SENSITIVE_STRING },
|
|
590
|
+
...obj.workspaceDescription && { workspaceDescription: import_smithy_client.SENSITIVE_STRING },
|
|
591
|
+
...obj.workspaceName && { workspaceName: import_smithy_client.SENSITIVE_STRING },
|
|
592
|
+
...obj.workspaceOrganizationalUnits && { workspaceOrganizationalUnits: import_smithy_client.SENSITIVE_STRING },
|
|
593
|
+
...obj.workspaceRoleArn && { workspaceRoleArn: import_smithy_client.SENSITIVE_STRING }
|
|
594
|
+
}), "CreateWorkspaceRequestFilterSensitiveLog");
|
|
595
|
+
var CreateWorkspaceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
596
|
+
...obj,
|
|
597
|
+
...obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }
|
|
598
|
+
}), "CreateWorkspaceResponseFilterSensitiveLog");
|
|
599
|
+
var DeleteWorkspaceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
600
|
+
...obj,
|
|
601
|
+
...obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }
|
|
602
|
+
}), "DeleteWorkspaceResponseFilterSensitiveLog");
|
|
603
|
+
var DescribeWorkspaceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
604
|
+
...obj,
|
|
605
|
+
...obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }
|
|
606
|
+
}), "DescribeWorkspaceResponseFilterSensitiveLog");
|
|
607
|
+
var WorkspaceSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
608
|
+
...obj,
|
|
609
|
+
...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
|
|
610
|
+
...obj.name && { name: import_smithy_client.SENSITIVE_STRING }
|
|
611
|
+
}), "WorkspaceSummaryFilterSensitiveLog");
|
|
612
|
+
var ListWorkspacesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
613
|
+
...obj,
|
|
614
|
+
...obj.workspaces && { workspaces: obj.workspaces.map((item) => WorkspaceSummaryFilterSensitiveLog(item)) }
|
|
615
|
+
}), "ListWorkspacesResponseFilterSensitiveLog");
|
|
616
|
+
var UpdateWorkspaceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
617
|
+
...obj,
|
|
618
|
+
...obj.organizationRoleName && { organizationRoleName: import_smithy_client.SENSITIVE_STRING },
|
|
619
|
+
...obj.workspaceDescription && { workspaceDescription: import_smithy_client.SENSITIVE_STRING },
|
|
620
|
+
...obj.workspaceName && { workspaceName: import_smithy_client.SENSITIVE_STRING },
|
|
621
|
+
...obj.workspaceOrganizationalUnits && { workspaceOrganizationalUnits: import_smithy_client.SENSITIVE_STRING },
|
|
622
|
+
...obj.workspaceRoleArn && { workspaceRoleArn: import_smithy_client.SENSITIVE_STRING }
|
|
623
|
+
}), "UpdateWorkspaceRequestFilterSensitiveLog");
|
|
624
|
+
var UpdateWorkspaceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
625
|
+
...obj,
|
|
626
|
+
...obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }
|
|
627
|
+
}), "UpdateWorkspaceResponseFilterSensitiveLog");
|
|
628
|
+
|
|
629
|
+
// src/protocols/Aws_restJson1.ts
|
|
630
|
+
var import_core = require("@smithy/core");
|
|
631
|
+
|
|
632
|
+
var import_uuid = require("uuid");
|
|
633
|
+
var se_AssociateLicenseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
634
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
635
|
+
const headers = {};
|
|
636
|
+
b.bp("/workspaces/{workspaceId}/licenses/{licenseType}");
|
|
637
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
638
|
+
b.p("licenseType", () => input.licenseType, "{licenseType}", false);
|
|
639
|
+
let body;
|
|
640
|
+
b.m("POST").h(headers).b(body);
|
|
641
|
+
return b.build();
|
|
642
|
+
}, "se_AssociateLicenseCommand");
|
|
643
|
+
var se_CreateWorkspaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
644
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
645
|
+
const headers = {
|
|
646
|
+
"content-type": "application/json"
|
|
647
|
+
};
|
|
648
|
+
b.bp("/workspaces");
|
|
649
|
+
let body;
|
|
650
|
+
body = JSON.stringify(
|
|
651
|
+
(0, import_smithy_client.take)(input, {
|
|
652
|
+
accountAccessType: [],
|
|
653
|
+
authenticationProviders: (_) => (0, import_smithy_client._json)(_),
|
|
654
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
655
|
+
configuration: (_) => import_smithy_client.LazyJsonString.fromObject(_),
|
|
656
|
+
grafanaVersion: [],
|
|
657
|
+
networkAccessControl: (_) => (0, import_smithy_client._json)(_),
|
|
658
|
+
organizationRoleName: [],
|
|
659
|
+
permissionType: [],
|
|
660
|
+
stackSetName: [],
|
|
661
|
+
tags: (_) => (0, import_smithy_client._json)(_),
|
|
662
|
+
vpcConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
663
|
+
workspaceDataSources: (_) => (0, import_smithy_client._json)(_),
|
|
664
|
+
workspaceDescription: [],
|
|
665
|
+
workspaceName: [],
|
|
666
|
+
workspaceNotificationDestinations: (_) => (0, import_smithy_client._json)(_),
|
|
667
|
+
workspaceOrganizationalUnits: (_) => (0, import_smithy_client._json)(_),
|
|
668
|
+
workspaceRoleArn: []
|
|
669
|
+
})
|
|
670
|
+
);
|
|
671
|
+
b.m("POST").h(headers).b(body);
|
|
672
|
+
return b.build();
|
|
673
|
+
}, "se_CreateWorkspaceCommand");
|
|
674
|
+
var se_CreateWorkspaceApiKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
675
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
676
|
+
const headers = {
|
|
677
|
+
"content-type": "application/json"
|
|
678
|
+
};
|
|
679
|
+
b.bp("/workspaces/{workspaceId}/apikeys");
|
|
680
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
681
|
+
let body;
|
|
682
|
+
body = JSON.stringify(
|
|
683
|
+
(0, import_smithy_client.take)(input, {
|
|
684
|
+
keyName: [],
|
|
685
|
+
keyRole: [],
|
|
686
|
+
secondsToLive: []
|
|
687
|
+
})
|
|
688
|
+
);
|
|
689
|
+
b.m("POST").h(headers).b(body);
|
|
690
|
+
return b.build();
|
|
691
|
+
}, "se_CreateWorkspaceApiKeyCommand");
|
|
692
|
+
var se_DeleteWorkspaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
693
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
694
|
+
const headers = {};
|
|
695
|
+
b.bp("/workspaces/{workspaceId}");
|
|
696
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
697
|
+
let body;
|
|
698
|
+
b.m("DELETE").h(headers).b(body);
|
|
699
|
+
return b.build();
|
|
700
|
+
}, "se_DeleteWorkspaceCommand");
|
|
701
|
+
var se_DeleteWorkspaceApiKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
702
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
703
|
+
const headers = {};
|
|
704
|
+
b.bp("/workspaces/{workspaceId}/apikeys/{keyName}");
|
|
705
|
+
b.p("keyName", () => input.keyName, "{keyName}", false);
|
|
706
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
707
|
+
let body;
|
|
708
|
+
b.m("DELETE").h(headers).b(body);
|
|
709
|
+
return b.build();
|
|
710
|
+
}, "se_DeleteWorkspaceApiKeyCommand");
|
|
711
|
+
var se_DescribeWorkspaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
712
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
713
|
+
const headers = {};
|
|
714
|
+
b.bp("/workspaces/{workspaceId}");
|
|
715
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
716
|
+
let body;
|
|
717
|
+
b.m("GET").h(headers).b(body);
|
|
718
|
+
return b.build();
|
|
719
|
+
}, "se_DescribeWorkspaceCommand");
|
|
720
|
+
var se_DescribeWorkspaceAuthenticationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
721
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
722
|
+
const headers = {};
|
|
723
|
+
b.bp("/workspaces/{workspaceId}/authentication");
|
|
724
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
725
|
+
let body;
|
|
726
|
+
b.m("GET").h(headers).b(body);
|
|
727
|
+
return b.build();
|
|
728
|
+
}, "se_DescribeWorkspaceAuthenticationCommand");
|
|
729
|
+
var se_DescribeWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
730
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
731
|
+
const headers = {};
|
|
732
|
+
b.bp("/workspaces/{workspaceId}/configuration");
|
|
733
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
734
|
+
let body;
|
|
735
|
+
b.m("GET").h(headers).b(body);
|
|
736
|
+
return b.build();
|
|
737
|
+
}, "se_DescribeWorkspaceConfigurationCommand");
|
|
738
|
+
var se_DisassociateLicenseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
739
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
740
|
+
const headers = {};
|
|
741
|
+
b.bp("/workspaces/{workspaceId}/licenses/{licenseType}");
|
|
742
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
743
|
+
b.p("licenseType", () => input.licenseType, "{licenseType}", false);
|
|
744
|
+
let body;
|
|
745
|
+
b.m("DELETE").h(headers).b(body);
|
|
746
|
+
return b.build();
|
|
747
|
+
}, "se_DisassociateLicenseCommand");
|
|
748
|
+
var se_ListPermissionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
749
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
750
|
+
const headers = {};
|
|
751
|
+
b.bp("/workspaces/{workspaceId}/permissions");
|
|
752
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
753
|
+
const query = (0, import_smithy_client.map)({
|
|
754
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
755
|
+
[_nT]: [, input[_nT]],
|
|
756
|
+
[_uT]: [, input[_uT]],
|
|
757
|
+
[_uI]: [, input[_uI]],
|
|
758
|
+
[_gI]: [, input[_gI]]
|
|
759
|
+
});
|
|
760
|
+
let body;
|
|
761
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
762
|
+
return b.build();
|
|
763
|
+
}, "se_ListPermissionsCommand");
|
|
764
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
765
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
766
|
+
const headers = {};
|
|
767
|
+
b.bp("/tags/{resourceArn}");
|
|
768
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
769
|
+
let body;
|
|
770
|
+
b.m("GET").h(headers).b(body);
|
|
771
|
+
return b.build();
|
|
772
|
+
}, "se_ListTagsForResourceCommand");
|
|
773
|
+
var se_ListVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
774
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
775
|
+
const headers = {};
|
|
776
|
+
b.bp("/versions");
|
|
777
|
+
const query = (0, import_smithy_client.map)({
|
|
778
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
779
|
+
[_nT]: [, input[_nT]],
|
|
780
|
+
[_wi]: [, input[_wI]]
|
|
781
|
+
});
|
|
782
|
+
let body;
|
|
783
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
784
|
+
return b.build();
|
|
785
|
+
}, "se_ListVersionsCommand");
|
|
786
|
+
var se_ListWorkspacesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
787
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
788
|
+
const headers = {};
|
|
789
|
+
b.bp("/workspaces");
|
|
790
|
+
const query = (0, import_smithy_client.map)({
|
|
791
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
792
|
+
[_nT]: [, input[_nT]]
|
|
793
|
+
});
|
|
794
|
+
let body;
|
|
795
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
796
|
+
return b.build();
|
|
797
|
+
}, "se_ListWorkspacesCommand");
|
|
798
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
799
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
800
|
+
const headers = {
|
|
801
|
+
"content-type": "application/json"
|
|
802
|
+
};
|
|
803
|
+
b.bp("/tags/{resourceArn}");
|
|
804
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
805
|
+
let body;
|
|
806
|
+
body = JSON.stringify(
|
|
807
|
+
(0, import_smithy_client.take)(input, {
|
|
808
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
809
|
+
})
|
|
810
|
+
);
|
|
811
|
+
b.m("POST").h(headers).b(body);
|
|
812
|
+
return b.build();
|
|
813
|
+
}, "se_TagResourceCommand");
|
|
814
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
815
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
816
|
+
const headers = {};
|
|
817
|
+
b.bp("/tags/{resourceArn}");
|
|
818
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
819
|
+
const query = (0, import_smithy_client.map)({
|
|
820
|
+
[_tK]: [
|
|
821
|
+
(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
822
|
+
() => (input[_tK] || []).map((_entry) => _entry)
|
|
823
|
+
]
|
|
824
|
+
});
|
|
825
|
+
let body;
|
|
826
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
827
|
+
return b.build();
|
|
828
|
+
}, "se_UntagResourceCommand");
|
|
829
|
+
var se_UpdatePermissionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
830
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
831
|
+
const headers = {
|
|
832
|
+
"content-type": "application/json"
|
|
833
|
+
};
|
|
834
|
+
b.bp("/workspaces/{workspaceId}/permissions");
|
|
835
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
836
|
+
let body;
|
|
837
|
+
body = JSON.stringify(
|
|
838
|
+
(0, import_smithy_client.take)(input, {
|
|
839
|
+
updateInstructionBatch: (_) => (0, import_smithy_client._json)(_)
|
|
840
|
+
})
|
|
841
|
+
);
|
|
842
|
+
b.m("PATCH").h(headers).b(body);
|
|
843
|
+
return b.build();
|
|
844
|
+
}, "se_UpdatePermissionsCommand");
|
|
845
|
+
var se_UpdateWorkspaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
846
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
847
|
+
const headers = {
|
|
848
|
+
"content-type": "application/json"
|
|
849
|
+
};
|
|
850
|
+
b.bp("/workspaces/{workspaceId}");
|
|
851
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
852
|
+
let body;
|
|
853
|
+
body = JSON.stringify(
|
|
854
|
+
(0, import_smithy_client.take)(input, {
|
|
855
|
+
accountAccessType: [],
|
|
856
|
+
networkAccessControl: (_) => (0, import_smithy_client._json)(_),
|
|
857
|
+
organizationRoleName: [],
|
|
858
|
+
permissionType: [],
|
|
859
|
+
removeNetworkAccessConfiguration: [],
|
|
860
|
+
removeVpcConfiguration: [],
|
|
861
|
+
stackSetName: [],
|
|
862
|
+
vpcConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
863
|
+
workspaceDataSources: (_) => (0, import_smithy_client._json)(_),
|
|
864
|
+
workspaceDescription: [],
|
|
865
|
+
workspaceName: [],
|
|
866
|
+
workspaceNotificationDestinations: (_) => (0, import_smithy_client._json)(_),
|
|
867
|
+
workspaceOrganizationalUnits: (_) => (0, import_smithy_client._json)(_),
|
|
868
|
+
workspaceRoleArn: []
|
|
869
|
+
})
|
|
870
|
+
);
|
|
871
|
+
b.m("PUT").h(headers).b(body);
|
|
872
|
+
return b.build();
|
|
873
|
+
}, "se_UpdateWorkspaceCommand");
|
|
874
|
+
var se_UpdateWorkspaceAuthenticationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
875
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
876
|
+
const headers = {
|
|
877
|
+
"content-type": "application/json"
|
|
878
|
+
};
|
|
879
|
+
b.bp("/workspaces/{workspaceId}/authentication");
|
|
880
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
881
|
+
let body;
|
|
882
|
+
body = JSON.stringify(
|
|
883
|
+
(0, import_smithy_client.take)(input, {
|
|
884
|
+
authenticationProviders: (_) => (0, import_smithy_client._json)(_),
|
|
885
|
+
samlConfiguration: (_) => (0, import_smithy_client._json)(_)
|
|
886
|
+
})
|
|
887
|
+
);
|
|
888
|
+
b.m("POST").h(headers).b(body);
|
|
889
|
+
return b.build();
|
|
890
|
+
}, "se_UpdateWorkspaceAuthenticationCommand");
|
|
891
|
+
var se_UpdateWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
892
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
893
|
+
const headers = {
|
|
894
|
+
"content-type": "application/json"
|
|
895
|
+
};
|
|
896
|
+
b.bp("/workspaces/{workspaceId}/configuration");
|
|
897
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
898
|
+
let body;
|
|
899
|
+
body = JSON.stringify(
|
|
900
|
+
(0, import_smithy_client.take)(input, {
|
|
901
|
+
configuration: (_) => import_smithy_client.LazyJsonString.fromObject(_),
|
|
902
|
+
grafanaVersion: []
|
|
903
|
+
})
|
|
904
|
+
);
|
|
905
|
+
b.m("PUT").h(headers).b(body);
|
|
906
|
+
return b.build();
|
|
907
|
+
}, "se_UpdateWorkspaceConfigurationCommand");
|
|
908
|
+
var de_AssociateLicenseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
909
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
910
|
+
return de_AssociateLicenseCommandError(output, context);
|
|
911
|
+
}
|
|
912
|
+
const contents = (0, import_smithy_client.map)({
|
|
913
|
+
$metadata: deserializeMetadata(output)
|
|
914
|
+
});
|
|
915
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
916
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
917
|
+
workspace: (_) => de_WorkspaceDescription(_, context)
|
|
918
|
+
});
|
|
919
|
+
Object.assign(contents, doc);
|
|
920
|
+
return contents;
|
|
921
|
+
}, "de_AssociateLicenseCommand");
|
|
922
|
+
var de_AssociateLicenseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
923
|
+
const parsedOutput = {
|
|
924
|
+
...output,
|
|
925
|
+
body: await parseErrorBody(output.body, context)
|
|
926
|
+
};
|
|
927
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
928
|
+
switch (errorCode) {
|
|
929
|
+
case "AccessDeniedException":
|
|
930
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
931
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
932
|
+
case "InternalServerException":
|
|
933
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
934
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
935
|
+
case "ResourceNotFoundException":
|
|
936
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
937
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
938
|
+
case "ThrottlingException":
|
|
939
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
940
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
941
|
+
case "ValidationException":
|
|
942
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
943
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
944
|
+
default:
|
|
945
|
+
const parsedBody = parsedOutput.body;
|
|
946
|
+
return throwDefaultError({
|
|
947
|
+
output,
|
|
948
|
+
parsedBody,
|
|
949
|
+
errorCode
|
|
950
|
+
});
|
|
951
|
+
}
|
|
952
|
+
}, "de_AssociateLicenseCommandError");
|
|
953
|
+
var de_CreateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
954
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
955
|
+
return de_CreateWorkspaceCommandError(output, context);
|
|
956
|
+
}
|
|
957
|
+
const contents = (0, import_smithy_client.map)({
|
|
958
|
+
$metadata: deserializeMetadata(output)
|
|
959
|
+
});
|
|
960
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
961
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
962
|
+
workspace: (_) => de_WorkspaceDescription(_, context)
|
|
963
|
+
});
|
|
964
|
+
Object.assign(contents, doc);
|
|
965
|
+
return contents;
|
|
966
|
+
}, "de_CreateWorkspaceCommand");
|
|
967
|
+
var de_CreateWorkspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
968
|
+
const parsedOutput = {
|
|
969
|
+
...output,
|
|
970
|
+
body: await parseErrorBody(output.body, context)
|
|
971
|
+
};
|
|
972
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
973
|
+
switch (errorCode) {
|
|
974
|
+
case "AccessDeniedException":
|
|
975
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
976
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
977
|
+
case "ConflictException":
|
|
978
|
+
case "com.amazonaws.grafana#ConflictException":
|
|
979
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
980
|
+
case "InternalServerException":
|
|
981
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
982
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
983
|
+
case "ServiceQuotaExceededException":
|
|
984
|
+
case "com.amazonaws.grafana#ServiceQuotaExceededException":
|
|
985
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
986
|
+
case "ThrottlingException":
|
|
987
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
988
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
989
|
+
case "ValidationException":
|
|
990
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
991
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
992
|
+
default:
|
|
993
|
+
const parsedBody = parsedOutput.body;
|
|
994
|
+
return throwDefaultError({
|
|
995
|
+
output,
|
|
996
|
+
parsedBody,
|
|
997
|
+
errorCode
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
}, "de_CreateWorkspaceCommandError");
|
|
1001
|
+
var de_CreateWorkspaceApiKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1002
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1003
|
+
return de_CreateWorkspaceApiKeyCommandError(output, context);
|
|
1004
|
+
}
|
|
1005
|
+
const contents = (0, import_smithy_client.map)({
|
|
1006
|
+
$metadata: deserializeMetadata(output)
|
|
1007
|
+
});
|
|
1008
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1009
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1010
|
+
key: import_smithy_client.expectString,
|
|
1011
|
+
keyName: import_smithy_client.expectString,
|
|
1012
|
+
workspaceId: import_smithy_client.expectString
|
|
1013
|
+
});
|
|
1014
|
+
Object.assign(contents, doc);
|
|
1015
|
+
return contents;
|
|
1016
|
+
}, "de_CreateWorkspaceApiKeyCommand");
|
|
1017
|
+
var de_CreateWorkspaceApiKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1018
|
+
const parsedOutput = {
|
|
1019
|
+
...output,
|
|
1020
|
+
body: await parseErrorBody(output.body, context)
|
|
1021
|
+
};
|
|
1022
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1023
|
+
switch (errorCode) {
|
|
1024
|
+
case "AccessDeniedException":
|
|
1025
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1026
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1027
|
+
case "ConflictException":
|
|
1028
|
+
case "com.amazonaws.grafana#ConflictException":
|
|
1029
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1030
|
+
case "InternalServerException":
|
|
1031
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1032
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1033
|
+
case "ResourceNotFoundException":
|
|
1034
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1035
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1036
|
+
case "ServiceQuotaExceededException":
|
|
1037
|
+
case "com.amazonaws.grafana#ServiceQuotaExceededException":
|
|
1038
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1039
|
+
case "ThrottlingException":
|
|
1040
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1041
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1042
|
+
case "ValidationException":
|
|
1043
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
1044
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1045
|
+
default:
|
|
1046
|
+
const parsedBody = parsedOutput.body;
|
|
1047
|
+
return throwDefaultError({
|
|
1048
|
+
output,
|
|
1049
|
+
parsedBody,
|
|
1050
|
+
errorCode
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
}, "de_CreateWorkspaceApiKeyCommandError");
|
|
1054
|
+
var de_DeleteWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1055
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1056
|
+
return de_DeleteWorkspaceCommandError(output, context);
|
|
1057
|
+
}
|
|
1058
|
+
const contents = (0, import_smithy_client.map)({
|
|
1059
|
+
$metadata: deserializeMetadata(output)
|
|
1060
|
+
});
|
|
1061
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1062
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1063
|
+
workspace: (_) => de_WorkspaceDescription(_, context)
|
|
1064
|
+
});
|
|
1065
|
+
Object.assign(contents, doc);
|
|
1066
|
+
return contents;
|
|
1067
|
+
}, "de_DeleteWorkspaceCommand");
|
|
1068
|
+
var de_DeleteWorkspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1069
|
+
const parsedOutput = {
|
|
1070
|
+
...output,
|
|
1071
|
+
body: await parseErrorBody(output.body, context)
|
|
1072
|
+
};
|
|
1073
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1074
|
+
switch (errorCode) {
|
|
1075
|
+
case "AccessDeniedException":
|
|
1076
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1077
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1078
|
+
case "ConflictException":
|
|
1079
|
+
case "com.amazonaws.grafana#ConflictException":
|
|
1080
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1081
|
+
case "InternalServerException":
|
|
1082
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1083
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1084
|
+
case "ResourceNotFoundException":
|
|
1085
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1086
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1087
|
+
case "ThrottlingException":
|
|
1088
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1089
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1090
|
+
case "ValidationException":
|
|
1091
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
1092
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1093
|
+
default:
|
|
1094
|
+
const parsedBody = parsedOutput.body;
|
|
1095
|
+
return throwDefaultError({
|
|
1096
|
+
output,
|
|
1097
|
+
parsedBody,
|
|
1098
|
+
errorCode
|
|
1099
|
+
});
|
|
1100
|
+
}
|
|
1101
|
+
}, "de_DeleteWorkspaceCommandError");
|
|
1102
|
+
var de_DeleteWorkspaceApiKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1103
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1104
|
+
return de_DeleteWorkspaceApiKeyCommandError(output, context);
|
|
1105
|
+
}
|
|
1106
|
+
const contents = (0, import_smithy_client.map)({
|
|
1107
|
+
$metadata: deserializeMetadata(output)
|
|
1108
|
+
});
|
|
1109
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1110
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1111
|
+
keyName: import_smithy_client.expectString,
|
|
1112
|
+
workspaceId: import_smithy_client.expectString
|
|
1113
|
+
});
|
|
1114
|
+
Object.assign(contents, doc);
|
|
1115
|
+
return contents;
|
|
1116
|
+
}, "de_DeleteWorkspaceApiKeyCommand");
|
|
1117
|
+
var de_DeleteWorkspaceApiKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1118
|
+
const parsedOutput = {
|
|
1119
|
+
...output,
|
|
1120
|
+
body: await parseErrorBody(output.body, context)
|
|
1121
|
+
};
|
|
1122
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1123
|
+
switch (errorCode) {
|
|
1124
|
+
case "AccessDeniedException":
|
|
1125
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1126
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1127
|
+
case "ConflictException":
|
|
1128
|
+
case "com.amazonaws.grafana#ConflictException":
|
|
1129
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1130
|
+
case "InternalServerException":
|
|
1131
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1132
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1133
|
+
case "ResourceNotFoundException":
|
|
1134
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1135
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1136
|
+
case "ThrottlingException":
|
|
1137
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1138
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1139
|
+
case "ValidationException":
|
|
1140
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
1141
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1142
|
+
default:
|
|
1143
|
+
const parsedBody = parsedOutput.body;
|
|
1144
|
+
return throwDefaultError({
|
|
1145
|
+
output,
|
|
1146
|
+
parsedBody,
|
|
1147
|
+
errorCode
|
|
1148
|
+
});
|
|
1149
|
+
}
|
|
1150
|
+
}, "de_DeleteWorkspaceApiKeyCommandError");
|
|
1151
|
+
var de_DescribeWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1152
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1153
|
+
return de_DescribeWorkspaceCommandError(output, context);
|
|
1154
|
+
}
|
|
1155
|
+
const contents = (0, import_smithy_client.map)({
|
|
1156
|
+
$metadata: deserializeMetadata(output)
|
|
1157
|
+
});
|
|
1158
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1159
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1160
|
+
workspace: (_) => de_WorkspaceDescription(_, context)
|
|
1161
|
+
});
|
|
1162
|
+
Object.assign(contents, doc);
|
|
1163
|
+
return contents;
|
|
1164
|
+
}, "de_DescribeWorkspaceCommand");
|
|
1165
|
+
var de_DescribeWorkspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1166
|
+
const parsedOutput = {
|
|
1167
|
+
...output,
|
|
1168
|
+
body: await parseErrorBody(output.body, context)
|
|
1169
|
+
};
|
|
1170
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1171
|
+
switch (errorCode) {
|
|
1172
|
+
case "AccessDeniedException":
|
|
1173
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1174
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1175
|
+
case "InternalServerException":
|
|
1176
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1177
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1178
|
+
case "ResourceNotFoundException":
|
|
1179
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1180
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1181
|
+
case "ThrottlingException":
|
|
1182
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1183
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1184
|
+
case "ValidationException":
|
|
1185
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
1186
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1187
|
+
default:
|
|
1188
|
+
const parsedBody = parsedOutput.body;
|
|
1189
|
+
return throwDefaultError({
|
|
1190
|
+
output,
|
|
1191
|
+
parsedBody,
|
|
1192
|
+
errorCode
|
|
1193
|
+
});
|
|
1194
|
+
}
|
|
1195
|
+
}, "de_DescribeWorkspaceCommandError");
|
|
1196
|
+
var de_DescribeWorkspaceAuthenticationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1197
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1198
|
+
return de_DescribeWorkspaceAuthenticationCommandError(output, context);
|
|
1199
|
+
}
|
|
1200
|
+
const contents = (0, import_smithy_client.map)({
|
|
1201
|
+
$metadata: deserializeMetadata(output)
|
|
1202
|
+
});
|
|
1203
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1204
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1205
|
+
authentication: import_smithy_client._json
|
|
1206
|
+
});
|
|
1207
|
+
Object.assign(contents, doc);
|
|
1208
|
+
return contents;
|
|
1209
|
+
}, "de_DescribeWorkspaceAuthenticationCommand");
|
|
1210
|
+
var de_DescribeWorkspaceAuthenticationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1211
|
+
const parsedOutput = {
|
|
1212
|
+
...output,
|
|
1213
|
+
body: await parseErrorBody(output.body, context)
|
|
1214
|
+
};
|
|
1215
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
|
+
switch (errorCode) {
|
|
1217
|
+
case "AccessDeniedException":
|
|
1218
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1219
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1220
|
+
case "InternalServerException":
|
|
1221
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1222
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1223
|
+
case "ResourceNotFoundException":
|
|
1224
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1225
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1226
|
+
case "ThrottlingException":
|
|
1227
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1228
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1229
|
+
case "ValidationException":
|
|
1230
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
1231
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1232
|
+
default:
|
|
1233
|
+
const parsedBody = parsedOutput.body;
|
|
1234
|
+
return throwDefaultError({
|
|
1235
|
+
output,
|
|
1236
|
+
parsedBody,
|
|
1237
|
+
errorCode
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
}, "de_DescribeWorkspaceAuthenticationCommandError");
|
|
1241
|
+
var de_DescribeWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1242
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1243
|
+
return de_DescribeWorkspaceConfigurationCommandError(output, context);
|
|
1244
|
+
}
|
|
1245
|
+
const contents = (0, import_smithy_client.map)({
|
|
1246
|
+
$metadata: deserializeMetadata(output)
|
|
1247
|
+
});
|
|
1248
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1249
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1250
|
+
configuration: (_) => new import_smithy_client.LazyJsonString(_),
|
|
1251
|
+
grafanaVersion: import_smithy_client.expectString
|
|
1252
|
+
});
|
|
1253
|
+
Object.assign(contents, doc);
|
|
1254
|
+
return contents;
|
|
1255
|
+
}, "de_DescribeWorkspaceConfigurationCommand");
|
|
1256
|
+
var de_DescribeWorkspaceConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1257
|
+
const parsedOutput = {
|
|
1258
|
+
...output,
|
|
1259
|
+
body: await parseErrorBody(output.body, context)
|
|
1260
|
+
};
|
|
1261
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1262
|
+
switch (errorCode) {
|
|
1263
|
+
case "AccessDeniedException":
|
|
1264
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1265
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1266
|
+
case "InternalServerException":
|
|
1267
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1268
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1269
|
+
case "ResourceNotFoundException":
|
|
1270
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1271
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1272
|
+
case "ThrottlingException":
|
|
1273
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1274
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1275
|
+
default:
|
|
1276
|
+
const parsedBody = parsedOutput.body;
|
|
1277
|
+
return throwDefaultError({
|
|
1278
|
+
output,
|
|
1279
|
+
parsedBody,
|
|
1280
|
+
errorCode
|
|
1281
|
+
});
|
|
1282
|
+
}
|
|
1283
|
+
}, "de_DescribeWorkspaceConfigurationCommandError");
|
|
1284
|
+
var de_DisassociateLicenseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1285
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1286
|
+
return de_DisassociateLicenseCommandError(output, context);
|
|
1287
|
+
}
|
|
1288
|
+
const contents = (0, import_smithy_client.map)({
|
|
1289
|
+
$metadata: deserializeMetadata(output)
|
|
1290
|
+
});
|
|
1291
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1292
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1293
|
+
workspace: (_) => de_WorkspaceDescription(_, context)
|
|
1294
|
+
});
|
|
1295
|
+
Object.assign(contents, doc);
|
|
1296
|
+
return contents;
|
|
1297
|
+
}, "de_DisassociateLicenseCommand");
|
|
1298
|
+
var de_DisassociateLicenseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1299
|
+
const parsedOutput = {
|
|
1300
|
+
...output,
|
|
1301
|
+
body: await parseErrorBody(output.body, context)
|
|
1302
|
+
};
|
|
1303
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1304
|
+
switch (errorCode) {
|
|
1305
|
+
case "AccessDeniedException":
|
|
1306
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1307
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1308
|
+
case "InternalServerException":
|
|
1309
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1310
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1311
|
+
case "ResourceNotFoundException":
|
|
1312
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1313
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1314
|
+
case "ThrottlingException":
|
|
1315
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1316
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1317
|
+
case "ValidationException":
|
|
1318
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
1319
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1320
|
+
default:
|
|
1321
|
+
const parsedBody = parsedOutput.body;
|
|
1322
|
+
return throwDefaultError({
|
|
1323
|
+
output,
|
|
1324
|
+
parsedBody,
|
|
1325
|
+
errorCode
|
|
1326
|
+
});
|
|
1327
|
+
}
|
|
1328
|
+
}, "de_DisassociateLicenseCommandError");
|
|
1329
|
+
var de_ListPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1330
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1331
|
+
return de_ListPermissionsCommandError(output, context);
|
|
1332
|
+
}
|
|
1333
|
+
const contents = (0, import_smithy_client.map)({
|
|
1334
|
+
$metadata: deserializeMetadata(output)
|
|
1335
|
+
});
|
|
1336
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1337
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1338
|
+
nextToken: import_smithy_client.expectString,
|
|
1339
|
+
permissions: import_smithy_client._json
|
|
1340
|
+
});
|
|
1341
|
+
Object.assign(contents, doc);
|
|
1342
|
+
return contents;
|
|
1343
|
+
}, "de_ListPermissionsCommand");
|
|
1344
|
+
var de_ListPermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1345
|
+
const parsedOutput = {
|
|
1346
|
+
...output,
|
|
1347
|
+
body: await parseErrorBody(output.body, context)
|
|
1348
|
+
};
|
|
1349
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1350
|
+
switch (errorCode) {
|
|
1351
|
+
case "AccessDeniedException":
|
|
1352
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1353
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1354
|
+
case "InternalServerException":
|
|
1355
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1356
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1357
|
+
case "ResourceNotFoundException":
|
|
1358
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1359
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1360
|
+
case "ThrottlingException":
|
|
1361
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1362
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1363
|
+
case "ValidationException":
|
|
1364
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
1365
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1366
|
+
default:
|
|
1367
|
+
const parsedBody = parsedOutput.body;
|
|
1368
|
+
return throwDefaultError({
|
|
1369
|
+
output,
|
|
1370
|
+
parsedBody,
|
|
1371
|
+
errorCode
|
|
1372
|
+
});
|
|
1373
|
+
}
|
|
1374
|
+
}, "de_ListPermissionsCommandError");
|
|
1375
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1376
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1377
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1378
|
+
}
|
|
1379
|
+
const contents = (0, import_smithy_client.map)({
|
|
1380
|
+
$metadata: deserializeMetadata(output)
|
|
1381
|
+
});
|
|
1382
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1383
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1384
|
+
tags: import_smithy_client._json
|
|
1385
|
+
});
|
|
1386
|
+
Object.assign(contents, doc);
|
|
1387
|
+
return contents;
|
|
1388
|
+
}, "de_ListTagsForResourceCommand");
|
|
1389
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1390
|
+
const parsedOutput = {
|
|
1391
|
+
...output,
|
|
1392
|
+
body: await parseErrorBody(output.body, context)
|
|
1393
|
+
};
|
|
1394
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1395
|
+
switch (errorCode) {
|
|
1396
|
+
case "AccessDeniedException":
|
|
1397
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1398
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1399
|
+
case "InternalServerException":
|
|
1400
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1401
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1402
|
+
case "ResourceNotFoundException":
|
|
1403
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1404
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1405
|
+
case "ThrottlingException":
|
|
1406
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1407
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1408
|
+
case "ValidationException":
|
|
1409
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
1410
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1411
|
+
default:
|
|
1412
|
+
const parsedBody = parsedOutput.body;
|
|
1413
|
+
return throwDefaultError({
|
|
1414
|
+
output,
|
|
1415
|
+
parsedBody,
|
|
1416
|
+
errorCode
|
|
1417
|
+
});
|
|
1418
|
+
}
|
|
1419
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1420
|
+
var de_ListVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1421
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1422
|
+
return de_ListVersionsCommandError(output, context);
|
|
1423
|
+
}
|
|
1424
|
+
const contents = (0, import_smithy_client.map)({
|
|
1425
|
+
$metadata: deserializeMetadata(output)
|
|
1426
|
+
});
|
|
1427
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1428
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1429
|
+
grafanaVersions: import_smithy_client._json,
|
|
1430
|
+
nextToken: import_smithy_client.expectString
|
|
1431
|
+
});
|
|
1432
|
+
Object.assign(contents, doc);
|
|
1433
|
+
return contents;
|
|
1434
|
+
}, "de_ListVersionsCommand");
|
|
1435
|
+
var de_ListVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1436
|
+
const parsedOutput = {
|
|
1437
|
+
...output,
|
|
1438
|
+
body: await parseErrorBody(output.body, context)
|
|
1439
|
+
};
|
|
1440
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1441
|
+
switch (errorCode) {
|
|
1442
|
+
case "AccessDeniedException":
|
|
1443
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1444
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1445
|
+
case "InternalServerException":
|
|
1446
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1447
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1448
|
+
case "ResourceNotFoundException":
|
|
1449
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1450
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1451
|
+
case "ThrottlingException":
|
|
1452
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1453
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1454
|
+
case "ValidationException":
|
|
1455
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
1456
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1457
|
+
default:
|
|
1458
|
+
const parsedBody = parsedOutput.body;
|
|
1459
|
+
return throwDefaultError({
|
|
1460
|
+
output,
|
|
1461
|
+
parsedBody,
|
|
1462
|
+
errorCode
|
|
1463
|
+
});
|
|
1464
|
+
}
|
|
1465
|
+
}, "de_ListVersionsCommandError");
|
|
1466
|
+
var de_ListWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1467
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1468
|
+
return de_ListWorkspacesCommandError(output, context);
|
|
1469
|
+
}
|
|
1470
|
+
const contents = (0, import_smithy_client.map)({
|
|
1471
|
+
$metadata: deserializeMetadata(output)
|
|
1472
|
+
});
|
|
1473
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1474
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1475
|
+
nextToken: import_smithy_client.expectString,
|
|
1476
|
+
workspaces: (_) => de_WorkspaceList(_, context)
|
|
1477
|
+
});
|
|
1478
|
+
Object.assign(contents, doc);
|
|
1479
|
+
return contents;
|
|
1480
|
+
}, "de_ListWorkspacesCommand");
|
|
1481
|
+
var de_ListWorkspacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1482
|
+
const parsedOutput = {
|
|
1483
|
+
...output,
|
|
1484
|
+
body: await parseErrorBody(output.body, context)
|
|
1485
|
+
};
|
|
1486
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1487
|
+
switch (errorCode) {
|
|
1488
|
+
case "AccessDeniedException":
|
|
1489
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1490
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1491
|
+
case "InternalServerException":
|
|
1492
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1493
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1494
|
+
case "ThrottlingException":
|
|
1495
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1496
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1497
|
+
default:
|
|
1498
|
+
const parsedBody = parsedOutput.body;
|
|
1499
|
+
return throwDefaultError({
|
|
1500
|
+
output,
|
|
1501
|
+
parsedBody,
|
|
1502
|
+
errorCode
|
|
1503
|
+
});
|
|
1504
|
+
}
|
|
1505
|
+
}, "de_ListWorkspacesCommandError");
|
|
1506
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1507
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1508
|
+
return de_TagResourceCommandError(output, context);
|
|
1509
|
+
}
|
|
1510
|
+
const contents = (0, import_smithy_client.map)({
|
|
1511
|
+
$metadata: deserializeMetadata(output)
|
|
1512
|
+
});
|
|
1513
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1514
|
+
return contents;
|
|
1515
|
+
}, "de_TagResourceCommand");
|
|
1516
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1517
|
+
const parsedOutput = {
|
|
1518
|
+
...output,
|
|
1519
|
+
body: await parseErrorBody(output.body, context)
|
|
1520
|
+
};
|
|
1521
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1522
|
+
switch (errorCode) {
|
|
1523
|
+
case "AccessDeniedException":
|
|
1524
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1525
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1526
|
+
case "InternalServerException":
|
|
1527
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1528
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1529
|
+
case "ResourceNotFoundException":
|
|
1530
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1531
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1532
|
+
case "ThrottlingException":
|
|
1533
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1534
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1535
|
+
case "ValidationException":
|
|
1536
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
1537
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1538
|
+
default:
|
|
1539
|
+
const parsedBody = parsedOutput.body;
|
|
1540
|
+
return throwDefaultError({
|
|
1541
|
+
output,
|
|
1542
|
+
parsedBody,
|
|
1543
|
+
errorCode
|
|
1544
|
+
});
|
|
1545
|
+
}
|
|
1546
|
+
}, "de_TagResourceCommandError");
|
|
1547
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1548
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1549
|
+
return de_UntagResourceCommandError(output, context);
|
|
1550
|
+
}
|
|
1551
|
+
const contents = (0, import_smithy_client.map)({
|
|
1552
|
+
$metadata: deserializeMetadata(output)
|
|
1553
|
+
});
|
|
1554
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1555
|
+
return contents;
|
|
1556
|
+
}, "de_UntagResourceCommand");
|
|
1557
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1558
|
+
const parsedOutput = {
|
|
1559
|
+
...output,
|
|
1560
|
+
body: await parseErrorBody(output.body, context)
|
|
1561
|
+
};
|
|
1562
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1563
|
+
switch (errorCode) {
|
|
1564
|
+
case "AccessDeniedException":
|
|
1565
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1566
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1567
|
+
case "InternalServerException":
|
|
1568
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1569
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1570
|
+
case "ResourceNotFoundException":
|
|
1571
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1572
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1573
|
+
case "ThrottlingException":
|
|
1574
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1575
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1576
|
+
case "ValidationException":
|
|
1577
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
1578
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1579
|
+
default:
|
|
1580
|
+
const parsedBody = parsedOutput.body;
|
|
1581
|
+
return throwDefaultError({
|
|
1582
|
+
output,
|
|
1583
|
+
parsedBody,
|
|
1584
|
+
errorCode
|
|
1585
|
+
});
|
|
1586
|
+
}
|
|
1587
|
+
}, "de_UntagResourceCommandError");
|
|
1588
|
+
var de_UpdatePermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1589
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1590
|
+
return de_UpdatePermissionsCommandError(output, context);
|
|
1591
|
+
}
|
|
1592
|
+
const contents = (0, import_smithy_client.map)({
|
|
1593
|
+
$metadata: deserializeMetadata(output)
|
|
1594
|
+
});
|
|
1595
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1596
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1597
|
+
errors: import_smithy_client._json
|
|
1598
|
+
});
|
|
1599
|
+
Object.assign(contents, doc);
|
|
1600
|
+
return contents;
|
|
1601
|
+
}, "de_UpdatePermissionsCommand");
|
|
1602
|
+
var de_UpdatePermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1603
|
+
const parsedOutput = {
|
|
1604
|
+
...output,
|
|
1605
|
+
body: await parseErrorBody(output.body, context)
|
|
1606
|
+
};
|
|
1607
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1608
|
+
switch (errorCode) {
|
|
1609
|
+
case "AccessDeniedException":
|
|
1610
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1611
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1612
|
+
case "InternalServerException":
|
|
1613
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1614
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1615
|
+
case "ResourceNotFoundException":
|
|
1616
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1617
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1618
|
+
case "ThrottlingException":
|
|
1619
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1620
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1621
|
+
case "ValidationException":
|
|
1622
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
1623
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1624
|
+
default:
|
|
1625
|
+
const parsedBody = parsedOutput.body;
|
|
1626
|
+
return throwDefaultError({
|
|
1627
|
+
output,
|
|
1628
|
+
parsedBody,
|
|
1629
|
+
errorCode
|
|
1630
|
+
});
|
|
1631
|
+
}
|
|
1632
|
+
}, "de_UpdatePermissionsCommandError");
|
|
1633
|
+
var de_UpdateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1634
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1635
|
+
return de_UpdateWorkspaceCommandError(output, context);
|
|
1636
|
+
}
|
|
1637
|
+
const contents = (0, import_smithy_client.map)({
|
|
1638
|
+
$metadata: deserializeMetadata(output)
|
|
1639
|
+
});
|
|
1640
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1641
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1642
|
+
workspace: (_) => de_WorkspaceDescription(_, context)
|
|
1643
|
+
});
|
|
1644
|
+
Object.assign(contents, doc);
|
|
1645
|
+
return contents;
|
|
1646
|
+
}, "de_UpdateWorkspaceCommand");
|
|
1647
|
+
var de_UpdateWorkspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1648
|
+
const parsedOutput = {
|
|
1649
|
+
...output,
|
|
1650
|
+
body: await parseErrorBody(output.body, context)
|
|
1651
|
+
};
|
|
1652
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1653
|
+
switch (errorCode) {
|
|
1654
|
+
case "AccessDeniedException":
|
|
1655
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1656
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1657
|
+
case "ConflictException":
|
|
1658
|
+
case "com.amazonaws.grafana#ConflictException":
|
|
1659
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1660
|
+
case "InternalServerException":
|
|
1661
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1662
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1663
|
+
case "ResourceNotFoundException":
|
|
1664
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1665
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1666
|
+
case "ThrottlingException":
|
|
1667
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1668
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1669
|
+
case "ValidationException":
|
|
1670
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
1671
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1672
|
+
default:
|
|
1673
|
+
const parsedBody = parsedOutput.body;
|
|
1674
|
+
return throwDefaultError({
|
|
1675
|
+
output,
|
|
1676
|
+
parsedBody,
|
|
1677
|
+
errorCode
|
|
1678
|
+
});
|
|
1679
|
+
}
|
|
1680
|
+
}, "de_UpdateWorkspaceCommandError");
|
|
1681
|
+
var de_UpdateWorkspaceAuthenticationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1682
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1683
|
+
return de_UpdateWorkspaceAuthenticationCommandError(output, context);
|
|
1684
|
+
}
|
|
1685
|
+
const contents = (0, import_smithy_client.map)({
|
|
1686
|
+
$metadata: deserializeMetadata(output)
|
|
1687
|
+
});
|
|
1688
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1689
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1690
|
+
authentication: import_smithy_client._json
|
|
1691
|
+
});
|
|
1692
|
+
Object.assign(contents, doc);
|
|
1693
|
+
return contents;
|
|
1694
|
+
}, "de_UpdateWorkspaceAuthenticationCommand");
|
|
1695
|
+
var de_UpdateWorkspaceAuthenticationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1696
|
+
const parsedOutput = {
|
|
1697
|
+
...output,
|
|
1698
|
+
body: await parseErrorBody(output.body, context)
|
|
1699
|
+
};
|
|
1700
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1701
|
+
switch (errorCode) {
|
|
1702
|
+
case "AccessDeniedException":
|
|
1703
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1704
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1705
|
+
case "ConflictException":
|
|
1706
|
+
case "com.amazonaws.grafana#ConflictException":
|
|
1707
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1708
|
+
case "InternalServerException":
|
|
1709
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1710
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1711
|
+
case "ResourceNotFoundException":
|
|
1712
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1713
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1714
|
+
case "ThrottlingException":
|
|
1715
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1716
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1717
|
+
case "ValidationException":
|
|
1718
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
1719
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1720
|
+
default:
|
|
1721
|
+
const parsedBody = parsedOutput.body;
|
|
1722
|
+
return throwDefaultError({
|
|
1723
|
+
output,
|
|
1724
|
+
parsedBody,
|
|
1725
|
+
errorCode
|
|
1726
|
+
});
|
|
1727
|
+
}
|
|
1728
|
+
}, "de_UpdateWorkspaceAuthenticationCommandError");
|
|
1729
|
+
var de_UpdateWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1730
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1731
|
+
return de_UpdateWorkspaceConfigurationCommandError(output, context);
|
|
1732
|
+
}
|
|
1733
|
+
const contents = (0, import_smithy_client.map)({
|
|
1734
|
+
$metadata: deserializeMetadata(output)
|
|
1735
|
+
});
|
|
1736
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1737
|
+
return contents;
|
|
1738
|
+
}, "de_UpdateWorkspaceConfigurationCommand");
|
|
1739
|
+
var de_UpdateWorkspaceConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1740
|
+
const parsedOutput = {
|
|
1741
|
+
...output,
|
|
1742
|
+
body: await parseErrorBody(output.body, context)
|
|
1743
|
+
};
|
|
1744
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1745
|
+
switch (errorCode) {
|
|
1746
|
+
case "AccessDeniedException":
|
|
1747
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1748
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1749
|
+
case "ConflictException":
|
|
1750
|
+
case "com.amazonaws.grafana#ConflictException":
|
|
1751
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1752
|
+
case "InternalServerException":
|
|
1753
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1754
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1755
|
+
case "ResourceNotFoundException":
|
|
1756
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1757
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1758
|
+
case "ThrottlingException":
|
|
1759
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1760
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1761
|
+
case "ValidationException":
|
|
1762
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
1763
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1764
|
+
default:
|
|
1765
|
+
const parsedBody = parsedOutput.body;
|
|
1766
|
+
return throwDefaultError({
|
|
1767
|
+
output,
|
|
1768
|
+
parsedBody,
|
|
1769
|
+
errorCode
|
|
1770
|
+
});
|
|
1771
|
+
}
|
|
1772
|
+
}, "de_UpdateWorkspaceConfigurationCommandError");
|
|
1773
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(GrafanaServiceException);
|
|
1774
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1775
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1776
|
+
const data = parsedOutput.body;
|
|
1777
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1778
|
+
message: import_smithy_client.expectString
|
|
1779
|
+
});
|
|
1780
|
+
Object.assign(contents, doc);
|
|
1781
|
+
const exception = new AccessDeniedException({
|
|
1782
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1783
|
+
...contents
|
|
1784
|
+
});
|
|
1785
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1786
|
+
}, "de_AccessDeniedExceptionRes");
|
|
1787
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1788
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1789
|
+
const data = parsedOutput.body;
|
|
1790
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1791
|
+
message: import_smithy_client.expectString,
|
|
1792
|
+
resourceId: import_smithy_client.expectString,
|
|
1793
|
+
resourceType: import_smithy_client.expectString
|
|
1794
|
+
});
|
|
1795
|
+
Object.assign(contents, doc);
|
|
1796
|
+
const exception = new ConflictException({
|
|
1797
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1798
|
+
...contents
|
|
1799
|
+
});
|
|
1800
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1801
|
+
}, "de_ConflictExceptionRes");
|
|
1802
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1803
|
+
const contents = (0, import_smithy_client.map)({
|
|
1804
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
1805
|
+
});
|
|
1806
|
+
const data = parsedOutput.body;
|
|
1807
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1808
|
+
message: import_smithy_client.expectString
|
|
1809
|
+
});
|
|
1810
|
+
Object.assign(contents, doc);
|
|
1811
|
+
const exception = new InternalServerException({
|
|
1812
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1813
|
+
...contents
|
|
1814
|
+
});
|
|
1815
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1816
|
+
}, "de_InternalServerExceptionRes");
|
|
1817
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1818
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1819
|
+
const data = parsedOutput.body;
|
|
1820
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1821
|
+
message: import_smithy_client.expectString,
|
|
1822
|
+
resourceId: import_smithy_client.expectString,
|
|
1823
|
+
resourceType: import_smithy_client.expectString
|
|
1824
|
+
});
|
|
1825
|
+
Object.assign(contents, doc);
|
|
1826
|
+
const exception = new ResourceNotFoundException({
|
|
1827
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1828
|
+
...contents
|
|
1829
|
+
});
|
|
1830
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1831
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1832
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1833
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1834
|
+
const data = parsedOutput.body;
|
|
1835
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1836
|
+
message: import_smithy_client.expectString,
|
|
1837
|
+
quotaCode: import_smithy_client.expectString,
|
|
1838
|
+
resourceId: import_smithy_client.expectString,
|
|
1839
|
+
resourceType: import_smithy_client.expectString,
|
|
1840
|
+
serviceCode: import_smithy_client.expectString
|
|
1841
|
+
});
|
|
1842
|
+
Object.assign(contents, doc);
|
|
1843
|
+
const exception = new ServiceQuotaExceededException({
|
|
1844
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1845
|
+
...contents
|
|
1846
|
+
});
|
|
1847
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1848
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1849
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1850
|
+
const contents = (0, import_smithy_client.map)({
|
|
1851
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
1852
|
+
});
|
|
1853
|
+
const data = parsedOutput.body;
|
|
1854
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1855
|
+
message: import_smithy_client.expectString,
|
|
1856
|
+
quotaCode: import_smithy_client.expectString,
|
|
1857
|
+
serviceCode: import_smithy_client.expectString
|
|
1858
|
+
});
|
|
1859
|
+
Object.assign(contents, doc);
|
|
1860
|
+
const exception = new ThrottlingException({
|
|
1861
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1862
|
+
...contents
|
|
1863
|
+
});
|
|
1864
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1865
|
+
}, "de_ThrottlingExceptionRes");
|
|
1866
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1867
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1868
|
+
const data = parsedOutput.body;
|
|
1869
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1870
|
+
fieldList: import_smithy_client._json,
|
|
1871
|
+
message: import_smithy_client.expectString,
|
|
1872
|
+
reason: import_smithy_client.expectString
|
|
1873
|
+
});
|
|
1874
|
+
Object.assign(contents, doc);
|
|
1875
|
+
const exception = new ValidationException({
|
|
1876
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1877
|
+
...contents
|
|
1878
|
+
});
|
|
1879
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1880
|
+
}, "de_ValidationExceptionRes");
|
|
1881
|
+
var de_WorkspaceDescription = /* @__PURE__ */ __name((output, context) => {
|
|
1882
|
+
return (0, import_smithy_client.take)(output, {
|
|
1883
|
+
accountAccessType: import_smithy_client.expectString,
|
|
1884
|
+
authentication: import_smithy_client._json,
|
|
1885
|
+
created: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1886
|
+
dataSources: import_smithy_client._json,
|
|
1887
|
+
description: import_smithy_client.expectString,
|
|
1888
|
+
endpoint: import_smithy_client.expectString,
|
|
1889
|
+
freeTrialConsumed: import_smithy_client.expectBoolean,
|
|
1890
|
+
freeTrialExpiration: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1891
|
+
grafanaVersion: import_smithy_client.expectString,
|
|
1892
|
+
id: import_smithy_client.expectString,
|
|
1893
|
+
licenseExpiration: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1894
|
+
licenseType: import_smithy_client.expectString,
|
|
1895
|
+
modified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1896
|
+
name: import_smithy_client.expectString,
|
|
1897
|
+
networkAccessControl: import_smithy_client._json,
|
|
1898
|
+
notificationDestinations: import_smithy_client._json,
|
|
1899
|
+
organizationRoleName: import_smithy_client.expectString,
|
|
1900
|
+
organizationalUnits: import_smithy_client._json,
|
|
1901
|
+
permissionType: import_smithy_client.expectString,
|
|
1902
|
+
stackSetName: import_smithy_client.expectString,
|
|
1903
|
+
status: import_smithy_client.expectString,
|
|
1904
|
+
tags: import_smithy_client._json,
|
|
1905
|
+
vpcConfiguration: import_smithy_client._json,
|
|
1906
|
+
workspaceRoleArn: import_smithy_client.expectString
|
|
1907
|
+
});
|
|
1908
|
+
}, "de_WorkspaceDescription");
|
|
1909
|
+
var de_WorkspaceList = /* @__PURE__ */ __name((output, context) => {
|
|
1910
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1911
|
+
return de_WorkspaceSummary(entry, context);
|
|
1912
|
+
});
|
|
1913
|
+
return retVal;
|
|
1914
|
+
}, "de_WorkspaceList");
|
|
1915
|
+
var de_WorkspaceSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1916
|
+
return (0, import_smithy_client.take)(output, {
|
|
1917
|
+
authentication: import_smithy_client._json,
|
|
1918
|
+
created: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1919
|
+
description: import_smithy_client.expectString,
|
|
1920
|
+
endpoint: import_smithy_client.expectString,
|
|
1921
|
+
grafanaVersion: import_smithy_client.expectString,
|
|
1922
|
+
id: import_smithy_client.expectString,
|
|
1923
|
+
modified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1924
|
+
name: import_smithy_client.expectString,
|
|
1925
|
+
notificationDestinations: import_smithy_client._json,
|
|
1926
|
+
status: import_smithy_client.expectString,
|
|
1927
|
+
tags: import_smithy_client._json
|
|
1928
|
+
});
|
|
1929
|
+
}, "de_WorkspaceSummary");
|
|
1930
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1931
|
+
httpStatusCode: output.statusCode,
|
|
1932
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1933
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1934
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1935
|
+
}), "deserializeMetadata");
|
|
1936
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1937
|
+
var _gI = "groupId";
|
|
1938
|
+
var _mR = "maxResults";
|
|
1939
|
+
var _nT = "nextToken";
|
|
1940
|
+
var _rAS = "retryAfterSeconds";
|
|
1941
|
+
var _ra = "retry-after";
|
|
1942
|
+
var _tK = "tagKeys";
|
|
1943
|
+
var _uI = "userId";
|
|
1944
|
+
var _uT = "userType";
|
|
1945
|
+
var _wI = "workspaceId";
|
|
1946
|
+
var _wi = "workspace-id";
|
|
1947
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1948
|
+
if (encoded.length) {
|
|
1949
|
+
return JSON.parse(encoded);
|
|
1950
|
+
}
|
|
1951
|
+
return {};
|
|
1952
|
+
}), "parseBody");
|
|
1953
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1954
|
+
const value = await parseBody(errorBody, context);
|
|
1955
|
+
value.message = value.message ?? value.Message;
|
|
1956
|
+
return value;
|
|
1957
|
+
}, "parseErrorBody");
|
|
1958
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1959
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1960
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1961
|
+
let cleanValue = rawValue;
|
|
1962
|
+
if (typeof cleanValue === "number") {
|
|
1963
|
+
cleanValue = cleanValue.toString();
|
|
1964
|
+
}
|
|
1965
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1966
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1967
|
+
}
|
|
1968
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1969
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1970
|
+
}
|
|
1971
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1972
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1973
|
+
}
|
|
1974
|
+
return cleanValue;
|
|
1975
|
+
}, "sanitizeErrorCode");
|
|
1976
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1977
|
+
if (headerKey !== void 0) {
|
|
1978
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1979
|
+
}
|
|
1980
|
+
if (data.code !== void 0) {
|
|
1981
|
+
return sanitizeErrorCode(data.code);
|
|
1982
|
+
}
|
|
1983
|
+
if (data["__type"] !== void 0) {
|
|
1984
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1985
|
+
}
|
|
1986
|
+
}, "loadRestJsonErrorCode");
|
|
1987
|
+
|
|
1988
|
+
// src/commands/AssociateLicenseCommand.ts
|
|
1989
|
+
var _AssociateLicenseCommand = class _AssociateLicenseCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1990
|
+
...commonParams
|
|
1991
|
+
}).m(function(Command, cs, config, o) {
|
|
1992
|
+
return [
|
|
1993
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1994
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1995
|
+
];
|
|
1996
|
+
}).s("AWSGrafanaControlPlane", "AssociateLicense", {}).n("GrafanaClient", "AssociateLicenseCommand").f(void 0, AssociateLicenseResponseFilterSensitiveLog).ser(se_AssociateLicenseCommand).de(de_AssociateLicenseCommand).build() {
|
|
1997
|
+
};
|
|
1998
|
+
__name(_AssociateLicenseCommand, "AssociateLicenseCommand");
|
|
1999
|
+
var AssociateLicenseCommand = _AssociateLicenseCommand;
|
|
2000
|
+
|
|
2001
|
+
// src/commands/CreateWorkspaceApiKeyCommand.ts
|
|
2002
|
+
|
|
2003
|
+
|
|
2004
|
+
|
|
2005
|
+
|
|
2006
|
+
var _CreateWorkspaceApiKeyCommand = class _CreateWorkspaceApiKeyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2007
|
+
...commonParams
|
|
2008
|
+
}).m(function(Command, cs, config, o) {
|
|
2009
|
+
return [
|
|
2010
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2011
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2012
|
+
];
|
|
2013
|
+
}).s("AWSGrafanaControlPlane", "CreateWorkspaceApiKey", {}).n("GrafanaClient", "CreateWorkspaceApiKeyCommand").f(void 0, CreateWorkspaceApiKeyResponseFilterSensitiveLog).ser(se_CreateWorkspaceApiKeyCommand).de(de_CreateWorkspaceApiKeyCommand).build() {
|
|
2014
|
+
};
|
|
2015
|
+
__name(_CreateWorkspaceApiKeyCommand, "CreateWorkspaceApiKeyCommand");
|
|
2016
|
+
var CreateWorkspaceApiKeyCommand = _CreateWorkspaceApiKeyCommand;
|
|
2017
|
+
|
|
2018
|
+
// src/commands/CreateWorkspaceCommand.ts
|
|
2019
|
+
|
|
2020
|
+
|
|
2021
|
+
|
|
2022
|
+
|
|
2023
|
+
var _CreateWorkspaceCommand = class _CreateWorkspaceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2024
|
+
...commonParams
|
|
2025
|
+
}).m(function(Command, cs, config, o) {
|
|
2026
|
+
return [
|
|
2027
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2028
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2029
|
+
];
|
|
2030
|
+
}).s("AWSGrafanaControlPlane", "CreateWorkspace", {}).n("GrafanaClient", "CreateWorkspaceCommand").f(CreateWorkspaceRequestFilterSensitiveLog, CreateWorkspaceResponseFilterSensitiveLog).ser(se_CreateWorkspaceCommand).de(de_CreateWorkspaceCommand).build() {
|
|
2031
|
+
};
|
|
2032
|
+
__name(_CreateWorkspaceCommand, "CreateWorkspaceCommand");
|
|
2033
|
+
var CreateWorkspaceCommand = _CreateWorkspaceCommand;
|
|
2034
|
+
|
|
2035
|
+
// src/commands/DeleteWorkspaceApiKeyCommand.ts
|
|
2036
|
+
|
|
2037
|
+
|
|
2038
|
+
|
|
2039
|
+
|
|
2040
|
+
var _DeleteWorkspaceApiKeyCommand = class _DeleteWorkspaceApiKeyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2041
|
+
...commonParams
|
|
2042
|
+
}).m(function(Command, cs, config, o) {
|
|
2043
|
+
return [
|
|
2044
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2045
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2046
|
+
];
|
|
2047
|
+
}).s("AWSGrafanaControlPlane", "DeleteWorkspaceApiKey", {}).n("GrafanaClient", "DeleteWorkspaceApiKeyCommand").f(void 0, void 0).ser(se_DeleteWorkspaceApiKeyCommand).de(de_DeleteWorkspaceApiKeyCommand).build() {
|
|
2048
|
+
};
|
|
2049
|
+
__name(_DeleteWorkspaceApiKeyCommand, "DeleteWorkspaceApiKeyCommand");
|
|
2050
|
+
var DeleteWorkspaceApiKeyCommand = _DeleteWorkspaceApiKeyCommand;
|
|
2051
|
+
|
|
2052
|
+
// src/commands/DeleteWorkspaceCommand.ts
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
|
|
2056
|
+
|
|
2057
|
+
var _DeleteWorkspaceCommand = class _DeleteWorkspaceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2058
|
+
...commonParams
|
|
2059
|
+
}).m(function(Command, cs, config, o) {
|
|
2060
|
+
return [
|
|
2061
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2062
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2063
|
+
];
|
|
2064
|
+
}).s("AWSGrafanaControlPlane", "DeleteWorkspace", {}).n("GrafanaClient", "DeleteWorkspaceCommand").f(void 0, DeleteWorkspaceResponseFilterSensitiveLog).ser(se_DeleteWorkspaceCommand).de(de_DeleteWorkspaceCommand).build() {
|
|
2065
|
+
};
|
|
2066
|
+
__name(_DeleteWorkspaceCommand, "DeleteWorkspaceCommand");
|
|
2067
|
+
var DeleteWorkspaceCommand = _DeleteWorkspaceCommand;
|
|
2068
|
+
|
|
2069
|
+
// src/commands/DescribeWorkspaceAuthenticationCommand.ts
|
|
2070
|
+
|
|
2071
|
+
|
|
2072
|
+
|
|
2073
|
+
|
|
2074
|
+
var _DescribeWorkspaceAuthenticationCommand = class _DescribeWorkspaceAuthenticationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2075
|
+
...commonParams
|
|
2076
|
+
}).m(function(Command, cs, config, o) {
|
|
2077
|
+
return [
|
|
2078
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2079
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2080
|
+
];
|
|
2081
|
+
}).s("AWSGrafanaControlPlane", "DescribeWorkspaceAuthentication", {}).n("GrafanaClient", "DescribeWorkspaceAuthenticationCommand").f(void 0, DescribeWorkspaceAuthenticationResponseFilterSensitiveLog).ser(se_DescribeWorkspaceAuthenticationCommand).de(de_DescribeWorkspaceAuthenticationCommand).build() {
|
|
2082
|
+
};
|
|
2083
|
+
__name(_DescribeWorkspaceAuthenticationCommand, "DescribeWorkspaceAuthenticationCommand");
|
|
2084
|
+
var DescribeWorkspaceAuthenticationCommand = _DescribeWorkspaceAuthenticationCommand;
|
|
2085
|
+
|
|
2086
|
+
// src/commands/DescribeWorkspaceCommand.ts
|
|
2087
|
+
|
|
2088
|
+
|
|
2089
|
+
|
|
2090
|
+
|
|
2091
|
+
var _DescribeWorkspaceCommand = class _DescribeWorkspaceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2092
|
+
...commonParams
|
|
2093
|
+
}).m(function(Command, cs, config, o) {
|
|
2094
|
+
return [
|
|
2095
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2096
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2097
|
+
];
|
|
2098
|
+
}).s("AWSGrafanaControlPlane", "DescribeWorkspace", {}).n("GrafanaClient", "DescribeWorkspaceCommand").f(void 0, DescribeWorkspaceResponseFilterSensitiveLog).ser(se_DescribeWorkspaceCommand).de(de_DescribeWorkspaceCommand).build() {
|
|
2099
|
+
};
|
|
2100
|
+
__name(_DescribeWorkspaceCommand, "DescribeWorkspaceCommand");
|
|
2101
|
+
var DescribeWorkspaceCommand = _DescribeWorkspaceCommand;
|
|
2102
|
+
|
|
2103
|
+
// src/commands/DescribeWorkspaceConfigurationCommand.ts
|
|
2104
|
+
|
|
2105
|
+
|
|
2106
|
+
|
|
2107
|
+
|
|
2108
|
+
var _DescribeWorkspaceConfigurationCommand = class _DescribeWorkspaceConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2109
|
+
...commonParams
|
|
2110
|
+
}).m(function(Command, cs, config, o) {
|
|
2111
|
+
return [
|
|
2112
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2113
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2114
|
+
];
|
|
2115
|
+
}).s("AWSGrafanaControlPlane", "DescribeWorkspaceConfiguration", {}).n("GrafanaClient", "DescribeWorkspaceConfigurationCommand").f(void 0, void 0).ser(se_DescribeWorkspaceConfigurationCommand).de(de_DescribeWorkspaceConfigurationCommand).build() {
|
|
2116
|
+
};
|
|
2117
|
+
__name(_DescribeWorkspaceConfigurationCommand, "DescribeWorkspaceConfigurationCommand");
|
|
2118
|
+
var DescribeWorkspaceConfigurationCommand = _DescribeWorkspaceConfigurationCommand;
|
|
2119
|
+
|
|
2120
|
+
// src/commands/DisassociateLicenseCommand.ts
|
|
2121
|
+
|
|
2122
|
+
|
|
2123
|
+
|
|
2124
|
+
|
|
2125
|
+
var _DisassociateLicenseCommand = class _DisassociateLicenseCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2126
|
+
...commonParams
|
|
2127
|
+
}).m(function(Command, cs, config, o) {
|
|
2128
|
+
return [
|
|
2129
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2130
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2131
|
+
];
|
|
2132
|
+
}).s("AWSGrafanaControlPlane", "DisassociateLicense", {}).n("GrafanaClient", "DisassociateLicenseCommand").f(void 0, DisassociateLicenseResponseFilterSensitiveLog).ser(se_DisassociateLicenseCommand).de(de_DisassociateLicenseCommand).build() {
|
|
2133
|
+
};
|
|
2134
|
+
__name(_DisassociateLicenseCommand, "DisassociateLicenseCommand");
|
|
2135
|
+
var DisassociateLicenseCommand = _DisassociateLicenseCommand;
|
|
2136
|
+
|
|
2137
|
+
// src/commands/ListPermissionsCommand.ts
|
|
2138
|
+
|
|
2139
|
+
|
|
2140
|
+
|
|
2141
|
+
|
|
2142
|
+
var _ListPermissionsCommand = class _ListPermissionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2143
|
+
...commonParams
|
|
2144
|
+
}).m(function(Command, cs, config, o) {
|
|
2145
|
+
return [
|
|
2146
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2147
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2148
|
+
];
|
|
2149
|
+
}).s("AWSGrafanaControlPlane", "ListPermissions", {}).n("GrafanaClient", "ListPermissionsCommand").f(void 0, void 0).ser(se_ListPermissionsCommand).de(de_ListPermissionsCommand).build() {
|
|
2150
|
+
};
|
|
2151
|
+
__name(_ListPermissionsCommand, "ListPermissionsCommand");
|
|
2152
|
+
var ListPermissionsCommand = _ListPermissionsCommand;
|
|
2153
|
+
|
|
2154
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
2155
|
+
|
|
2156
|
+
|
|
2157
|
+
|
|
2158
|
+
|
|
2159
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2160
|
+
...commonParams
|
|
2161
|
+
}).m(function(Command, cs, config, o) {
|
|
2162
|
+
return [
|
|
2163
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2164
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2165
|
+
];
|
|
2166
|
+
}).s("AWSGrafanaControlPlane", "ListTagsForResource", {}).n("GrafanaClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
2167
|
+
};
|
|
2168
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
2169
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
2170
|
+
|
|
2171
|
+
// src/commands/ListVersionsCommand.ts
|
|
2172
|
+
|
|
2173
|
+
|
|
2174
|
+
|
|
2175
|
+
|
|
2176
|
+
var _ListVersionsCommand = class _ListVersionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2177
|
+
...commonParams
|
|
2178
|
+
}).m(function(Command, cs, config, o) {
|
|
2179
|
+
return [
|
|
2180
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2181
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2182
|
+
];
|
|
2183
|
+
}).s("AWSGrafanaControlPlane", "ListVersions", {}).n("GrafanaClient", "ListVersionsCommand").f(void 0, void 0).ser(se_ListVersionsCommand).de(de_ListVersionsCommand).build() {
|
|
2184
|
+
};
|
|
2185
|
+
__name(_ListVersionsCommand, "ListVersionsCommand");
|
|
2186
|
+
var ListVersionsCommand = _ListVersionsCommand;
|
|
2187
|
+
|
|
2188
|
+
// src/commands/ListWorkspacesCommand.ts
|
|
2189
|
+
|
|
2190
|
+
|
|
2191
|
+
|
|
2192
|
+
|
|
2193
|
+
var _ListWorkspacesCommand = class _ListWorkspacesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2194
|
+
...commonParams
|
|
2195
|
+
}).m(function(Command, cs, config, o) {
|
|
2196
|
+
return [
|
|
2197
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2198
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2199
|
+
];
|
|
2200
|
+
}).s("AWSGrafanaControlPlane", "ListWorkspaces", {}).n("GrafanaClient", "ListWorkspacesCommand").f(void 0, ListWorkspacesResponseFilterSensitiveLog).ser(se_ListWorkspacesCommand).de(de_ListWorkspacesCommand).build() {
|
|
2201
|
+
};
|
|
2202
|
+
__name(_ListWorkspacesCommand, "ListWorkspacesCommand");
|
|
2203
|
+
var ListWorkspacesCommand = _ListWorkspacesCommand;
|
|
2204
|
+
|
|
2205
|
+
// src/commands/TagResourceCommand.ts
|
|
2206
|
+
|
|
2207
|
+
|
|
2208
|
+
|
|
2209
|
+
|
|
2210
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2211
|
+
...commonParams
|
|
2212
|
+
}).m(function(Command, cs, config, o) {
|
|
2213
|
+
return [
|
|
2214
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2215
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2216
|
+
];
|
|
2217
|
+
}).s("AWSGrafanaControlPlane", "TagResource", {}).n("GrafanaClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
2218
|
+
};
|
|
2219
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
2220
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
2221
|
+
|
|
2222
|
+
// src/commands/UntagResourceCommand.ts
|
|
2223
|
+
|
|
2224
|
+
|
|
2225
|
+
|
|
2226
|
+
|
|
2227
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2228
|
+
...commonParams
|
|
2229
|
+
}).m(function(Command, cs, config, o) {
|
|
2230
|
+
return [
|
|
2231
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2232
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2233
|
+
];
|
|
2234
|
+
}).s("AWSGrafanaControlPlane", "UntagResource", {}).n("GrafanaClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
2235
|
+
};
|
|
2236
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
2237
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
2238
|
+
|
|
2239
|
+
// src/commands/UpdatePermissionsCommand.ts
|
|
2240
|
+
|
|
2241
|
+
|
|
2242
|
+
|
|
2243
|
+
|
|
2244
|
+
var _UpdatePermissionsCommand = class _UpdatePermissionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2245
|
+
...commonParams
|
|
2246
|
+
}).m(function(Command, cs, config, o) {
|
|
2247
|
+
return [
|
|
2248
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2249
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2250
|
+
];
|
|
2251
|
+
}).s("AWSGrafanaControlPlane", "UpdatePermissions", {}).n("GrafanaClient", "UpdatePermissionsCommand").f(void 0, void 0).ser(se_UpdatePermissionsCommand).de(de_UpdatePermissionsCommand).build() {
|
|
2252
|
+
};
|
|
2253
|
+
__name(_UpdatePermissionsCommand, "UpdatePermissionsCommand");
|
|
2254
|
+
var UpdatePermissionsCommand = _UpdatePermissionsCommand;
|
|
2255
|
+
|
|
2256
|
+
// src/commands/UpdateWorkspaceAuthenticationCommand.ts
|
|
2257
|
+
|
|
2258
|
+
|
|
2259
|
+
|
|
2260
|
+
|
|
2261
|
+
var _UpdateWorkspaceAuthenticationCommand = class _UpdateWorkspaceAuthenticationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2262
|
+
...commonParams
|
|
2263
|
+
}).m(function(Command, cs, config, o) {
|
|
2264
|
+
return [
|
|
2265
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2266
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2267
|
+
];
|
|
2268
|
+
}).s("AWSGrafanaControlPlane", "UpdateWorkspaceAuthentication", {}).n("GrafanaClient", "UpdateWorkspaceAuthenticationCommand").f(UpdateWorkspaceAuthenticationRequestFilterSensitiveLog, UpdateWorkspaceAuthenticationResponseFilterSensitiveLog).ser(se_UpdateWorkspaceAuthenticationCommand).de(de_UpdateWorkspaceAuthenticationCommand).build() {
|
|
2269
|
+
};
|
|
2270
|
+
__name(_UpdateWorkspaceAuthenticationCommand, "UpdateWorkspaceAuthenticationCommand");
|
|
2271
|
+
var UpdateWorkspaceAuthenticationCommand = _UpdateWorkspaceAuthenticationCommand;
|
|
2272
|
+
|
|
2273
|
+
// src/commands/UpdateWorkspaceCommand.ts
|
|
2274
|
+
|
|
2275
|
+
|
|
2276
|
+
|
|
2277
|
+
|
|
2278
|
+
var _UpdateWorkspaceCommand = class _UpdateWorkspaceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2279
|
+
...commonParams
|
|
2280
|
+
}).m(function(Command, cs, config, o) {
|
|
2281
|
+
return [
|
|
2282
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2283
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2284
|
+
];
|
|
2285
|
+
}).s("AWSGrafanaControlPlane", "UpdateWorkspace", {}).n("GrafanaClient", "UpdateWorkspaceCommand").f(UpdateWorkspaceRequestFilterSensitiveLog, UpdateWorkspaceResponseFilterSensitiveLog).ser(se_UpdateWorkspaceCommand).de(de_UpdateWorkspaceCommand).build() {
|
|
2286
|
+
};
|
|
2287
|
+
__name(_UpdateWorkspaceCommand, "UpdateWorkspaceCommand");
|
|
2288
|
+
var UpdateWorkspaceCommand = _UpdateWorkspaceCommand;
|
|
2289
|
+
|
|
2290
|
+
// src/commands/UpdateWorkspaceConfigurationCommand.ts
|
|
2291
|
+
|
|
2292
|
+
|
|
2293
|
+
|
|
2294
|
+
|
|
2295
|
+
var _UpdateWorkspaceConfigurationCommand = class _UpdateWorkspaceConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2296
|
+
...commonParams
|
|
2297
|
+
}).m(function(Command, cs, config, o) {
|
|
2298
|
+
return [
|
|
2299
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2300
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2301
|
+
];
|
|
2302
|
+
}).s("AWSGrafanaControlPlane", "UpdateWorkspaceConfiguration", {}).n("GrafanaClient", "UpdateWorkspaceConfigurationCommand").f(void 0, void 0).ser(se_UpdateWorkspaceConfigurationCommand).de(de_UpdateWorkspaceConfigurationCommand).build() {
|
|
2303
|
+
};
|
|
2304
|
+
__name(_UpdateWorkspaceConfigurationCommand, "UpdateWorkspaceConfigurationCommand");
|
|
2305
|
+
var UpdateWorkspaceConfigurationCommand = _UpdateWorkspaceConfigurationCommand;
|
|
2306
|
+
|
|
2307
|
+
// src/Grafana.ts
|
|
2308
|
+
var commands = {
|
|
2309
|
+
AssociateLicenseCommand,
|
|
2310
|
+
CreateWorkspaceCommand,
|
|
2311
|
+
CreateWorkspaceApiKeyCommand,
|
|
2312
|
+
DeleteWorkspaceCommand,
|
|
2313
|
+
DeleteWorkspaceApiKeyCommand,
|
|
2314
|
+
DescribeWorkspaceCommand,
|
|
2315
|
+
DescribeWorkspaceAuthenticationCommand,
|
|
2316
|
+
DescribeWorkspaceConfigurationCommand,
|
|
2317
|
+
DisassociateLicenseCommand,
|
|
2318
|
+
ListPermissionsCommand,
|
|
2319
|
+
ListTagsForResourceCommand,
|
|
2320
|
+
ListVersionsCommand,
|
|
2321
|
+
ListWorkspacesCommand,
|
|
2322
|
+
TagResourceCommand,
|
|
2323
|
+
UntagResourceCommand,
|
|
2324
|
+
UpdatePermissionsCommand,
|
|
2325
|
+
UpdateWorkspaceCommand,
|
|
2326
|
+
UpdateWorkspaceAuthenticationCommand,
|
|
2327
|
+
UpdateWorkspaceConfigurationCommand
|
|
2328
|
+
};
|
|
2329
|
+
var _Grafana = class _Grafana extends GrafanaClient {
|
|
2330
|
+
};
|
|
2331
|
+
__name(_Grafana, "Grafana");
|
|
2332
|
+
var Grafana = _Grafana;
|
|
2333
|
+
(0, import_smithy_client.createAggregatedClient)(commands, Grafana);
|
|
2334
|
+
|
|
2335
|
+
// src/pagination/ListPermissionsPaginator.ts
|
|
2336
|
+
|
|
2337
|
+
var paginateListPermissions = (0, import_core.createPaginator)(GrafanaClient, ListPermissionsCommand, "nextToken", "nextToken", "maxResults");
|
|
2338
|
+
|
|
2339
|
+
// src/pagination/ListVersionsPaginator.ts
|
|
2340
|
+
|
|
2341
|
+
var paginateListVersions = (0, import_core.createPaginator)(GrafanaClient, ListVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
2342
|
+
|
|
2343
|
+
// src/pagination/ListWorkspacesPaginator.ts
|
|
2344
|
+
|
|
2345
|
+
var paginateListWorkspaces = (0, import_core.createPaginator)(GrafanaClient, ListWorkspacesCommand, "nextToken", "nextToken", "maxResults");
|
|
2346
|
+
|
|
2347
|
+
// src/index.ts
|
|
2348
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
2349
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2350
|
+
0 && (module.exports = {
|
|
2351
|
+
AccessDeniedException,
|
|
2352
|
+
AccountAccessType,
|
|
2353
|
+
AssociateLicenseCommand,
|
|
2354
|
+
AssociateLicenseResponseFilterSensitiveLog,
|
|
2355
|
+
AuthenticationDescriptionFilterSensitiveLog,
|
|
2356
|
+
AuthenticationProviderTypes,
|
|
2357
|
+
ConflictException,
|
|
2358
|
+
CreateWorkspaceApiKeyCommand,
|
|
2359
|
+
CreateWorkspaceApiKeyResponseFilterSensitiveLog,
|
|
2360
|
+
CreateWorkspaceCommand,
|
|
2361
|
+
CreateWorkspaceRequestFilterSensitiveLog,
|
|
2362
|
+
CreateWorkspaceResponseFilterSensitiveLog,
|
|
2363
|
+
DataSourceType,
|
|
2364
|
+
DeleteWorkspaceApiKeyCommand,
|
|
2365
|
+
DeleteWorkspaceCommand,
|
|
2366
|
+
DeleteWorkspaceResponseFilterSensitiveLog,
|
|
2367
|
+
DescribeWorkspaceAuthenticationCommand,
|
|
2368
|
+
DescribeWorkspaceAuthenticationResponseFilterSensitiveLog,
|
|
2369
|
+
DescribeWorkspaceCommand,
|
|
2370
|
+
DescribeWorkspaceConfigurationCommand,
|
|
2371
|
+
DescribeWorkspaceResponseFilterSensitiveLog,
|
|
2372
|
+
DisassociateLicenseCommand,
|
|
2373
|
+
DisassociateLicenseResponseFilterSensitiveLog,
|
|
2374
|
+
Grafana,
|
|
2375
|
+
GrafanaClient,
|
|
2376
|
+
GrafanaServiceException,
|
|
2377
|
+
IdpMetadata,
|
|
2378
|
+
InternalServerException,
|
|
2379
|
+
LicenseType,
|
|
2380
|
+
ListPermissionsCommand,
|
|
2381
|
+
ListTagsForResourceCommand,
|
|
2382
|
+
ListVersionsCommand,
|
|
2383
|
+
ListWorkspacesCommand,
|
|
2384
|
+
ListWorkspacesResponseFilterSensitiveLog,
|
|
2385
|
+
NotificationDestinationType,
|
|
2386
|
+
PermissionType,
|
|
2387
|
+
ResourceNotFoundException,
|
|
2388
|
+
Role,
|
|
2389
|
+
RoleValuesFilterSensitiveLog,
|
|
2390
|
+
SamlAuthenticationFilterSensitiveLog,
|
|
2391
|
+
SamlConfigurationFilterSensitiveLog,
|
|
2392
|
+
SamlConfigurationStatus,
|
|
2393
|
+
ServiceQuotaExceededException,
|
|
2394
|
+
TagResourceCommand,
|
|
2395
|
+
ThrottlingException,
|
|
2396
|
+
UntagResourceCommand,
|
|
2397
|
+
UpdateAction,
|
|
2398
|
+
UpdatePermissionsCommand,
|
|
2399
|
+
UpdateWorkspaceAuthenticationCommand,
|
|
2400
|
+
UpdateWorkspaceAuthenticationRequestFilterSensitiveLog,
|
|
2401
|
+
UpdateWorkspaceAuthenticationResponseFilterSensitiveLog,
|
|
2402
|
+
UpdateWorkspaceCommand,
|
|
2403
|
+
UpdateWorkspaceConfigurationCommand,
|
|
2404
|
+
UpdateWorkspaceRequestFilterSensitiveLog,
|
|
2405
|
+
UpdateWorkspaceResponseFilterSensitiveLog,
|
|
2406
|
+
UserType,
|
|
2407
|
+
ValidationException,
|
|
2408
|
+
ValidationExceptionReason,
|
|
2409
|
+
WorkspaceDescriptionFilterSensitiveLog,
|
|
2410
|
+
WorkspaceStatus,
|
|
2411
|
+
WorkspaceSummaryFilterSensitiveLog,
|
|
2412
|
+
__Client,
|
|
2413
|
+
paginateListPermissions,
|
|
2414
|
+
paginateListVersions,
|
|
2415
|
+
paginateListWorkspaces
|
|
2416
|
+
});
|