@aws-sdk/client-grafana 3.1075.0 → 3.1077.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/index.js CHANGED
@@ -1,21 +1,58 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultGrafanaHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { AssociateLicense$, CreateWorkspaceApiKey$, CreateWorkspace$, CreateWorkspaceServiceAccount$, CreateWorkspaceServiceAccountToken$, DeleteWorkspaceApiKey$, DeleteWorkspace$, DeleteWorkspaceServiceAccount$, DeleteWorkspaceServiceAccountToken$, DescribeWorkspaceAuthentication$, DescribeWorkspace$, DescribeWorkspaceConfiguration$, DisassociateLicense$, ListPermissions$, ListTagsForResource$, ListVersions$, ListWorkspaces$, ListWorkspaceServiceAccounts$, ListWorkspaceServiceAccountTokens$, TagResource$, UntagResource$, UpdatePermissions$, UpdateWorkspaceAuthentication$, UpdateWorkspace$, UpdateWorkspaceConfiguration$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { GrafanaServiceException } = require("./models/GrafanaServiceException");
18
- exports.GrafanaServiceException = GrafanaServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultGrafanaHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "grafana",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultGrafanaHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -31,6 +68,1007 @@ const commonParams = {
31
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
69
  };
33
70
 
71
+ var version = "3.1076.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const k = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [g]],
80
+ [c, j],
81
+ ["aws.partition", j, d],
82
+ [e, [{ [k]: "UseFIPS" }, b]],
83
+ [e, [{ [k]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
86
+ ],
87
+ results: [
88
+ [a],
89
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
90
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
91
+ [g, i],
92
+ ["https://grafana-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
93
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
94
+ ["https://grafana-fips.{Region}.{PartitionResult#dnsSuffix}", i],
95
+ [a, "FIPS is enabled but this partition does not support FIPS"],
96
+ ["https://grafana.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
97
+ [a, "DualStack is enabled but this partition does not support DualStack"],
98
+ ["https://grafana.{Region}.{PartitionResult#dnsSuffix}", i],
99
+ [a, "Invalid Configuration: Missing Region"]
100
+ ]
101
+ };
102
+ const root = 2;
103
+ const r = 100_000_000;
104
+ const nodes = new Int32Array([
105
+ -1, 1, -1,
106
+ 0, 12, 3,
107
+ 1, 4, r + 11,
108
+ 2, 5, r + 11,
109
+ 3, 8, 6,
110
+ 4, 7, r + 10,
111
+ 5, r + 8, r + 9,
112
+ 4, 10, 9,
113
+ 6, r + 6, r + 7,
114
+ 5, 11, r + 5,
115
+ 6, r + 4, r + 5,
116
+ 3, r + 1, 13,
117
+ 4, r + 2, r + 3,
118
+ ]);
119
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
120
+
121
+ const cache = new EndpointCache({
122
+ size: 50,
123
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
124
+ });
125
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
126
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
127
+ endpointParams: endpointParams,
128
+ logger: context.logger,
129
+ }));
130
+ };
131
+ customEndpointFunctions.aws = awsEndpointFunctions;
132
+
133
+ class GrafanaServiceException extends ServiceException {
134
+ constructor(options) {
135
+ super(options);
136
+ Object.setPrototypeOf(this, GrafanaServiceException.prototype);
137
+ }
138
+ }
139
+
140
+ class AccessDeniedException extends GrafanaServiceException {
141
+ name = "AccessDeniedException";
142
+ $fault = "client";
143
+ constructor(opts) {
144
+ super({
145
+ name: "AccessDeniedException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
150
+ }
151
+ }
152
+ class ConflictException extends GrafanaServiceException {
153
+ name = "ConflictException";
154
+ $fault = "client";
155
+ resourceId;
156
+ resourceType;
157
+ constructor(opts) {
158
+ super({
159
+ name: "ConflictException",
160
+ $fault: "client",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, ConflictException.prototype);
164
+ this.resourceId = opts.resourceId;
165
+ this.resourceType = opts.resourceType;
166
+ }
167
+ }
168
+ class InternalServerException extends GrafanaServiceException {
169
+ name = "InternalServerException";
170
+ $fault = "server";
171
+ $retryable = {};
172
+ retryAfterSeconds;
173
+ constructor(opts) {
174
+ super({
175
+ name: "InternalServerException",
176
+ $fault: "server",
177
+ ...opts,
178
+ });
179
+ Object.setPrototypeOf(this, InternalServerException.prototype);
180
+ this.retryAfterSeconds = opts.retryAfterSeconds;
181
+ }
182
+ }
183
+ class ResourceNotFoundException extends GrafanaServiceException {
184
+ name = "ResourceNotFoundException";
185
+ $fault = "client";
186
+ resourceId;
187
+ resourceType;
188
+ constructor(opts) {
189
+ super({
190
+ name: "ResourceNotFoundException",
191
+ $fault: "client",
192
+ ...opts,
193
+ });
194
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
195
+ this.resourceId = opts.resourceId;
196
+ this.resourceType = opts.resourceType;
197
+ }
198
+ }
199
+ class ServiceQuotaExceededException extends GrafanaServiceException {
200
+ name = "ServiceQuotaExceededException";
201
+ $fault = "client";
202
+ resourceId;
203
+ resourceType;
204
+ serviceCode;
205
+ quotaCode;
206
+ constructor(opts) {
207
+ super({
208
+ name: "ServiceQuotaExceededException",
209
+ $fault: "client",
210
+ ...opts,
211
+ });
212
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
213
+ this.resourceId = opts.resourceId;
214
+ this.resourceType = opts.resourceType;
215
+ this.serviceCode = opts.serviceCode;
216
+ this.quotaCode = opts.quotaCode;
217
+ }
218
+ }
219
+ class ThrottlingException extends GrafanaServiceException {
220
+ name = "ThrottlingException";
221
+ $fault = "client";
222
+ $retryable = {};
223
+ serviceCode;
224
+ quotaCode;
225
+ retryAfterSeconds;
226
+ constructor(opts) {
227
+ super({
228
+ name: "ThrottlingException",
229
+ $fault: "client",
230
+ ...opts,
231
+ });
232
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
233
+ this.serviceCode = opts.serviceCode;
234
+ this.quotaCode = opts.quotaCode;
235
+ this.retryAfterSeconds = opts.retryAfterSeconds;
236
+ }
237
+ }
238
+ class ValidationException extends GrafanaServiceException {
239
+ name = "ValidationException";
240
+ $fault = "client";
241
+ reason;
242
+ fieldList;
243
+ constructor(opts) {
244
+ super({
245
+ name: "ValidationException",
246
+ $fault: "client",
247
+ ...opts,
248
+ });
249
+ Object.setPrototypeOf(this, ValidationException.prototype);
250
+ this.reason = opts.reason;
251
+ this.fieldList = opts.fieldList;
252
+ }
253
+ }
254
+
255
+ const _AA = "AssertionAttributes";
256
+ const _AD = "AuthenticationDescription";
257
+ const _ADE = "AccessDeniedException";
258
+ const _AKT = "ApiKeyToken";
259
+ const _AL = "AssociateLicense";
260
+ const _ALR = "AssociateLicenseRequest";
261
+ const _ALRs = "AssociateLicenseResponse";
262
+ const _AS = "AuthenticationSummary";
263
+ const _ASA = "AwsSsoAuthentication";
264
+ const _CE = "ConflictException";
265
+ const _CW = "CreateWorkspace";
266
+ const _CWAK = "CreateWorkspaceApiKey";
267
+ const _CWAKR = "CreateWorkspaceApiKeyRequest";
268
+ const _CWAKRr = "CreateWorkspaceApiKeyResponse";
269
+ const _CWR = "CreateWorkspaceRequest";
270
+ const _CWRr = "CreateWorkspaceResponse";
271
+ const _CWSA = "CreateWorkspaceServiceAccount";
272
+ const _CWSAR = "CreateWorkspaceServiceAccountRequest";
273
+ const _CWSARr = "CreateWorkspaceServiceAccountResponse";
274
+ const _CWSAT = "CreateWorkspaceServiceAccountToken";
275
+ const _CWSATR = "CreateWorkspaceServiceAccountTokenRequest";
276
+ const _CWSATRr = "CreateWorkspaceServiceAccountTokenResponse";
277
+ const _D = "Description";
278
+ const _DL = "DisassociateLicense";
279
+ const _DLR = "DisassociateLicenseRequest";
280
+ const _DLRi = "DisassociateLicenseResponse";
281
+ const _DW = "DeleteWorkspace";
282
+ const _DWA = "DescribeWorkspaceAuthentication";
283
+ const _DWAK = "DeleteWorkspaceApiKey";
284
+ const _DWAKR = "DeleteWorkspaceApiKeyRequest";
285
+ const _DWAKRe = "DeleteWorkspaceApiKeyResponse";
286
+ const _DWAR = "DescribeWorkspaceAuthenticationRequest";
287
+ const _DWARe = "DescribeWorkspaceAuthenticationResponse";
288
+ const _DWC = "DescribeWorkspaceConfiguration";
289
+ const _DWCR = "DescribeWorkspaceConfigurationRequest";
290
+ const _DWCRe = "DescribeWorkspaceConfigurationResponse";
291
+ const _DWR = "DeleteWorkspaceRequest";
292
+ const _DWRe = "DeleteWorkspaceResponse";
293
+ const _DWRes = "DescribeWorkspaceRequest";
294
+ const _DWResc = "DescribeWorkspaceResponse";
295
+ const _DWSA = "DeleteWorkspaceServiceAccount";
296
+ const _DWSAR = "DeleteWorkspaceServiceAccountRequest";
297
+ const _DWSARe = "DeleteWorkspaceServiceAccountResponse";
298
+ const _DWSAT = "DeleteWorkspaceServiceAccountToken";
299
+ const _DWSATR = "DeleteWorkspaceServiceAccountTokenRequest";
300
+ const _DWSATRe = "DeleteWorkspaceServiceAccountTokenResponse";
301
+ const _DWe = "DescribeWorkspace";
302
+ const _GT = "Grafana-Token";
303
+ const _IM = "IdpMetadata";
304
+ const _IRA = "IamRoleArn";
305
+ const _ISE = "InternalServerException";
306
+ const _LP = "ListPermissions";
307
+ const _LPR = "ListPermissionsRequest";
308
+ const _LPRi = "ListPermissionsResponse";
309
+ const _LTFR = "ListTagsForResource";
310
+ const _LTFRR = "ListTagsForResourceRequest";
311
+ const _LTFRRi = "ListTagsForResourceResponse";
312
+ const _LV = "ListVersions";
313
+ const _LVR = "ListVersionsRequest";
314
+ const _LVRi = "ListVersionsResponse";
315
+ const _LW = "ListWorkspaces";
316
+ const _LWR = "ListWorkspacesRequest";
317
+ const _LWRi = "ListWorkspacesResponse";
318
+ const _LWSA = "ListWorkspaceServiceAccounts";
319
+ const _LWSAR = "ListWorkspaceServiceAccountsRequest";
320
+ const _LWSARi = "ListWorkspaceServiceAccountsResponse";
321
+ const _LWSAT = "ListWorkspaceServiceAccountTokens";
322
+ const _LWSATR = "ListWorkspaceServiceAccountTokensRequest";
323
+ const _LWSATRi = "ListWorkspaceServiceAccountTokensResponse";
324
+ const _NAC = "NetworkAccessConfiguration";
325
+ const _OCJ = "OverridableConfigurationJson";
326
+ const _ORN = "OrganizationRoleName";
327
+ const _OUL = "OrganizationalUnitList";
328
+ const _PE = "PermissionEntry";
329
+ const _PEL = "PermissionEntryList";
330
+ const _RA = "Retry-After";
331
+ const _RNFE = "ResourceNotFoundException";
332
+ const _RV = "RoleValues";
333
+ const _RVL = "RoleValueList";
334
+ const _SA = "SamlAuthentication";
335
+ const _SAL = "ServiceAccountList";
336
+ const _SAS = "ServiceAccountSummary";
337
+ const _SATK = "ServiceAccountTokenKey";
338
+ const _SATL = "ServiceAccountTokenList";
339
+ const _SATS = "ServiceAccountTokenSummary";
340
+ const _SATSWK = "ServiceAccountTokenSummaryWithKey";
341
+ const _SC = "SamlConfiguration";
342
+ const _SQEE = "ServiceQuotaExceededException";
343
+ const _TE = "ThrottlingException";
344
+ const _TR = "TagResource";
345
+ const _TRR = "TagResourceRequest";
346
+ const _TRRa = "TagResourceResponse";
347
+ const _U = "User";
348
+ const _UE = "UpdateError";
349
+ const _UEL = "UpdateErrorList";
350
+ const _UI = "UpdateInstruction";
351
+ const _UIB = "UpdateInstructionBatch";
352
+ const _UL = "UserList";
353
+ const _UP = "UpdatePermissions";
354
+ const _UPR = "UpdatePermissionsRequest";
355
+ const _UPRp = "UpdatePermissionsResponse";
356
+ const _UR = "UntagResource";
357
+ const _URR = "UntagResourceRequest";
358
+ const _URRn = "UntagResourceResponse";
359
+ const _UW = "UpdateWorkspace";
360
+ const _UWA = "UpdateWorkspaceAuthentication";
361
+ const _UWAR = "UpdateWorkspaceAuthenticationRequest";
362
+ const _UWARp = "UpdateWorkspaceAuthenticationResponse";
363
+ const _UWC = "UpdateWorkspaceConfiguration";
364
+ const _UWCR = "UpdateWorkspaceConfigurationRequest";
365
+ const _UWCRp = "UpdateWorkspaceConfigurationResponse";
366
+ const _UWR = "UpdateWorkspaceRequest";
367
+ const _UWRp = "UpdateWorkspaceResponse";
368
+ const _VC = "VpcConfiguration";
369
+ const _VE = "ValidationException";
370
+ const _VEF = "ValidationExceptionField";
371
+ const _VEFL = "ValidationExceptionFieldList";
372
+ const _WD = "WorkspaceDescription";
373
+ const _WL = "WorkspaceList";
374
+ const _WN = "WorkspaceName";
375
+ const _WS = "WorkspaceSummary";
376
+ const _a = "application/json";
377
+ const _aA = "assertionAttributes";
378
+ const _aAT = "accountAccessType";
379
+ const _aO = "allowedOrganizations";
380
+ const _aP = "authenticationProviders";
381
+ const _aS = "awsSso";
382
+ const _ac = "action";
383
+ const _ad = "admin";
384
+ const _au = "authentication";
385
+ const _c = "client";
386
+ const _cA = "createdAt";
387
+ const _cB = "causedBy";
388
+ const _cT = "clientToken";
389
+ const _co = "configuration";
390
+ const _cod = "code";
391
+ const _cr = "created";
392
+ const _d = "description";
393
+ const _dS = "dataSources";
394
+ const _dWR = "degradedWorkspaceReason";
395
+ const _e = "error";
396
+ const _eA = "expiresAt";
397
+ const _ed = "editor";
398
+ const _em = "email";
399
+ const _en = "endpoint";
400
+ const _er = "errors";
401
+ const _fL = "fieldList";
402
+ const _fTC = "freeTrialConsumed";
403
+ const _fTE = "freeTrialExpiration";
404
+ const _g = "groups";
405
+ const _gI = "groupId";
406
+ const _gR = "grafanaRole";
407
+ const _gT = "grafanaToken";
408
+ const _gV = "grafanaVersion";
409
+ const _gVr = "grafanaVersions";
410
+ const _h = "http";
411
+ const _hE = "httpError";
412
+ const _hH = "httpHeader";
413
+ const _hQ = "httpQuery";
414
+ const _i = "id";
415
+ const _iAT = "ipAddressType";
416
+ const _iD = "isDisabled";
417
+ const _iM = "idpMetadata";
418
+ const _k = "key";
419
+ const _kKI = "kmsKeyId";
420
+ const _kN = "keyName";
421
+ const _kR = "keyRole";
422
+ const _l = "login";
423
+ const _lE = "licenseExpiration";
424
+ const _lT = "licenseType";
425
+ const _lUA = "lastUsedAt";
426
+ const _lVD = "loginValidityDuration";
427
+ const _m = "message";
428
+ const _mR = "maxResults";
429
+ const _mT = "mediaType";
430
+ const _mo = "modified";
431
+ const _n = "name";
432
+ const _nAC = "networkAccessControl";
433
+ const _nD = "notificationDestinations";
434
+ const _nT = "nextToken";
435
+ const _o = "org";
436
+ const _oRN = "organizationRoleName";
437
+ const _oU = "organizationalUnits";
438
+ const _p = "providers";
439
+ const _pLI = "prefixListIds";
440
+ const _pT = "permissionType";
441
+ const _pe = "permissions";
442
+ const _qC = "quotaCode";
443
+ const _r = "reason";
444
+ const _rA = "resourceArn";
445
+ const _rAS = "retryAfterSeconds";
446
+ const _rI = "resourceId";
447
+ const _rNAC = "removeNetworkAccessConfiguration";
448
+ const _rT = "resourceType";
449
+ const _rV = "roleValues";
450
+ const _rVC = "removeVpcConfiguration";
451
+ const _ro = "role";
452
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.grafana";
453
+ const _sA = "serviceAccounts";
454
+ const _sAI = "serviceAccountId";
455
+ const _sAT = "serviceAccountToken";
456
+ const _sATe = "serviceAccountTokens";
457
+ const _sC = "serviceCode";
458
+ const _sCI = "ssoClientId";
459
+ const _sCS = "samlConfigurationStatus";
460
+ const _sCa = "samlConfiguration";
461
+ const _sGI = "securityGroupIds";
462
+ const _sI = "subnetIds";
463
+ const _sSN = "stackSetName";
464
+ const _sTL = "secondsToLive";
465
+ const _sa = "saml";
466
+ const _se = "server";
467
+ const _st = "status";
468
+ const _t = "tags";
469
+ const _tI = "tokenId";
470
+ const _tK = "tagKeys";
471
+ const _ty = "type";
472
+ const _u = "user";
473
+ const _uI = "userId";
474
+ const _uIB = "updateInstructionBatch";
475
+ const _uT = "userType";
476
+ const _ur = "url";
477
+ const _us = "users";
478
+ const _vC = "vpcConfiguration";
479
+ const _vI = "vpceIds";
480
+ const _w = "workspace";
481
+ const _wD = "workspaceDescription";
482
+ const _wDS = "workspaceDataSources";
483
+ const _wI = "workspaceId";
484
+ const _wN = "workspaceName";
485
+ const _wND = "workspaceNotificationDestinations";
486
+ const _wOU = "workspaceOrganizationalUnits";
487
+ const _wRA = "workspaceRoleArn";
488
+ const _wi = "workspace-id";
489
+ const _wo = "workspaces";
490
+ const _x = "xml";
491
+ const n0 = "com.amazonaws.grafana";
492
+ const _s_registry = TypeRegistry.for(_s);
493
+ var GrafanaServiceException$ = [-3, _s, "GrafanaServiceException", 0, [], []];
494
+ _s_registry.registerError(GrafanaServiceException$, GrafanaServiceException);
495
+ const n0_registry = TypeRegistry.for(n0);
496
+ var AccessDeniedException$ = [-3, n0, _ADE,
497
+ { [_e]: _c, [_hE]: 403 },
498
+ [_m],
499
+ [0], 1
500
+ ];
501
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
502
+ var ConflictException$ = [-3, n0, _CE,
503
+ { [_e]: _c, [_hE]: 409 },
504
+ [_m, _rI, _rT],
505
+ [0, 0, 0], 3
506
+ ];
507
+ n0_registry.registerError(ConflictException$, ConflictException);
508
+ var InternalServerException$ = [-3, n0, _ISE,
509
+ { [_e]: _se, [_hE]: 500 },
510
+ [_m, _rAS],
511
+ [0, [1, { [_hH]: _RA }]], 1
512
+ ];
513
+ n0_registry.registerError(InternalServerException$, InternalServerException);
514
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
515
+ { [_e]: _c, [_hE]: 404 },
516
+ [_m, _rI, _rT],
517
+ [0, 0, 0], 3
518
+ ];
519
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
520
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
521
+ { [_e]: _c, [_hE]: 402 },
522
+ [_m, _rI, _rT, _sC, _qC],
523
+ [0, 0, 0, 0, 0], 5
524
+ ];
525
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
526
+ var ThrottlingException$ = [-3, n0, _TE,
527
+ { [_e]: _c, [_hE]: 429 },
528
+ [_m, _sC, _qC, _rAS],
529
+ [0, 0, 0, [1, { [_hH]: _RA }]], 1
530
+ ];
531
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
532
+ var ValidationException$ = [-3, n0, _VE,
533
+ { [_e]: _c, [_hE]: 400 },
534
+ [_m, _r, _fL],
535
+ [0, 0, () => ValidationExceptionFieldList], 2
536
+ ];
537
+ n0_registry.registerError(ValidationException$, ValidationException);
538
+ const errorTypeRegistries = [
539
+ _s_registry,
540
+ n0_registry,
541
+ ];
542
+ var ApiKeyToken = [0, n0, _AKT, 8, 0];
543
+ var Description = [0, n0, _D, 8, 0];
544
+ var IamRoleArn = [0, n0, _IRA, 8, 0];
545
+ var OrganizationRoleName = [0, n0, _ORN, 8, 0];
546
+ var OverridableConfigurationJson = [0, n0, _OCJ, { [_mT]: _a }, 0];
547
+ var ServiceAccountTokenKey = [0, n0, _SATK, 8, 0];
548
+ var WorkspaceName = [0, n0, _WN, 8, 0];
549
+ var AssertionAttributes$ = [3, n0, _AA,
550
+ 0,
551
+ [_n, _l, _em, _g, _ro, _o],
552
+ [0, 0, 0, 0, 0, 0]
553
+ ];
554
+ var AssociateLicenseRequest$ = [3, n0, _ALR,
555
+ 0,
556
+ [_wI, _lT, _gT],
557
+ [[0, 1], [0, 1], [0, { [_hH]: _GT }]], 2
558
+ ];
559
+ var AssociateLicenseResponse$ = [3, n0, _ALRs,
560
+ 0,
561
+ [_w],
562
+ [[() => WorkspaceDescription$, 0]], 1
563
+ ];
564
+ var AuthenticationDescription$ = [3, n0, _AD,
565
+ 0,
566
+ [_p, _sa, _aS],
567
+ [64 | 0, [() => SamlAuthentication$, 0], () => AwsSsoAuthentication$], 1
568
+ ];
569
+ var AuthenticationSummary$ = [3, n0, _AS,
570
+ 0,
571
+ [_p, _sCS],
572
+ [64 | 0, 0], 1
573
+ ];
574
+ var AwsSsoAuthentication$ = [3, n0, _ASA,
575
+ 0,
576
+ [_sCI],
577
+ [0]
578
+ ];
579
+ var CreateWorkspaceApiKeyRequest$ = [3, n0, _CWAKR,
580
+ 0,
581
+ [_kN, _kR, _sTL, _wI],
582
+ [0, 0, 1, [0, 1]], 4
583
+ ];
584
+ var CreateWorkspaceApiKeyResponse$ = [3, n0, _CWAKRr,
585
+ 0,
586
+ [_kN, _k, _wI],
587
+ [0, [() => ApiKeyToken, 0], 0], 3
588
+ ];
589
+ var CreateWorkspaceRequest$ = [3, n0, _CWR,
590
+ 0,
591
+ [_aAT, _pT, _aP, _cT, _oRN, _sSN, _wDS, _wD, _wN, _wND, _wOU, _wRA, _t, _vC, _co, _nAC, _gV, _iAT, _kKI],
592
+ [0, 0, 64 | 0, [0, 4], [() => OrganizationRoleName, 0], 0, 64 | 0, [() => Description, 0], [() => WorkspaceName, 0], 64 | 0, [() => OrganizationalUnitList, 0], [() => IamRoleArn, 0], 128 | 0, () => VpcConfiguration$, [() => OverridableConfigurationJson, 0], () => NetworkAccessConfiguration$, 0, 0, 0], 3
593
+ ];
594
+ var CreateWorkspaceResponse$ = [3, n0, _CWRr,
595
+ 0,
596
+ [_w],
597
+ [[() => WorkspaceDescription$, 0]], 1
598
+ ];
599
+ var CreateWorkspaceServiceAccountRequest$ = [3, n0, _CWSAR,
600
+ 0,
601
+ [_n, _gR, _wI],
602
+ [0, 0, [0, 1]], 3
603
+ ];
604
+ var CreateWorkspaceServiceAccountResponse$ = [3, n0, _CWSARr,
605
+ 0,
606
+ [_i, _n, _gR, _wI],
607
+ [0, 0, 0, 0], 4
608
+ ];
609
+ var CreateWorkspaceServiceAccountTokenRequest$ = [3, n0, _CWSATR,
610
+ 0,
611
+ [_n, _sTL, _sAI, _wI],
612
+ [0, 1, [0, 1], [0, 1]], 4
613
+ ];
614
+ var CreateWorkspaceServiceAccountTokenResponse$ = [3, n0, _CWSATRr,
615
+ 0,
616
+ [_sAT, _sAI, _wI],
617
+ [[() => ServiceAccountTokenSummaryWithKey$, 0], 0, 0], 3
618
+ ];
619
+ var DeleteWorkspaceApiKeyRequest$ = [3, n0, _DWAKR,
620
+ 0,
621
+ [_kN, _wI],
622
+ [[0, 1], [0, 1]], 2
623
+ ];
624
+ var DeleteWorkspaceApiKeyResponse$ = [3, n0, _DWAKRe,
625
+ 0,
626
+ [_kN, _wI],
627
+ [0, 0], 2
628
+ ];
629
+ var DeleteWorkspaceRequest$ = [3, n0, _DWR,
630
+ 0,
631
+ [_wI],
632
+ [[0, 1]], 1
633
+ ];
634
+ var DeleteWorkspaceResponse$ = [3, n0, _DWRe,
635
+ 0,
636
+ [_w],
637
+ [[() => WorkspaceDescription$, 0]], 1
638
+ ];
639
+ var DeleteWorkspaceServiceAccountRequest$ = [3, n0, _DWSAR,
640
+ 0,
641
+ [_sAI, _wI],
642
+ [[0, 1], [0, 1]], 2
643
+ ];
644
+ var DeleteWorkspaceServiceAccountResponse$ = [3, n0, _DWSARe,
645
+ 0,
646
+ [_sAI, _wI],
647
+ [0, 0], 2
648
+ ];
649
+ var DeleteWorkspaceServiceAccountTokenRequest$ = [3, n0, _DWSATR,
650
+ 0,
651
+ [_tI, _sAI, _wI],
652
+ [[0, 1], [0, 1], [0, 1]], 3
653
+ ];
654
+ var DeleteWorkspaceServiceAccountTokenResponse$ = [3, n0, _DWSATRe,
655
+ 0,
656
+ [_tI, _sAI, _wI],
657
+ [0, 0, 0], 3
658
+ ];
659
+ var DescribeWorkspaceAuthenticationRequest$ = [3, n0, _DWAR,
660
+ 0,
661
+ [_wI],
662
+ [[0, 1]], 1
663
+ ];
664
+ var DescribeWorkspaceAuthenticationResponse$ = [3, n0, _DWARe,
665
+ 0,
666
+ [_au],
667
+ [[() => AuthenticationDescription$, 0]], 1
668
+ ];
669
+ var DescribeWorkspaceConfigurationRequest$ = [3, n0, _DWCR,
670
+ 0,
671
+ [_wI],
672
+ [[0, 1]], 1
673
+ ];
674
+ var DescribeWorkspaceConfigurationResponse$ = [3, n0, _DWCRe,
675
+ 0,
676
+ [_co, _gV],
677
+ [[() => OverridableConfigurationJson, 0], 0], 1
678
+ ];
679
+ var DescribeWorkspaceRequest$ = [3, n0, _DWRes,
680
+ 0,
681
+ [_wI],
682
+ [[0, 1]], 1
683
+ ];
684
+ var DescribeWorkspaceResponse$ = [3, n0, _DWResc,
685
+ 0,
686
+ [_w],
687
+ [[() => WorkspaceDescription$, 0]], 1
688
+ ];
689
+ var DisassociateLicenseRequest$ = [3, n0, _DLR,
690
+ 0,
691
+ [_wI, _lT],
692
+ [[0, 1], [0, 1]], 2
693
+ ];
694
+ var DisassociateLicenseResponse$ = [3, n0, _DLRi,
695
+ 0,
696
+ [_w],
697
+ [[() => WorkspaceDescription$, 0]], 1
698
+ ];
699
+ var ListPermissionsRequest$ = [3, n0, _LPR,
700
+ 0,
701
+ [_wI, _mR, _nT, _uT, _uI, _gI],
702
+ [[0, 1], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }], [0, { [_hQ]: _uT }], [0, { [_hQ]: _uI }], [0, { [_hQ]: _gI }]], 1
703
+ ];
704
+ var ListPermissionsResponse$ = [3, n0, _LPRi,
705
+ 0,
706
+ [_pe, _nT],
707
+ [() => PermissionEntryList, 0], 1
708
+ ];
709
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
710
+ 0,
711
+ [_rA],
712
+ [[0, 1]], 1
713
+ ];
714
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
715
+ 0,
716
+ [_t],
717
+ [128 | 0]
718
+ ];
719
+ var ListVersionsRequest$ = [3, n0, _LVR,
720
+ 0,
721
+ [_mR, _nT, _wI],
722
+ [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }], [0, { [_hQ]: _wi }]]
723
+ ];
724
+ var ListVersionsResponse$ = [3, n0, _LVRi,
725
+ 0,
726
+ [_nT, _gVr],
727
+ [0, 64 | 0]
728
+ ];
729
+ var ListWorkspaceServiceAccountsRequest$ = [3, n0, _LWSAR,
730
+ 0,
731
+ [_wI, _mR, _nT],
732
+ [[0, 1], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]], 1
733
+ ];
734
+ var ListWorkspaceServiceAccountsResponse$ = [3, n0, _LWSARi,
735
+ 0,
736
+ [_sA, _wI, _nT],
737
+ [() => ServiceAccountList, 0, 0], 2
738
+ ];
739
+ var ListWorkspaceServiceAccountTokensRequest$ = [3, n0, _LWSATR,
740
+ 0,
741
+ [_sAI, _wI, _mR, _nT],
742
+ [[0, 1], [0, 1], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]], 2
743
+ ];
744
+ var ListWorkspaceServiceAccountTokensResponse$ = [3, n0, _LWSATRi,
745
+ 0,
746
+ [_sATe, _sAI, _wI, _nT],
747
+ [() => ServiceAccountTokenList, 0, 0, 0], 3
748
+ ];
749
+ var ListWorkspacesRequest$ = [3, n0, _LWR,
750
+ 0,
751
+ [_mR, _nT],
752
+ [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
753
+ ];
754
+ var ListWorkspacesResponse$ = [3, n0, _LWRi,
755
+ 0,
756
+ [_wo, _nT],
757
+ [[() => WorkspaceList, 0], 0], 1
758
+ ];
759
+ var NetworkAccessConfiguration$ = [3, n0, _NAC,
760
+ 0,
761
+ [_pLI, _vI],
762
+ [64 | 0, 64 | 0], 2
763
+ ];
764
+ var PermissionEntry$ = [3, n0, _PE,
765
+ 0,
766
+ [_u, _ro],
767
+ [() => User$, 0], 2
768
+ ];
769
+ var RoleValues$ = [3, n0, _RV,
770
+ 0,
771
+ [_ed, _ad],
772
+ [[() => RoleValueList, 0], [() => RoleValueList, 0]]
773
+ ];
774
+ var SamlAuthentication$ = [3, n0, _SA,
775
+ 0,
776
+ [_st, _co],
777
+ [0, [() => SamlConfiguration$, 0]], 1
778
+ ];
779
+ var SamlConfiguration$ = [3, n0, _SC,
780
+ 0,
781
+ [_iM, _aA, _rV, _aO, _lVD],
782
+ [() => IdpMetadata$, () => AssertionAttributes$, [() => RoleValues$, 0], 64 | 0, 1], 1
783
+ ];
784
+ var ServiceAccountSummary$ = [3, n0, _SAS,
785
+ 0,
786
+ [_i, _n, _iD, _gR],
787
+ [0, 0, 0, 0], 4
788
+ ];
789
+ var ServiceAccountTokenSummary$ = [3, n0, _SATS,
790
+ 0,
791
+ [_i, _n, _cA, _eA, _lUA],
792
+ [0, 0, 4, 4, 4], 4
793
+ ];
794
+ var ServiceAccountTokenSummaryWithKey$ = [3, n0, _SATSWK,
795
+ 0,
796
+ [_i, _n, _k],
797
+ [0, 0, [() => ServiceAccountTokenKey, 0]], 3
798
+ ];
799
+ var TagResourceRequest$ = [3, n0, _TRR,
800
+ 0,
801
+ [_rA, _t],
802
+ [[0, 1], 128 | 0], 2
803
+ ];
804
+ var TagResourceResponse$ = [3, n0, _TRRa,
805
+ 0,
806
+ [],
807
+ []
808
+ ];
809
+ var UntagResourceRequest$ = [3, n0, _URR,
810
+ 0,
811
+ [_rA, _tK],
812
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
813
+ ];
814
+ var UntagResourceResponse$ = [3, n0, _URRn,
815
+ 0,
816
+ [],
817
+ []
818
+ ];
819
+ var UpdateError$ = [3, n0, _UE,
820
+ 0,
821
+ [_cod, _m, _cB],
822
+ [1, 0, () => UpdateInstruction$], 3
823
+ ];
824
+ var UpdateInstruction$ = [3, n0, _UI,
825
+ 0,
826
+ [_ac, _ro, _us],
827
+ [0, 0, () => UserList], 3
828
+ ];
829
+ var UpdatePermissionsRequest$ = [3, n0, _UPR,
830
+ 0,
831
+ [_uIB, _wI],
832
+ [() => UpdateInstructionBatch, [0, 1]], 2
833
+ ];
834
+ var UpdatePermissionsResponse$ = [3, n0, _UPRp,
835
+ 0,
836
+ [_er],
837
+ [() => UpdateErrorList], 1
838
+ ];
839
+ var UpdateWorkspaceAuthenticationRequest$ = [3, n0, _UWAR,
840
+ 0,
841
+ [_wI, _aP, _sCa],
842
+ [[0, 1], 64 | 0, [() => SamlConfiguration$, 0]], 2
843
+ ];
844
+ var UpdateWorkspaceAuthenticationResponse$ = [3, n0, _UWARp,
845
+ 0,
846
+ [_au],
847
+ [[() => AuthenticationDescription$, 0]], 1
848
+ ];
849
+ var UpdateWorkspaceConfigurationRequest$ = [3, n0, _UWCR,
850
+ 0,
851
+ [_co, _wI, _gV],
852
+ [[() => OverridableConfigurationJson, 0], [0, 1], 0], 2
853
+ ];
854
+ var UpdateWorkspaceConfigurationResponse$ = [3, n0, _UWCRp,
855
+ 0,
856
+ [],
857
+ []
858
+ ];
859
+ var UpdateWorkspaceRequest$ = [3, n0, _UWR,
860
+ 0,
861
+ [_wI, _aAT, _oRN, _pT, _sSN, _wDS, _wD, _wN, _wND, _wOU, _wRA, _vC, _rVC, _nAC, _rNAC, _iAT],
862
+ [[0, 1], 0, [() => OrganizationRoleName, 0], 0, 0, 64 | 0, [() => Description, 0], [() => WorkspaceName, 0], 64 | 0, [() => OrganizationalUnitList, 0], [() => IamRoleArn, 0], () => VpcConfiguration$, 2, () => NetworkAccessConfiguration$, 2, 0], 1
863
+ ];
864
+ var UpdateWorkspaceResponse$ = [3, n0, _UWRp,
865
+ 0,
866
+ [_w],
867
+ [[() => WorkspaceDescription$, 0]], 1
868
+ ];
869
+ var User$ = [3, n0, _U,
870
+ 0,
871
+ [_i, _ty],
872
+ [0, 0], 2
873
+ ];
874
+ var ValidationExceptionField$ = [3, n0, _VEF,
875
+ 0,
876
+ [_n, _m],
877
+ [0, 0], 2
878
+ ];
879
+ var VpcConfiguration$ = [3, n0, _VC,
880
+ 0,
881
+ [_sGI, _sI],
882
+ [64 | 0, 64 | 0], 2
883
+ ];
884
+ var WorkspaceDescription$ = [3, n0, _WD,
885
+ 0,
886
+ [_cr, _dS, _en, _gV, _i, _mo, _st, _au, _aAT, _d, _n, _oRN, _nD, _oU, _pT, _sSN, _wRA, _lT, _fTC, _lE, _fTE, _t, _vC, _nAC, _gT, _iAT, _kKI, _dWR],
887
+ [4, 64 | 0, 0, 0, 0, 4, 0, () => AuthenticationSummary$, 0, [() => Description, 0], [() => WorkspaceName, 0], [() => OrganizationRoleName, 0], 64 | 0, [() => OrganizationalUnitList, 0], 0, 0, [() => IamRoleArn, 0], 0, 2, 4, 4, 128 | 0, () => VpcConfiguration$, () => NetworkAccessConfiguration$, 0, 0, 0, 0], 8
888
+ ];
889
+ var WorkspaceSummary$ = [3, n0, _WS,
890
+ 0,
891
+ [_cr, _en, _gV, _i, _mo, _st, _au, _d, _n, _nD, _t, _lT, _gT],
892
+ [4, 0, 0, 0, 4, 0, () => AuthenticationSummary$, [() => Description, 0], [() => WorkspaceName, 0], 64 | 0, 128 | 0, 0, 0], 7
893
+ ];
894
+ var OrganizationalUnitList = [1, n0, _OUL,
895
+ 8, 0
896
+ ];
897
+ var PermissionEntryList = [1, n0, _PEL,
898
+ 0, () => PermissionEntry$
899
+ ];
900
+ var RoleValueList = [1, n0, _RVL,
901
+ 8, 0
902
+ ];
903
+ var ServiceAccountList = [1, n0, _SAL,
904
+ 0, () => ServiceAccountSummary$
905
+ ];
906
+ var ServiceAccountTokenList = [1, n0, _SATL,
907
+ 0, () => ServiceAccountTokenSummary$
908
+ ];
909
+ var UpdateErrorList = [1, n0, _UEL,
910
+ 0, () => UpdateError$
911
+ ];
912
+ var UpdateInstructionBatch = [1, n0, _UIB,
913
+ 0, () => UpdateInstruction$
914
+ ];
915
+ var UserList = [1, n0, _UL,
916
+ 0, () => User$
917
+ ];
918
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
919
+ 0, () => ValidationExceptionField$
920
+ ];
921
+ var WorkspaceList = [1, n0, _WL,
922
+ 0, [() => WorkspaceSummary$,
923
+ 0]
924
+ ];
925
+ var IdpMetadata$ = [4, n0, _IM,
926
+ 0,
927
+ [_ur, _x],
928
+ [0, 0]
929
+ ];
930
+ var AssociateLicense$ = [9, n0, _AL,
931
+ { [_h]: ["POST", "/workspaces/{workspaceId}/licenses/{licenseType}", 202] }, () => AssociateLicenseRequest$, () => AssociateLicenseResponse$
932
+ ];
933
+ var CreateWorkspace$ = [9, n0, _CW,
934
+ { [_h]: ["POST", "/workspaces", 202] }, () => CreateWorkspaceRequest$, () => CreateWorkspaceResponse$
935
+ ];
936
+ var CreateWorkspaceApiKey$ = [9, n0, _CWAK,
937
+ { [_h]: ["POST", "/workspaces/{workspaceId}/apikeys", 200] }, () => CreateWorkspaceApiKeyRequest$, () => CreateWorkspaceApiKeyResponse$
938
+ ];
939
+ var CreateWorkspaceServiceAccount$ = [9, n0, _CWSA,
940
+ { [_h]: ["POST", "/workspaces/{workspaceId}/serviceaccounts", 200] }, () => CreateWorkspaceServiceAccountRequest$, () => CreateWorkspaceServiceAccountResponse$
941
+ ];
942
+ var CreateWorkspaceServiceAccountToken$ = [9, n0, _CWSAT,
943
+ { [_h]: ["POST", "/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}/tokens", 200] }, () => CreateWorkspaceServiceAccountTokenRequest$, () => CreateWorkspaceServiceAccountTokenResponse$
944
+ ];
945
+ var DeleteWorkspace$ = [9, n0, _DW,
946
+ { [_h]: ["DELETE", "/workspaces/{workspaceId}", 202] }, () => DeleteWorkspaceRequest$, () => DeleteWorkspaceResponse$
947
+ ];
948
+ var DeleteWorkspaceApiKey$ = [9, n0, _DWAK,
949
+ { [_h]: ["DELETE", "/workspaces/{workspaceId}/apikeys/{keyName}", 200] }, () => DeleteWorkspaceApiKeyRequest$, () => DeleteWorkspaceApiKeyResponse$
950
+ ];
951
+ var DeleteWorkspaceServiceAccount$ = [9, n0, _DWSA,
952
+ { [_h]: ["DELETE", "/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}", 200] }, () => DeleteWorkspaceServiceAccountRequest$, () => DeleteWorkspaceServiceAccountResponse$
953
+ ];
954
+ var DeleteWorkspaceServiceAccountToken$ = [9, n0, _DWSAT,
955
+ { [_h]: ["DELETE", "/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}/tokens/{tokenId}", 200] }, () => DeleteWorkspaceServiceAccountTokenRequest$, () => DeleteWorkspaceServiceAccountTokenResponse$
956
+ ];
957
+ var DescribeWorkspace$ = [9, n0, _DWe,
958
+ { [_h]: ["GET", "/workspaces/{workspaceId}", 200] }, () => DescribeWorkspaceRequest$, () => DescribeWorkspaceResponse$
959
+ ];
960
+ var DescribeWorkspaceAuthentication$ = [9, n0, _DWA,
961
+ { [_h]: ["GET", "/workspaces/{workspaceId}/authentication", 200] }, () => DescribeWorkspaceAuthenticationRequest$, () => DescribeWorkspaceAuthenticationResponse$
962
+ ];
963
+ var DescribeWorkspaceConfiguration$ = [9, n0, _DWC,
964
+ { [_h]: ["GET", "/workspaces/{workspaceId}/configuration", 200] }, () => DescribeWorkspaceConfigurationRequest$, () => DescribeWorkspaceConfigurationResponse$
965
+ ];
966
+ var DisassociateLicense$ = [9, n0, _DL,
967
+ { [_h]: ["DELETE", "/workspaces/{workspaceId}/licenses/{licenseType}", 202] }, () => DisassociateLicenseRequest$, () => DisassociateLicenseResponse$
968
+ ];
969
+ var ListPermissions$ = [9, n0, _LP,
970
+ { [_h]: ["GET", "/workspaces/{workspaceId}/permissions", 200] }, () => ListPermissionsRequest$, () => ListPermissionsResponse$
971
+ ];
972
+ var ListTagsForResource$ = [9, n0, _LTFR,
973
+ { [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
974
+ ];
975
+ var ListVersions$ = [9, n0, _LV,
976
+ { [_h]: ["GET", "/versions", 200] }, () => ListVersionsRequest$, () => ListVersionsResponse$
977
+ ];
978
+ var ListWorkspaces$ = [9, n0, _LW,
979
+ { [_h]: ["GET", "/workspaces", 200] }, () => ListWorkspacesRequest$, () => ListWorkspacesResponse$
980
+ ];
981
+ var ListWorkspaceServiceAccounts$ = [9, n0, _LWSA,
982
+ { [_h]: ["GET", "/workspaces/{workspaceId}/serviceaccounts", 200] }, () => ListWorkspaceServiceAccountsRequest$, () => ListWorkspaceServiceAccountsResponse$
983
+ ];
984
+ var ListWorkspaceServiceAccountTokens$ = [9, n0, _LWSAT,
985
+ { [_h]: ["GET", "/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}/tokens", 200] }, () => ListWorkspaceServiceAccountTokensRequest$, () => ListWorkspaceServiceAccountTokensResponse$
986
+ ];
987
+ var TagResource$ = [9, n0, _TR,
988
+ { [_h]: ["POST", "/tags/{resourceArn}", 200] }, () => TagResourceRequest$, () => TagResourceResponse$
989
+ ];
990
+ var UntagResource$ = [9, n0, _UR,
991
+ { [_h]: ["DELETE", "/tags/{resourceArn}", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$
992
+ ];
993
+ var UpdatePermissions$ = [9, n0, _UP,
994
+ { [_h]: ["PATCH", "/workspaces/{workspaceId}/permissions", 200] }, () => UpdatePermissionsRequest$, () => UpdatePermissionsResponse$
995
+ ];
996
+ var UpdateWorkspace$ = [9, n0, _UW,
997
+ { [_h]: ["PUT", "/workspaces/{workspaceId}", 202] }, () => UpdateWorkspaceRequest$, () => UpdateWorkspaceResponse$
998
+ ];
999
+ var UpdateWorkspaceAuthentication$ = [9, n0, _UWA,
1000
+ { [_h]: ["POST", "/workspaces/{workspaceId}/authentication", 200] }, () => UpdateWorkspaceAuthenticationRequest$, () => UpdateWorkspaceAuthenticationResponse$
1001
+ ];
1002
+ var UpdateWorkspaceConfiguration$ = [9, n0, _UWC,
1003
+ { [_h]: ["PUT", "/workspaces/{workspaceId}/configuration", 202] }, () => UpdateWorkspaceConfigurationRequest$, () => UpdateWorkspaceConfigurationResponse$
1004
+ ];
1005
+
1006
+ const getRuntimeConfig$1 = (config) => {
1007
+ return {
1008
+ apiVersion: "2020-08-18",
1009
+ base64Decoder: config?.base64Decoder ?? fromBase64,
1010
+ base64Encoder: config?.base64Encoder ?? toBase64,
1011
+ disableHostPrefix: config?.disableHostPrefix ?? false,
1012
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
1013
+ extensions: config?.extensions ?? [],
1014
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultGrafanaHttpAuthSchemeProvider,
1015
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
1016
+ {
1017
+ schemeId: "aws.auth#sigv4",
1018
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
1019
+ signer: new AwsSdkSigV4Signer(),
1020
+ },
1021
+ ],
1022
+ logger: config?.logger ?? new NoOpLogger(),
1023
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
1024
+ protocolSettings: config?.protocolSettings ?? {
1025
+ defaultNamespace: "com.amazonaws.grafana",
1026
+ errorTypeRegistries,
1027
+ version: "2020-08-18",
1028
+ serviceTarget: "AWSGrafanaControlPlane",
1029
+ },
1030
+ serviceId: config?.serviceId ?? "grafana",
1031
+ sha256: config?.sha256 ?? Sha256,
1032
+ urlParser: config?.urlParser ?? parseUrl,
1033
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1034
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
1035
+ };
1036
+ };
1037
+
1038
+ const getRuntimeConfig = (config) => {
1039
+ emitWarningIfUnsupportedVersion(process.version);
1040
+ const defaultsMode = resolveDefaultsModeConfig(config);
1041
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
1042
+ const clientSharedValues = getRuntimeConfig$1(config);
1043
+ emitWarningIfUnsupportedVersion$1(process.version);
1044
+ const loaderConfig = {
1045
+ profile: config?.profile,
1046
+ logger: clientSharedValues.logger,
1047
+ };
1048
+ return {
1049
+ ...clientSharedValues,
1050
+ ...config,
1051
+ runtime: "node",
1052
+ defaultsMode,
1053
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
1054
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
1055
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
1056
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
1057
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
1058
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
1059
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
1060
+ retryMode: config?.retryMode ??
1061
+ loadConfig({
1062
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1063
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1064
+ }, config),
1065
+ streamCollector: config?.streamCollector ?? streamCollector,
1066
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1067
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1068
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
1069
+ };
1070
+ };
1071
+
34
1072
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
1073
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
1074
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -533,46 +1571,158 @@ const UpdateAction = {
533
1571
  REVOKE: "REVOKE",
534
1572
  };
535
1573
 
1574
+ exports.AccessDeniedException = AccessDeniedException;
1575
+ exports.AccessDeniedException$ = AccessDeniedException$;
536
1576
  exports.AccountAccessType = AccountAccessType;
1577
+ exports.AssertionAttributes$ = AssertionAttributes$;
1578
+ exports.AssociateLicense$ = AssociateLicense$;
537
1579
  exports.AssociateLicenseCommand = AssociateLicenseCommand;
1580
+ exports.AssociateLicenseRequest$ = AssociateLicenseRequest$;
1581
+ exports.AssociateLicenseResponse$ = AssociateLicenseResponse$;
1582
+ exports.AuthenticationDescription$ = AuthenticationDescription$;
538
1583
  exports.AuthenticationProviderTypes = AuthenticationProviderTypes;
1584
+ exports.AuthenticationSummary$ = AuthenticationSummary$;
1585
+ exports.AwsSsoAuthentication$ = AwsSsoAuthentication$;
1586
+ exports.ConflictException = ConflictException;
1587
+ exports.ConflictException$ = ConflictException$;
1588
+ exports.CreateWorkspace$ = CreateWorkspace$;
1589
+ exports.CreateWorkspaceApiKey$ = CreateWorkspaceApiKey$;
539
1590
  exports.CreateWorkspaceApiKeyCommand = CreateWorkspaceApiKeyCommand;
1591
+ exports.CreateWorkspaceApiKeyRequest$ = CreateWorkspaceApiKeyRequest$;
1592
+ exports.CreateWorkspaceApiKeyResponse$ = CreateWorkspaceApiKeyResponse$;
540
1593
  exports.CreateWorkspaceCommand = CreateWorkspaceCommand;
1594
+ exports.CreateWorkspaceRequest$ = CreateWorkspaceRequest$;
1595
+ exports.CreateWorkspaceResponse$ = CreateWorkspaceResponse$;
1596
+ exports.CreateWorkspaceServiceAccount$ = CreateWorkspaceServiceAccount$;
541
1597
  exports.CreateWorkspaceServiceAccountCommand = CreateWorkspaceServiceAccountCommand;
1598
+ exports.CreateWorkspaceServiceAccountRequest$ = CreateWorkspaceServiceAccountRequest$;
1599
+ exports.CreateWorkspaceServiceAccountResponse$ = CreateWorkspaceServiceAccountResponse$;
1600
+ exports.CreateWorkspaceServiceAccountToken$ = CreateWorkspaceServiceAccountToken$;
542
1601
  exports.CreateWorkspaceServiceAccountTokenCommand = CreateWorkspaceServiceAccountTokenCommand;
1602
+ exports.CreateWorkspaceServiceAccountTokenRequest$ = CreateWorkspaceServiceAccountTokenRequest$;
1603
+ exports.CreateWorkspaceServiceAccountTokenResponse$ = CreateWorkspaceServiceAccountTokenResponse$;
543
1604
  exports.DataSourceType = DataSourceType;
1605
+ exports.DeleteWorkspace$ = DeleteWorkspace$;
1606
+ exports.DeleteWorkspaceApiKey$ = DeleteWorkspaceApiKey$;
544
1607
  exports.DeleteWorkspaceApiKeyCommand = DeleteWorkspaceApiKeyCommand;
1608
+ exports.DeleteWorkspaceApiKeyRequest$ = DeleteWorkspaceApiKeyRequest$;
1609
+ exports.DeleteWorkspaceApiKeyResponse$ = DeleteWorkspaceApiKeyResponse$;
545
1610
  exports.DeleteWorkspaceCommand = DeleteWorkspaceCommand;
1611
+ exports.DeleteWorkspaceRequest$ = DeleteWorkspaceRequest$;
1612
+ exports.DeleteWorkspaceResponse$ = DeleteWorkspaceResponse$;
1613
+ exports.DeleteWorkspaceServiceAccount$ = DeleteWorkspaceServiceAccount$;
546
1614
  exports.DeleteWorkspaceServiceAccountCommand = DeleteWorkspaceServiceAccountCommand;
1615
+ exports.DeleteWorkspaceServiceAccountRequest$ = DeleteWorkspaceServiceAccountRequest$;
1616
+ exports.DeleteWorkspaceServiceAccountResponse$ = DeleteWorkspaceServiceAccountResponse$;
1617
+ exports.DeleteWorkspaceServiceAccountToken$ = DeleteWorkspaceServiceAccountToken$;
547
1618
  exports.DeleteWorkspaceServiceAccountTokenCommand = DeleteWorkspaceServiceAccountTokenCommand;
1619
+ exports.DeleteWorkspaceServiceAccountTokenRequest$ = DeleteWorkspaceServiceAccountTokenRequest$;
1620
+ exports.DeleteWorkspaceServiceAccountTokenResponse$ = DeleteWorkspaceServiceAccountTokenResponse$;
1621
+ exports.DescribeWorkspace$ = DescribeWorkspace$;
1622
+ exports.DescribeWorkspaceAuthentication$ = DescribeWorkspaceAuthentication$;
548
1623
  exports.DescribeWorkspaceAuthenticationCommand = DescribeWorkspaceAuthenticationCommand;
1624
+ exports.DescribeWorkspaceAuthenticationRequest$ = DescribeWorkspaceAuthenticationRequest$;
1625
+ exports.DescribeWorkspaceAuthenticationResponse$ = DescribeWorkspaceAuthenticationResponse$;
549
1626
  exports.DescribeWorkspaceCommand = DescribeWorkspaceCommand;
1627
+ exports.DescribeWorkspaceConfiguration$ = DescribeWorkspaceConfiguration$;
550
1628
  exports.DescribeWorkspaceConfigurationCommand = DescribeWorkspaceConfigurationCommand;
1629
+ exports.DescribeWorkspaceConfigurationRequest$ = DescribeWorkspaceConfigurationRequest$;
1630
+ exports.DescribeWorkspaceConfigurationResponse$ = DescribeWorkspaceConfigurationResponse$;
1631
+ exports.DescribeWorkspaceRequest$ = DescribeWorkspaceRequest$;
1632
+ exports.DescribeWorkspaceResponse$ = DescribeWorkspaceResponse$;
1633
+ exports.DisassociateLicense$ = DisassociateLicense$;
551
1634
  exports.DisassociateLicenseCommand = DisassociateLicenseCommand;
1635
+ exports.DisassociateLicenseRequest$ = DisassociateLicenseRequest$;
1636
+ exports.DisassociateLicenseResponse$ = DisassociateLicenseResponse$;
552
1637
  exports.Grafana = Grafana;
553
1638
  exports.GrafanaClient = GrafanaClient;
1639
+ exports.GrafanaServiceException = GrafanaServiceException;
1640
+ exports.GrafanaServiceException$ = GrafanaServiceException$;
554
1641
  exports.IPAddressType = IPAddressType;
1642
+ exports.IdpMetadata$ = IdpMetadata$;
1643
+ exports.InternalServerException = InternalServerException;
1644
+ exports.InternalServerException$ = InternalServerException$;
555
1645
  exports.LicenseType = LicenseType;
1646
+ exports.ListPermissions$ = ListPermissions$;
556
1647
  exports.ListPermissionsCommand = ListPermissionsCommand;
1648
+ exports.ListPermissionsRequest$ = ListPermissionsRequest$;
1649
+ exports.ListPermissionsResponse$ = ListPermissionsResponse$;
1650
+ exports.ListTagsForResource$ = ListTagsForResource$;
557
1651
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1652
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1653
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1654
+ exports.ListVersions$ = ListVersions$;
558
1655
  exports.ListVersionsCommand = ListVersionsCommand;
1656
+ exports.ListVersionsRequest$ = ListVersionsRequest$;
1657
+ exports.ListVersionsResponse$ = ListVersionsResponse$;
1658
+ exports.ListWorkspaceServiceAccountTokens$ = ListWorkspaceServiceAccountTokens$;
559
1659
  exports.ListWorkspaceServiceAccountTokensCommand = ListWorkspaceServiceAccountTokensCommand;
1660
+ exports.ListWorkspaceServiceAccountTokensRequest$ = ListWorkspaceServiceAccountTokensRequest$;
1661
+ exports.ListWorkspaceServiceAccountTokensResponse$ = ListWorkspaceServiceAccountTokensResponse$;
1662
+ exports.ListWorkspaceServiceAccounts$ = ListWorkspaceServiceAccounts$;
560
1663
  exports.ListWorkspaceServiceAccountsCommand = ListWorkspaceServiceAccountsCommand;
1664
+ exports.ListWorkspaceServiceAccountsRequest$ = ListWorkspaceServiceAccountsRequest$;
1665
+ exports.ListWorkspaceServiceAccountsResponse$ = ListWorkspaceServiceAccountsResponse$;
1666
+ exports.ListWorkspaces$ = ListWorkspaces$;
561
1667
  exports.ListWorkspacesCommand = ListWorkspacesCommand;
1668
+ exports.ListWorkspacesRequest$ = ListWorkspacesRequest$;
1669
+ exports.ListWorkspacesResponse$ = ListWorkspacesResponse$;
1670
+ exports.NetworkAccessConfiguration$ = NetworkAccessConfiguration$;
562
1671
  exports.NotificationDestinationType = NotificationDestinationType;
1672
+ exports.PermissionEntry$ = PermissionEntry$;
563
1673
  exports.PermissionType = PermissionType;
1674
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1675
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
564
1676
  exports.Role = Role;
1677
+ exports.RoleValues$ = RoleValues$;
1678
+ exports.SamlAuthentication$ = SamlAuthentication$;
1679
+ exports.SamlConfiguration$ = SamlConfiguration$;
565
1680
  exports.SamlConfigurationStatus = SamlConfigurationStatus;
1681
+ exports.ServiceAccountSummary$ = ServiceAccountSummary$;
1682
+ exports.ServiceAccountTokenSummary$ = ServiceAccountTokenSummary$;
1683
+ exports.ServiceAccountTokenSummaryWithKey$ = ServiceAccountTokenSummaryWithKey$;
1684
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1685
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
1686
+ exports.TagResource$ = TagResource$;
566
1687
  exports.TagResourceCommand = TagResourceCommand;
1688
+ exports.TagResourceRequest$ = TagResourceRequest$;
1689
+ exports.TagResourceResponse$ = TagResourceResponse$;
1690
+ exports.ThrottlingException = ThrottlingException;
1691
+ exports.ThrottlingException$ = ThrottlingException$;
1692
+ exports.UntagResource$ = UntagResource$;
567
1693
  exports.UntagResourceCommand = UntagResourceCommand;
1694
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1695
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
568
1696
  exports.UpdateAction = UpdateAction;
1697
+ exports.UpdateError$ = UpdateError$;
1698
+ exports.UpdateInstruction$ = UpdateInstruction$;
1699
+ exports.UpdatePermissions$ = UpdatePermissions$;
569
1700
  exports.UpdatePermissionsCommand = UpdatePermissionsCommand;
1701
+ exports.UpdatePermissionsRequest$ = UpdatePermissionsRequest$;
1702
+ exports.UpdatePermissionsResponse$ = UpdatePermissionsResponse$;
1703
+ exports.UpdateWorkspace$ = UpdateWorkspace$;
1704
+ exports.UpdateWorkspaceAuthentication$ = UpdateWorkspaceAuthentication$;
570
1705
  exports.UpdateWorkspaceAuthenticationCommand = UpdateWorkspaceAuthenticationCommand;
1706
+ exports.UpdateWorkspaceAuthenticationRequest$ = UpdateWorkspaceAuthenticationRequest$;
1707
+ exports.UpdateWorkspaceAuthenticationResponse$ = UpdateWorkspaceAuthenticationResponse$;
571
1708
  exports.UpdateWorkspaceCommand = UpdateWorkspaceCommand;
1709
+ exports.UpdateWorkspaceConfiguration$ = UpdateWorkspaceConfiguration$;
572
1710
  exports.UpdateWorkspaceConfigurationCommand = UpdateWorkspaceConfigurationCommand;
1711
+ exports.UpdateWorkspaceConfigurationRequest$ = UpdateWorkspaceConfigurationRequest$;
1712
+ exports.UpdateWorkspaceConfigurationResponse$ = UpdateWorkspaceConfigurationResponse$;
1713
+ exports.UpdateWorkspaceRequest$ = UpdateWorkspaceRequest$;
1714
+ exports.UpdateWorkspaceResponse$ = UpdateWorkspaceResponse$;
1715
+ exports.User$ = User$;
573
1716
  exports.UserType = UserType;
1717
+ exports.ValidationException = ValidationException;
1718
+ exports.ValidationException$ = ValidationException$;
1719
+ exports.ValidationExceptionField$ = ValidationExceptionField$;
574
1720
  exports.ValidationExceptionReason = ValidationExceptionReason;
1721
+ exports.VpcConfiguration$ = VpcConfiguration$;
1722
+ exports.WorkspaceDescription$ = WorkspaceDescription$;
575
1723
  exports.WorkspaceStatus = WorkspaceStatus;
1724
+ exports.WorkspaceSummary$ = WorkspaceSummary$;
1725
+ exports.errorTypeRegistries = errorTypeRegistries;
576
1726
  exports.paginateListPermissions = paginateListPermissions;
577
1727
  exports.paginateListVersions = paginateListVersions;
578
1728
  exports.paginateListWorkspaceServiceAccountTokens = paginateListWorkspaceServiceAccountTokens;