@aws-sdk/client-grafana 3.58.0 → 3.72.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/README.md +2 -2
- package/dist-cjs/Grafana.js +45 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +40 -2
- package/dist-cjs/protocols/Aws_restJson1.js +256 -1
- package/dist-es/Grafana.js +45 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +26 -0
- package/dist-es/protocols/Aws_restJson1.js +331 -3
- package/dist-types/Grafana.d.ts +28 -0
- package/dist-types/GrafanaClient.d.ts +5 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
- package/dist-types/commands/TagResourceCommand.d.ts +39 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +112 -8
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/Grafana.d.ts +15 -0
- package/dist-types/ts3.4/GrafanaClient.d.ts +5 -2
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +68 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +6 -6
package/dist-es/Grafana.js
CHANGED
|
@@ -6,7 +6,10 @@ import { DescribeWorkspaceAuthenticationCommand, } from "./commands/DescribeWork
|
|
|
6
6
|
import { DescribeWorkspaceCommand, } from "./commands/DescribeWorkspaceCommand";
|
|
7
7
|
import { DisassociateLicenseCommand, } from "./commands/DisassociateLicenseCommand";
|
|
8
8
|
import { ListPermissionsCommand, } from "./commands/ListPermissionsCommand";
|
|
9
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
9
10
|
import { ListWorkspacesCommand, } from "./commands/ListWorkspacesCommand";
|
|
11
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
12
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
10
13
|
import { UpdatePermissionsCommand, } from "./commands/UpdatePermissionsCommand";
|
|
11
14
|
import { UpdateWorkspaceAuthenticationCommand, } from "./commands/UpdateWorkspaceAuthenticationCommand";
|
|
12
15
|
import { UpdateWorkspaceCommand, } from "./commands/UpdateWorkspaceCommand";
|
|
@@ -114,6 +117,20 @@ var Grafana = (function (_super) {
|
|
|
114
117
|
return this.send(command, optionsOrCb);
|
|
115
118
|
}
|
|
116
119
|
};
|
|
120
|
+
Grafana.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
121
|
+
var command = new ListTagsForResourceCommand(args);
|
|
122
|
+
if (typeof optionsOrCb === "function") {
|
|
123
|
+
this.send(command, optionsOrCb);
|
|
124
|
+
}
|
|
125
|
+
else if (typeof cb === "function") {
|
|
126
|
+
if (typeof optionsOrCb !== "object")
|
|
127
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
128
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
return this.send(command, optionsOrCb);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
117
134
|
Grafana.prototype.listWorkspaces = function (args, optionsOrCb, cb) {
|
|
118
135
|
var command = new ListWorkspacesCommand(args);
|
|
119
136
|
if (typeof optionsOrCb === "function") {
|
|
@@ -128,6 +145,34 @@ var Grafana = (function (_super) {
|
|
|
128
145
|
return this.send(command, optionsOrCb);
|
|
129
146
|
}
|
|
130
147
|
};
|
|
148
|
+
Grafana.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
149
|
+
var command = new TagResourceCommand(args);
|
|
150
|
+
if (typeof optionsOrCb === "function") {
|
|
151
|
+
this.send(command, optionsOrCb);
|
|
152
|
+
}
|
|
153
|
+
else if (typeof cb === "function") {
|
|
154
|
+
if (typeof optionsOrCb !== "object")
|
|
155
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
156
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
return this.send(command, optionsOrCb);
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
Grafana.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
163
|
+
var command = new UntagResourceCommand(args);
|
|
164
|
+
if (typeof optionsOrCb === "function") {
|
|
165
|
+
this.send(command, optionsOrCb);
|
|
166
|
+
}
|
|
167
|
+
else if (typeof cb === "function") {
|
|
168
|
+
if (typeof optionsOrCb !== "object")
|
|
169
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
170
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
return this.send(command, optionsOrCb);
|
|
174
|
+
}
|
|
175
|
+
};
|
|
131
176
|
Grafana.prototype.updatePermissions = function (args, optionsOrCb, cb) {
|
|
132
177
|
var command = new UpdatePermissionsCommand(args);
|
|
133
178
|
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 { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListTagsForResourceCommand = (function (_super) {
|
|
7
|
+
__extends(ListTagsForResourceCommand, _super);
|
|
8
|
+
function ListTagsForResourceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListTagsForResourceCommand.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 = "ListTagsForResourceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListTagsForResourceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListTagsForResourceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListTagsForResourceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListTagsForResourceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListTagsForResourceCommand };
|
|
@@ -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 { TagResourceRequest, TagResourceResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var TagResourceCommand = (function (_super) {
|
|
7
|
+
__extends(TagResourceCommand, _super);
|
|
8
|
+
function TagResourceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
TagResourceCommand.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 = "TagResourceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: TagResourceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
TagResourceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1TagResourceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
TagResourceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1TagResourceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return TagResourceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { TagResourceCommand };
|
|
@@ -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 { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var UntagResourceCommand = (function (_super) {
|
|
7
|
+
__extends(UntagResourceCommand, _super);
|
|
8
|
+
function UntagResourceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UntagResourceCommand.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 = "UntagResourceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UntagResourceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UntagResourceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UntagResourceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1UntagResourceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UntagResourceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1UntagResourceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UntagResourceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UntagResourceCommand };
|
|
@@ -5,7 +5,10 @@ export * from "./DescribeWorkspaceAuthenticationCommand";
|
|
|
5
5
|
export * from "./DescribeWorkspaceCommand";
|
|
6
6
|
export * from "./DisassociateLicenseCommand";
|
|
7
7
|
export * from "./ListPermissionsCommand";
|
|
8
|
+
export * from "./ListTagsForResourceCommand";
|
|
8
9
|
export * from "./ListWorkspacesCommand";
|
|
10
|
+
export * from "./TagResourceCommand";
|
|
11
|
+
export * from "./UntagResourceCommand";
|
|
9
12
|
export * from "./UpdatePermissionsCommand";
|
|
10
13
|
export * from "./UpdateWorkspaceAuthenticationCommand";
|
|
11
14
|
export * from "./UpdateWorkspaceCommand";
|
|
@@ -48,8 +48,10 @@ export var AuthenticationSummary;
|
|
|
48
48
|
export var DataSourceType;
|
|
49
49
|
(function (DataSourceType) {
|
|
50
50
|
DataSourceType["AMAZON_OPENSEARCH_SERVICE"] = "AMAZON_OPENSEARCH_SERVICE";
|
|
51
|
+
DataSourceType["ATHENA"] = "ATHENA";
|
|
51
52
|
DataSourceType["CLOUDWATCH"] = "CLOUDWATCH";
|
|
52
53
|
DataSourceType["PROMETHEUS"] = "PROMETHEUS";
|
|
54
|
+
DataSourceType["REDSHIFT"] = "REDSHIFT";
|
|
53
55
|
DataSourceType["SITEWISE"] = "SITEWISE";
|
|
54
56
|
DataSourceType["TIMESTREAM"] = "TIMESTREAM";
|
|
55
57
|
DataSourceType["XRAY"] = "XRAY";
|
|
@@ -231,6 +233,14 @@ export var DisassociateLicenseResponse;
|
|
|
231
233
|
(function (DisassociateLicenseResponse) {
|
|
232
234
|
DisassociateLicenseResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.workspace && { workspace: WorkspaceDescription.filterSensitiveLog(obj.workspace) }))); };
|
|
233
235
|
})(DisassociateLicenseResponse || (DisassociateLicenseResponse = {}));
|
|
236
|
+
export var ListTagsForResourceRequest;
|
|
237
|
+
(function (ListTagsForResourceRequest) {
|
|
238
|
+
ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
239
|
+
})(ListTagsForResourceRequest || (ListTagsForResourceRequest = {}));
|
|
240
|
+
export var ListTagsForResourceResponse;
|
|
241
|
+
(function (ListTagsForResourceResponse) {
|
|
242
|
+
ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
243
|
+
})(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
|
|
234
244
|
export var UserType;
|
|
235
245
|
(function (UserType) {
|
|
236
246
|
UserType["SSO_GROUP"] = "SSO_GROUP";
|
|
@@ -278,6 +288,22 @@ export var UpdatePermissionsResponse;
|
|
|
278
288
|
(function (UpdatePermissionsResponse) {
|
|
279
289
|
UpdatePermissionsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
280
290
|
})(UpdatePermissionsResponse || (UpdatePermissionsResponse = {}));
|
|
291
|
+
export var TagResourceRequest;
|
|
292
|
+
(function (TagResourceRequest) {
|
|
293
|
+
TagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
294
|
+
})(TagResourceRequest || (TagResourceRequest = {}));
|
|
295
|
+
export var TagResourceResponse;
|
|
296
|
+
(function (TagResourceResponse) {
|
|
297
|
+
TagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
298
|
+
})(TagResourceResponse || (TagResourceResponse = {}));
|
|
299
|
+
export var UntagResourceRequest;
|
|
300
|
+
(function (UntagResourceRequest) {
|
|
301
|
+
UntagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
302
|
+
})(UntagResourceRequest || (UntagResourceRequest = {}));
|
|
303
|
+
export var UntagResourceResponse;
|
|
304
|
+
(function (UntagResourceResponse) {
|
|
305
|
+
UntagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
306
|
+
})(UntagResourceResponse || (UntagResourceResponse = {}));
|
|
281
307
|
export var CreateWorkspaceRequest;
|
|
282
308
|
(function (CreateWorkspaceRequest) {
|
|
283
309
|
CreateWorkspaceRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign(__assign({}, obj), (obj.organizationRoleName && { organizationRoleName: SENSITIVE_STRING })), (obj.workspaceDescription && { workspaceDescription: SENSITIVE_STRING })), (obj.workspaceName && { workspaceName: SENSITIVE_STRING })), (obj.workspaceOrganizationalUnits && { workspaceOrganizationalUnits: SENSITIVE_STRING })), (obj.workspaceRoleArn && { workspaceRoleArn: SENSITIVE_STRING }))); };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
3
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -58,13 +58,13 @@ export var serializeAws_restJson1CreateWorkspaceCommand = function (input, conte
|
|
|
58
58
|
"content-type": "application/json",
|
|
59
59
|
};
|
|
60
60
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/workspaces";
|
|
61
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountAccessType !== undefined &&
|
|
61
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountAccessType !== undefined &&
|
|
62
62
|
input.accountAccessType !== null && { accountAccessType: input.accountAccessType })), (input.authenticationProviders !== undefined &&
|
|
63
63
|
input.authenticationProviders !== null && {
|
|
64
64
|
authenticationProviders: serializeAws_restJson1AuthenticationProviders(input.authenticationProviders, context),
|
|
65
65
|
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.organizationRoleName !== undefined &&
|
|
66
66
|
input.organizationRoleName !== null && { organizationRoleName: input.organizationRoleName })), (input.permissionType !== undefined &&
|
|
67
|
-
input.permissionType !== null && { permissionType: input.permissionType })), (input.stackSetName !== undefined && input.stackSetName !== null && { stackSetName: input.stackSetName })), (input.workspaceDataSources !== undefined &&
|
|
67
|
+
input.permissionType !== null && { permissionType: input.permissionType })), (input.stackSetName !== undefined && input.stackSetName !== null && { stackSetName: input.stackSetName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.workspaceDataSources !== undefined &&
|
|
68
68
|
input.workspaceDataSources !== null && {
|
|
69
69
|
workspaceDataSources: serializeAws_restJson1DataSourceTypesList(input.workspaceDataSources, context),
|
|
70
70
|
})), (input.workspaceDescription !== undefined &&
|
|
@@ -256,6 +256,37 @@ export var serializeAws_restJson1ListPermissionsCommand = function (input, conte
|
|
|
256
256
|
}
|
|
257
257
|
});
|
|
258
258
|
}); };
|
|
259
|
+
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
260
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
261
|
+
return __generator(this, function (_c) {
|
|
262
|
+
switch (_c.label) {
|
|
263
|
+
case 0: return [4, context.endpoint()];
|
|
264
|
+
case 1:
|
|
265
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
266
|
+
headers = {};
|
|
267
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
268
|
+
if (input.resourceArn !== undefined) {
|
|
269
|
+
labelValue = input.resourceArn;
|
|
270
|
+
if (labelValue.length <= 0) {
|
|
271
|
+
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
272
|
+
}
|
|
273
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
274
|
+
}
|
|
275
|
+
else {
|
|
276
|
+
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
277
|
+
}
|
|
278
|
+
return [2, new __HttpRequest({
|
|
279
|
+
protocol: protocol,
|
|
280
|
+
hostname: hostname,
|
|
281
|
+
port: port,
|
|
282
|
+
method: "GET",
|
|
283
|
+
headers: headers,
|
|
284
|
+
path: resolvedPath,
|
|
285
|
+
body: body,
|
|
286
|
+
})];
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}); };
|
|
259
290
|
export var serializeAws_restJson1ListWorkspacesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
260
291
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
261
292
|
return __generator(this, function (_c) {
|
|
@@ -279,6 +310,73 @@ export var serializeAws_restJson1ListWorkspacesCommand = function (input, contex
|
|
|
279
310
|
}
|
|
280
311
|
});
|
|
281
312
|
}); };
|
|
313
|
+
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
314
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
315
|
+
return __generator(this, function (_c) {
|
|
316
|
+
switch (_c.label) {
|
|
317
|
+
case 0: return [4, context.endpoint()];
|
|
318
|
+
case 1:
|
|
319
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
320
|
+
headers = {
|
|
321
|
+
"content-type": "application/json",
|
|
322
|
+
};
|
|
323
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
324
|
+
if (input.resourceArn !== undefined) {
|
|
325
|
+
labelValue = input.resourceArn;
|
|
326
|
+
if (labelValue.length <= 0) {
|
|
327
|
+
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
328
|
+
}
|
|
329
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
330
|
+
}
|
|
331
|
+
else {
|
|
332
|
+
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
333
|
+
}
|
|
334
|
+
body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
335
|
+
return [2, new __HttpRequest({
|
|
336
|
+
protocol: protocol,
|
|
337
|
+
hostname: hostname,
|
|
338
|
+
port: port,
|
|
339
|
+
method: "POST",
|
|
340
|
+
headers: headers,
|
|
341
|
+
path: resolvedPath,
|
|
342
|
+
body: body,
|
|
343
|
+
})];
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
}); };
|
|
347
|
+
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
348
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
349
|
+
return __generator(this, function (_c) {
|
|
350
|
+
switch (_c.label) {
|
|
351
|
+
case 0: return [4, context.endpoint()];
|
|
352
|
+
case 1:
|
|
353
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
354
|
+
headers = {};
|
|
355
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
356
|
+
if (input.resourceArn !== undefined) {
|
|
357
|
+
labelValue = input.resourceArn;
|
|
358
|
+
if (labelValue.length <= 0) {
|
|
359
|
+
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
360
|
+
}
|
|
361
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
362
|
+
}
|
|
363
|
+
else {
|
|
364
|
+
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
365
|
+
}
|
|
366
|
+
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
367
|
+
return [2, new __HttpRequest({
|
|
368
|
+
protocol: protocol,
|
|
369
|
+
hostname: hostname,
|
|
370
|
+
port: port,
|
|
371
|
+
method: "DELETE",
|
|
372
|
+
headers: headers,
|
|
373
|
+
path: resolvedPath,
|
|
374
|
+
query: query,
|
|
375
|
+
body: body,
|
|
376
|
+
})];
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
}); };
|
|
282
380
|
export var serializeAws_restJson1UpdatePermissionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
283
381
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
284
382
|
return __generator(this, function (_c) {
|
|
@@ -920,6 +1018,78 @@ var deserializeAws_restJson1ListPermissionsCommandError = function (output, cont
|
|
|
920
1018
|
}
|
|
921
1019
|
});
|
|
922
1020
|
}); };
|
|
1021
|
+
export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1022
|
+
var contents, data, _a, _b;
|
|
1023
|
+
return __generator(this, function (_c) {
|
|
1024
|
+
switch (_c.label) {
|
|
1025
|
+
case 0:
|
|
1026
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1027
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1028
|
+
}
|
|
1029
|
+
contents = {
|
|
1030
|
+
$metadata: deserializeMetadata(output),
|
|
1031
|
+
tags: undefined,
|
|
1032
|
+
};
|
|
1033
|
+
_a = __expectNonNull;
|
|
1034
|
+
_b = __expectObject;
|
|
1035
|
+
return [4, parseBody(output.body, context)];
|
|
1036
|
+
case 1:
|
|
1037
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1038
|
+
if (data.tags !== undefined && data.tags !== null) {
|
|
1039
|
+
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1040
|
+
}
|
|
1041
|
+
return [2, Promise.resolve(contents)];
|
|
1042
|
+
}
|
|
1043
|
+
});
|
|
1044
|
+
}); };
|
|
1045
|
+
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1046
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1047
|
+
var _c;
|
|
1048
|
+
return __generator(this, function (_d) {
|
|
1049
|
+
switch (_d.label) {
|
|
1050
|
+
case 0:
|
|
1051
|
+
_a = [__assign({}, output)];
|
|
1052
|
+
_c = {};
|
|
1053
|
+
return [4, parseBody(output.body, context)];
|
|
1054
|
+
case 1:
|
|
1055
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1056
|
+
errorCode = "UnknownError";
|
|
1057
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
|
+
_b = errorCode;
|
|
1059
|
+
switch (_b) {
|
|
1060
|
+
case "AccessDeniedException": return [3, 2];
|
|
1061
|
+
case "com.amazonaws.grafana#AccessDeniedException": return [3, 2];
|
|
1062
|
+
case "InternalServerException": return [3, 4];
|
|
1063
|
+
case "com.amazonaws.grafana#InternalServerException": return [3, 4];
|
|
1064
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1065
|
+
case "com.amazonaws.grafana#ResourceNotFoundException": return [3, 6];
|
|
1066
|
+
case "ThrottlingException": return [3, 8];
|
|
1067
|
+
case "com.amazonaws.grafana#ThrottlingException": return [3, 8];
|
|
1068
|
+
case "ValidationException": return [3, 10];
|
|
1069
|
+
case "com.amazonaws.grafana#ValidationException": return [3, 10];
|
|
1070
|
+
}
|
|
1071
|
+
return [3, 12];
|
|
1072
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1073
|
+
case 3: throw _d.sent();
|
|
1074
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1075
|
+
case 5: throw _d.sent();
|
|
1076
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1077
|
+
case 7: throw _d.sent();
|
|
1078
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1079
|
+
case 9: throw _d.sent();
|
|
1080
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1081
|
+
case 11: throw _d.sent();
|
|
1082
|
+
case 12:
|
|
1083
|
+
parsedBody = parsedOutput.body;
|
|
1084
|
+
response = new __BaseException({
|
|
1085
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1086
|
+
$fault: "client",
|
|
1087
|
+
$metadata: deserializeMetadata(output),
|
|
1088
|
+
});
|
|
1089
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1090
|
+
}
|
|
1091
|
+
});
|
|
1092
|
+
}); };
|
|
923
1093
|
export var deserializeAws_restJson1ListWorkspacesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
924
1094
|
var contents, data, _a, _b;
|
|
925
1095
|
return __generator(this, function (_c) {
|
|
@@ -988,6 +1158,138 @@ var deserializeAws_restJson1ListWorkspacesCommandError = function (output, conte
|
|
|
988
1158
|
}
|
|
989
1159
|
});
|
|
990
1160
|
}); };
|
|
1161
|
+
export var deserializeAws_restJson1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1162
|
+
var contents;
|
|
1163
|
+
return __generator(this, function (_a) {
|
|
1164
|
+
switch (_a.label) {
|
|
1165
|
+
case 0:
|
|
1166
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1167
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1168
|
+
}
|
|
1169
|
+
contents = {
|
|
1170
|
+
$metadata: deserializeMetadata(output),
|
|
1171
|
+
};
|
|
1172
|
+
return [4, collectBody(output.body, context)];
|
|
1173
|
+
case 1:
|
|
1174
|
+
_a.sent();
|
|
1175
|
+
return [2, Promise.resolve(contents)];
|
|
1176
|
+
}
|
|
1177
|
+
});
|
|
1178
|
+
}); };
|
|
1179
|
+
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1180
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1181
|
+
var _c;
|
|
1182
|
+
return __generator(this, function (_d) {
|
|
1183
|
+
switch (_d.label) {
|
|
1184
|
+
case 0:
|
|
1185
|
+
_a = [__assign({}, output)];
|
|
1186
|
+
_c = {};
|
|
1187
|
+
return [4, parseBody(output.body, context)];
|
|
1188
|
+
case 1:
|
|
1189
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1190
|
+
errorCode = "UnknownError";
|
|
1191
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1192
|
+
_b = errorCode;
|
|
1193
|
+
switch (_b) {
|
|
1194
|
+
case "AccessDeniedException": return [3, 2];
|
|
1195
|
+
case "com.amazonaws.grafana#AccessDeniedException": return [3, 2];
|
|
1196
|
+
case "InternalServerException": return [3, 4];
|
|
1197
|
+
case "com.amazonaws.grafana#InternalServerException": return [3, 4];
|
|
1198
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1199
|
+
case "com.amazonaws.grafana#ResourceNotFoundException": return [3, 6];
|
|
1200
|
+
case "ThrottlingException": return [3, 8];
|
|
1201
|
+
case "com.amazonaws.grafana#ThrottlingException": return [3, 8];
|
|
1202
|
+
case "ValidationException": return [3, 10];
|
|
1203
|
+
case "com.amazonaws.grafana#ValidationException": return [3, 10];
|
|
1204
|
+
}
|
|
1205
|
+
return [3, 12];
|
|
1206
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1207
|
+
case 3: throw _d.sent();
|
|
1208
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1209
|
+
case 5: throw _d.sent();
|
|
1210
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1211
|
+
case 7: throw _d.sent();
|
|
1212
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1213
|
+
case 9: throw _d.sent();
|
|
1214
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1215
|
+
case 11: throw _d.sent();
|
|
1216
|
+
case 12:
|
|
1217
|
+
parsedBody = parsedOutput.body;
|
|
1218
|
+
response = new __BaseException({
|
|
1219
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1220
|
+
$fault: "client",
|
|
1221
|
+
$metadata: deserializeMetadata(output),
|
|
1222
|
+
});
|
|
1223
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1224
|
+
}
|
|
1225
|
+
});
|
|
1226
|
+
}); };
|
|
1227
|
+
export var deserializeAws_restJson1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1228
|
+
var contents;
|
|
1229
|
+
return __generator(this, function (_a) {
|
|
1230
|
+
switch (_a.label) {
|
|
1231
|
+
case 0:
|
|
1232
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1233
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1234
|
+
}
|
|
1235
|
+
contents = {
|
|
1236
|
+
$metadata: deserializeMetadata(output),
|
|
1237
|
+
};
|
|
1238
|
+
return [4, collectBody(output.body, context)];
|
|
1239
|
+
case 1:
|
|
1240
|
+
_a.sent();
|
|
1241
|
+
return [2, Promise.resolve(contents)];
|
|
1242
|
+
}
|
|
1243
|
+
});
|
|
1244
|
+
}); };
|
|
1245
|
+
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1246
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1247
|
+
var _c;
|
|
1248
|
+
return __generator(this, function (_d) {
|
|
1249
|
+
switch (_d.label) {
|
|
1250
|
+
case 0:
|
|
1251
|
+
_a = [__assign({}, output)];
|
|
1252
|
+
_c = {};
|
|
1253
|
+
return [4, parseBody(output.body, context)];
|
|
1254
|
+
case 1:
|
|
1255
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1256
|
+
errorCode = "UnknownError";
|
|
1257
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1258
|
+
_b = errorCode;
|
|
1259
|
+
switch (_b) {
|
|
1260
|
+
case "AccessDeniedException": return [3, 2];
|
|
1261
|
+
case "com.amazonaws.grafana#AccessDeniedException": return [3, 2];
|
|
1262
|
+
case "InternalServerException": return [3, 4];
|
|
1263
|
+
case "com.amazonaws.grafana#InternalServerException": return [3, 4];
|
|
1264
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1265
|
+
case "com.amazonaws.grafana#ResourceNotFoundException": return [3, 6];
|
|
1266
|
+
case "ThrottlingException": return [3, 8];
|
|
1267
|
+
case "com.amazonaws.grafana#ThrottlingException": return [3, 8];
|
|
1268
|
+
case "ValidationException": return [3, 10];
|
|
1269
|
+
case "com.amazonaws.grafana#ValidationException": return [3, 10];
|
|
1270
|
+
}
|
|
1271
|
+
return [3, 12];
|
|
1272
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1273
|
+
case 3: throw _d.sent();
|
|
1274
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1275
|
+
case 5: throw _d.sent();
|
|
1276
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1277
|
+
case 7: throw _d.sent();
|
|
1278
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1279
|
+
case 9: throw _d.sent();
|
|
1280
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1281
|
+
case 11: throw _d.sent();
|
|
1282
|
+
case 12:
|
|
1283
|
+
parsedBody = parsedOutput.body;
|
|
1284
|
+
response = new __BaseException({
|
|
1285
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1286
|
+
$fault: "client",
|
|
1287
|
+
$metadata: deserializeMetadata(output),
|
|
1288
|
+
});
|
|
1289
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1290
|
+
}
|
|
1291
|
+
});
|
|
1292
|
+
}); };
|
|
991
1293
|
export var deserializeAws_restJson1UpdatePermissionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
992
1294
|
var contents, data, _a, _b;
|
|
993
1295
|
return __generator(this, function (_c) {
|
|
@@ -1425,6 +1727,16 @@ var serializeAws_restJson1SamlConfiguration = function (input, context) {
|
|
|
1425
1727
|
input.loginValidityDuration !== null && { loginValidityDuration: input.loginValidityDuration })), (input.roleValues !== undefined &&
|
|
1426
1728
|
input.roleValues !== null && { roleValues: serializeAws_restJson1RoleValues(input.roleValues, context) }));
|
|
1427
1729
|
};
|
|
1730
|
+
var serializeAws_restJson1TagMap = function (input, context) {
|
|
1731
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
1732
|
+
var _b;
|
|
1733
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1734
|
+
if (value === null) {
|
|
1735
|
+
return acc;
|
|
1736
|
+
}
|
|
1737
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
1738
|
+
}, {});
|
|
1739
|
+
};
|
|
1428
1740
|
var serializeAws_restJson1UpdateInstruction = function (input, context) {
|
|
1429
1741
|
return __assign(__assign(__assign({}, (input.action !== undefined && input.action !== null && { action: input.action })), (input.role !== undefined && input.role !== null && { role: input.role })), (input.users !== undefined &&
|
|
1430
1742
|
input.users !== null && { users: serializeAws_restJson1UserList(input.users, context) }));
|
|
@@ -1617,6 +1929,16 @@ var deserializeAws_restJson1SamlConfiguration = function (output, context) {
|
|
|
1617
1929
|
: undefined,
|
|
1618
1930
|
};
|
|
1619
1931
|
};
|
|
1932
|
+
var deserializeAws_restJson1TagMap = function (output, context) {
|
|
1933
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
1934
|
+
var _b;
|
|
1935
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1936
|
+
if (value === null) {
|
|
1937
|
+
return acc;
|
|
1938
|
+
}
|
|
1939
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
1940
|
+
}, {});
|
|
1941
|
+
};
|
|
1620
1942
|
var deserializeAws_restJson1UpdateError = function (output, context) {
|
|
1621
1943
|
return {
|
|
1622
1944
|
causedBy: output.causedBy !== undefined && output.causedBy !== null
|
|
@@ -1718,6 +2040,9 @@ var deserializeAws_restJson1WorkspaceDescription = function (output, context) {
|
|
|
1718
2040
|
permissionType: __expectString(output.permissionType),
|
|
1719
2041
|
stackSetName: __expectString(output.stackSetName),
|
|
1720
2042
|
status: __expectString(output.status),
|
|
2043
|
+
tags: output.tags !== undefined && output.tags !== null
|
|
2044
|
+
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
2045
|
+
: undefined,
|
|
1721
2046
|
workspaceRoleArn: __expectString(output.workspaceRoleArn),
|
|
1722
2047
|
};
|
|
1723
2048
|
};
|
|
@@ -1752,6 +2077,9 @@ var deserializeAws_restJson1WorkspaceSummary = function (output, context) {
|
|
|
1752
2077
|
? deserializeAws_restJson1NotificationDestinationsList(output.notificationDestinations, context)
|
|
1753
2078
|
: undefined,
|
|
1754
2079
|
status: __expectString(output.status),
|
|
2080
|
+
tags: output.tags !== undefined && output.tags !== null
|
|
2081
|
+
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
2082
|
+
: undefined,
|
|
1755
2083
|
};
|
|
1756
2084
|
};
|
|
1757
2085
|
var deserializeMetadata = function (output) {
|