@aws-sdk/client-grafana 3.215.0 → 3.217.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.
Files changed (38) hide show
  1. package/dist-cjs/Grafana.js +30 -0
  2. package/dist-cjs/commands/DescribeWorkspaceConfigurationCommand.js +46 -0
  3. package/dist-cjs/commands/UpdateWorkspaceConfigurationCommand.js +46 -0
  4. package/dist-cjs/commands/index.js +2 -0
  5. package/dist-cjs/models/models_0.js +23 -2
  6. package/dist-cjs/protocols/Aws_restJson1.js +192 -1
  7. package/dist-es/Grafana.js +30 -0
  8. package/dist-es/commands/DescribeWorkspaceConfigurationCommand.js +42 -0
  9. package/dist-es/commands/UpdateWorkspaceConfigurationCommand.js +42 -0
  10. package/dist-es/commands/index.js +2 -0
  11. package/dist-es/models/models_0.js +17 -1
  12. package/dist-es/protocols/Aws_restJson1.js +188 -1
  13. package/dist-types/Grafana.d.ts +47 -33
  14. package/dist-types/GrafanaClient.d.ts +4 -2
  15. package/dist-types/commands/AssociateLicenseCommand.d.ts +2 -2
  16. package/dist-types/commands/CreateWorkspaceApiKeyCommand.d.ts +4 -4
  17. package/dist-types/commands/CreateWorkspaceCommand.d.ts +4 -4
  18. package/dist-types/commands/DeleteWorkspaceApiKeyCommand.d.ts +1 -1
  19. package/dist-types/commands/DescribeWorkspaceConfigurationCommand.d.ts +37 -0
  20. package/dist-types/commands/ListPermissionsCommand.d.ts +6 -6
  21. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
  22. package/dist-types/commands/ListWorkspacesCommand.d.ts +1 -1
  23. package/dist-types/commands/TagResourceCommand.d.ts +4 -4
  24. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  25. package/dist-types/commands/UpdateWorkspaceAuthenticationCommand.d.ts +3 -3
  26. package/dist-types/commands/UpdateWorkspaceCommand.d.ts +5 -5
  27. package/dist-types/commands/UpdateWorkspaceConfigurationCommand.d.ts +37 -0
  28. package/dist-types/commands/index.d.ts +2 -0
  29. package/dist-types/models/models_0.d.ts +227 -127
  30. package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
  31. package/dist-types/ts3.4/Grafana.d.ts +34 -0
  32. package/dist-types/ts3.4/GrafanaClient.d.ts +14 -2
  33. package/dist-types/ts3.4/commands/DescribeWorkspaceConfigurationCommand.d.ts +41 -0
  34. package/dist-types/ts3.4/commands/UpdateWorkspaceConfigurationCommand.d.ts +41 -0
  35. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  36. package/dist-types/ts3.4/models/models_0.d.ts +40 -1
  37. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  38. package/package.json +4 -4
@@ -8,6 +8,7 @@ const DeleteWorkspaceApiKeyCommand_1 = require("./commands/DeleteWorkspaceApiKey
8
8
  const DeleteWorkspaceCommand_1 = require("./commands/DeleteWorkspaceCommand");
9
9
  const DescribeWorkspaceAuthenticationCommand_1 = require("./commands/DescribeWorkspaceAuthenticationCommand");
10
10
  const DescribeWorkspaceCommand_1 = require("./commands/DescribeWorkspaceCommand");
11
+ const DescribeWorkspaceConfigurationCommand_1 = require("./commands/DescribeWorkspaceConfigurationCommand");
11
12
  const DisassociateLicenseCommand_1 = require("./commands/DisassociateLicenseCommand");
12
13
  const ListPermissionsCommand_1 = require("./commands/ListPermissionsCommand");
13
14
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
@@ -17,6 +18,7 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
17
18
  const UpdatePermissionsCommand_1 = require("./commands/UpdatePermissionsCommand");
18
19
  const UpdateWorkspaceAuthenticationCommand_1 = require("./commands/UpdateWorkspaceAuthenticationCommand");
19
20
  const UpdateWorkspaceCommand_1 = require("./commands/UpdateWorkspaceCommand");
21
+ const UpdateWorkspaceConfigurationCommand_1 = require("./commands/UpdateWorkspaceConfigurationCommand");
20
22
  const GrafanaClient_1 = require("./GrafanaClient");
21
23
  class Grafana extends GrafanaClient_1.GrafanaClient {
22
24
  associateLicense(args, optionsOrCb, cb) {
@@ -117,6 +119,20 @@ class Grafana extends GrafanaClient_1.GrafanaClient {
117
119
  return this.send(command, optionsOrCb);
118
120
  }
119
121
  }
122
+ describeWorkspaceConfiguration(args, optionsOrCb, cb) {
123
+ const command = new DescribeWorkspaceConfigurationCommand_1.DescribeWorkspaceConfigurationCommand(args);
124
+ if (typeof optionsOrCb === "function") {
125
+ this.send(command, optionsOrCb);
126
+ }
127
+ else if (typeof cb === "function") {
128
+ if (typeof optionsOrCb !== "object")
129
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
130
+ this.send(command, optionsOrCb || {}, cb);
131
+ }
132
+ else {
133
+ return this.send(command, optionsOrCb);
134
+ }
135
+ }
120
136
  disassociateLicense(args, optionsOrCb, cb) {
121
137
  const command = new DisassociateLicenseCommand_1.DisassociateLicenseCommand(args);
122
138
  if (typeof optionsOrCb === "function") {
@@ -243,5 +259,19 @@ class Grafana extends GrafanaClient_1.GrafanaClient {
243
259
  return this.send(command, optionsOrCb);
244
260
  }
245
261
  }
262
+ updateWorkspaceConfiguration(args, optionsOrCb, cb) {
263
+ const command = new UpdateWorkspaceConfigurationCommand_1.UpdateWorkspaceConfigurationCommand(args);
264
+ if (typeof optionsOrCb === "function") {
265
+ this.send(command, optionsOrCb);
266
+ }
267
+ else if (typeof cb === "function") {
268
+ if (typeof optionsOrCb !== "object")
269
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
270
+ this.send(command, optionsOrCb || {}, cb);
271
+ }
272
+ else {
273
+ return this.send(command, optionsOrCb);
274
+ }
275
+ }
246
276
  }
247
277
  exports.Grafana = Grafana;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeWorkspaceConfigurationCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class DescribeWorkspaceConfigurationCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeWorkspaceConfigurationCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "GrafanaClient";
28
+ const commandName = "DescribeWorkspaceConfigurationCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.DescribeWorkspaceConfigurationRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.DescribeWorkspaceConfigurationResponseFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.serializeAws_restJson1DescribeWorkspaceConfigurationCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1DescribeWorkspaceConfigurationCommand)(output, context);
44
+ }
45
+ }
46
+ exports.DescribeWorkspaceConfigurationCommand = DescribeWorkspaceConfigurationCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateWorkspaceConfigurationCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class UpdateWorkspaceConfigurationCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateWorkspaceConfigurationCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "GrafanaClient";
28
+ const commandName = "UpdateWorkspaceConfigurationCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.UpdateWorkspaceConfigurationRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.UpdateWorkspaceConfigurationResponseFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.serializeAws_restJson1UpdateWorkspaceConfigurationCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateWorkspaceConfigurationCommand)(output, context);
44
+ }
45
+ }
46
+ exports.UpdateWorkspaceConfigurationCommand = UpdateWorkspaceConfigurationCommand;
@@ -8,6 +8,7 @@ tslib_1.__exportStar(require("./DeleteWorkspaceApiKeyCommand"), exports);
8
8
  tslib_1.__exportStar(require("./DeleteWorkspaceCommand"), exports);
9
9
  tslib_1.__exportStar(require("./DescribeWorkspaceAuthenticationCommand"), exports);
10
10
  tslib_1.__exportStar(require("./DescribeWorkspaceCommand"), exports);
11
+ tslib_1.__exportStar(require("./DescribeWorkspaceConfigurationCommand"), exports);
11
12
  tslib_1.__exportStar(require("./DisassociateLicenseCommand"), exports);
12
13
  tslib_1.__exportStar(require("./ListPermissionsCommand"), exports);
13
14
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
@@ -17,3 +18,4 @@ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
17
18
  tslib_1.__exportStar(require("./UpdatePermissionsCommand"), exports);
18
19
  tslib_1.__exportStar(require("./UpdateWorkspaceAuthenticationCommand"), exports);
19
20
  tslib_1.__exportStar(require("./UpdateWorkspaceCommand"), exports);
21
+ tslib_1.__exportStar(require("./UpdateWorkspaceConfigurationCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdatePermissionsRequestFilterSensitiveLog = exports.UpdateInstructionFilterSensitiveLog = exports.ListPermissionsResponseFilterSensitiveLog = exports.PermissionEntryFilterSensitiveLog = exports.UserFilterSensitiveLog = exports.ListPermissionsRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.DisassociateLicenseResponseFilterSensitiveLog = exports.DisassociateLicenseRequestFilterSensitiveLog = exports.UpdateWorkspaceAuthenticationResponseFilterSensitiveLog = exports.UpdateWorkspaceAuthenticationRequestFilterSensitiveLog = exports.DescribeWorkspaceAuthenticationResponseFilterSensitiveLog = exports.AuthenticationDescriptionFilterSensitiveLog = exports.SamlAuthenticationFilterSensitiveLog = exports.SamlConfigurationFilterSensitiveLog = exports.RoleValuesFilterSensitiveLog = exports.IdpMetadataFilterSensitiveLog = exports.AwsSsoAuthenticationFilterSensitiveLog = exports.DescribeWorkspaceAuthenticationRequestFilterSensitiveLog = exports.AssociateLicenseResponseFilterSensitiveLog = exports.WorkspaceDescriptionFilterSensitiveLog = exports.AuthenticationSummaryFilterSensitiveLog = exports.AssociateLicenseRequestFilterSensitiveLog = exports.AssertionAttributesFilterSensitiveLog = exports.DeleteWorkspaceApiKeyResponseFilterSensitiveLog = exports.DeleteWorkspaceApiKeyRequestFilterSensitiveLog = exports.ValidationExceptionFieldFilterSensitiveLog = exports.CreateWorkspaceApiKeyResponseFilterSensitiveLog = exports.CreateWorkspaceApiKeyRequestFilterSensitiveLog = exports.UpdateAction = exports.Role = exports.UserType = exports.IdpMetadata = exports.WorkspaceStatus = exports.PermissionType = exports.NotificationDestinationType = exports.DataSourceType = exports.SamlConfigurationStatus = exports.AuthenticationProviderTypes = exports.LicenseType = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccountAccessType = exports.AccessDeniedException = void 0;
4
- exports.UpdateWorkspaceResponseFilterSensitiveLog = exports.UpdateWorkspaceRequestFilterSensitiveLog = exports.ListWorkspacesResponseFilterSensitiveLog = exports.WorkspaceSummaryFilterSensitiveLog = exports.ListWorkspacesRequestFilterSensitiveLog = exports.DescribeWorkspaceResponseFilterSensitiveLog = exports.DescribeWorkspaceRequestFilterSensitiveLog = exports.DeleteWorkspaceResponseFilterSensitiveLog = exports.DeleteWorkspaceRequestFilterSensitiveLog = exports.CreateWorkspaceResponseFilterSensitiveLog = exports.CreateWorkspaceRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.UpdatePermissionsResponseFilterSensitiveLog = exports.UpdateErrorFilterSensitiveLog = void 0;
3
+ exports.ListPermissionsRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.DisassociateLicenseResponseFilterSensitiveLog = exports.DisassociateLicenseRequestFilterSensitiveLog = exports.UpdateWorkspaceConfigurationResponseFilterSensitiveLog = exports.UpdateWorkspaceConfigurationRequestFilterSensitiveLog = exports.DescribeWorkspaceConfigurationResponseFilterSensitiveLog = exports.DescribeWorkspaceConfigurationRequestFilterSensitiveLog = exports.UpdateWorkspaceAuthenticationResponseFilterSensitiveLog = exports.UpdateWorkspaceAuthenticationRequestFilterSensitiveLog = exports.DescribeWorkspaceAuthenticationResponseFilterSensitiveLog = exports.AuthenticationDescriptionFilterSensitiveLog = exports.SamlAuthenticationFilterSensitiveLog = exports.SamlConfigurationFilterSensitiveLog = exports.RoleValuesFilterSensitiveLog = exports.IdpMetadataFilterSensitiveLog = exports.AwsSsoAuthenticationFilterSensitiveLog = exports.DescribeWorkspaceAuthenticationRequestFilterSensitiveLog = exports.AssociateLicenseResponseFilterSensitiveLog = exports.WorkspaceDescriptionFilterSensitiveLog = exports.VpcConfigurationFilterSensitiveLog = exports.AuthenticationSummaryFilterSensitiveLog = exports.AssociateLicenseRequestFilterSensitiveLog = exports.AssertionAttributesFilterSensitiveLog = exports.DeleteWorkspaceApiKeyResponseFilterSensitiveLog = exports.DeleteWorkspaceApiKeyRequestFilterSensitiveLog = exports.ValidationExceptionFieldFilterSensitiveLog = exports.CreateWorkspaceApiKeyResponseFilterSensitiveLog = exports.CreateWorkspaceApiKeyRequestFilterSensitiveLog = exports.UpdateAction = exports.Role = exports.UserType = exports.IdpMetadata = exports.WorkspaceStatus = exports.PermissionType = exports.NotificationDestinationType = exports.DataSourceType = exports.SamlConfigurationStatus = exports.AuthenticationProviderTypes = exports.LicenseType = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccountAccessType = exports.AccessDeniedException = void 0;
4
+ exports.UpdateWorkspaceResponseFilterSensitiveLog = exports.UpdateWorkspaceRequestFilterSensitiveLog = exports.ListWorkspacesResponseFilterSensitiveLog = exports.WorkspaceSummaryFilterSensitiveLog = exports.ListWorkspacesRequestFilterSensitiveLog = exports.DescribeWorkspaceResponseFilterSensitiveLog = exports.DescribeWorkspaceRequestFilterSensitiveLog = exports.DeleteWorkspaceResponseFilterSensitiveLog = exports.DeleteWorkspaceRequestFilterSensitiveLog = exports.CreateWorkspaceResponseFilterSensitiveLog = exports.CreateWorkspaceRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.UpdatePermissionsResponseFilterSensitiveLog = exports.UpdateErrorFilterSensitiveLog = exports.UpdatePermissionsRequestFilterSensitiveLog = exports.UpdateInstructionFilterSensitiveLog = exports.ListPermissionsResponseFilterSensitiveLog = exports.PermissionEntryFilterSensitiveLog = exports.UserFilterSensitiveLog = 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 {
@@ -147,6 +147,7 @@ var DataSourceType;
147
147
  DataSourceType["REDSHIFT"] = "REDSHIFT";
148
148
  DataSourceType["SITEWISE"] = "SITEWISE";
149
149
  DataSourceType["TIMESTREAM"] = "TIMESTREAM";
150
+ DataSourceType["TWINMAKER"] = "TWINMAKER";
150
151
  DataSourceType["XRAY"] = "XRAY";
151
152
  })(DataSourceType = exports.DataSourceType || (exports.DataSourceType = {}));
152
153
  var NotificationDestinationType;
@@ -231,6 +232,10 @@ const AuthenticationSummaryFilterSensitiveLog = (obj) => ({
231
232
  ...obj,
232
233
  });
233
234
  exports.AuthenticationSummaryFilterSensitiveLog = AuthenticationSummaryFilterSensitiveLog;
235
+ const VpcConfigurationFilterSensitiveLog = (obj) => ({
236
+ ...obj,
237
+ });
238
+ exports.VpcConfigurationFilterSensitiveLog = VpcConfigurationFilterSensitiveLog;
234
239
  const WorkspaceDescriptionFilterSensitiveLog = (obj) => ({
235
240
  ...obj,
236
241
  ...(obj.description && { description: smithy_client_1.SENSITIVE_STRING }),
@@ -296,6 +301,22 @@ const UpdateWorkspaceAuthenticationResponseFilterSensitiveLog = (obj) => ({
296
301
  ...(obj.authentication && { authentication: (0, exports.AuthenticationDescriptionFilterSensitiveLog)(obj.authentication) }),
297
302
  });
298
303
  exports.UpdateWorkspaceAuthenticationResponseFilterSensitiveLog = UpdateWorkspaceAuthenticationResponseFilterSensitiveLog;
304
+ const DescribeWorkspaceConfigurationRequestFilterSensitiveLog = (obj) => ({
305
+ ...obj,
306
+ });
307
+ exports.DescribeWorkspaceConfigurationRequestFilterSensitiveLog = DescribeWorkspaceConfigurationRequestFilterSensitiveLog;
308
+ const DescribeWorkspaceConfigurationResponseFilterSensitiveLog = (obj) => ({
309
+ ...obj,
310
+ });
311
+ exports.DescribeWorkspaceConfigurationResponseFilterSensitiveLog = DescribeWorkspaceConfigurationResponseFilterSensitiveLog;
312
+ const UpdateWorkspaceConfigurationRequestFilterSensitiveLog = (obj) => ({
313
+ ...obj,
314
+ });
315
+ exports.UpdateWorkspaceConfigurationRequestFilterSensitiveLog = UpdateWorkspaceConfigurationRequestFilterSensitiveLog;
316
+ const UpdateWorkspaceConfigurationResponseFilterSensitiveLog = (obj) => ({
317
+ ...obj,
318
+ });
319
+ exports.UpdateWorkspaceConfigurationResponseFilterSensitiveLog = UpdateWorkspaceConfigurationResponseFilterSensitiveLog;
299
320
  const DisassociateLicenseRequestFilterSensitiveLog = (obj) => ({
300
321
  ...obj,
301
322
  });
@@ -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_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;
3
+ exports.deserializeAws_restJson1UpdateWorkspaceConfigurationCommand = 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_restJson1DescribeWorkspaceConfigurationCommand = exports.deserializeAws_restJson1DescribeWorkspaceAuthenticationCommand = exports.deserializeAws_restJson1DescribeWorkspaceCommand = exports.deserializeAws_restJson1DeleteWorkspaceApiKeyCommand = exports.deserializeAws_restJson1DeleteWorkspaceCommand = exports.deserializeAws_restJson1CreateWorkspaceApiKeyCommand = exports.deserializeAws_restJson1CreateWorkspaceCommand = exports.deserializeAws_restJson1AssociateLicenseCommand = exports.serializeAws_restJson1UpdateWorkspaceConfigurationCommand = 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_restJson1DescribeWorkspaceConfigurationCommand = 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");
@@ -38,10 +38,14 @@ const serializeAws_restJson1CreateWorkspaceCommand = async (input, context) => {
38
38
  authenticationProviders: serializeAws_restJson1AuthenticationProviders(input.authenticationProviders, context),
39
39
  }),
40
40
  clientToken: input.clientToken ?? (0, uuid_1.v4)(),
41
+ ...(input.configuration != null && { configuration: smithy_client_1.LazyJsonString.fromObject(input.configuration) }),
41
42
  ...(input.organizationRoleName != null && { organizationRoleName: input.organizationRoleName }),
42
43
  ...(input.permissionType != null && { permissionType: input.permissionType }),
43
44
  ...(input.stackSetName != null && { stackSetName: input.stackSetName }),
44
45
  ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
46
+ ...(input.vpcConfiguration != null && {
47
+ vpcConfiguration: serializeAws_restJson1VpcConfiguration(input.vpcConfiguration, context),
48
+ }),
45
49
  ...(input.workspaceDataSources != null && {
46
50
  workspaceDataSources: serializeAws_restJson1DataSourceTypesList(input.workspaceDataSources, context),
47
51
  }),
@@ -160,6 +164,23 @@ const serializeAws_restJson1DescribeWorkspaceAuthenticationCommand = async (inpu
160
164
  });
161
165
  };
162
166
  exports.serializeAws_restJson1DescribeWorkspaceAuthenticationCommand = serializeAws_restJson1DescribeWorkspaceAuthenticationCommand;
167
+ const serializeAws_restJson1DescribeWorkspaceConfigurationCommand = async (input, context) => {
168
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
169
+ const headers = {};
170
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/configuration";
171
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
172
+ let body;
173
+ return new protocol_http_1.HttpRequest({
174
+ protocol,
175
+ hostname,
176
+ port,
177
+ method: "GET",
178
+ headers,
179
+ path: resolvedPath,
180
+ body,
181
+ });
182
+ };
183
+ exports.serializeAws_restJson1DescribeWorkspaceConfigurationCommand = serializeAws_restJson1DescribeWorkspaceConfigurationCommand;
163
184
  const serializeAws_restJson1DisassociateLicenseCommand = async (input, context) => {
164
185
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
165
186
  const headers = {};
@@ -321,7 +342,11 @@ const serializeAws_restJson1UpdateWorkspaceCommand = async (input, context) => {
321
342
  ...(input.accountAccessType != null && { accountAccessType: input.accountAccessType }),
322
343
  ...(input.organizationRoleName != null && { organizationRoleName: input.organizationRoleName }),
323
344
  ...(input.permissionType != null && { permissionType: input.permissionType }),
345
+ ...(input.removeVpcConfiguration != null && { removeVpcConfiguration: input.removeVpcConfiguration }),
324
346
  ...(input.stackSetName != null && { stackSetName: input.stackSetName }),
347
+ ...(input.vpcConfiguration != null && {
348
+ vpcConfiguration: serializeAws_restJson1VpcConfiguration(input.vpcConfiguration, context),
349
+ }),
325
350
  ...(input.workspaceDataSources != null && {
326
351
  workspaceDataSources: serializeAws_restJson1DataSourceTypesList(input.workspaceDataSources, context),
327
352
  }),
@@ -373,6 +398,28 @@ const serializeAws_restJson1UpdateWorkspaceAuthenticationCommand = async (input,
373
398
  });
374
399
  };
375
400
  exports.serializeAws_restJson1UpdateWorkspaceAuthenticationCommand = serializeAws_restJson1UpdateWorkspaceAuthenticationCommand;
401
+ const serializeAws_restJson1UpdateWorkspaceConfigurationCommand = async (input, context) => {
402
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
403
+ const headers = {
404
+ "content-type": "application/json",
405
+ };
406
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/configuration";
407
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
408
+ let body;
409
+ body = JSON.stringify({
410
+ ...(input.configuration != null && { configuration: smithy_client_1.LazyJsonString.fromObject(input.configuration) }),
411
+ });
412
+ return new protocol_http_1.HttpRequest({
413
+ protocol,
414
+ hostname,
415
+ port,
416
+ method: "PUT",
417
+ headers,
418
+ path: resolvedPath,
419
+ body,
420
+ });
421
+ };
422
+ exports.serializeAws_restJson1UpdateWorkspaceConfigurationCommand = serializeAws_restJson1UpdateWorkspaceConfigurationCommand;
376
423
  const deserializeAws_restJson1AssociateLicenseCommand = async (output, context) => {
377
424
  if (output.statusCode !== 202 && output.statusCode >= 300) {
378
425
  return deserializeAws_restJson1AssociateLicenseCommandError(output, context);
@@ -719,6 +766,49 @@ const deserializeAws_restJson1DescribeWorkspaceAuthenticationCommandError = asyn
719
766
  });
720
767
  }
721
768
  };
769
+ const deserializeAws_restJson1DescribeWorkspaceConfigurationCommand = async (output, context) => {
770
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
771
+ return deserializeAws_restJson1DescribeWorkspaceConfigurationCommandError(output, context);
772
+ }
773
+ const contents = map({
774
+ $metadata: deserializeMetadata(output),
775
+ });
776
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
777
+ if (data.configuration != null) {
778
+ contents.configuration = new smithy_client_1.LazyJsonString(data.configuration);
779
+ }
780
+ return contents;
781
+ };
782
+ exports.deserializeAws_restJson1DescribeWorkspaceConfigurationCommand = deserializeAws_restJson1DescribeWorkspaceConfigurationCommand;
783
+ const deserializeAws_restJson1DescribeWorkspaceConfigurationCommandError = async (output, context) => {
784
+ const parsedOutput = {
785
+ ...output,
786
+ body: await parseErrorBody(output.body, context),
787
+ };
788
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
789
+ switch (errorCode) {
790
+ case "AccessDeniedException":
791
+ case "com.amazonaws.grafana#AccessDeniedException":
792
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
793
+ case "InternalServerException":
794
+ case "com.amazonaws.grafana#InternalServerException":
795
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
796
+ case "ResourceNotFoundException":
797
+ case "com.amazonaws.grafana#ResourceNotFoundException":
798
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
799
+ case "ThrottlingException":
800
+ case "com.amazonaws.grafana#ThrottlingException":
801
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
802
+ default:
803
+ const parsedBody = parsedOutput.body;
804
+ (0, smithy_client_1.throwDefaultError)({
805
+ output,
806
+ parsedBody,
807
+ exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
808
+ errorCode,
809
+ });
810
+ }
811
+ };
722
812
  const deserializeAws_restJson1DisassociateLicenseCommand = async (output, context) => {
723
813
  if (output.statusCode !== 202 && output.statusCode >= 300) {
724
814
  return deserializeAws_restJson1DisassociateLicenseCommandError(output, context);
@@ -1133,6 +1223,52 @@ const deserializeAws_restJson1UpdateWorkspaceAuthenticationCommandError = async
1133
1223
  });
1134
1224
  }
1135
1225
  };
1226
+ const deserializeAws_restJson1UpdateWorkspaceConfigurationCommand = async (output, context) => {
1227
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1228
+ return deserializeAws_restJson1UpdateWorkspaceConfigurationCommandError(output, context);
1229
+ }
1230
+ const contents = map({
1231
+ $metadata: deserializeMetadata(output),
1232
+ });
1233
+ await collectBody(output.body, context);
1234
+ return contents;
1235
+ };
1236
+ exports.deserializeAws_restJson1UpdateWorkspaceConfigurationCommand = deserializeAws_restJson1UpdateWorkspaceConfigurationCommand;
1237
+ const deserializeAws_restJson1UpdateWorkspaceConfigurationCommandError = async (output, context) => {
1238
+ const parsedOutput = {
1239
+ ...output,
1240
+ body: await parseErrorBody(output.body, context),
1241
+ };
1242
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1243
+ switch (errorCode) {
1244
+ case "AccessDeniedException":
1245
+ case "com.amazonaws.grafana#AccessDeniedException":
1246
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1247
+ case "ConflictException":
1248
+ case "com.amazonaws.grafana#ConflictException":
1249
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1250
+ case "InternalServerException":
1251
+ case "com.amazonaws.grafana#InternalServerException":
1252
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1253
+ case "ResourceNotFoundException":
1254
+ case "com.amazonaws.grafana#ResourceNotFoundException":
1255
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1256
+ case "ThrottlingException":
1257
+ case "com.amazonaws.grafana#ThrottlingException":
1258
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1259
+ case "ValidationException":
1260
+ case "com.amazonaws.grafana#ValidationException":
1261
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1262
+ default:
1263
+ const parsedBody = parsedOutput.body;
1264
+ (0, smithy_client_1.throwDefaultError)({
1265
+ output,
1266
+ parsedBody,
1267
+ exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
1268
+ errorCode,
1269
+ });
1270
+ }
1271
+ };
1136
1272
  const map = smithy_client_1.map;
1137
1273
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
1138
1274
  const contents = map({});
@@ -1342,6 +1478,20 @@ const serializeAws_restJson1SamlConfiguration = (input, context) => {
1342
1478
  ...(input.roleValues != null && { roleValues: serializeAws_restJson1RoleValues(input.roleValues, context) }),
1343
1479
  };
1344
1480
  };
1481
+ const serializeAws_restJson1SecurityGroupIds = (input, context) => {
1482
+ return input
1483
+ .filter((e) => e != null)
1484
+ .map((entry) => {
1485
+ return entry;
1486
+ });
1487
+ };
1488
+ const serializeAws_restJson1SubnetIds = (input, context) => {
1489
+ return input
1490
+ .filter((e) => e != null)
1491
+ .map((entry) => {
1492
+ return entry;
1493
+ });
1494
+ };
1345
1495
  const serializeAws_restJson1TagMap = (input, context) => {
1346
1496
  return Object.entries(input).reduce((acc, [key, value]) => {
1347
1497
  if (value === null) {
@@ -1378,6 +1528,14 @@ const serializeAws_restJson1UserList = (input, context) => {
1378
1528
  return serializeAws_restJson1User(entry, context);
1379
1529
  });
1380
1530
  };
1531
+ const serializeAws_restJson1VpcConfiguration = (input, context) => {
1532
+ return {
1533
+ ...(input.securityGroupIds != null && {
1534
+ securityGroupIds: serializeAws_restJson1SecurityGroupIds(input.securityGroupIds, context),
1535
+ }),
1536
+ ...(input.subnetIds != null && { subnetIds: serializeAws_restJson1SubnetIds(input.subnetIds, context) }),
1537
+ };
1538
+ };
1381
1539
  const deserializeAws_restJson1AllowedOrganizations = (output, context) => {
1382
1540
  const retVal = (output || [])
1383
1541
  .filter((e) => e != null)
@@ -1527,6 +1685,28 @@ const deserializeAws_restJson1SamlConfiguration = (output, context) => {
1527
1685
  roleValues: output.roleValues != null ? deserializeAws_restJson1RoleValues(output.roleValues, context) : undefined,
1528
1686
  };
1529
1687
  };
1688
+ const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
1689
+ const retVal = (output || [])
1690
+ .filter((e) => e != null)
1691
+ .map((entry) => {
1692
+ if (entry === null) {
1693
+ return null;
1694
+ }
1695
+ return (0, smithy_client_1.expectString)(entry);
1696
+ });
1697
+ return retVal;
1698
+ };
1699
+ const deserializeAws_restJson1SubnetIds = (output, context) => {
1700
+ const retVal = (output || [])
1701
+ .filter((e) => e != null)
1702
+ .map((entry) => {
1703
+ if (entry === null) {
1704
+ return null;
1705
+ }
1706
+ return (0, smithy_client_1.expectString)(entry);
1707
+ });
1708
+ return retVal;
1709
+ };
1530
1710
  const deserializeAws_restJson1TagMap = (output, context) => {
1531
1711
  return Object.entries(output).reduce((acc, [key, value]) => {
1532
1712
  if (value === null) {
@@ -1595,6 +1775,14 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
1595
1775
  });
1596
1776
  return retVal;
1597
1777
  };
1778
+ const deserializeAws_restJson1VpcConfiguration = (output, context) => {
1779
+ return {
1780
+ securityGroupIds: output.securityGroupIds != null
1781
+ ? deserializeAws_restJson1SecurityGroupIds(output.securityGroupIds, context)
1782
+ : undefined,
1783
+ subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIds(output.subnetIds, context) : undefined,
1784
+ };
1785
+ };
1598
1786
  const deserializeAws_restJson1WorkspaceDescription = (output, context) => {
1599
1787
  return {
1600
1788
  accountAccessType: (0, smithy_client_1.expectString)(output.accountAccessType),
@@ -1628,6 +1816,9 @@ const deserializeAws_restJson1WorkspaceDescription = (output, context) => {
1628
1816
  stackSetName: (0, smithy_client_1.expectString)(output.stackSetName),
1629
1817
  status: (0, smithy_client_1.expectString)(output.status),
1630
1818
  tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
1819
+ vpcConfiguration: output.vpcConfiguration != null
1820
+ ? deserializeAws_restJson1VpcConfiguration(output.vpcConfiguration, context)
1821
+ : undefined,
1631
1822
  workspaceRoleArn: (0, smithy_client_1.expectString)(output.workspaceRoleArn),
1632
1823
  };
1633
1824
  };
@@ -5,6 +5,7 @@ import { DeleteWorkspaceApiKeyCommand, } from "./commands/DeleteWorkspaceApiKeyC
5
5
  import { DeleteWorkspaceCommand, } from "./commands/DeleteWorkspaceCommand";
6
6
  import { DescribeWorkspaceAuthenticationCommand, } from "./commands/DescribeWorkspaceAuthenticationCommand";
7
7
  import { DescribeWorkspaceCommand, } from "./commands/DescribeWorkspaceCommand";
8
+ import { DescribeWorkspaceConfigurationCommand, } from "./commands/DescribeWorkspaceConfigurationCommand";
8
9
  import { DisassociateLicenseCommand, } from "./commands/DisassociateLicenseCommand";
9
10
  import { ListPermissionsCommand, } from "./commands/ListPermissionsCommand";
10
11
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
@@ -14,6 +15,7 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
14
15
  import { UpdatePermissionsCommand, } from "./commands/UpdatePermissionsCommand";
15
16
  import { UpdateWorkspaceAuthenticationCommand, } from "./commands/UpdateWorkspaceAuthenticationCommand";
16
17
  import { UpdateWorkspaceCommand, } from "./commands/UpdateWorkspaceCommand";
18
+ import { UpdateWorkspaceConfigurationCommand, } from "./commands/UpdateWorkspaceConfigurationCommand";
17
19
  import { GrafanaClient } from "./GrafanaClient";
18
20
  export class Grafana extends GrafanaClient {
19
21
  associateLicense(args, optionsOrCb, cb) {
@@ -114,6 +116,20 @@ export class Grafana extends GrafanaClient {
114
116
  return this.send(command, optionsOrCb);
115
117
  }
116
118
  }
119
+ describeWorkspaceConfiguration(args, optionsOrCb, cb) {
120
+ const command = new DescribeWorkspaceConfigurationCommand(args);
121
+ if (typeof optionsOrCb === "function") {
122
+ this.send(command, optionsOrCb);
123
+ }
124
+ else if (typeof cb === "function") {
125
+ if (typeof optionsOrCb !== "object")
126
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
127
+ this.send(command, optionsOrCb || {}, cb);
128
+ }
129
+ else {
130
+ return this.send(command, optionsOrCb);
131
+ }
132
+ }
117
133
  disassociateLicense(args, optionsOrCb, cb) {
118
134
  const command = new DisassociateLicenseCommand(args);
119
135
  if (typeof optionsOrCb === "function") {
@@ -240,4 +256,18 @@ export class Grafana extends GrafanaClient {
240
256
  return this.send(command, optionsOrCb);
241
257
  }
242
258
  }
259
+ updateWorkspaceConfiguration(args, optionsOrCb, cb) {
260
+ const command = new UpdateWorkspaceConfigurationCommand(args);
261
+ if (typeof optionsOrCb === "function") {
262
+ this.send(command, optionsOrCb);
263
+ }
264
+ else if (typeof cb === "function") {
265
+ if (typeof optionsOrCb !== "object")
266
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
267
+ this.send(command, optionsOrCb || {}, cb);
268
+ }
269
+ else {
270
+ return this.send(command, optionsOrCb);
271
+ }
272
+ }
243
273
  }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeWorkspaceConfigurationRequestFilterSensitiveLog, DescribeWorkspaceConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1DescribeWorkspaceConfigurationCommand, serializeAws_restJson1DescribeWorkspaceConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ export class DescribeWorkspaceConfigurationCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeWorkspaceConfigurationCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "GrafanaClient";
25
+ const commandName = "DescribeWorkspaceConfigurationCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: DescribeWorkspaceConfigurationRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: DescribeWorkspaceConfigurationResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1DescribeWorkspaceConfigurationCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1DescribeWorkspaceConfigurationCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateWorkspaceConfigurationRequestFilterSensitiveLog, UpdateWorkspaceConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1UpdateWorkspaceConfigurationCommand, serializeAws_restJson1UpdateWorkspaceConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ export class UpdateWorkspaceConfigurationCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateWorkspaceConfigurationCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "GrafanaClient";
25
+ const commandName = "UpdateWorkspaceConfigurationCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: UpdateWorkspaceConfigurationRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: UpdateWorkspaceConfigurationResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1UpdateWorkspaceConfigurationCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1UpdateWorkspaceConfigurationCommand(output, context);
41
+ }
42
+ }