@aws-sdk/client-codeguru-reviewer 3.183.0 → 3.185.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 (33) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/CodeGuruReviewer.js +65 -58
  4. package/dist-es/CodeGuruReviewerClient.js +28 -22
  5. package/dist-es/commands/AssociateRepositoryCommand.js +28 -21
  6. package/dist-es/commands/CreateCodeReviewCommand.js +28 -21
  7. package/dist-es/commands/DescribeCodeReviewCommand.js +28 -21
  8. package/dist-es/commands/DescribeRecommendationFeedbackCommand.js +28 -21
  9. package/dist-es/commands/DescribeRepositoryAssociationCommand.js +28 -21
  10. package/dist-es/commands/DisassociateRepositoryCommand.js +28 -21
  11. package/dist-es/commands/ListCodeReviewsCommand.js +28 -21
  12. package/dist-es/commands/ListRecommendationFeedbackCommand.js +28 -21
  13. package/dist-es/commands/ListRecommendationsCommand.js +28 -21
  14. package/dist-es/commands/ListRepositoryAssociationsCommand.js +28 -21
  15. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  16. package/dist-es/commands/PutRecommendationFeedbackCommand.js +28 -21
  17. package/dist-es/commands/TagResourceCommand.js +28 -21
  18. package/dist-es/commands/UntagResourceCommand.js +28 -21
  19. package/dist-es/endpoints.js +8 -8
  20. package/dist-es/models/CodeGuruReviewerServiceException.js +10 -5
  21. package/dist-es/models/models_0.js +139 -246
  22. package/dist-es/pagination/ListCodeReviewsPaginator.js +68 -25
  23. package/dist-es/pagination/ListRecommendationFeedbackPaginator.js +68 -25
  24. package/dist-es/pagination/ListRecommendationsPaginator.js +68 -25
  25. package/dist-es/pagination/ListRepositoryAssociationsPaginator.js +68 -25
  26. package/dist-es/protocols/Aws_restJson1.js +1577 -1180
  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/dist-es/waiters/waitForCodeReviewCompleted.js +65 -45
  32. package/dist-es/waiters/waitForRepositoryAssociationSucceeded.js +65 -45
  33. package/package.json +5 -5
@@ -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 { DescribeRepositoryAssociationRequestFilterSensitiveLog, DescribeRepositoryAssociationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DescribeRepositoryAssociationCommand, serializeAws_restJson1DescribeRepositoryAssociationCommand, } from "../protocols/Aws_restJson1";
5
- export class DescribeRepositoryAssociationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeRepositoryAssociationCommand = (function (_super) {
7
+ __extends(DescribeRepositoryAssociationCommand, _super);
8
+ function DescribeRepositoryAssociationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeRepositoryAssociationCommand.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 = "CodeGuruReviewerClient";
15
- const commandName = "DescribeRepositoryAssociationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CodeGuruReviewerClient";
18
+ var commandName = "DescribeRepositoryAssociationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeRepositoryAssociationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeRepositoryAssociationResponseFilterSensitiveLog,
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
+ DescribeRepositoryAssociationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DescribeRepositoryAssociationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeRepositoryAssociationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DescribeRepositoryAssociationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeRepositoryAssociationCommand;
38
+ }($Command));
39
+ export { DescribeRepositoryAssociationCommand };
@@ -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 { DisassociateRepositoryRequestFilterSensitiveLog, DisassociateRepositoryResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DisassociateRepositoryCommand, serializeAws_restJson1DisassociateRepositoryCommand, } from "../protocols/Aws_restJson1";
5
- export class DisassociateRepositoryCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DisassociateRepositoryCommand = (function (_super) {
7
+ __extends(DisassociateRepositoryCommand, _super);
8
+ function DisassociateRepositoryCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DisassociateRepositoryCommand.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 = "CodeGuruReviewerClient";
15
- const commandName = "DisassociateRepositoryCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CodeGuruReviewerClient";
18
+ var commandName = "DisassociateRepositoryCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DisassociateRepositoryRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DisassociateRepositoryResponseFilterSensitiveLog,
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
+ DisassociateRepositoryCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DisassociateRepositoryCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DisassociateRepositoryCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DisassociateRepositoryCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DisassociateRepositoryCommand;
38
+ }($Command));
39
+ export { DisassociateRepositoryCommand };
@@ -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 { ListCodeReviewsRequestFilterSensitiveLog, ListCodeReviewsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListCodeReviewsCommand, serializeAws_restJson1ListCodeReviewsCommand, } from "../protocols/Aws_restJson1";
5
- export class ListCodeReviewsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListCodeReviewsCommand = (function (_super) {
7
+ __extends(ListCodeReviewsCommand, _super);
8
+ function ListCodeReviewsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListCodeReviewsCommand.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 = "CodeGuruReviewerClient";
15
- const commandName = "ListCodeReviewsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CodeGuruReviewerClient";
18
+ var commandName = "ListCodeReviewsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListCodeReviewsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListCodeReviewsResponseFilterSensitiveLog,
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
+ ListCodeReviewsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListCodeReviewsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListCodeReviewsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListCodeReviewsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListCodeReviewsCommand;
38
+ }($Command));
39
+ export { ListCodeReviewsCommand };
@@ -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 { ListRecommendationFeedbackRequestFilterSensitiveLog, ListRecommendationFeedbackResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListRecommendationFeedbackCommand, serializeAws_restJson1ListRecommendationFeedbackCommand, } from "../protocols/Aws_restJson1";
5
- export class ListRecommendationFeedbackCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListRecommendationFeedbackCommand = (function (_super) {
7
+ __extends(ListRecommendationFeedbackCommand, _super);
8
+ function ListRecommendationFeedbackCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListRecommendationFeedbackCommand.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 = "CodeGuruReviewerClient";
15
- const commandName = "ListRecommendationFeedbackCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CodeGuruReviewerClient";
18
+ var commandName = "ListRecommendationFeedbackCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListRecommendationFeedbackRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListRecommendationFeedbackResponseFilterSensitiveLog,
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
+ ListRecommendationFeedbackCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListRecommendationFeedbackCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListRecommendationFeedbackCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListRecommendationFeedbackCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListRecommendationFeedbackCommand;
38
+ }($Command));
39
+ export { ListRecommendationFeedbackCommand };
@@ -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 { ListRecommendationsRequestFilterSensitiveLog, ListRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListRecommendationsCommand, serializeAws_restJson1ListRecommendationsCommand, } from "../protocols/Aws_restJson1";
5
- export class ListRecommendationsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListRecommendationsCommand = (function (_super) {
7
+ __extends(ListRecommendationsCommand, _super);
8
+ function ListRecommendationsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListRecommendationsCommand.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 = "CodeGuruReviewerClient";
15
- const commandName = "ListRecommendationsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CodeGuruReviewerClient";
18
+ var commandName = "ListRecommendationsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListRecommendationsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListRecommendationsResponseFilterSensitiveLog,
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
+ ListRecommendationsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListRecommendationsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListRecommendationsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListRecommendationsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListRecommendationsCommand;
38
+ }($Command));
39
+ export { ListRecommendationsCommand };
@@ -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 { ListRepositoryAssociationsRequestFilterSensitiveLog, ListRepositoryAssociationsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListRepositoryAssociationsCommand, serializeAws_restJson1ListRepositoryAssociationsCommand, } from "../protocols/Aws_restJson1";
5
- export class ListRepositoryAssociationsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListRepositoryAssociationsCommand = (function (_super) {
7
+ __extends(ListRepositoryAssociationsCommand, _super);
8
+ function ListRepositoryAssociationsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListRepositoryAssociationsCommand.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 = "CodeGuruReviewerClient";
15
- const commandName = "ListRepositoryAssociationsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CodeGuruReviewerClient";
18
+ var commandName = "ListRepositoryAssociationsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListRepositoryAssociationsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListRepositoryAssociationsResponseFilterSensitiveLog,
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
+ ListRepositoryAssociationsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListRepositoryAssociationsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListRepositoryAssociationsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListRepositoryAssociationsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListRepositoryAssociationsCommand;
38
+ }($Command));
39
+ export { ListRepositoryAssociationsCommand };
@@ -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 = "CodeGuruReviewerClient";
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 = "CodeGuruReviewerClient";
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 { PutRecommendationFeedbackRequestFilterSensitiveLog, PutRecommendationFeedbackResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1PutRecommendationFeedbackCommand, serializeAws_restJson1PutRecommendationFeedbackCommand, } from "../protocols/Aws_restJson1";
5
- export class PutRecommendationFeedbackCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var PutRecommendationFeedbackCommand = (function (_super) {
7
+ __extends(PutRecommendationFeedbackCommand, _super);
8
+ function PutRecommendationFeedbackCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ PutRecommendationFeedbackCommand.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 = "CodeGuruReviewerClient";
15
- const commandName = "PutRecommendationFeedbackCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CodeGuruReviewerClient";
18
+ var commandName = "PutRecommendationFeedbackCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: PutRecommendationFeedbackRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: PutRecommendationFeedbackResponseFilterSensitiveLog,
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
+ PutRecommendationFeedbackCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1PutRecommendationFeedbackCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ PutRecommendationFeedbackCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1PutRecommendationFeedbackCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return PutRecommendationFeedbackCommand;
38
+ }($Command));
39
+ export { PutRecommendationFeedbackCommand };
@@ -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 = "CodeGuruReviewerClient";
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 = "CodeGuruReviewerClient";
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 = "CodeGuruReviewerClient";
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 = "CodeGuruReviewerClient";
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 };