@aws-sdk/client-grafana 3.934.0 → 3.936.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
@@ -129,10 +129,6 @@ let AccessDeniedException$1 = class AccessDeniedException extends GrafanaService
129
129
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
130
  }
131
131
  };
132
- const AccountAccessType = {
133
- CURRENT_ACCOUNT: "CURRENT_ACCOUNT",
134
- ORGANIZATION: "ORGANIZATION",
135
- };
136
132
  let ConflictException$1 = class ConflictException extends GrafanaServiceException$1 {
137
133
  name = "ConflictException";
138
134
  $fault = "client";
@@ -219,12 +215,6 @@ let ThrottlingException$1 = class ThrottlingException extends GrafanaServiceExce
219
215
  this.retryAfterSeconds = opts.retryAfterSeconds;
220
216
  }
221
217
  };
222
- const ValidationExceptionReason = {
223
- CANNOT_PARSE: "CANNOT_PARSE",
224
- FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
225
- OTHER: "OTHER",
226
- UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
227
- };
228
218
  let ValidationException$1 = class ValidationException extends GrafanaServiceException$1 {
229
219
  name = "ValidationException";
230
220
  $fault = "client";
@@ -241,64 +231,6 @@ let ValidationException$1 = class ValidationException extends GrafanaServiceExce
241
231
  this.fieldList = opts.fieldList;
242
232
  }
243
233
  };
244
- const LicenseType = {
245
- ENTERPRISE: "ENTERPRISE",
246
- ENTERPRISE_FREE_TRIAL: "ENTERPRISE_FREE_TRIAL",
247
- };
248
- const AuthenticationProviderTypes = {
249
- AWS_SSO: "AWS_SSO",
250
- SAML: "SAML",
251
- };
252
- const SamlConfigurationStatus = {
253
- CONFIGURED: "CONFIGURED",
254
- NOT_CONFIGURED: "NOT_CONFIGURED",
255
- };
256
- const DataSourceType = {
257
- AMAZON_OPENSEARCH_SERVICE: "AMAZON_OPENSEARCH_SERVICE",
258
- ATHENA: "ATHENA",
259
- CLOUDWATCH: "CLOUDWATCH",
260
- PROMETHEUS: "PROMETHEUS",
261
- REDSHIFT: "REDSHIFT",
262
- SITEWISE: "SITEWISE",
263
- TIMESTREAM: "TIMESTREAM",
264
- TWINMAKER: "TWINMAKER",
265
- XRAY: "XRAY",
266
- };
267
- const NotificationDestinationType = {
268
- SNS: "SNS",
269
- };
270
- const PermissionType = {
271
- CUSTOMER_MANAGED: "CUSTOMER_MANAGED",
272
- SERVICE_MANAGED: "SERVICE_MANAGED",
273
- };
274
- const WorkspaceStatus = {
275
- ACTIVE: "ACTIVE",
276
- CREATING: "CREATING",
277
- CREATION_FAILED: "CREATION_FAILED",
278
- DELETING: "DELETING",
279
- DELETION_FAILED: "DELETION_FAILED",
280
- FAILED: "FAILED",
281
- LICENSE_REMOVAL_FAILED: "LICENSE_REMOVAL_FAILED",
282
- UPDATE_FAILED: "UPDATE_FAILED",
283
- UPDATING: "UPDATING",
284
- UPGRADE_FAILED: "UPGRADE_FAILED",
285
- UPGRADING: "UPGRADING",
286
- VERSION_UPDATE_FAILED: "VERSION_UPDATE_FAILED",
287
- VERSION_UPDATING: "VERSION_UPDATING",
288
- };
289
- const UserType = {
290
- SSO_GROUP: "SSO_GROUP",
291
- SSO_USER: "SSO_USER",
292
- };
293
- const Role = {
294
- ADMIN: "ADMIN",
295
- EDITOR: "EDITOR",
296
- VIEWER: "VIEWER",
297
- };
298
- const UpdateAction = {
299
- ADD: "ADD",
300
- REVOKE: "REVOKE",
301
- };
302
234
 
303
235
  const _AA = "AssertionAttributes";
304
236
  const _AD = "AuthenticationDescription";
@@ -1826,15 +1758,12 @@ Object.defineProperty(exports, "__Client", {
1826
1758
  get: function () { return smithyClient.Client; }
1827
1759
  });
1828
1760
  exports.AccessDeniedException = AccessDeniedException$1;
1829
- exports.AccountAccessType = AccountAccessType;
1830
1761
  exports.AssociateLicenseCommand = AssociateLicenseCommand;
1831
- exports.AuthenticationProviderTypes = AuthenticationProviderTypes;
1832
1762
  exports.ConflictException = ConflictException$1;
1833
1763
  exports.CreateWorkspaceApiKeyCommand = CreateWorkspaceApiKeyCommand;
1834
1764
  exports.CreateWorkspaceCommand = CreateWorkspaceCommand;
1835
1765
  exports.CreateWorkspaceServiceAccountCommand = CreateWorkspaceServiceAccountCommand;
1836
1766
  exports.CreateWorkspaceServiceAccountTokenCommand = CreateWorkspaceServiceAccountTokenCommand;
1837
- exports.DataSourceType = DataSourceType;
1838
1767
  exports.DeleteWorkspaceApiKeyCommand = DeleteWorkspaceApiKeyCommand;
1839
1768
  exports.DeleteWorkspaceCommand = DeleteWorkspaceCommand;
1840
1769
  exports.DeleteWorkspaceServiceAccountCommand = DeleteWorkspaceServiceAccountCommand;
@@ -1847,31 +1776,22 @@ exports.Grafana = Grafana;
1847
1776
  exports.GrafanaClient = GrafanaClient;
1848
1777
  exports.GrafanaServiceException = GrafanaServiceException$1;
1849
1778
  exports.InternalServerException = InternalServerException$1;
1850
- exports.LicenseType = LicenseType;
1851
1779
  exports.ListPermissionsCommand = ListPermissionsCommand;
1852
1780
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1853
1781
  exports.ListVersionsCommand = ListVersionsCommand;
1854
1782
  exports.ListWorkspaceServiceAccountTokensCommand = ListWorkspaceServiceAccountTokensCommand;
1855
1783
  exports.ListWorkspaceServiceAccountsCommand = ListWorkspaceServiceAccountsCommand;
1856
1784
  exports.ListWorkspacesCommand = ListWorkspacesCommand;
1857
- exports.NotificationDestinationType = NotificationDestinationType;
1858
- exports.PermissionType = PermissionType;
1859
1785
  exports.ResourceNotFoundException = ResourceNotFoundException$1;
1860
- exports.Role = Role;
1861
- exports.SamlConfigurationStatus = SamlConfigurationStatus;
1862
1786
  exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
1863
1787
  exports.TagResourceCommand = TagResourceCommand;
1864
1788
  exports.ThrottlingException = ThrottlingException$1;
1865
1789
  exports.UntagResourceCommand = UntagResourceCommand;
1866
- exports.UpdateAction = UpdateAction;
1867
1790
  exports.UpdatePermissionsCommand = UpdatePermissionsCommand;
1868
1791
  exports.UpdateWorkspaceAuthenticationCommand = UpdateWorkspaceAuthenticationCommand;
1869
1792
  exports.UpdateWorkspaceCommand = UpdateWorkspaceCommand;
1870
1793
  exports.UpdateWorkspaceConfigurationCommand = UpdateWorkspaceConfigurationCommand;
1871
- exports.UserType = UserType;
1872
1794
  exports.ValidationException = ValidationException$1;
1873
- exports.ValidationExceptionReason = ValidationExceptionReason;
1874
- exports.WorkspaceStatus = WorkspaceStatus;
1875
1795
  exports.paginateListPermissions = paginateListPermissions;
1876
1796
  exports.paginateListVersions = paginateListVersions;
1877
1797
  exports.paginateListWorkspaceServiceAccountTokens = paginateListWorkspaceServiceAccountTokens;
package/dist-es/index.js CHANGED
@@ -2,5 +2,5 @@ export * from "./GrafanaClient";
2
2
  export * from "./Grafana";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/errors";
6
6
  export { GrafanaServiceException } from "./models/GrafanaServiceException";
@@ -0,0 +1,115 @@
1
+ import { GrafanaServiceException as __BaseException } from "./GrafanaServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "AccessDeniedException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ }
13
+ }
14
+ export class ConflictException extends __BaseException {
15
+ name = "ConflictException";
16
+ $fault = "client";
17
+ resourceId;
18
+ resourceType;
19
+ constructor(opts) {
20
+ super({
21
+ name: "ConflictException",
22
+ $fault: "client",
23
+ ...opts,
24
+ });
25
+ Object.setPrototypeOf(this, ConflictException.prototype);
26
+ this.resourceId = opts.resourceId;
27
+ this.resourceType = opts.resourceType;
28
+ }
29
+ }
30
+ export class InternalServerException extends __BaseException {
31
+ name = "InternalServerException";
32
+ $fault = "server";
33
+ $retryable = {};
34
+ retryAfterSeconds;
35
+ constructor(opts) {
36
+ super({
37
+ name: "InternalServerException",
38
+ $fault: "server",
39
+ ...opts,
40
+ });
41
+ Object.setPrototypeOf(this, InternalServerException.prototype);
42
+ this.retryAfterSeconds = opts.retryAfterSeconds;
43
+ }
44
+ }
45
+ export class ResourceNotFoundException extends __BaseException {
46
+ name = "ResourceNotFoundException";
47
+ $fault = "client";
48
+ resourceId;
49
+ resourceType;
50
+ constructor(opts) {
51
+ super({
52
+ name: "ResourceNotFoundException",
53
+ $fault: "client",
54
+ ...opts,
55
+ });
56
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
57
+ this.resourceId = opts.resourceId;
58
+ this.resourceType = opts.resourceType;
59
+ }
60
+ }
61
+ export class ServiceQuotaExceededException extends __BaseException {
62
+ name = "ServiceQuotaExceededException";
63
+ $fault = "client";
64
+ resourceId;
65
+ resourceType;
66
+ serviceCode;
67
+ quotaCode;
68
+ constructor(opts) {
69
+ super({
70
+ name: "ServiceQuotaExceededException",
71
+ $fault: "client",
72
+ ...opts,
73
+ });
74
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
75
+ this.resourceId = opts.resourceId;
76
+ this.resourceType = opts.resourceType;
77
+ this.serviceCode = opts.serviceCode;
78
+ this.quotaCode = opts.quotaCode;
79
+ }
80
+ }
81
+ export class ThrottlingException extends __BaseException {
82
+ name = "ThrottlingException";
83
+ $fault = "client";
84
+ $retryable = {};
85
+ serviceCode;
86
+ quotaCode;
87
+ retryAfterSeconds;
88
+ constructor(opts) {
89
+ super({
90
+ name: "ThrottlingException",
91
+ $fault: "client",
92
+ ...opts,
93
+ });
94
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
95
+ this.serviceCode = opts.serviceCode;
96
+ this.quotaCode = opts.quotaCode;
97
+ this.retryAfterSeconds = opts.retryAfterSeconds;
98
+ }
99
+ }
100
+ export class ValidationException extends __BaseException {
101
+ name = "ValidationException";
102
+ $fault = "client";
103
+ reason;
104
+ fieldList;
105
+ constructor(opts) {
106
+ super({
107
+ name: "ValidationException",
108
+ $fault: "client",
109
+ ...opts,
110
+ });
111
+ Object.setPrototypeOf(this, ValidationException.prototype);
112
+ this.reason = opts.reason;
113
+ this.fieldList = opts.fieldList;
114
+ }
115
+ }
@@ -1,128 +1,13 @@
1
- import { GrafanaServiceException as __BaseException } from "./GrafanaServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "AccessDeniedException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
- }
13
- }
14
1
  export const AccountAccessType = {
15
2
  CURRENT_ACCOUNT: "CURRENT_ACCOUNT",
16
3
  ORGANIZATION: "ORGANIZATION",
17
4
  };
18
- export class ConflictException extends __BaseException {
19
- name = "ConflictException";
20
- $fault = "client";
21
- resourceId;
22
- resourceType;
23
- constructor(opts) {
24
- super({
25
- name: "ConflictException",
26
- $fault: "client",
27
- ...opts,
28
- });
29
- Object.setPrototypeOf(this, ConflictException.prototype);
30
- this.resourceId = opts.resourceId;
31
- this.resourceType = opts.resourceType;
32
- }
33
- }
34
- export class InternalServerException extends __BaseException {
35
- name = "InternalServerException";
36
- $fault = "server";
37
- $retryable = {};
38
- retryAfterSeconds;
39
- constructor(opts) {
40
- super({
41
- name: "InternalServerException",
42
- $fault: "server",
43
- ...opts,
44
- });
45
- Object.setPrototypeOf(this, InternalServerException.prototype);
46
- this.retryAfterSeconds = opts.retryAfterSeconds;
47
- }
48
- }
49
- export class ResourceNotFoundException extends __BaseException {
50
- name = "ResourceNotFoundException";
51
- $fault = "client";
52
- resourceId;
53
- resourceType;
54
- constructor(opts) {
55
- super({
56
- name: "ResourceNotFoundException",
57
- $fault: "client",
58
- ...opts,
59
- });
60
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
61
- this.resourceId = opts.resourceId;
62
- this.resourceType = opts.resourceType;
63
- }
64
- }
65
- export class ServiceQuotaExceededException extends __BaseException {
66
- name = "ServiceQuotaExceededException";
67
- $fault = "client";
68
- resourceId;
69
- resourceType;
70
- serviceCode;
71
- quotaCode;
72
- constructor(opts) {
73
- super({
74
- name: "ServiceQuotaExceededException",
75
- $fault: "client",
76
- ...opts,
77
- });
78
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
79
- this.resourceId = opts.resourceId;
80
- this.resourceType = opts.resourceType;
81
- this.serviceCode = opts.serviceCode;
82
- this.quotaCode = opts.quotaCode;
83
- }
84
- }
85
- export class ThrottlingException extends __BaseException {
86
- name = "ThrottlingException";
87
- $fault = "client";
88
- $retryable = {};
89
- serviceCode;
90
- quotaCode;
91
- retryAfterSeconds;
92
- constructor(opts) {
93
- super({
94
- name: "ThrottlingException",
95
- $fault: "client",
96
- ...opts,
97
- });
98
- Object.setPrototypeOf(this, ThrottlingException.prototype);
99
- this.serviceCode = opts.serviceCode;
100
- this.quotaCode = opts.quotaCode;
101
- this.retryAfterSeconds = opts.retryAfterSeconds;
102
- }
103
- }
104
5
  export const ValidationExceptionReason = {
105
6
  CANNOT_PARSE: "CANNOT_PARSE",
106
7
  FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
107
8
  OTHER: "OTHER",
108
9
  UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
109
10
  };
110
- export class ValidationException extends __BaseException {
111
- name = "ValidationException";
112
- $fault = "client";
113
- reason;
114
- fieldList;
115
- constructor(opts) {
116
- super({
117
- name: "ValidationException",
118
- $fault: "client",
119
- ...opts,
120
- });
121
- Object.setPrototypeOf(this, ValidationException.prototype);
122
- this.reason = opts.reason;
123
- this.fieldList = opts.fieldList;
124
- }
125
- }
126
11
  export const LicenseType = {
127
12
  ENTERPRISE: "ENTERPRISE",
128
13
  ENTERPRISE_FREE_TRIAL: "ENTERPRISE_FREE_TRIAL",
@@ -233,8 +233,8 @@ const _wo = "workspaces";
233
233
  const _x = "xml";
234
234
  const n0 = "com.amazonaws.grafana";
235
235
  import { TypeRegistry } from "@smithy/core/schema";
236
+ import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
236
237
  import { GrafanaServiceException as __GrafanaServiceException } from "../models/GrafanaServiceException";
237
- import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/index";
238
238
  export var ApiKeyToken = [0, n0, _AKT, 8, 0];
239
239
  export var Description = [0, n0, _D, 8, 0];
240
240
  export var IamRoleArn = [0, n0, _IRA, 8, 0];
@@ -18,5 +18,6 @@ export type { RuntimeExtension } from "./runtimeExtensions";
18
18
  export type { GrafanaExtensionConfiguration } from "./extensionConfiguration";
19
19
  export * from "./commands";
20
20
  export * from "./pagination";
21
- export * from "./models";
21
+ export * from "./models/errors";
22
+ export type * from "./models/models_0";
22
23
  export { GrafanaServiceException } from "./models/GrafanaServiceException";
@@ -0,0 +1,159 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { GrafanaServiceException as __BaseException } from "./GrafanaServiceException";
3
+ import { ValidationExceptionField, ValidationExceptionReason } from "./models_0";
4
+ /**
5
+ * <p>You do not have sufficient permissions to perform this action. </p>
6
+ * @public
7
+ */
8
+ export declare class AccessDeniedException extends __BaseException {
9
+ readonly name: "AccessDeniedException";
10
+ readonly $fault: "client";
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
15
+ }
16
+ /**
17
+ * <p>A resource was in an inconsistent state during an update or a deletion.</p>
18
+ * @public
19
+ */
20
+ export declare class ConflictException extends __BaseException {
21
+ readonly name: "ConflictException";
22
+ readonly $fault: "client";
23
+ /**
24
+ * <p>The ID of the resource that is associated with the error.</p>
25
+ * @public
26
+ */
27
+ resourceId: string | undefined;
28
+ /**
29
+ * <p>The type of the resource that is associated with the error.</p>
30
+ * @public
31
+ */
32
+ resourceType: string | undefined;
33
+ /**
34
+ * @internal
35
+ */
36
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
37
+ }
38
+ /**
39
+ * <p>Unexpected error while processing the request. Retry the request.</p>
40
+ * @public
41
+ */
42
+ export declare class InternalServerException extends __BaseException {
43
+ readonly name: "InternalServerException";
44
+ readonly $fault: "server";
45
+ $retryable: {};
46
+ /**
47
+ * <p>How long to wait before you retry this operation.</p>
48
+ * @public
49
+ */
50
+ retryAfterSeconds?: number | undefined;
51
+ /**
52
+ * @internal
53
+ */
54
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
55
+ }
56
+ /**
57
+ * <p>The request references a resource that does not exist.</p>
58
+ * @public
59
+ */
60
+ export declare class ResourceNotFoundException extends __BaseException {
61
+ readonly name: "ResourceNotFoundException";
62
+ readonly $fault: "client";
63
+ /**
64
+ * <p>The ID of the resource that is associated with the error.</p>
65
+ * @public
66
+ */
67
+ resourceId: string | undefined;
68
+ /**
69
+ * <p>The type of the resource that is associated with the error.</p>
70
+ * @public
71
+ */
72
+ resourceType: string | undefined;
73
+ /**
74
+ * @internal
75
+ */
76
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
77
+ }
78
+ /**
79
+ * <p>The request would cause a service quota to be exceeded.</p>
80
+ * @public
81
+ */
82
+ export declare class ServiceQuotaExceededException extends __BaseException {
83
+ readonly name: "ServiceQuotaExceededException";
84
+ readonly $fault: "client";
85
+ /**
86
+ * <p>The ID of the resource that is associated with the error.</p>
87
+ * @public
88
+ */
89
+ resourceId: string | undefined;
90
+ /**
91
+ * <p>The type of the resource that is associated with the error.</p>
92
+ * @public
93
+ */
94
+ resourceType: string | undefined;
95
+ /**
96
+ * <p>The value of a parameter in the request caused an error.</p>
97
+ * @public
98
+ */
99
+ serviceCode: string | undefined;
100
+ /**
101
+ * <p>The ID of the service quota that was exceeded.</p>
102
+ * @public
103
+ */
104
+ quotaCode: string | undefined;
105
+ /**
106
+ * @internal
107
+ */
108
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
109
+ }
110
+ /**
111
+ * <p>The request was denied because of request throttling. Retry the request.</p>
112
+ * @public
113
+ */
114
+ export declare class ThrottlingException extends __BaseException {
115
+ readonly name: "ThrottlingException";
116
+ readonly $fault: "client";
117
+ $retryable: {};
118
+ /**
119
+ * <p>The ID of the service that is associated with the error.</p>
120
+ * @public
121
+ */
122
+ serviceCode?: string | undefined;
123
+ /**
124
+ * <p>The ID of the service quota that was exceeded.</p>
125
+ * @public
126
+ */
127
+ quotaCode?: string | undefined;
128
+ /**
129
+ * <p>The value of a parameter in the request caused an error.</p>
130
+ * @public
131
+ */
132
+ retryAfterSeconds?: number | undefined;
133
+ /**
134
+ * @internal
135
+ */
136
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
137
+ }
138
+ /**
139
+ * <p>The value of a parameter in the request caused an error.</p>
140
+ * @public
141
+ */
142
+ export declare class ValidationException extends __BaseException {
143
+ readonly name: "ValidationException";
144
+ readonly $fault: "client";
145
+ /**
146
+ * <p>The reason that the operation failed.</p>
147
+ * @public
148
+ */
149
+ reason: ValidationExceptionReason | undefined;
150
+ /**
151
+ * <p>A list of fields that might be associated with the error.</p>
152
+ * @public
153
+ */
154
+ fieldList?: ValidationExceptionField[] | undefined;
155
+ /**
156
+ * @internal
157
+ */
158
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
159
+ }
@@ -1,17 +1,4 @@
1
- import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion, ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { GrafanaServiceException as __BaseException } from "./GrafanaServiceException";
3
- /**
4
- * <p>You do not have sufficient permissions to perform this action. </p>
5
- * @public
6
- */
7
- export declare class AccessDeniedException extends __BaseException {
8
- readonly name: "AccessDeniedException";
9
- readonly $fault: "client";
10
- /**
11
- * @internal
12
- */
13
- constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
- }
1
+ import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/smithy-client";
15
2
  /**
16
3
  * @public
17
4
  * @enum
@@ -30,28 +17,6 @@ export declare const AccountAccessType: {
30
17
  * @public
31
18
  */
32
19
  export type AccountAccessType = (typeof AccountAccessType)[keyof typeof AccountAccessType];
33
- /**
34
- * <p>A resource was in an inconsistent state during an update or a deletion.</p>
35
- * @public
36
- */
37
- export declare class ConflictException extends __BaseException {
38
- readonly name: "ConflictException";
39
- readonly $fault: "client";
40
- /**
41
- * <p>The ID of the resource that is associated with the error.</p>
42
- * @public
43
- */
44
- resourceId: string | undefined;
45
- /**
46
- * <p>The type of the resource that is associated with the error.</p>
47
- * @public
48
- */
49
- resourceType: string | undefined;
50
- /**
51
- * @internal
52
- */
53
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
54
- }
55
20
  /**
56
21
  * @public
57
22
  */
@@ -101,106 +66,6 @@ export interface CreateWorkspaceApiKeyResponse {
101
66
  */
102
67
  workspaceId: string | undefined;
103
68
  }
104
- /**
105
- * <p>Unexpected error while processing the request. Retry the request.</p>
106
- * @public
107
- */
108
- export declare class InternalServerException extends __BaseException {
109
- readonly name: "InternalServerException";
110
- readonly $fault: "server";
111
- $retryable: {};
112
- /**
113
- * <p>How long to wait before you retry this operation.</p>
114
- * @public
115
- */
116
- retryAfterSeconds?: number | undefined;
117
- /**
118
- * @internal
119
- */
120
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
121
- }
122
- /**
123
- * <p>The request references a resource that does not exist.</p>
124
- * @public
125
- */
126
- export declare class ResourceNotFoundException extends __BaseException {
127
- readonly name: "ResourceNotFoundException";
128
- readonly $fault: "client";
129
- /**
130
- * <p>The ID of the resource that is associated with the error.</p>
131
- * @public
132
- */
133
- resourceId: string | undefined;
134
- /**
135
- * <p>The type of the resource that is associated with the error.</p>
136
- * @public
137
- */
138
- resourceType: string | undefined;
139
- /**
140
- * @internal
141
- */
142
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
143
- }
144
- /**
145
- * <p>The request would cause a service quota to be exceeded.</p>
146
- * @public
147
- */
148
- export declare class ServiceQuotaExceededException extends __BaseException {
149
- readonly name: "ServiceQuotaExceededException";
150
- readonly $fault: "client";
151
- /**
152
- * <p>The ID of the resource that is associated with the error.</p>
153
- * @public
154
- */
155
- resourceId: string | undefined;
156
- /**
157
- * <p>The type of the resource that is associated with the error.</p>
158
- * @public
159
- */
160
- resourceType: string | undefined;
161
- /**
162
- * <p>The value of a parameter in the request caused an error.</p>
163
- * @public
164
- */
165
- serviceCode: string | undefined;
166
- /**
167
- * <p>The ID of the service quota that was exceeded.</p>
168
- * @public
169
- */
170
- quotaCode: string | undefined;
171
- /**
172
- * @internal
173
- */
174
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
175
- }
176
- /**
177
- * <p>The request was denied because of request throttling. Retry the request.</p>
178
- * @public
179
- */
180
- export declare class ThrottlingException extends __BaseException {
181
- readonly name: "ThrottlingException";
182
- readonly $fault: "client";
183
- $retryable: {};
184
- /**
185
- * <p>The ID of the service that is associated with the error.</p>
186
- * @public
187
- */
188
- serviceCode?: string | undefined;
189
- /**
190
- * <p>The ID of the service quota that was exceeded.</p>
191
- * @public
192
- */
193
- quotaCode?: string | undefined;
194
- /**
195
- * <p>The value of a parameter in the request caused an error.</p>
196
- * @public
197
- */
198
- retryAfterSeconds?: number | undefined;
199
- /**
200
- * @internal
201
- */
202
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
203
- }
204
69
  /**
205
70
  * <p>A structure that contains information about a request parameter that caused an
206
71
  * error.</p>
@@ -232,28 +97,6 @@ export declare const ValidationExceptionReason: {
232
97
  * @public
233
98
  */
234
99
  export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
235
- /**
236
- * <p>The value of a parameter in the request caused an error.</p>
237
- * @public
238
- */
239
- export declare class ValidationException extends __BaseException {
240
- readonly name: "ValidationException";
241
- readonly $fault: "client";
242
- /**
243
- * <p>The reason that the operation failed.</p>
244
- * @public
245
- */
246
- reason: ValidationExceptionReason | undefined;
247
- /**
248
- * <p>A list of fields that might be associated with the error.</p>
249
- * @public
250
- */
251
- fieldList?: ValidationExceptionField[] | undefined;
252
- /**
253
- * @internal
254
- */
255
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
256
- }
257
100
  /**
258
101
  * @public
259
102
  */
@@ -5,5 +5,6 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { GrafanaExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
- export * from "./models";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
9
10
  export { GrafanaServiceException } from "./models/GrafanaServiceException";
@@ -0,0 +1,69 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { GrafanaServiceException as __BaseException } from "./GrafanaServiceException";
3
+ import {
4
+ ValidationExceptionField,
5
+ ValidationExceptionReason,
6
+ } from "./models_0";
7
+ export declare class AccessDeniedException extends __BaseException {
8
+ readonly name: "AccessDeniedException";
9
+ readonly $fault: "client";
10
+ constructor(
11
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
12
+ );
13
+ }
14
+ export declare class ConflictException extends __BaseException {
15
+ readonly name: "ConflictException";
16
+ readonly $fault: "client";
17
+ resourceId: string | undefined;
18
+ resourceType: string | undefined;
19
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
20
+ }
21
+ export declare class InternalServerException extends __BaseException {
22
+ readonly name: "InternalServerException";
23
+ readonly $fault: "server";
24
+ $retryable: {};
25
+ retryAfterSeconds?: number | undefined;
26
+ constructor(
27
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
28
+ );
29
+ }
30
+ export declare class ResourceNotFoundException extends __BaseException {
31
+ readonly name: "ResourceNotFoundException";
32
+ readonly $fault: "client";
33
+ resourceId: string | undefined;
34
+ resourceType: string | undefined;
35
+ constructor(
36
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
37
+ );
38
+ }
39
+ export declare class ServiceQuotaExceededException extends __BaseException {
40
+ readonly name: "ServiceQuotaExceededException";
41
+ readonly $fault: "client";
42
+ resourceId: string | undefined;
43
+ resourceType: string | undefined;
44
+ serviceCode: string | undefined;
45
+ quotaCode: string | undefined;
46
+ constructor(
47
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
48
+ );
49
+ }
50
+ export declare class ThrottlingException extends __BaseException {
51
+ readonly name: "ThrottlingException";
52
+ readonly $fault: "client";
53
+ $retryable: {};
54
+ serviceCode?: string | undefined;
55
+ quotaCode?: string | undefined;
56
+ retryAfterSeconds?: number | undefined;
57
+ constructor(
58
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
59
+ );
60
+ }
61
+ export declare class ValidationException extends __BaseException {
62
+ readonly name: "ValidationException";
63
+ readonly $fault: "client";
64
+ reason: ValidationExceptionReason | undefined;
65
+ fieldList?: ValidationExceptionField[] | undefined;
66
+ constructor(
67
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
68
+ );
69
+ }
@@ -1,28 +1,10 @@
1
- import {
2
- AutomaticJsonStringConversion as __AutomaticJsonStringConversion,
3
- ExceptionOptionType as __ExceptionOptionType,
4
- } from "@smithy/smithy-client";
5
- import { GrafanaServiceException as __BaseException } from "./GrafanaServiceException";
6
- export declare class AccessDeniedException extends __BaseException {
7
- readonly name: "AccessDeniedException";
8
- readonly $fault: "client";
9
- constructor(
10
- opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
11
- );
12
- }
1
+ import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/smithy-client";
13
2
  export declare const AccountAccessType: {
14
3
  readonly CURRENT_ACCOUNT: "CURRENT_ACCOUNT";
15
4
  readonly ORGANIZATION: "ORGANIZATION";
16
5
  };
17
6
  export type AccountAccessType =
18
7
  (typeof AccountAccessType)[keyof typeof AccountAccessType];
19
- export declare class ConflictException extends __BaseException {
20
- readonly name: "ConflictException";
21
- readonly $fault: "client";
22
- resourceId: string | undefined;
23
- resourceType: string | undefined;
24
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
25
- }
26
8
  export interface CreateWorkspaceApiKeyRequest {
27
9
  keyName: string | undefined;
28
10
  keyRole: string | undefined;
@@ -34,46 +16,6 @@ export interface CreateWorkspaceApiKeyResponse {
34
16
  key: string | undefined;
35
17
  workspaceId: string | undefined;
36
18
  }
37
- export declare class InternalServerException extends __BaseException {
38
- readonly name: "InternalServerException";
39
- readonly $fault: "server";
40
- $retryable: {};
41
- retryAfterSeconds?: number | undefined;
42
- constructor(
43
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
44
- );
45
- }
46
- export declare class ResourceNotFoundException extends __BaseException {
47
- readonly name: "ResourceNotFoundException";
48
- readonly $fault: "client";
49
- resourceId: string | undefined;
50
- resourceType: string | undefined;
51
- constructor(
52
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
53
- );
54
- }
55
- export declare class ServiceQuotaExceededException extends __BaseException {
56
- readonly name: "ServiceQuotaExceededException";
57
- readonly $fault: "client";
58
- resourceId: string | undefined;
59
- resourceType: string | undefined;
60
- serviceCode: string | undefined;
61
- quotaCode: string | undefined;
62
- constructor(
63
- opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
64
- );
65
- }
66
- export declare class ThrottlingException extends __BaseException {
67
- readonly name: "ThrottlingException";
68
- readonly $fault: "client";
69
- $retryable: {};
70
- serviceCode?: string | undefined;
71
- quotaCode?: string | undefined;
72
- retryAfterSeconds?: number | undefined;
73
- constructor(
74
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
75
- );
76
- }
77
19
  export interface ValidationExceptionField {
78
20
  name: string | undefined;
79
21
  message: string | undefined;
@@ -86,15 +28,6 @@ export declare const ValidationExceptionReason: {
86
28
  };
87
29
  export type ValidationExceptionReason =
88
30
  (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
89
- export declare class ValidationException extends __BaseException {
90
- readonly name: "ValidationException";
91
- readonly $fault: "client";
92
- reason: ValidationExceptionReason | undefined;
93
- fieldList?: ValidationExceptionField[] | undefined;
94
- constructor(
95
- opts: __ExceptionOptionType<ValidationException, __BaseException>
96
- );
97
- }
98
31
  export interface DeleteWorkspaceApiKeyRequest {
99
32
  keyName: string | undefined;
100
33
  workspaceId: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-grafana",
3
3
  "description": "AWS SDK for JavaScript Grafana Client for Node.js, Browser and React Native",
4
- "version": "3.934.0",
4
+ "version": "3.936.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-grafana",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.0",
25
- "@aws-sdk/middleware-host-header": "3.930.0",
26
- "@aws-sdk/middleware-logger": "3.930.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.0",
29
- "@aws-sdk/region-config-resolver": "3.930.0",
30
- "@aws-sdk/types": "3.930.0",
31
- "@aws-sdk/util-endpoints": "3.930.0",
32
- "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.934.0",
23
+ "@aws-sdk/core": "3.936.0",
24
+ "@aws-sdk/credential-provider-node": "3.936.0",
25
+ "@aws-sdk/middleware-host-header": "3.936.0",
26
+ "@aws-sdk/middleware-logger": "3.936.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.936.0",
28
+ "@aws-sdk/middleware-user-agent": "3.936.0",
29
+ "@aws-sdk/region-config-resolver": "3.936.0",
30
+ "@aws-sdk/types": "3.936.0",
31
+ "@aws-sdk/util-endpoints": "3.936.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.936.0",
33
+ "@aws-sdk/util-user-agent-node": "3.936.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";