@aws-sdk/client-grafana 3.51.0 → 3.54.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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-grafana
9
+
10
+
11
+
12
+
13
+
14
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
15
+
16
+
17
+ ### Features
18
+
19
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-grafana
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-grafana
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GrafanaServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./Grafana"), exports);
5
6
  tslib_1.__exportStar(require("./GrafanaClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
10
+ var GrafanaServiceException_1 = require("./models/GrafanaServiceException");
11
+ Object.defineProperty(exports, "GrafanaServiceException", { enumerable: true, get: function () { return GrafanaServiceException_1.GrafanaServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GrafanaServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class GrafanaServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, GrafanaServiceException.prototype);
9
+ }
10
+ }
11
+ exports.GrafanaServiceException = GrafanaServiceException;
@@ -1,7 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateWorkspaceResponse = exports.UpdateWorkspaceRequest = exports.ListWorkspacesResponse = exports.WorkspaceSummary = exports.ListWorkspacesRequest = exports.DescribeWorkspaceResponse = exports.DescribeWorkspaceRequest = exports.DeleteWorkspaceResponse = exports.DeleteWorkspaceRequest = exports.CreateWorkspaceResponse = exports.CreateWorkspaceRequest = exports.UpdatePermissionsResponse = exports.UpdateError = exports.UpdatePermissionsRequest = exports.UpdateInstruction = exports.UpdateAction = exports.ListPermissionsResponse = exports.PermissionEntry = exports.User = exports.Role = exports.ListPermissionsRequest = exports.UserType = exports.DisassociateLicenseResponse = exports.DisassociateLicenseRequest = exports.UpdateWorkspaceAuthenticationResponse = exports.UpdateWorkspaceAuthenticationRequest = exports.DescribeWorkspaceAuthenticationResponse = exports.AuthenticationDescription = exports.SamlAuthentication = exports.SamlConfiguration = exports.RoleValues = exports.IdpMetadata = exports.AwsSsoAuthentication = exports.DescribeWorkspaceAuthenticationRequest = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.AssociateLicenseResponse = exports.WorkspaceDescription = exports.WorkspaceStatus = exports.PermissionType = exports.NotificationDestinationType = exports.DataSourceType = exports.AuthenticationSummary = exports.SamlConfigurationStatus = exports.AuthenticationProviderTypes = exports.AssociateLicenseRequest = exports.LicenseType = exports.AssertionAttributes = exports.AccountAccessType = void 0;
3
+ exports.DescribeWorkspaceRequest = exports.DeleteWorkspaceResponse = exports.DeleteWorkspaceRequest = exports.ServiceQuotaExceededException = exports.CreateWorkspaceResponse = exports.CreateWorkspaceRequest = exports.UpdatePermissionsResponse = exports.UpdateError = exports.UpdatePermissionsRequest = exports.UpdateInstruction = exports.UpdateAction = exports.ListPermissionsResponse = exports.PermissionEntry = exports.User = exports.Role = exports.ListPermissionsRequest = exports.UserType = exports.DisassociateLicenseResponse = exports.DisassociateLicenseRequest = exports.UpdateWorkspaceAuthenticationResponse = exports.UpdateWorkspaceAuthenticationRequest = exports.ConflictException = exports.DescribeWorkspaceAuthenticationResponse = exports.AuthenticationDescription = exports.SamlAuthentication = exports.SamlConfiguration = exports.RoleValues = exports.IdpMetadata = exports.AwsSsoAuthentication = exports.DescribeWorkspaceAuthenticationRequest = exports.ValidationException = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AssociateLicenseResponse = exports.WorkspaceDescription = exports.WorkspaceStatus = exports.PermissionType = exports.NotificationDestinationType = exports.DataSourceType = exports.AuthenticationSummary = exports.SamlConfigurationStatus = exports.AuthenticationProviderTypes = exports.AssociateLicenseRequest = exports.LicenseType = exports.AssertionAttributes = exports.AccountAccessType = exports.AccessDeniedException = void 0;
4
+ exports.UpdateWorkspaceResponse = exports.UpdateWorkspaceRequest = exports.ListWorkspacesResponse = exports.WorkspaceSummary = exports.ListWorkspacesRequest = exports.DescribeWorkspaceResponse = void 0;
4
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const GrafanaServiceException_1 = require("./GrafanaServiceException");
7
+ class AccessDeniedException extends GrafanaServiceException_1.GrafanaServiceException {
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ this.name = "AccessDeniedException";
15
+ this.$fault = "client";
16
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
17
+ }
18
+ }
19
+ exports.AccessDeniedException = AccessDeniedException;
5
20
  var AccountAccessType;
6
21
  (function (AccountAccessType) {
7
22
  AccountAccessType["CURRENT_ACCOUNT"] = "CURRENT_ACCOUNT";
@@ -90,6 +105,53 @@ var AssociateLicenseResponse;
90
105
  ...(obj.workspace && { workspace: WorkspaceDescription.filterSensitiveLog(obj.workspace) }),
91
106
  });
92
107
  })(AssociateLicenseResponse = exports.AssociateLicenseResponse || (exports.AssociateLicenseResponse = {}));
108
+ class InternalServerException extends GrafanaServiceException_1.GrafanaServiceException {
109
+ constructor(opts) {
110
+ super({
111
+ name: "InternalServerException",
112
+ $fault: "server",
113
+ ...opts,
114
+ });
115
+ this.name = "InternalServerException";
116
+ this.$fault = "server";
117
+ this.$retryable = {};
118
+ Object.setPrototypeOf(this, InternalServerException.prototype);
119
+ this.retryAfterSeconds = opts.retryAfterSeconds;
120
+ }
121
+ }
122
+ exports.InternalServerException = InternalServerException;
123
+ class ResourceNotFoundException extends GrafanaServiceException_1.GrafanaServiceException {
124
+ constructor(opts) {
125
+ super({
126
+ name: "ResourceNotFoundException",
127
+ $fault: "client",
128
+ ...opts,
129
+ });
130
+ this.name = "ResourceNotFoundException";
131
+ this.$fault = "client";
132
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
133
+ this.resourceId = opts.resourceId;
134
+ this.resourceType = opts.resourceType;
135
+ }
136
+ }
137
+ exports.ResourceNotFoundException = ResourceNotFoundException;
138
+ class ThrottlingException extends GrafanaServiceException_1.GrafanaServiceException {
139
+ constructor(opts) {
140
+ super({
141
+ name: "ThrottlingException",
142
+ $fault: "client",
143
+ ...opts,
144
+ });
145
+ this.name = "ThrottlingException";
146
+ this.$fault = "client";
147
+ this.$retryable = {};
148
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
149
+ this.serviceCode = opts.serviceCode;
150
+ this.quotaCode = opts.quotaCode;
151
+ this.retryAfterSeconds = opts.retryAfterSeconds;
152
+ }
153
+ }
154
+ exports.ThrottlingException = ThrottlingException;
93
155
  var ValidationExceptionField;
94
156
  (function (ValidationExceptionField) {
95
157
  ValidationExceptionField.filterSensitiveLog = (obj) => ({
@@ -103,6 +165,21 @@ var ValidationExceptionReason;
103
165
  ValidationExceptionReason["OTHER"] = "OTHER";
104
166
  ValidationExceptionReason["UNKNOWN_OPERATION"] = "UNKNOWN_OPERATION";
105
167
  })(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
168
+ class ValidationException extends GrafanaServiceException_1.GrafanaServiceException {
169
+ constructor(opts) {
170
+ super({
171
+ name: "ValidationException",
172
+ $fault: "client",
173
+ ...opts,
174
+ });
175
+ this.name = "ValidationException";
176
+ this.$fault = "client";
177
+ Object.setPrototypeOf(this, ValidationException.prototype);
178
+ this.reason = opts.reason;
179
+ this.fieldList = opts.fieldList;
180
+ }
181
+ }
182
+ exports.ValidationException = ValidationException;
106
183
  var DescribeWorkspaceAuthenticationRequest;
107
184
  (function (DescribeWorkspaceAuthenticationRequest) {
108
185
  DescribeWorkspaceAuthenticationRequest.filterSensitiveLog = (obj) => ({
@@ -167,6 +244,21 @@ var DescribeWorkspaceAuthenticationResponse;
167
244
  ...(obj.authentication && { authentication: AuthenticationDescription.filterSensitiveLog(obj.authentication) }),
168
245
  });
169
246
  })(DescribeWorkspaceAuthenticationResponse = exports.DescribeWorkspaceAuthenticationResponse || (exports.DescribeWorkspaceAuthenticationResponse = {}));
247
+ class ConflictException extends GrafanaServiceException_1.GrafanaServiceException {
248
+ constructor(opts) {
249
+ super({
250
+ name: "ConflictException",
251
+ $fault: "client",
252
+ ...opts,
253
+ });
254
+ this.name = "ConflictException";
255
+ this.$fault = "client";
256
+ Object.setPrototypeOf(this, ConflictException.prototype);
257
+ this.resourceId = opts.resourceId;
258
+ this.resourceType = opts.resourceType;
259
+ }
260
+ }
261
+ exports.ConflictException = ConflictException;
170
262
  var UpdateWorkspaceAuthenticationRequest;
171
263
  (function (UpdateWorkspaceAuthenticationRequest) {
172
264
  UpdateWorkspaceAuthenticationRequest.filterSensitiveLog = (obj) => ({
@@ -275,6 +367,23 @@ var CreateWorkspaceResponse;
275
367
  ...(obj.workspace && { workspace: WorkspaceDescription.filterSensitiveLog(obj.workspace) }),
276
368
  });
277
369
  })(CreateWorkspaceResponse = exports.CreateWorkspaceResponse || (exports.CreateWorkspaceResponse = {}));
370
+ class ServiceQuotaExceededException extends GrafanaServiceException_1.GrafanaServiceException {
371
+ constructor(opts) {
372
+ super({
373
+ name: "ServiceQuotaExceededException",
374
+ $fault: "client",
375
+ ...opts,
376
+ });
377
+ this.name = "ServiceQuotaExceededException";
378
+ this.$fault = "client";
379
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
380
+ this.resourceId = opts.resourceId;
381
+ this.resourceType = opts.resourceType;
382
+ this.serviceCode = opts.serviceCode;
383
+ this.quotaCode = opts.quotaCode;
384
+ }
385
+ }
386
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
278
387
  var DeleteWorkspaceRequest;
279
388
  (function (DeleteWorkspaceRequest) {
280
389
  DeleteWorkspaceRequest.filterSensitiveLog = (obj) => ({