@aws-sdk/client-grafana 3.183.0 → 3.186.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 (31) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/Grafana.js +73 -66
  4. package/dist-es/GrafanaClient.js +28 -22
  5. package/dist-es/commands/AssociateLicenseCommand.js +28 -21
  6. package/dist-es/commands/CreateWorkspaceApiKeyCommand.js +28 -21
  7. package/dist-es/commands/CreateWorkspaceCommand.js +28 -21
  8. package/dist-es/commands/DeleteWorkspaceApiKeyCommand.js +28 -21
  9. package/dist-es/commands/DeleteWorkspaceCommand.js +28 -21
  10. package/dist-es/commands/DescribeWorkspaceAuthenticationCommand.js +28 -21
  11. package/dist-es/commands/DescribeWorkspaceCommand.js +28 -21
  12. package/dist-es/commands/DisassociateLicenseCommand.js +28 -21
  13. package/dist-es/commands/ListPermissionsCommand.js +28 -21
  14. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  15. package/dist-es/commands/ListWorkspacesCommand.js +28 -21
  16. package/dist-es/commands/TagResourceCommand.js +28 -21
  17. package/dist-es/commands/UntagResourceCommand.js +28 -21
  18. package/dist-es/commands/UpdatePermissionsCommand.js +28 -21
  19. package/dist-es/commands/UpdateWorkspaceAuthenticationCommand.js +28 -21
  20. package/dist-es/commands/UpdateWorkspaceCommand.js +28 -21
  21. package/dist-es/endpoints.js +8 -8
  22. package/dist-es/models/GrafanaServiceException.js +10 -5
  23. package/dist-es/models/models_0.js +144 -265
  24. package/dist-es/pagination/ListPermissionsPaginator.js +68 -25
  25. package/dist-es/pagination/ListWorkspacesPaginator.js +68 -25
  26. package/dist-es/protocols/Aws_restJson1.js +1839 -1351
  27. package/dist-es/runtimeConfig.browser.js +12 -26
  28. package/dist-es/runtimeConfig.js +12 -30
  29. package/dist-es/runtimeConfig.native.js +5 -8
  30. package/dist-es/runtimeConfig.shared.js +11 -8
  31. package/package.json +33 -33
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteWorkspaceApiKeyRequestFilterSensitiveLog, DeleteWorkspaceApiKeyResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteWorkspaceApiKeyCommand, serializeAws_restJson1DeleteWorkspaceApiKeyCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteWorkspaceApiKeyCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteWorkspaceApiKeyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "GrafanaClient";
15
- const commandName = "DeleteWorkspaceApiKeyCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: DeleteWorkspaceApiKeyRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteWorkspaceApiKeyResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1DeleteWorkspaceApiKeyCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteWorkspaceApiKeyCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteWorkspaceApiKeyCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteWorkspaceApiKeyCommand;
38
+ }($Command));
39
+ export { DeleteWorkspaceApiKeyCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteWorkspaceRequestFilterSensitiveLog, DeleteWorkspaceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteWorkspaceCommand, serializeAws_restJson1DeleteWorkspaceCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteWorkspaceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteWorkspaceCommand = (function (_super) {
7
+ __extends(DeleteWorkspaceCommand, _super);
8
+ function DeleteWorkspaceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteWorkspaceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "GrafanaClient";
15
- const commandName = "DeleteWorkspaceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "GrafanaClient";
18
+ var commandName = "DeleteWorkspaceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteWorkspaceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteWorkspaceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteWorkspaceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteWorkspaceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteWorkspaceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteWorkspaceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteWorkspaceCommand;
38
+ }($Command));
39
+ export { DeleteWorkspaceCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeWorkspaceAuthenticationRequestFilterSensitiveLog, DescribeWorkspaceAuthenticationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DescribeWorkspaceAuthenticationCommand, serializeAws_restJson1DescribeWorkspaceAuthenticationCommand, } from "../protocols/Aws_restJson1";
5
- export class DescribeWorkspaceAuthenticationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeWorkspaceAuthenticationCommand = (function (_super) {
7
+ __extends(DescribeWorkspaceAuthenticationCommand, _super);
8
+ function DescribeWorkspaceAuthenticationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeWorkspaceAuthenticationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "GrafanaClient";
15
- const commandName = "DescribeWorkspaceAuthenticationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "GrafanaClient";
18
+ var commandName = "DescribeWorkspaceAuthenticationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeWorkspaceAuthenticationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeWorkspaceAuthenticationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeWorkspaceAuthenticationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DescribeWorkspaceAuthenticationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeWorkspaceAuthenticationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DescribeWorkspaceAuthenticationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeWorkspaceAuthenticationCommand;
38
+ }($Command));
39
+ export { DescribeWorkspaceAuthenticationCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeWorkspaceRequestFilterSensitiveLog, DescribeWorkspaceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DescribeWorkspaceCommand, serializeAws_restJson1DescribeWorkspaceCommand, } from "../protocols/Aws_restJson1";
5
- export class DescribeWorkspaceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeWorkspaceCommand = (function (_super) {
7
+ __extends(DescribeWorkspaceCommand, _super);
8
+ function DescribeWorkspaceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeWorkspaceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "GrafanaClient";
15
- const commandName = "DescribeWorkspaceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "GrafanaClient";
18
+ var commandName = "DescribeWorkspaceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeWorkspaceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeWorkspaceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeWorkspaceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DescribeWorkspaceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeWorkspaceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DescribeWorkspaceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeWorkspaceCommand;
38
+ }($Command));
39
+ export { DescribeWorkspaceCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DisassociateLicenseRequestFilterSensitiveLog, DisassociateLicenseResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DisassociateLicenseCommand, serializeAws_restJson1DisassociateLicenseCommand, } from "../protocols/Aws_restJson1";
5
- export class DisassociateLicenseCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DisassociateLicenseCommand = (function (_super) {
7
+ __extends(DisassociateLicenseCommand, _super);
8
+ function DisassociateLicenseCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DisassociateLicenseCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "GrafanaClient";
15
- const commandName = "DisassociateLicenseCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "GrafanaClient";
18
+ var commandName = "DisassociateLicenseCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DisassociateLicenseRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DisassociateLicenseResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DisassociateLicenseCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DisassociateLicenseCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DisassociateLicenseCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DisassociateLicenseCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DisassociateLicenseCommand;
38
+ }($Command));
39
+ export { DisassociateLicenseCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListPermissionsRequestFilterSensitiveLog, ListPermissionsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListPermissionsCommand, serializeAws_restJson1ListPermissionsCommand, } from "../protocols/Aws_restJson1";
5
- export class ListPermissionsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListPermissionsCommand = (function (_super) {
7
+ __extends(ListPermissionsCommand, _super);
8
+ function ListPermissionsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListPermissionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "GrafanaClient";
15
- const commandName = "ListPermissionsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "GrafanaClient";
18
+ var commandName = "ListPermissionsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListPermissionsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListPermissionsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListPermissionsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListPermissionsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListPermissionsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListPermissionsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListPermissionsCommand;
38
+ }($Command));
39
+ export { ListPermissionsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
5
- export class ListTagsForResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "GrafanaClient";
15
- const commandName = "ListTagsForResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1ListTagsForResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListTagsForResourceCommand;
38
+ }($Command));
39
+ export { ListTagsForResourceCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListWorkspacesRequestFilterSensitiveLog, ListWorkspacesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListWorkspacesCommand, serializeAws_restJson1ListWorkspacesCommand, } from "../protocols/Aws_restJson1";
5
- export class ListWorkspacesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListWorkspacesCommand = (function (_super) {
7
+ __extends(ListWorkspacesCommand, _super);
8
+ function ListWorkspacesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListWorkspacesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "GrafanaClient";
15
- const commandName = "ListWorkspacesCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "GrafanaClient";
18
+ var commandName = "ListWorkspacesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListWorkspacesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListWorkspacesResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListWorkspacesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListWorkspacesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListWorkspacesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListWorkspacesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListWorkspacesCommand;
38
+ }($Command));
39
+ export { ListWorkspacesCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1";
5
- export class TagResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "GrafanaClient";
15
- const commandName = "TagResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: TagResourceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1TagResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ TagResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1TagResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return TagResourceCommand;
38
+ }($Command));
39
+ export { TagResourceCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
5
- export class UntagResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "GrafanaClient";
15
- const commandName = "UntagResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1UntagResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UntagResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UntagResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UntagResourceCommand;
38
+ }($Command));
39
+ export { UntagResourceCommand };