@aws-sdk/client-wellarchitected 3.181.0 → 3.183.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 (62) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/WellArchitected.js +162 -169
  3. package/dist-es/WellArchitectedClient.js +22 -28
  4. package/dist-es/commands/AssociateLensesCommand.js +22 -29
  5. package/dist-es/commands/CreateLensShareCommand.js +21 -28
  6. package/dist-es/commands/CreateLensVersionCommand.js +21 -28
  7. package/dist-es/commands/CreateMilestoneCommand.js +21 -28
  8. package/dist-es/commands/CreateWorkloadCommand.js +21 -28
  9. package/dist-es/commands/CreateWorkloadShareCommand.js +21 -28
  10. package/dist-es/commands/DeleteLensCommand.js +22 -29
  11. package/dist-es/commands/DeleteLensShareCommand.js +22 -29
  12. package/dist-es/commands/DeleteWorkloadCommand.js +22 -29
  13. package/dist-es/commands/DeleteWorkloadShareCommand.js +22 -29
  14. package/dist-es/commands/DisassociateLensesCommand.js +22 -29
  15. package/dist-es/commands/ExportLensCommand.js +21 -28
  16. package/dist-es/commands/GetAnswerCommand.js +21 -28
  17. package/dist-es/commands/GetLensCommand.js +21 -28
  18. package/dist-es/commands/GetLensReviewCommand.js +21 -28
  19. package/dist-es/commands/GetLensReviewReportCommand.js +21 -28
  20. package/dist-es/commands/GetLensVersionDifferenceCommand.js +21 -28
  21. package/dist-es/commands/GetMilestoneCommand.js +21 -28
  22. package/dist-es/commands/GetWorkloadCommand.js +21 -28
  23. package/dist-es/commands/ImportLensCommand.js +21 -28
  24. package/dist-es/commands/ListAnswersCommand.js +21 -28
  25. package/dist-es/commands/ListLensReviewImprovementsCommand.js +21 -28
  26. package/dist-es/commands/ListLensReviewsCommand.js +21 -28
  27. package/dist-es/commands/ListLensSharesCommand.js +21 -28
  28. package/dist-es/commands/ListLensesCommand.js +21 -28
  29. package/dist-es/commands/ListMilestonesCommand.js +21 -28
  30. package/dist-es/commands/ListNotificationsCommand.js +21 -28
  31. package/dist-es/commands/ListShareInvitationsCommand.js +21 -28
  32. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  33. package/dist-es/commands/ListWorkloadSharesCommand.js +21 -28
  34. package/dist-es/commands/ListWorkloadsCommand.js +21 -28
  35. package/dist-es/commands/TagResourceCommand.js +21 -28
  36. package/dist-es/commands/UntagResourceCommand.js +21 -28
  37. package/dist-es/commands/UpdateAnswerCommand.js +21 -28
  38. package/dist-es/commands/UpdateGlobalSettingsCommand.js +22 -29
  39. package/dist-es/commands/UpdateLensReviewCommand.js +21 -28
  40. package/dist-es/commands/UpdateShareInvitationCommand.js +21 -28
  41. package/dist-es/commands/UpdateWorkloadCommand.js +21 -28
  42. package/dist-es/commands/UpdateWorkloadShareCommand.js +21 -28
  43. package/dist-es/commands/UpgradeLensReviewCommand.js +22 -29
  44. package/dist-es/endpoints.js +8 -8
  45. package/dist-es/models/WellArchitectedServiceException.js +5 -10
  46. package/dist-es/models/models_0.js +405 -200
  47. package/dist-es/pagination/ListAnswersPaginator.js +25 -68
  48. package/dist-es/pagination/ListLensReviewImprovementsPaginator.js +25 -68
  49. package/dist-es/pagination/ListLensReviewsPaginator.js +25 -68
  50. package/dist-es/pagination/ListLensSharesPaginator.js +25 -68
  51. package/dist-es/pagination/ListLensesPaginator.js +25 -68
  52. package/dist-es/pagination/ListMilestonesPaginator.js +25 -68
  53. package/dist-es/pagination/ListNotificationsPaginator.js +25 -68
  54. package/dist-es/pagination/ListShareInvitationsPaginator.js +25 -68
  55. package/dist-es/pagination/ListWorkloadSharesPaginator.js +25 -68
  56. package/dist-es/pagination/ListWorkloadsPaginator.js +25 -68
  57. package/dist-es/protocols/Aws_restJson1.js +3150 -4391
  58. package/dist-es/runtimeConfig.browser.js +26 -12
  59. package/dist-es/runtimeConfig.js +30 -12
  60. package/dist-es/runtimeConfig.native.js +8 -5
  61. package/dist-es/runtimeConfig.shared.js +8 -11
  62. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var WellArchitectedClient = (function (_super) {
13
- __extends(WellArchitectedClient, _super);
14
- function WellArchitectedClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class WellArchitectedClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- WellArchitectedClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return WellArchitectedClient;
38
- }(__Client));
39
- export { WellArchitectedClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { AssociateLensesInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1AssociateLensesCommand, serializeAws_restJson1AssociateLensesCommand, } from "../protocols/Aws_restJson1";
6
- var AssociateLensesCommand = (function (_super) {
7
- __extends(AssociateLensesCommand, _super);
8
- function AssociateLensesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AssociateLensesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AssociateLensesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WellArchitectedClient";
18
- var commandName = "AssociateLensesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WellArchitectedClient";
15
+ const commandName = "AssociateLensesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AssociateLensesInputFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AssociateLensesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1AssociateLensesCommand(input, context);
33
- };
34
- AssociateLensesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1AssociateLensesCommand(output, context);
36
- };
37
- return AssociateLensesCommand;
38
- }($Command));
39
- export { AssociateLensesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateLensShareInputFilterSensitiveLog, CreateLensShareOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateLensShareCommand, serializeAws_restJson1CreateLensShareCommand, } from "../protocols/Aws_restJson1";
6
- var CreateLensShareCommand = (function (_super) {
7
- __extends(CreateLensShareCommand, _super);
8
- function CreateLensShareCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateLensShareCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateLensShareCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WellArchitectedClient";
18
- var commandName = "CreateLensShareCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WellArchitectedClient";
15
+ const commandName = "CreateLensShareCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateLensShareInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateLensShareOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateLensShareCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateLensShareCommand(input, context);
33
- };
34
- CreateLensShareCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateLensShareCommand(output, context);
36
- };
37
- return CreateLensShareCommand;
38
- }($Command));
39
- export { CreateLensShareCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateLensVersionInputFilterSensitiveLog, CreateLensVersionOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateLensVersionCommand, serializeAws_restJson1CreateLensVersionCommand, } from "../protocols/Aws_restJson1";
6
- var CreateLensVersionCommand = (function (_super) {
7
- __extends(CreateLensVersionCommand, _super);
8
- function CreateLensVersionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateLensVersionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateLensVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WellArchitectedClient";
18
- var commandName = "CreateLensVersionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WellArchitectedClient";
15
+ const commandName = "CreateLensVersionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateLensVersionInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateLensVersionOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateLensVersionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateLensVersionCommand(input, context);
33
- };
34
- CreateLensVersionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateLensVersionCommand(output, context);
36
- };
37
- return CreateLensVersionCommand;
38
- }($Command));
39
- export { CreateLensVersionCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateMilestoneInputFilterSensitiveLog, CreateMilestoneOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateMilestoneCommand, serializeAws_restJson1CreateMilestoneCommand, } from "../protocols/Aws_restJson1";
6
- var CreateMilestoneCommand = (function (_super) {
7
- __extends(CreateMilestoneCommand, _super);
8
- function CreateMilestoneCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateMilestoneCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateMilestoneCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WellArchitectedClient";
18
- var commandName = "CreateMilestoneCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WellArchitectedClient";
15
+ const commandName = "CreateMilestoneCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateMilestoneInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateMilestoneOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateMilestoneCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateMilestoneCommand(input, context);
33
- };
34
- CreateMilestoneCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateMilestoneCommand(output, context);
36
- };
37
- return CreateMilestoneCommand;
38
- }($Command));
39
- export { CreateMilestoneCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateWorkloadInputFilterSensitiveLog, CreateWorkloadOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateWorkloadCommand, serializeAws_restJson1CreateWorkloadCommand, } from "../protocols/Aws_restJson1";
6
- var CreateWorkloadCommand = (function (_super) {
7
- __extends(CreateWorkloadCommand, _super);
8
- function CreateWorkloadCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateWorkloadCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateWorkloadCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WellArchitectedClient";
18
- var commandName = "CreateWorkloadCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WellArchitectedClient";
15
+ const commandName = "CreateWorkloadCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateWorkloadInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateWorkloadOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateWorkloadCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateWorkloadCommand(input, context);
33
- };
34
- CreateWorkloadCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateWorkloadCommand(output, context);
36
- };
37
- return CreateWorkloadCommand;
38
- }($Command));
39
- export { CreateWorkloadCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateWorkloadShareInputFilterSensitiveLog, CreateWorkloadShareOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateWorkloadShareCommand, serializeAws_restJson1CreateWorkloadShareCommand, } from "../protocols/Aws_restJson1";
6
- var CreateWorkloadShareCommand = (function (_super) {
7
- __extends(CreateWorkloadShareCommand, _super);
8
- function CreateWorkloadShareCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateWorkloadShareCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateWorkloadShareCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WellArchitectedClient";
18
- var commandName = "CreateWorkloadShareCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WellArchitectedClient";
15
+ const commandName = "CreateWorkloadShareCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateWorkloadShareInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateWorkloadShareOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateWorkloadShareCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateWorkloadShareCommand(input, context);
33
- };
34
- CreateWorkloadShareCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateWorkloadShareCommand(output, context);
36
- };
37
- return CreateWorkloadShareCommand;
38
- }($Command));
39
- export { CreateWorkloadShareCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteLensInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteLensCommand, serializeAws_restJson1DeleteLensCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteLensCommand = (function (_super) {
7
- __extends(DeleteLensCommand, _super);
8
- function DeleteLensCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteLensCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteLensCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WellArchitectedClient";
18
- var commandName = "DeleteLensCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WellArchitectedClient";
15
+ const commandName = "DeleteLensCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteLensInputFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteLensCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteLensCommand(input, context);
33
- };
34
- DeleteLensCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteLensCommand(output, context);
36
- };
37
- return DeleteLensCommand;
38
- }($Command));
39
- export { DeleteLensCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteLensShareInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteLensShareCommand, serializeAws_restJson1DeleteLensShareCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteLensShareCommand = (function (_super) {
7
- __extends(DeleteLensShareCommand, _super);
8
- function DeleteLensShareCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteLensShareCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteLensShareCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WellArchitectedClient";
18
- var commandName = "DeleteLensShareCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WellArchitectedClient";
15
+ const commandName = "DeleteLensShareCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteLensShareInputFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteLensShareCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteLensShareCommand(input, context);
33
- };
34
- DeleteLensShareCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteLensShareCommand(output, context);
36
- };
37
- return DeleteLensShareCommand;
38
- }($Command));
39
- export { DeleteLensShareCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteWorkloadInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteWorkloadCommand, serializeAws_restJson1DeleteWorkloadCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteWorkloadCommand = (function (_super) {
7
- __extends(DeleteWorkloadCommand, _super);
8
- function DeleteWorkloadCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteWorkloadCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteWorkloadCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WellArchitectedClient";
18
- var commandName = "DeleteWorkloadCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WellArchitectedClient";
15
+ const commandName = "DeleteWorkloadCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteWorkloadInputFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteWorkloadCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteWorkloadCommand(input, context);
33
- };
34
- DeleteWorkloadCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteWorkloadCommand(output, context);
36
- };
37
- return DeleteWorkloadCommand;
38
- }($Command));
39
- export { DeleteWorkloadCommand };
31
+ }
32
+ }