@aws-sdk/client-grafana 3.85.0 → 3.92.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 +27 -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 +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UpdateWorkspaceAuthenticationCommand = exports.deserializeAws_restJson1UpdateWorkspaceCommand = exports.deserializeAws_restJson1UpdatePermissionsCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListWorkspacesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListPermissionsCommand = exports.deserializeAws_restJson1DisassociateLicenseCommand = exports.deserializeAws_restJson1DescribeWorkspaceAuthenticationCommand = exports.deserializeAws_restJson1DescribeWorkspaceCommand = exports.deserializeAws_restJson1DeleteWorkspaceCommand = exports.deserializeAws_restJson1CreateWorkspaceCommand = exports.deserializeAws_restJson1AssociateLicenseCommand = exports.serializeAws_restJson1UpdateWorkspaceAuthenticationCommand = exports.serializeAws_restJson1UpdateWorkspaceCommand = exports.serializeAws_restJson1UpdatePermissionsCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListWorkspacesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListPermissionsCommand = exports.serializeAws_restJson1DisassociateLicenseCommand = exports.serializeAws_restJson1DescribeWorkspaceAuthenticationCommand = exports.serializeAws_restJson1DescribeWorkspaceCommand = exports.serializeAws_restJson1DeleteWorkspaceCommand = exports.serializeAws_restJson1CreateWorkspaceCommand = exports.serializeAws_restJson1AssociateLicenseCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1UpdateWorkspaceAuthenticationCommand = exports.deserializeAws_restJson1UpdateWorkspaceCommand = exports.deserializeAws_restJson1UpdatePermissionsCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListWorkspacesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListPermissionsCommand = exports.deserializeAws_restJson1DisassociateLicenseCommand = exports.deserializeAws_restJson1DescribeWorkspaceAuthenticationCommand = exports.deserializeAws_restJson1DescribeWorkspaceCommand = exports.deserializeAws_restJson1DeleteWorkspaceApiKeyCommand = exports.deserializeAws_restJson1DeleteWorkspaceCommand = exports.deserializeAws_restJson1CreateWorkspaceApiKeyCommand = exports.deserializeAws_restJson1CreateWorkspaceCommand = exports.deserializeAws_restJson1AssociateLicenseCommand = exports.serializeAws_restJson1UpdateWorkspaceAuthenticationCommand = exports.serializeAws_restJson1UpdateWorkspaceCommand = exports.serializeAws_restJson1UpdatePermissionsCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListWorkspacesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListPermissionsCommand = exports.serializeAws_restJson1DisassociateLicenseCommand = exports.serializeAws_restJson1DescribeWorkspaceAuthenticationCommand = exports.serializeAws_restJson1DescribeWorkspaceCommand = exports.serializeAws_restJson1DeleteWorkspaceApiKeyCommand = exports.serializeAws_restJson1DeleteWorkspaceCommand = exports.serializeAws_restJson1CreateWorkspaceApiKeyCommand = exports.serializeAws_restJson1CreateWorkspaceCommand = exports.serializeAws_restJson1AssociateLicenseCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
@@ -94,6 +94,39 @@ const serializeAws_restJson1CreateWorkspaceCommand = async (input, context) => {
|
|
|
94
94
|
});
|
|
95
95
|
};
|
|
96
96
|
exports.serializeAws_restJson1CreateWorkspaceCommand = serializeAws_restJson1CreateWorkspaceCommand;
|
|
97
|
+
const serializeAws_restJson1CreateWorkspaceApiKeyCommand = async (input, context) => {
|
|
98
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
99
|
+
const headers = {
|
|
100
|
+
"content-type": "application/json",
|
|
101
|
+
};
|
|
102
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/apikeys";
|
|
103
|
+
if (input.workspaceId !== undefined) {
|
|
104
|
+
const labelValue = input.workspaceId;
|
|
105
|
+
if (labelValue.length <= 0) {
|
|
106
|
+
throw new Error("Empty value provided for input HTTP label: workspaceId.");
|
|
107
|
+
}
|
|
108
|
+
resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
112
|
+
}
|
|
113
|
+
let body;
|
|
114
|
+
body = JSON.stringify({
|
|
115
|
+
...(input.keyName !== undefined && input.keyName !== null && { keyName: input.keyName }),
|
|
116
|
+
...(input.keyRole !== undefined && input.keyRole !== null && { keyRole: input.keyRole }),
|
|
117
|
+
...(input.secondsToLive !== undefined && input.secondsToLive !== null && { secondsToLive: input.secondsToLive }),
|
|
118
|
+
});
|
|
119
|
+
return new protocol_http_1.HttpRequest({
|
|
120
|
+
protocol,
|
|
121
|
+
hostname,
|
|
122
|
+
port,
|
|
123
|
+
method: "POST",
|
|
124
|
+
headers,
|
|
125
|
+
path: resolvedPath,
|
|
126
|
+
body,
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
exports.serializeAws_restJson1CreateWorkspaceApiKeyCommand = serializeAws_restJson1CreateWorkspaceApiKeyCommand;
|
|
97
130
|
const serializeAws_restJson1DeleteWorkspaceCommand = async (input, context) => {
|
|
98
131
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
99
132
|
const headers = {};
|
|
@@ -120,6 +153,43 @@ const serializeAws_restJson1DeleteWorkspaceCommand = async (input, context) => {
|
|
|
120
153
|
});
|
|
121
154
|
};
|
|
122
155
|
exports.serializeAws_restJson1DeleteWorkspaceCommand = serializeAws_restJson1DeleteWorkspaceCommand;
|
|
156
|
+
const serializeAws_restJson1DeleteWorkspaceApiKeyCommand = async (input, context) => {
|
|
157
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
158
|
+
const headers = {};
|
|
159
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
160
|
+
"/workspaces/{workspaceId}/apikeys/{keyName}";
|
|
161
|
+
if (input.keyName !== undefined) {
|
|
162
|
+
const labelValue = input.keyName;
|
|
163
|
+
if (labelValue.length <= 0) {
|
|
164
|
+
throw new Error("Empty value provided for input HTTP label: keyName.");
|
|
165
|
+
}
|
|
166
|
+
resolvedPath = resolvedPath.replace("{keyName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
throw new Error("No value provided for input HTTP label: keyName.");
|
|
170
|
+
}
|
|
171
|
+
if (input.workspaceId !== undefined) {
|
|
172
|
+
const labelValue = input.workspaceId;
|
|
173
|
+
if (labelValue.length <= 0) {
|
|
174
|
+
throw new Error("Empty value provided for input HTTP label: workspaceId.");
|
|
175
|
+
}
|
|
176
|
+
resolvedPath = resolvedPath.replace("{workspaceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
180
|
+
}
|
|
181
|
+
let body;
|
|
182
|
+
return new protocol_http_1.HttpRequest({
|
|
183
|
+
protocol,
|
|
184
|
+
hostname,
|
|
185
|
+
port,
|
|
186
|
+
method: "DELETE",
|
|
187
|
+
headers,
|
|
188
|
+
path: resolvedPath,
|
|
189
|
+
body,
|
|
190
|
+
});
|
|
191
|
+
};
|
|
192
|
+
exports.serializeAws_restJson1DeleteWorkspaceApiKeyCommand = serializeAws_restJson1DeleteWorkspaceApiKeyCommand;
|
|
123
193
|
const serializeAws_restJson1DescribeWorkspaceCommand = async (input, context) => {
|
|
124
194
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
125
195
|
const headers = {};
|
|
@@ -578,6 +648,69 @@ const deserializeAws_restJson1CreateWorkspaceCommandError = async (output, conte
|
|
|
578
648
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
579
649
|
}
|
|
580
650
|
};
|
|
651
|
+
const deserializeAws_restJson1CreateWorkspaceApiKeyCommand = async (output, context) => {
|
|
652
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
653
|
+
return deserializeAws_restJson1CreateWorkspaceApiKeyCommandError(output, context);
|
|
654
|
+
}
|
|
655
|
+
const contents = {
|
|
656
|
+
$metadata: deserializeMetadata(output),
|
|
657
|
+
key: undefined,
|
|
658
|
+
keyName: undefined,
|
|
659
|
+
workspaceId: undefined,
|
|
660
|
+
};
|
|
661
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
662
|
+
if (data.key !== undefined && data.key !== null) {
|
|
663
|
+
contents.key = (0, smithy_client_1.expectString)(data.key);
|
|
664
|
+
}
|
|
665
|
+
if (data.keyName !== undefined && data.keyName !== null) {
|
|
666
|
+
contents.keyName = (0, smithy_client_1.expectString)(data.keyName);
|
|
667
|
+
}
|
|
668
|
+
if (data.workspaceId !== undefined && data.workspaceId !== null) {
|
|
669
|
+
contents.workspaceId = (0, smithy_client_1.expectString)(data.workspaceId);
|
|
670
|
+
}
|
|
671
|
+
return Promise.resolve(contents);
|
|
672
|
+
};
|
|
673
|
+
exports.deserializeAws_restJson1CreateWorkspaceApiKeyCommand = deserializeAws_restJson1CreateWorkspaceApiKeyCommand;
|
|
674
|
+
const deserializeAws_restJson1CreateWorkspaceApiKeyCommandError = async (output, context) => {
|
|
675
|
+
const parsedOutput = {
|
|
676
|
+
...output,
|
|
677
|
+
body: await parseBody(output.body, context),
|
|
678
|
+
};
|
|
679
|
+
let response;
|
|
680
|
+
let errorCode = "UnknownError";
|
|
681
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
682
|
+
switch (errorCode) {
|
|
683
|
+
case "AccessDeniedException":
|
|
684
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
685
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
686
|
+
case "ConflictException":
|
|
687
|
+
case "com.amazonaws.grafana#ConflictException":
|
|
688
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
689
|
+
case "InternalServerException":
|
|
690
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
691
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
692
|
+
case "ResourceNotFoundException":
|
|
693
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
694
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
695
|
+
case "ServiceQuotaExceededException":
|
|
696
|
+
case "com.amazonaws.grafana#ServiceQuotaExceededException":
|
|
697
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
698
|
+
case "ThrottlingException":
|
|
699
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
700
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
701
|
+
case "ValidationException":
|
|
702
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
703
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
704
|
+
default:
|
|
705
|
+
const parsedBody = parsedOutput.body;
|
|
706
|
+
response = new GrafanaServiceException_1.GrafanaServiceException({
|
|
707
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
708
|
+
$fault: "client",
|
|
709
|
+
$metadata: deserializeMetadata(output),
|
|
710
|
+
});
|
|
711
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
712
|
+
}
|
|
713
|
+
};
|
|
581
714
|
const deserializeAws_restJson1DeleteWorkspaceCommand = async (output, context) => {
|
|
582
715
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
583
716
|
return deserializeAws_restJson1DeleteWorkspaceCommandError(output, context);
|
|
@@ -630,6 +763,62 @@ const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, conte
|
|
|
630
763
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
631
764
|
}
|
|
632
765
|
};
|
|
766
|
+
const deserializeAws_restJson1DeleteWorkspaceApiKeyCommand = async (output, context) => {
|
|
767
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
768
|
+
return deserializeAws_restJson1DeleteWorkspaceApiKeyCommandError(output, context);
|
|
769
|
+
}
|
|
770
|
+
const contents = {
|
|
771
|
+
$metadata: deserializeMetadata(output),
|
|
772
|
+
keyName: undefined,
|
|
773
|
+
workspaceId: undefined,
|
|
774
|
+
};
|
|
775
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
776
|
+
if (data.keyName !== undefined && data.keyName !== null) {
|
|
777
|
+
contents.keyName = (0, smithy_client_1.expectString)(data.keyName);
|
|
778
|
+
}
|
|
779
|
+
if (data.workspaceId !== undefined && data.workspaceId !== null) {
|
|
780
|
+
contents.workspaceId = (0, smithy_client_1.expectString)(data.workspaceId);
|
|
781
|
+
}
|
|
782
|
+
return Promise.resolve(contents);
|
|
783
|
+
};
|
|
784
|
+
exports.deserializeAws_restJson1DeleteWorkspaceApiKeyCommand = deserializeAws_restJson1DeleteWorkspaceApiKeyCommand;
|
|
785
|
+
const deserializeAws_restJson1DeleteWorkspaceApiKeyCommandError = async (output, context) => {
|
|
786
|
+
const parsedOutput = {
|
|
787
|
+
...output,
|
|
788
|
+
body: await parseBody(output.body, context),
|
|
789
|
+
};
|
|
790
|
+
let response;
|
|
791
|
+
let errorCode = "UnknownError";
|
|
792
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
793
|
+
switch (errorCode) {
|
|
794
|
+
case "AccessDeniedException":
|
|
795
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
796
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
797
|
+
case "ConflictException":
|
|
798
|
+
case "com.amazonaws.grafana#ConflictException":
|
|
799
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
800
|
+
case "InternalServerException":
|
|
801
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
802
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
803
|
+
case "ResourceNotFoundException":
|
|
804
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
805
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
806
|
+
case "ThrottlingException":
|
|
807
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
808
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
809
|
+
case "ValidationException":
|
|
810
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
811
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
812
|
+
default:
|
|
813
|
+
const parsedBody = parsedOutput.body;
|
|
814
|
+
response = new GrafanaServiceException_1.GrafanaServiceException({
|
|
815
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
816
|
+
$fault: "client",
|
|
817
|
+
$metadata: deserializeMetadata(output),
|
|
818
|
+
});
|
|
819
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
820
|
+
}
|
|
821
|
+
};
|
|
633
822
|
const deserializeAws_restJson1DescribeWorkspaceCommand = async (output, context) => {
|
|
634
823
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
635
824
|
return deserializeAws_restJson1DescribeWorkspaceCommandError(output, context);
|
package/dist-es/Grafana.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { AssociateLicenseCommand, } from "./commands/AssociateLicenseCommand";
|
|
3
|
+
import { CreateWorkspaceApiKeyCommand, } from "./commands/CreateWorkspaceApiKeyCommand";
|
|
3
4
|
import { CreateWorkspaceCommand, } from "./commands/CreateWorkspaceCommand";
|
|
5
|
+
import { DeleteWorkspaceApiKeyCommand, } from "./commands/DeleteWorkspaceApiKeyCommand";
|
|
4
6
|
import { DeleteWorkspaceCommand, } from "./commands/DeleteWorkspaceCommand";
|
|
5
7
|
import { DescribeWorkspaceAuthenticationCommand, } from "./commands/DescribeWorkspaceAuthenticationCommand";
|
|
6
8
|
import { DescribeWorkspaceCommand, } from "./commands/DescribeWorkspaceCommand";
|
|
@@ -47,6 +49,20 @@ var Grafana = (function (_super) {
|
|
|
47
49
|
return this.send(command, optionsOrCb);
|
|
48
50
|
}
|
|
49
51
|
};
|
|
52
|
+
Grafana.prototype.createWorkspaceApiKey = function (args, optionsOrCb, cb) {
|
|
53
|
+
var command = new CreateWorkspaceApiKeyCommand(args);
|
|
54
|
+
if (typeof optionsOrCb === "function") {
|
|
55
|
+
this.send(command, optionsOrCb);
|
|
56
|
+
}
|
|
57
|
+
else if (typeof cb === "function") {
|
|
58
|
+
if (typeof optionsOrCb !== "object")
|
|
59
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
60
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
return this.send(command, optionsOrCb);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
50
66
|
Grafana.prototype.deleteWorkspace = function (args, optionsOrCb, cb) {
|
|
51
67
|
var command = new DeleteWorkspaceCommand(args);
|
|
52
68
|
if (typeof optionsOrCb === "function") {
|
|
@@ -61,6 +77,20 @@ var Grafana = (function (_super) {
|
|
|
61
77
|
return this.send(command, optionsOrCb);
|
|
62
78
|
}
|
|
63
79
|
};
|
|
80
|
+
Grafana.prototype.deleteWorkspaceApiKey = function (args, optionsOrCb, cb) {
|
|
81
|
+
var command = new DeleteWorkspaceApiKeyCommand(args);
|
|
82
|
+
if (typeof optionsOrCb === "function") {
|
|
83
|
+
this.send(command, optionsOrCb);
|
|
84
|
+
}
|
|
85
|
+
else if (typeof cb === "function") {
|
|
86
|
+
if (typeof optionsOrCb !== "object")
|
|
87
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
88
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
return this.send(command, optionsOrCb);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
64
94
|
Grafana.prototype.describeWorkspace = function (args, optionsOrCb, cb) {
|
|
65
95
|
var command = new DescribeWorkspaceCommand(args);
|
|
66
96
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateWorkspaceApiKeyRequest, CreateWorkspaceApiKeyResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateWorkspaceApiKeyCommand, serializeAws_restJson1CreateWorkspaceApiKeyCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var CreateWorkspaceApiKeyCommand = (function (_super) {
|
|
7
|
+
__extends(CreateWorkspaceApiKeyCommand, _super);
|
|
8
|
+
function CreateWorkspaceApiKeyCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateWorkspaceApiKeyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "GrafanaClient";
|
|
18
|
+
var commandName = "CreateWorkspaceApiKeyCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateWorkspaceApiKeyRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateWorkspaceApiKeyResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateWorkspaceApiKeyCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1CreateWorkspaceApiKeyCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateWorkspaceApiKeyCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1CreateWorkspaceApiKeyCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateWorkspaceApiKeyCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateWorkspaceApiKeyCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteWorkspaceApiKeyRequest, DeleteWorkspaceApiKeyResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteWorkspaceApiKeyCommand, serializeAws_restJson1DeleteWorkspaceApiKeyCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DeleteWorkspaceApiKeyCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteWorkspaceApiKeyCommand, _super);
|
|
8
|
+
function DeleteWorkspaceApiKeyCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeleteWorkspaceApiKeyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "GrafanaClient";
|
|
18
|
+
var commandName = "DeleteWorkspaceApiKeyCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeleteWorkspaceApiKeyRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteWorkspaceApiKeyResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteWorkspaceApiKeyCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DeleteWorkspaceApiKeyCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeleteWorkspaceApiKeyCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DeleteWorkspaceApiKeyCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeleteWorkspaceApiKeyCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteWorkspaceApiKeyCommand };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./AssociateLicenseCommand";
|
|
2
|
+
export * from "./CreateWorkspaceApiKeyCommand";
|
|
2
3
|
export * from "./CreateWorkspaceCommand";
|
|
4
|
+
export * from "./DeleteWorkspaceApiKeyCommand";
|
|
3
5
|
export * from "./DeleteWorkspaceCommand";
|
|
4
6
|
export * from "./DescribeWorkspaceAuthenticationCommand";
|
|
5
7
|
export * from "./DescribeWorkspaceCommand";
|
|
@@ -18,75 +18,28 @@ export var AccountAccessType;
|
|
|
18
18
|
AccountAccessType["CURRENT_ACCOUNT"] = "CURRENT_ACCOUNT";
|
|
19
19
|
AccountAccessType["ORGANIZATION"] = "ORGANIZATION";
|
|
20
20
|
})(AccountAccessType || (AccountAccessType = {}));
|
|
21
|
-
|
|
22
|
-
(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
export
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
})(
|
|
39
|
-
export var
|
|
40
|
-
(function (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
})(SamlConfigurationStatus || (SamlConfigurationStatus = {}));
|
|
44
|
-
export var AuthenticationSummary;
|
|
45
|
-
(function (AuthenticationSummary) {
|
|
46
|
-
AuthenticationSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
47
|
-
})(AuthenticationSummary || (AuthenticationSummary = {}));
|
|
48
|
-
export var DataSourceType;
|
|
49
|
-
(function (DataSourceType) {
|
|
50
|
-
DataSourceType["AMAZON_OPENSEARCH_SERVICE"] = "AMAZON_OPENSEARCH_SERVICE";
|
|
51
|
-
DataSourceType["ATHENA"] = "ATHENA";
|
|
52
|
-
DataSourceType["CLOUDWATCH"] = "CLOUDWATCH";
|
|
53
|
-
DataSourceType["PROMETHEUS"] = "PROMETHEUS";
|
|
54
|
-
DataSourceType["REDSHIFT"] = "REDSHIFT";
|
|
55
|
-
DataSourceType["SITEWISE"] = "SITEWISE";
|
|
56
|
-
DataSourceType["TIMESTREAM"] = "TIMESTREAM";
|
|
57
|
-
DataSourceType["XRAY"] = "XRAY";
|
|
58
|
-
})(DataSourceType || (DataSourceType = {}));
|
|
59
|
-
export var NotificationDestinationType;
|
|
60
|
-
(function (NotificationDestinationType) {
|
|
61
|
-
NotificationDestinationType["SNS"] = "SNS";
|
|
62
|
-
})(NotificationDestinationType || (NotificationDestinationType = {}));
|
|
63
|
-
export var PermissionType;
|
|
64
|
-
(function (PermissionType) {
|
|
65
|
-
PermissionType["CUSTOMER_MANAGED"] = "CUSTOMER_MANAGED";
|
|
66
|
-
PermissionType["SERVICE_MANAGED"] = "SERVICE_MANAGED";
|
|
67
|
-
})(PermissionType || (PermissionType = {}));
|
|
68
|
-
export var WorkspaceStatus;
|
|
69
|
-
(function (WorkspaceStatus) {
|
|
70
|
-
WorkspaceStatus["ACTIVE"] = "ACTIVE";
|
|
71
|
-
WorkspaceStatus["CREATING"] = "CREATING";
|
|
72
|
-
WorkspaceStatus["CREATION_FAILED"] = "CREATION_FAILED";
|
|
73
|
-
WorkspaceStatus["DELETING"] = "DELETING";
|
|
74
|
-
WorkspaceStatus["DELETION_FAILED"] = "DELETION_FAILED";
|
|
75
|
-
WorkspaceStatus["FAILED"] = "FAILED";
|
|
76
|
-
WorkspaceStatus["LICENSE_REMOVAL_FAILED"] = "LICENSE_REMOVAL_FAILED";
|
|
77
|
-
WorkspaceStatus["UPDATE_FAILED"] = "UPDATE_FAILED";
|
|
78
|
-
WorkspaceStatus["UPDATING"] = "UPDATING";
|
|
79
|
-
WorkspaceStatus["UPGRADE_FAILED"] = "UPGRADE_FAILED";
|
|
80
|
-
WorkspaceStatus["UPGRADING"] = "UPGRADING";
|
|
81
|
-
})(WorkspaceStatus || (WorkspaceStatus = {}));
|
|
82
|
-
export var WorkspaceDescription;
|
|
83
|
-
(function (WorkspaceDescription) {
|
|
84
|
-
WorkspaceDescription.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign(__assign({}, obj), (obj.description && { description: SENSITIVE_STRING })), (obj.name && { name: SENSITIVE_STRING })), (obj.organizationRoleName && { organizationRoleName: SENSITIVE_STRING })), (obj.organizationalUnits && { organizationalUnits: SENSITIVE_STRING })), (obj.workspaceRoleArn && { workspaceRoleArn: SENSITIVE_STRING }))); };
|
|
85
|
-
})(WorkspaceDescription || (WorkspaceDescription = {}));
|
|
86
|
-
export var AssociateLicenseResponse;
|
|
87
|
-
(function (AssociateLicenseResponse) {
|
|
88
|
-
AssociateLicenseResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.workspace && { workspace: WorkspaceDescription.filterSensitiveLog(obj.workspace) }))); };
|
|
89
|
-
})(AssociateLicenseResponse || (AssociateLicenseResponse = {}));
|
|
21
|
+
var ConflictException = (function (_super) {
|
|
22
|
+
__extends(ConflictException, _super);
|
|
23
|
+
function ConflictException(opts) {
|
|
24
|
+
var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
|
|
25
|
+
_this.name = "ConflictException";
|
|
26
|
+
_this.$fault = "client";
|
|
27
|
+
Object.setPrototypeOf(_this, ConflictException.prototype);
|
|
28
|
+
_this.resourceId = opts.resourceId;
|
|
29
|
+
_this.resourceType = opts.resourceType;
|
|
30
|
+
return _this;
|
|
31
|
+
}
|
|
32
|
+
return ConflictException;
|
|
33
|
+
}(__BaseException));
|
|
34
|
+
export { ConflictException };
|
|
35
|
+
export var CreateWorkspaceApiKeyRequest;
|
|
36
|
+
(function (CreateWorkspaceApiKeyRequest) {
|
|
37
|
+
CreateWorkspaceApiKeyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
38
|
+
})(CreateWorkspaceApiKeyRequest || (CreateWorkspaceApiKeyRequest = {}));
|
|
39
|
+
export var CreateWorkspaceApiKeyResponse;
|
|
40
|
+
(function (CreateWorkspaceApiKeyResponse) {
|
|
41
|
+
CreateWorkspaceApiKeyResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.key && { key: SENSITIVE_STRING }))); };
|
|
42
|
+
})(CreateWorkspaceApiKeyResponse || (CreateWorkspaceApiKeyResponse = {}));
|
|
90
43
|
var InternalServerException = (function (_super) {
|
|
91
44
|
__extends(InternalServerException, _super);
|
|
92
45
|
function InternalServerException(opts) {
|
|
@@ -115,6 +68,22 @@ var ResourceNotFoundException = (function (_super) {
|
|
|
115
68
|
return ResourceNotFoundException;
|
|
116
69
|
}(__BaseException));
|
|
117
70
|
export { ResourceNotFoundException };
|
|
71
|
+
var ServiceQuotaExceededException = (function (_super) {
|
|
72
|
+
__extends(ServiceQuotaExceededException, _super);
|
|
73
|
+
function ServiceQuotaExceededException(opts) {
|
|
74
|
+
var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
|
|
75
|
+
_this.name = "ServiceQuotaExceededException";
|
|
76
|
+
_this.$fault = "client";
|
|
77
|
+
Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
|
|
78
|
+
_this.resourceId = opts.resourceId;
|
|
79
|
+
_this.resourceType = opts.resourceType;
|
|
80
|
+
_this.serviceCode = opts.serviceCode;
|
|
81
|
+
_this.quotaCode = opts.quotaCode;
|
|
82
|
+
return _this;
|
|
83
|
+
}
|
|
84
|
+
return ServiceQuotaExceededException;
|
|
85
|
+
}(__BaseException));
|
|
86
|
+
export { ServiceQuotaExceededException };
|
|
118
87
|
var ThrottlingException = (function (_super) {
|
|
119
88
|
__extends(ThrottlingException, _super);
|
|
120
89
|
function ThrottlingException(opts) {
|
|
@@ -156,6 +125,83 @@ var ValidationException = (function (_super) {
|
|
|
156
125
|
return ValidationException;
|
|
157
126
|
}(__BaseException));
|
|
158
127
|
export { ValidationException };
|
|
128
|
+
export var DeleteWorkspaceApiKeyRequest;
|
|
129
|
+
(function (DeleteWorkspaceApiKeyRequest) {
|
|
130
|
+
DeleteWorkspaceApiKeyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
131
|
+
})(DeleteWorkspaceApiKeyRequest || (DeleteWorkspaceApiKeyRequest = {}));
|
|
132
|
+
export var DeleteWorkspaceApiKeyResponse;
|
|
133
|
+
(function (DeleteWorkspaceApiKeyResponse) {
|
|
134
|
+
DeleteWorkspaceApiKeyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
135
|
+
})(DeleteWorkspaceApiKeyResponse || (DeleteWorkspaceApiKeyResponse = {}));
|
|
136
|
+
export var AssertionAttributes;
|
|
137
|
+
(function (AssertionAttributes) {
|
|
138
|
+
AssertionAttributes.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
139
|
+
})(AssertionAttributes || (AssertionAttributes = {}));
|
|
140
|
+
export var LicenseType;
|
|
141
|
+
(function (LicenseType) {
|
|
142
|
+
LicenseType["ENTERPRISE"] = "ENTERPRISE";
|
|
143
|
+
LicenseType["ENTERPRISE_FREE_TRIAL"] = "ENTERPRISE_FREE_TRIAL";
|
|
144
|
+
})(LicenseType || (LicenseType = {}));
|
|
145
|
+
export var AssociateLicenseRequest;
|
|
146
|
+
(function (AssociateLicenseRequest) {
|
|
147
|
+
AssociateLicenseRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
148
|
+
})(AssociateLicenseRequest || (AssociateLicenseRequest = {}));
|
|
149
|
+
export var AuthenticationProviderTypes;
|
|
150
|
+
(function (AuthenticationProviderTypes) {
|
|
151
|
+
AuthenticationProviderTypes["AWS_SSO"] = "AWS_SSO";
|
|
152
|
+
AuthenticationProviderTypes["SAML"] = "SAML";
|
|
153
|
+
})(AuthenticationProviderTypes || (AuthenticationProviderTypes = {}));
|
|
154
|
+
export var SamlConfigurationStatus;
|
|
155
|
+
(function (SamlConfigurationStatus) {
|
|
156
|
+
SamlConfigurationStatus["CONFIGURED"] = "CONFIGURED";
|
|
157
|
+
SamlConfigurationStatus["NOT_CONFIGURED"] = "NOT_CONFIGURED";
|
|
158
|
+
})(SamlConfigurationStatus || (SamlConfigurationStatus = {}));
|
|
159
|
+
export var AuthenticationSummary;
|
|
160
|
+
(function (AuthenticationSummary) {
|
|
161
|
+
AuthenticationSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
162
|
+
})(AuthenticationSummary || (AuthenticationSummary = {}));
|
|
163
|
+
export var DataSourceType;
|
|
164
|
+
(function (DataSourceType) {
|
|
165
|
+
DataSourceType["AMAZON_OPENSEARCH_SERVICE"] = "AMAZON_OPENSEARCH_SERVICE";
|
|
166
|
+
DataSourceType["ATHENA"] = "ATHENA";
|
|
167
|
+
DataSourceType["CLOUDWATCH"] = "CLOUDWATCH";
|
|
168
|
+
DataSourceType["PROMETHEUS"] = "PROMETHEUS";
|
|
169
|
+
DataSourceType["REDSHIFT"] = "REDSHIFT";
|
|
170
|
+
DataSourceType["SITEWISE"] = "SITEWISE";
|
|
171
|
+
DataSourceType["TIMESTREAM"] = "TIMESTREAM";
|
|
172
|
+
DataSourceType["XRAY"] = "XRAY";
|
|
173
|
+
})(DataSourceType || (DataSourceType = {}));
|
|
174
|
+
export var NotificationDestinationType;
|
|
175
|
+
(function (NotificationDestinationType) {
|
|
176
|
+
NotificationDestinationType["SNS"] = "SNS";
|
|
177
|
+
})(NotificationDestinationType || (NotificationDestinationType = {}));
|
|
178
|
+
export var PermissionType;
|
|
179
|
+
(function (PermissionType) {
|
|
180
|
+
PermissionType["CUSTOMER_MANAGED"] = "CUSTOMER_MANAGED";
|
|
181
|
+
PermissionType["SERVICE_MANAGED"] = "SERVICE_MANAGED";
|
|
182
|
+
})(PermissionType || (PermissionType = {}));
|
|
183
|
+
export var WorkspaceStatus;
|
|
184
|
+
(function (WorkspaceStatus) {
|
|
185
|
+
WorkspaceStatus["ACTIVE"] = "ACTIVE";
|
|
186
|
+
WorkspaceStatus["CREATING"] = "CREATING";
|
|
187
|
+
WorkspaceStatus["CREATION_FAILED"] = "CREATION_FAILED";
|
|
188
|
+
WorkspaceStatus["DELETING"] = "DELETING";
|
|
189
|
+
WorkspaceStatus["DELETION_FAILED"] = "DELETION_FAILED";
|
|
190
|
+
WorkspaceStatus["FAILED"] = "FAILED";
|
|
191
|
+
WorkspaceStatus["LICENSE_REMOVAL_FAILED"] = "LICENSE_REMOVAL_FAILED";
|
|
192
|
+
WorkspaceStatus["UPDATE_FAILED"] = "UPDATE_FAILED";
|
|
193
|
+
WorkspaceStatus["UPDATING"] = "UPDATING";
|
|
194
|
+
WorkspaceStatus["UPGRADE_FAILED"] = "UPGRADE_FAILED";
|
|
195
|
+
WorkspaceStatus["UPGRADING"] = "UPGRADING";
|
|
196
|
+
})(WorkspaceStatus || (WorkspaceStatus = {}));
|
|
197
|
+
export var WorkspaceDescription;
|
|
198
|
+
(function (WorkspaceDescription) {
|
|
199
|
+
WorkspaceDescription.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign(__assign({}, obj), (obj.description && { description: SENSITIVE_STRING })), (obj.name && { name: SENSITIVE_STRING })), (obj.organizationRoleName && { organizationRoleName: SENSITIVE_STRING })), (obj.organizationalUnits && { organizationalUnits: SENSITIVE_STRING })), (obj.workspaceRoleArn && { workspaceRoleArn: SENSITIVE_STRING }))); };
|
|
200
|
+
})(WorkspaceDescription || (WorkspaceDescription = {}));
|
|
201
|
+
export var AssociateLicenseResponse;
|
|
202
|
+
(function (AssociateLicenseResponse) {
|
|
203
|
+
AssociateLicenseResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.workspace && { workspace: WorkspaceDescription.filterSensitiveLog(obj.workspace) }))); };
|
|
204
|
+
})(AssociateLicenseResponse || (AssociateLicenseResponse = {}));
|
|
159
205
|
export var DescribeWorkspaceAuthenticationRequest;
|
|
160
206
|
(function (DescribeWorkspaceAuthenticationRequest) {
|
|
161
207
|
DescribeWorkspaceAuthenticationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -203,20 +249,6 @@ export var DescribeWorkspaceAuthenticationResponse;
|
|
|
203
249
|
(function (DescribeWorkspaceAuthenticationResponse) {
|
|
204
250
|
DescribeWorkspaceAuthenticationResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.authentication && { authentication: AuthenticationDescription.filterSensitiveLog(obj.authentication) }))); };
|
|
205
251
|
})(DescribeWorkspaceAuthenticationResponse || (DescribeWorkspaceAuthenticationResponse = {}));
|
|
206
|
-
var ConflictException = (function (_super) {
|
|
207
|
-
__extends(ConflictException, _super);
|
|
208
|
-
function ConflictException(opts) {
|
|
209
|
-
var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
|
|
210
|
-
_this.name = "ConflictException";
|
|
211
|
-
_this.$fault = "client";
|
|
212
|
-
Object.setPrototypeOf(_this, ConflictException.prototype);
|
|
213
|
-
_this.resourceId = opts.resourceId;
|
|
214
|
-
_this.resourceType = opts.resourceType;
|
|
215
|
-
return _this;
|
|
216
|
-
}
|
|
217
|
-
return ConflictException;
|
|
218
|
-
}(__BaseException));
|
|
219
|
-
export { ConflictException };
|
|
220
252
|
export var UpdateWorkspaceAuthenticationRequest;
|
|
221
253
|
(function (UpdateWorkspaceAuthenticationRequest) {
|
|
222
254
|
UpdateWorkspaceAuthenticationRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.samlConfiguration && { samlConfiguration: SamlConfiguration.filterSensitiveLog(obj.samlConfiguration) }))); };
|
|
@@ -254,6 +286,7 @@ export var Role;
|
|
|
254
286
|
(function (Role) {
|
|
255
287
|
Role["ADMIN"] = "ADMIN";
|
|
256
288
|
Role["EDITOR"] = "EDITOR";
|
|
289
|
+
Role["VIEWER"] = "VIEWER";
|
|
257
290
|
})(Role || (Role = {}));
|
|
258
291
|
export var User;
|
|
259
292
|
(function (User) {
|
|
@@ -312,22 +345,6 @@ export var CreateWorkspaceResponse;
|
|
|
312
345
|
(function (CreateWorkspaceResponse) {
|
|
313
346
|
CreateWorkspaceResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.workspace && { workspace: WorkspaceDescription.filterSensitiveLog(obj.workspace) }))); };
|
|
314
347
|
})(CreateWorkspaceResponse || (CreateWorkspaceResponse = {}));
|
|
315
|
-
var ServiceQuotaExceededException = (function (_super) {
|
|
316
|
-
__extends(ServiceQuotaExceededException, _super);
|
|
317
|
-
function ServiceQuotaExceededException(opts) {
|
|
318
|
-
var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
|
|
319
|
-
_this.name = "ServiceQuotaExceededException";
|
|
320
|
-
_this.$fault = "client";
|
|
321
|
-
Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
|
|
322
|
-
_this.resourceId = opts.resourceId;
|
|
323
|
-
_this.resourceType = opts.resourceType;
|
|
324
|
-
_this.serviceCode = opts.serviceCode;
|
|
325
|
-
_this.quotaCode = opts.quotaCode;
|
|
326
|
-
return _this;
|
|
327
|
-
}
|
|
328
|
-
return ServiceQuotaExceededException;
|
|
329
|
-
}(__BaseException));
|
|
330
|
-
export { ServiceQuotaExceededException };
|
|
331
348
|
export var DeleteWorkspaceRequest;
|
|
332
349
|
(function (DeleteWorkspaceRequest) {
|
|
333
350
|
DeleteWorkspaceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|