@aws-sdk/client-grafana 3.87.0 → 3.91.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 +11 -0
- package/dist-cjs/Grafana.js +30 -0
- package/dist-cjs/commands/CreateWorkspaceApiKeyCommand.js +36 -0
- package/dist-cjs/commands/DeleteWorkspaceApiKeyCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +135 -109
- package/dist-cjs/protocols/Aws_restJson1.js +190 -1
- package/dist-es/Grafana.js +30 -0
- package/dist-es/commands/CreateWorkspaceApiKeyCommand.js +39 -0
- package/dist-es/commands/DeleteWorkspaceApiKeyCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +116 -99
- package/dist-es/protocols/Aws_restJson1.js +244 -0
- package/dist-types/Grafana.d.ts +17 -0
- package/dist-types/GrafanaClient.d.ts +4 -2
- package/dist-types/commands/CreateWorkspaceApiKeyCommand.d.ts +38 -0
- package/dist-types/commands/DeleteWorkspaceApiKeyCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +233 -150
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/Grafana.d.ts +10 -0
- package/dist-types/ts3.4/GrafanaClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/CreateWorkspaceApiKeyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteWorkspaceApiKeyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +138 -90
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.91.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.90.0...v3.91.0) (2022-05-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-grafana:** This release adds APIs for creating and deleting API keys in an Amazon Managed Grafana workspace. ([091f6df](https://github.com/aws/aws-sdk-js-v3/commit/091f6df529630a1203d53954b5ae79803df84e2b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.87.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.86.0...v3.87.0) (2022-05-09)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-grafana
|
package/dist-cjs/Grafana.js
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Grafana = void 0;
|
|
4
4
|
const AssociateLicenseCommand_1 = require("./commands/AssociateLicenseCommand");
|
|
5
|
+
const CreateWorkspaceApiKeyCommand_1 = require("./commands/CreateWorkspaceApiKeyCommand");
|
|
5
6
|
const CreateWorkspaceCommand_1 = require("./commands/CreateWorkspaceCommand");
|
|
7
|
+
const DeleteWorkspaceApiKeyCommand_1 = require("./commands/DeleteWorkspaceApiKeyCommand");
|
|
6
8
|
const DeleteWorkspaceCommand_1 = require("./commands/DeleteWorkspaceCommand");
|
|
7
9
|
const DescribeWorkspaceAuthenticationCommand_1 = require("./commands/DescribeWorkspaceAuthenticationCommand");
|
|
8
10
|
const DescribeWorkspaceCommand_1 = require("./commands/DescribeWorkspaceCommand");
|
|
@@ -45,6 +47,20 @@ class Grafana extends GrafanaClient_1.GrafanaClient {
|
|
|
45
47
|
return this.send(command, optionsOrCb);
|
|
46
48
|
}
|
|
47
49
|
}
|
|
50
|
+
createWorkspaceApiKey(args, optionsOrCb, cb) {
|
|
51
|
+
const command = new CreateWorkspaceApiKeyCommand_1.CreateWorkspaceApiKeyCommand(args);
|
|
52
|
+
if (typeof optionsOrCb === "function") {
|
|
53
|
+
this.send(command, optionsOrCb);
|
|
54
|
+
}
|
|
55
|
+
else if (typeof cb === "function") {
|
|
56
|
+
if (typeof optionsOrCb !== "object")
|
|
57
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
58
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
return this.send(command, optionsOrCb);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
48
64
|
deleteWorkspace(args, optionsOrCb, cb) {
|
|
49
65
|
const command = new DeleteWorkspaceCommand_1.DeleteWorkspaceCommand(args);
|
|
50
66
|
if (typeof optionsOrCb === "function") {
|
|
@@ -59,6 +75,20 @@ class Grafana extends GrafanaClient_1.GrafanaClient {
|
|
|
59
75
|
return this.send(command, optionsOrCb);
|
|
60
76
|
}
|
|
61
77
|
}
|
|
78
|
+
deleteWorkspaceApiKey(args, optionsOrCb, cb) {
|
|
79
|
+
const command = new DeleteWorkspaceApiKeyCommand_1.DeleteWorkspaceApiKeyCommand(args);
|
|
80
|
+
if (typeof optionsOrCb === "function") {
|
|
81
|
+
this.send(command, optionsOrCb);
|
|
82
|
+
}
|
|
83
|
+
else if (typeof cb === "function") {
|
|
84
|
+
if (typeof optionsOrCb !== "object")
|
|
85
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
86
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
return this.send(command, optionsOrCb);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
62
92
|
describeWorkspace(args, optionsOrCb, cb) {
|
|
63
93
|
const command = new DescribeWorkspaceCommand_1.DescribeWorkspaceCommand(args);
|
|
64
94
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateWorkspaceApiKeyCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class CreateWorkspaceApiKeyCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "GrafanaClient";
|
|
18
|
+
const commandName = "CreateWorkspaceApiKeyCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CreateWorkspaceApiKeyRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CreateWorkspaceApiKeyResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1CreateWorkspaceApiKeyCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1CreateWorkspaceApiKeyCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CreateWorkspaceApiKeyCommand = CreateWorkspaceApiKeyCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteWorkspaceApiKeyCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class DeleteWorkspaceApiKeyCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "GrafanaClient";
|
|
18
|
+
const commandName = "DeleteWorkspaceApiKeyCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DeleteWorkspaceApiKeyRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DeleteWorkspaceApiKeyResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DeleteWorkspaceApiKeyCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteWorkspaceApiKeyCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DeleteWorkspaceApiKeyCommand = DeleteWorkspaceApiKeyCommand;
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./AssociateLicenseCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./CreateWorkspaceApiKeyCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./CreateWorkspaceCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./DeleteWorkspaceApiKeyCommand"), exports);
|
|
6
8
|
tslib_1.__exportStar(require("./DeleteWorkspaceCommand"), exports);
|
|
7
9
|
tslib_1.__exportStar(require("./DescribeWorkspaceAuthenticationCommand"), exports);
|
|
8
10
|
tslib_1.__exportStar(require("./DescribeWorkspaceCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateWorkspaceResponse = exports.UpdateWorkspaceRequest = exports.ListWorkspacesResponse = exports.WorkspaceSummary = exports.ListWorkspacesRequest = exports.DescribeWorkspaceResponse = exports.DescribeWorkspaceRequest = exports.DeleteWorkspaceResponse = exports.DeleteWorkspaceRequest = exports.
|
|
3
|
+
exports.UpdateError = exports.UpdatePermissionsRequest = exports.UpdateInstruction = exports.UpdateAction = exports.ListPermissionsResponse = exports.PermissionEntry = exports.User = exports.Role = exports.ListPermissionsRequest = exports.UserType = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = 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.AssociateLicenseResponse = exports.WorkspaceDescription = exports.WorkspaceStatus = exports.PermissionType = exports.NotificationDestinationType = exports.DataSourceType = exports.AuthenticationSummary = exports.SamlConfigurationStatus = exports.AuthenticationProviderTypes = exports.AssociateLicenseRequest = exports.LicenseType = exports.AssertionAttributes = exports.DeleteWorkspaceApiKeyResponse = exports.DeleteWorkspaceApiKeyRequest = exports.ValidationException = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.CreateWorkspaceApiKeyResponse = exports.CreateWorkspaceApiKeyRequest = exports.ConflictException = exports.AccountAccessType = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.UpdateWorkspaceResponse = exports.UpdateWorkspaceRequest = exports.ListWorkspacesResponse = exports.WorkspaceSummary = exports.ListWorkspacesRequest = exports.DescribeWorkspaceResponse = exports.DescribeWorkspaceRequest = exports.DeleteWorkspaceResponse = exports.DeleteWorkspaceRequest = exports.CreateWorkspaceResponse = exports.CreateWorkspaceRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.UpdatePermissionsResponse = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const GrafanaServiceException_1 = require("./GrafanaServiceException");
|
|
7
7
|
class AccessDeniedException extends GrafanaServiceException_1.GrafanaServiceException {
|
|
@@ -22,6 +22,138 @@ var AccountAccessType;
|
|
|
22
22
|
AccountAccessType["CURRENT_ACCOUNT"] = "CURRENT_ACCOUNT";
|
|
23
23
|
AccountAccessType["ORGANIZATION"] = "ORGANIZATION";
|
|
24
24
|
})(AccountAccessType = exports.AccountAccessType || (exports.AccountAccessType = {}));
|
|
25
|
+
class ConflictException extends GrafanaServiceException_1.GrafanaServiceException {
|
|
26
|
+
constructor(opts) {
|
|
27
|
+
super({
|
|
28
|
+
name: "ConflictException",
|
|
29
|
+
$fault: "client",
|
|
30
|
+
...opts,
|
|
31
|
+
});
|
|
32
|
+
this.name = "ConflictException";
|
|
33
|
+
this.$fault = "client";
|
|
34
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
35
|
+
this.resourceId = opts.resourceId;
|
|
36
|
+
this.resourceType = opts.resourceType;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.ConflictException = ConflictException;
|
|
40
|
+
var CreateWorkspaceApiKeyRequest;
|
|
41
|
+
(function (CreateWorkspaceApiKeyRequest) {
|
|
42
|
+
CreateWorkspaceApiKeyRequest.filterSensitiveLog = (obj) => ({
|
|
43
|
+
...obj,
|
|
44
|
+
});
|
|
45
|
+
})(CreateWorkspaceApiKeyRequest = exports.CreateWorkspaceApiKeyRequest || (exports.CreateWorkspaceApiKeyRequest = {}));
|
|
46
|
+
var CreateWorkspaceApiKeyResponse;
|
|
47
|
+
(function (CreateWorkspaceApiKeyResponse) {
|
|
48
|
+
CreateWorkspaceApiKeyResponse.filterSensitiveLog = (obj) => ({
|
|
49
|
+
...obj,
|
|
50
|
+
...(obj.key && { key: smithy_client_1.SENSITIVE_STRING }),
|
|
51
|
+
});
|
|
52
|
+
})(CreateWorkspaceApiKeyResponse = exports.CreateWorkspaceApiKeyResponse || (exports.CreateWorkspaceApiKeyResponse = {}));
|
|
53
|
+
class InternalServerException extends GrafanaServiceException_1.GrafanaServiceException {
|
|
54
|
+
constructor(opts) {
|
|
55
|
+
super({
|
|
56
|
+
name: "InternalServerException",
|
|
57
|
+
$fault: "server",
|
|
58
|
+
...opts,
|
|
59
|
+
});
|
|
60
|
+
this.name = "InternalServerException";
|
|
61
|
+
this.$fault = "server";
|
|
62
|
+
this.$retryable = {};
|
|
63
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
64
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.InternalServerException = InternalServerException;
|
|
68
|
+
class ResourceNotFoundException extends GrafanaServiceException_1.GrafanaServiceException {
|
|
69
|
+
constructor(opts) {
|
|
70
|
+
super({
|
|
71
|
+
name: "ResourceNotFoundException",
|
|
72
|
+
$fault: "client",
|
|
73
|
+
...opts,
|
|
74
|
+
});
|
|
75
|
+
this.name = "ResourceNotFoundException";
|
|
76
|
+
this.$fault = "client";
|
|
77
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
78
|
+
this.resourceId = opts.resourceId;
|
|
79
|
+
this.resourceType = opts.resourceType;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
83
|
+
class ServiceQuotaExceededException extends GrafanaServiceException_1.GrafanaServiceException {
|
|
84
|
+
constructor(opts) {
|
|
85
|
+
super({
|
|
86
|
+
name: "ServiceQuotaExceededException",
|
|
87
|
+
$fault: "client",
|
|
88
|
+
...opts,
|
|
89
|
+
});
|
|
90
|
+
this.name = "ServiceQuotaExceededException";
|
|
91
|
+
this.$fault = "client";
|
|
92
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
93
|
+
this.resourceId = opts.resourceId;
|
|
94
|
+
this.resourceType = opts.resourceType;
|
|
95
|
+
this.serviceCode = opts.serviceCode;
|
|
96
|
+
this.quotaCode = opts.quotaCode;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
100
|
+
class ThrottlingException extends GrafanaServiceException_1.GrafanaServiceException {
|
|
101
|
+
constructor(opts) {
|
|
102
|
+
super({
|
|
103
|
+
name: "ThrottlingException",
|
|
104
|
+
$fault: "client",
|
|
105
|
+
...opts,
|
|
106
|
+
});
|
|
107
|
+
this.name = "ThrottlingException";
|
|
108
|
+
this.$fault = "client";
|
|
109
|
+
this.$retryable = {};
|
|
110
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
111
|
+
this.serviceCode = opts.serviceCode;
|
|
112
|
+
this.quotaCode = opts.quotaCode;
|
|
113
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
exports.ThrottlingException = ThrottlingException;
|
|
117
|
+
var ValidationExceptionField;
|
|
118
|
+
(function (ValidationExceptionField) {
|
|
119
|
+
ValidationExceptionField.filterSensitiveLog = (obj) => ({
|
|
120
|
+
...obj,
|
|
121
|
+
});
|
|
122
|
+
})(ValidationExceptionField = exports.ValidationExceptionField || (exports.ValidationExceptionField = {}));
|
|
123
|
+
var ValidationExceptionReason;
|
|
124
|
+
(function (ValidationExceptionReason) {
|
|
125
|
+
ValidationExceptionReason["CANNOT_PARSE"] = "CANNOT_PARSE";
|
|
126
|
+
ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "FIELD_VALIDATION_FAILED";
|
|
127
|
+
ValidationExceptionReason["OTHER"] = "OTHER";
|
|
128
|
+
ValidationExceptionReason["UNKNOWN_OPERATION"] = "UNKNOWN_OPERATION";
|
|
129
|
+
})(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
|
|
130
|
+
class ValidationException extends GrafanaServiceException_1.GrafanaServiceException {
|
|
131
|
+
constructor(opts) {
|
|
132
|
+
super({
|
|
133
|
+
name: "ValidationException",
|
|
134
|
+
$fault: "client",
|
|
135
|
+
...opts,
|
|
136
|
+
});
|
|
137
|
+
this.name = "ValidationException";
|
|
138
|
+
this.$fault = "client";
|
|
139
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
140
|
+
this.reason = opts.reason;
|
|
141
|
+
this.fieldList = opts.fieldList;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
exports.ValidationException = ValidationException;
|
|
145
|
+
var DeleteWorkspaceApiKeyRequest;
|
|
146
|
+
(function (DeleteWorkspaceApiKeyRequest) {
|
|
147
|
+
DeleteWorkspaceApiKeyRequest.filterSensitiveLog = (obj) => ({
|
|
148
|
+
...obj,
|
|
149
|
+
});
|
|
150
|
+
})(DeleteWorkspaceApiKeyRequest = exports.DeleteWorkspaceApiKeyRequest || (exports.DeleteWorkspaceApiKeyRequest = {}));
|
|
151
|
+
var DeleteWorkspaceApiKeyResponse;
|
|
152
|
+
(function (DeleteWorkspaceApiKeyResponse) {
|
|
153
|
+
DeleteWorkspaceApiKeyResponse.filterSensitiveLog = (obj) => ({
|
|
154
|
+
...obj,
|
|
155
|
+
});
|
|
156
|
+
})(DeleteWorkspaceApiKeyResponse = exports.DeleteWorkspaceApiKeyResponse || (exports.DeleteWorkspaceApiKeyResponse = {}));
|
|
25
157
|
var AssertionAttributes;
|
|
26
158
|
(function (AssertionAttributes) {
|
|
27
159
|
AssertionAttributes.filterSensitiveLog = (obj) => ({
|
|
@@ -107,81 +239,6 @@ var AssociateLicenseResponse;
|
|
|
107
239
|
...(obj.workspace && { workspace: WorkspaceDescription.filterSensitiveLog(obj.workspace) }),
|
|
108
240
|
});
|
|
109
241
|
})(AssociateLicenseResponse = exports.AssociateLicenseResponse || (exports.AssociateLicenseResponse = {}));
|
|
110
|
-
class InternalServerException extends GrafanaServiceException_1.GrafanaServiceException {
|
|
111
|
-
constructor(opts) {
|
|
112
|
-
super({
|
|
113
|
-
name: "InternalServerException",
|
|
114
|
-
$fault: "server",
|
|
115
|
-
...opts,
|
|
116
|
-
});
|
|
117
|
-
this.name = "InternalServerException";
|
|
118
|
-
this.$fault = "server";
|
|
119
|
-
this.$retryable = {};
|
|
120
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
121
|
-
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
exports.InternalServerException = InternalServerException;
|
|
125
|
-
class ResourceNotFoundException extends GrafanaServiceException_1.GrafanaServiceException {
|
|
126
|
-
constructor(opts) {
|
|
127
|
-
super({
|
|
128
|
-
name: "ResourceNotFoundException",
|
|
129
|
-
$fault: "client",
|
|
130
|
-
...opts,
|
|
131
|
-
});
|
|
132
|
-
this.name = "ResourceNotFoundException";
|
|
133
|
-
this.$fault = "client";
|
|
134
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
135
|
-
this.resourceId = opts.resourceId;
|
|
136
|
-
this.resourceType = opts.resourceType;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
140
|
-
class ThrottlingException extends GrafanaServiceException_1.GrafanaServiceException {
|
|
141
|
-
constructor(opts) {
|
|
142
|
-
super({
|
|
143
|
-
name: "ThrottlingException",
|
|
144
|
-
$fault: "client",
|
|
145
|
-
...opts,
|
|
146
|
-
});
|
|
147
|
-
this.name = "ThrottlingException";
|
|
148
|
-
this.$fault = "client";
|
|
149
|
-
this.$retryable = {};
|
|
150
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
151
|
-
this.serviceCode = opts.serviceCode;
|
|
152
|
-
this.quotaCode = opts.quotaCode;
|
|
153
|
-
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
exports.ThrottlingException = ThrottlingException;
|
|
157
|
-
var ValidationExceptionField;
|
|
158
|
-
(function (ValidationExceptionField) {
|
|
159
|
-
ValidationExceptionField.filterSensitiveLog = (obj) => ({
|
|
160
|
-
...obj,
|
|
161
|
-
});
|
|
162
|
-
})(ValidationExceptionField = exports.ValidationExceptionField || (exports.ValidationExceptionField = {}));
|
|
163
|
-
var ValidationExceptionReason;
|
|
164
|
-
(function (ValidationExceptionReason) {
|
|
165
|
-
ValidationExceptionReason["CANNOT_PARSE"] = "CANNOT_PARSE";
|
|
166
|
-
ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "FIELD_VALIDATION_FAILED";
|
|
167
|
-
ValidationExceptionReason["OTHER"] = "OTHER";
|
|
168
|
-
ValidationExceptionReason["UNKNOWN_OPERATION"] = "UNKNOWN_OPERATION";
|
|
169
|
-
})(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
|
|
170
|
-
class ValidationException extends GrafanaServiceException_1.GrafanaServiceException {
|
|
171
|
-
constructor(opts) {
|
|
172
|
-
super({
|
|
173
|
-
name: "ValidationException",
|
|
174
|
-
$fault: "client",
|
|
175
|
-
...opts,
|
|
176
|
-
});
|
|
177
|
-
this.name = "ValidationException";
|
|
178
|
-
this.$fault = "client";
|
|
179
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
180
|
-
this.reason = opts.reason;
|
|
181
|
-
this.fieldList = opts.fieldList;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
exports.ValidationException = ValidationException;
|
|
185
242
|
var DescribeWorkspaceAuthenticationRequest;
|
|
186
243
|
(function (DescribeWorkspaceAuthenticationRequest) {
|
|
187
244
|
DescribeWorkspaceAuthenticationRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -246,21 +303,6 @@ var DescribeWorkspaceAuthenticationResponse;
|
|
|
246
303
|
...(obj.authentication && { authentication: AuthenticationDescription.filterSensitiveLog(obj.authentication) }),
|
|
247
304
|
});
|
|
248
305
|
})(DescribeWorkspaceAuthenticationResponse = exports.DescribeWorkspaceAuthenticationResponse || (exports.DescribeWorkspaceAuthenticationResponse = {}));
|
|
249
|
-
class ConflictException extends GrafanaServiceException_1.GrafanaServiceException {
|
|
250
|
-
constructor(opts) {
|
|
251
|
-
super({
|
|
252
|
-
name: "ConflictException",
|
|
253
|
-
$fault: "client",
|
|
254
|
-
...opts,
|
|
255
|
-
});
|
|
256
|
-
this.name = "ConflictException";
|
|
257
|
-
this.$fault = "client";
|
|
258
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
259
|
-
this.resourceId = opts.resourceId;
|
|
260
|
-
this.resourceType = opts.resourceType;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
exports.ConflictException = ConflictException;
|
|
264
306
|
var UpdateWorkspaceAuthenticationRequest;
|
|
265
307
|
(function (UpdateWorkspaceAuthenticationRequest) {
|
|
266
308
|
UpdateWorkspaceAuthenticationRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -315,6 +357,7 @@ var Role;
|
|
|
315
357
|
(function (Role) {
|
|
316
358
|
Role["ADMIN"] = "ADMIN";
|
|
317
359
|
Role["EDITOR"] = "EDITOR";
|
|
360
|
+
Role["VIEWER"] = "VIEWER";
|
|
318
361
|
})(Role = exports.Role || (exports.Role = {}));
|
|
319
362
|
var User;
|
|
320
363
|
(function (User) {
|
|
@@ -405,23 +448,6 @@ var CreateWorkspaceResponse;
|
|
|
405
448
|
...(obj.workspace && { workspace: WorkspaceDescription.filterSensitiveLog(obj.workspace) }),
|
|
406
449
|
});
|
|
407
450
|
})(CreateWorkspaceResponse = exports.CreateWorkspaceResponse || (exports.CreateWorkspaceResponse = {}));
|
|
408
|
-
class ServiceQuotaExceededException extends GrafanaServiceException_1.GrafanaServiceException {
|
|
409
|
-
constructor(opts) {
|
|
410
|
-
super({
|
|
411
|
-
name: "ServiceQuotaExceededException",
|
|
412
|
-
$fault: "client",
|
|
413
|
-
...opts,
|
|
414
|
-
});
|
|
415
|
-
this.name = "ServiceQuotaExceededException";
|
|
416
|
-
this.$fault = "client";
|
|
417
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
418
|
-
this.resourceId = opts.resourceId;
|
|
419
|
-
this.resourceType = opts.resourceType;
|
|
420
|
-
this.serviceCode = opts.serviceCode;
|
|
421
|
-
this.quotaCode = opts.quotaCode;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
425
451
|
var DeleteWorkspaceRequest;
|
|
426
452
|
(function (DeleteWorkspaceRequest) {
|
|
427
453
|
DeleteWorkspaceRequest.filterSensitiveLog = (obj) => ({
|