@aws-sdk/client-resource-groups 3.180.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 (32) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +22 -16
  3. package/dist-es/ResourceGroups.js +66 -73
  4. package/dist-es/ResourceGroupsClient.js +22 -28
  5. package/dist-es/commands/CreateGroupCommand.js +21 -28
  6. package/dist-es/commands/DeleteGroupCommand.js +21 -28
  7. package/dist-es/commands/GetGroupCommand.js +21 -28
  8. package/dist-es/commands/GetGroupConfigurationCommand.js +21 -28
  9. package/dist-es/commands/GetGroupQueryCommand.js +21 -28
  10. package/dist-es/commands/GetTagsCommand.js +21 -28
  11. package/dist-es/commands/GroupResourcesCommand.js +21 -28
  12. package/dist-es/commands/ListGroupResourcesCommand.js +21 -28
  13. package/dist-es/commands/ListGroupsCommand.js +21 -28
  14. package/dist-es/commands/PutGroupConfigurationCommand.js +21 -28
  15. package/dist-es/commands/SearchResourcesCommand.js +21 -28
  16. package/dist-es/commands/TagCommand.js +21 -28
  17. package/dist-es/commands/UngroupResourcesCommand.js +21 -28
  18. package/dist-es/commands/UntagCommand.js +21 -28
  19. package/dist-es/commands/UpdateGroupCommand.js +21 -28
  20. package/dist-es/commands/UpdateGroupQueryCommand.js +21 -28
  21. package/dist-es/endpoints.js +8 -8
  22. package/dist-es/models/ResourceGroupsServiceException.js +5 -10
  23. package/dist-es/models/models_0.js +225 -132
  24. package/dist-es/pagination/ListGroupResourcesPaginator.js +25 -68
  25. package/dist-es/pagination/ListGroupsPaginator.js +25 -68
  26. package/dist-es/pagination/SearchResourcesPaginator.js +25 -68
  27. package/dist-es/protocols/Aws_restJson1.js +1373 -1853
  28. package/dist-es/runtimeConfig.browser.js +26 -12
  29. package/dist-es/runtimeConfig.js +30 -12
  30. package/dist-es/runtimeConfig.native.js +8 -5
  31. package/dist-es/runtimeConfig.shared.js +8 -11
  32. package/package.json +33 -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 { DeleteGroupInputFilterSensitiveLog, DeleteGroupOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteGroupCommand, serializeAws_restJson1DeleteGroupCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteGroupCommand = (function (_super) {
7
- __extends(DeleteGroupCommand, _super);
8
- function DeleteGroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteGroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteGroupCommand.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 = "ResourceGroupsClient";
18
- var commandName = "DeleteGroupCommand";
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 = "ResourceGroupsClient";
15
+ const commandName = "DeleteGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteGroupInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteGroupOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteGroupCommand.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_restJson1DeleteGroupCommand(input, context);
33
- };
34
- DeleteGroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteGroupCommand(output, context);
36
- };
37
- return DeleteGroupCommand;
38
- }($Command));
39
- export { DeleteGroupCommand };
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 { GetGroupInputFilterSensitiveLog, GetGroupOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetGroupCommand, serializeAws_restJson1GetGroupCommand, } from "../protocols/Aws_restJson1";
6
- var GetGroupCommand = (function (_super) {
7
- __extends(GetGroupCommand, _super);
8
- function GetGroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetGroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetGroupCommand.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 = "ResourceGroupsClient";
18
- var commandName = "GetGroupCommand";
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 = "ResourceGroupsClient";
15
+ const commandName = "GetGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetGroupInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetGroupOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetGroupCommand.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_restJson1GetGroupCommand(input, context);
33
- };
34
- GetGroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetGroupCommand(output, context);
36
- };
37
- return GetGroupCommand;
38
- }($Command));
39
- export { GetGroupCommand };
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 { GetGroupConfigurationInputFilterSensitiveLog, GetGroupConfigurationOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetGroupConfigurationCommand, serializeAws_restJson1GetGroupConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var GetGroupConfigurationCommand = (function (_super) {
7
- __extends(GetGroupConfigurationCommand, _super);
8
- function GetGroupConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetGroupConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetGroupConfigurationCommand.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 = "ResourceGroupsClient";
18
- var commandName = "GetGroupConfigurationCommand";
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 = "ResourceGroupsClient";
15
+ const commandName = "GetGroupConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetGroupConfigurationInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetGroupConfigurationOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetGroupConfigurationCommand.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_restJson1GetGroupConfigurationCommand(input, context);
33
- };
34
- GetGroupConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetGroupConfigurationCommand(output, context);
36
- };
37
- return GetGroupConfigurationCommand;
38
- }($Command));
39
- export { GetGroupConfigurationCommand };
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 { GetGroupQueryInputFilterSensitiveLog, GetGroupQueryOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetGroupQueryCommand, serializeAws_restJson1GetGroupQueryCommand, } from "../protocols/Aws_restJson1";
6
- var GetGroupQueryCommand = (function (_super) {
7
- __extends(GetGroupQueryCommand, _super);
8
- function GetGroupQueryCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetGroupQueryCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetGroupQueryCommand.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 = "ResourceGroupsClient";
18
- var commandName = "GetGroupQueryCommand";
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 = "ResourceGroupsClient";
15
+ const commandName = "GetGroupQueryCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetGroupQueryInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetGroupQueryOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetGroupQueryCommand.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_restJson1GetGroupQueryCommand(input, context);
33
- };
34
- GetGroupQueryCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetGroupQueryCommand(output, context);
36
- };
37
- return GetGroupQueryCommand;
38
- }($Command));
39
- export { GetGroupQueryCommand };
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 { GetTagsInputFilterSensitiveLog, GetTagsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetTagsCommand, serializeAws_restJson1GetTagsCommand, } from "../protocols/Aws_restJson1";
6
- var GetTagsCommand = (function (_super) {
7
- __extends(GetTagsCommand, _super);
8
- function GetTagsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetTagsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetTagsCommand.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 = "ResourceGroupsClient";
18
- var commandName = "GetTagsCommand";
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 = "ResourceGroupsClient";
15
+ const commandName = "GetTagsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetTagsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetTagsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetTagsCommand.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_restJson1GetTagsCommand(input, context);
33
- };
34
- GetTagsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetTagsCommand(output, context);
36
- };
37
- return GetTagsCommand;
38
- }($Command));
39
- export { GetTagsCommand };
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 { GroupResourcesInputFilterSensitiveLog, GroupResourcesOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GroupResourcesCommand, serializeAws_restJson1GroupResourcesCommand, } from "../protocols/Aws_restJson1";
6
- var GroupResourcesCommand = (function (_super) {
7
- __extends(GroupResourcesCommand, _super);
8
- function GroupResourcesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GroupResourcesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GroupResourcesCommand.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 = "ResourceGroupsClient";
18
- var commandName = "GroupResourcesCommand";
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 = "ResourceGroupsClient";
15
+ const commandName = "GroupResourcesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GroupResourcesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GroupResourcesOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GroupResourcesCommand.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_restJson1GroupResourcesCommand(input, context);
33
- };
34
- GroupResourcesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GroupResourcesCommand(output, context);
36
- };
37
- return GroupResourcesCommand;
38
- }($Command));
39
- export { GroupResourcesCommand };
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 { ListGroupResourcesInputFilterSensitiveLog, ListGroupResourcesOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListGroupResourcesCommand, serializeAws_restJson1ListGroupResourcesCommand, } from "../protocols/Aws_restJson1";
6
- var ListGroupResourcesCommand = (function (_super) {
7
- __extends(ListGroupResourcesCommand, _super);
8
- function ListGroupResourcesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListGroupResourcesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListGroupResourcesCommand.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 = "ResourceGroupsClient";
18
- var commandName = "ListGroupResourcesCommand";
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 = "ResourceGroupsClient";
15
+ const commandName = "ListGroupResourcesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListGroupResourcesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListGroupResourcesOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListGroupResourcesCommand.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_restJson1ListGroupResourcesCommand(input, context);
33
- };
34
- ListGroupResourcesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListGroupResourcesCommand(output, context);
36
- };
37
- return ListGroupResourcesCommand;
38
- }($Command));
39
- export { ListGroupResourcesCommand };
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 { ListGroupsInputFilterSensitiveLog, ListGroupsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListGroupsCommand, serializeAws_restJson1ListGroupsCommand, } from "../protocols/Aws_restJson1";
6
- var ListGroupsCommand = (function (_super) {
7
- __extends(ListGroupsCommand, _super);
8
- function ListGroupsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListGroupsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListGroupsCommand.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 = "ResourceGroupsClient";
18
- var commandName = "ListGroupsCommand";
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 = "ResourceGroupsClient";
15
+ const commandName = "ListGroupsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListGroupsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListGroupsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListGroupsCommand.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_restJson1ListGroupsCommand(input, context);
33
- };
34
- ListGroupsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListGroupsCommand(output, context);
36
- };
37
- return ListGroupsCommand;
38
- }($Command));
39
- export { ListGroupsCommand };
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 { PutGroupConfigurationInputFilterSensitiveLog, PutGroupConfigurationOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1PutGroupConfigurationCommand, serializeAws_restJson1PutGroupConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var PutGroupConfigurationCommand = (function (_super) {
7
- __extends(PutGroupConfigurationCommand, _super);
8
- function PutGroupConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutGroupConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutGroupConfigurationCommand.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 = "ResourceGroupsClient";
18
- var commandName = "PutGroupConfigurationCommand";
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 = "ResourceGroupsClient";
15
+ const commandName = "PutGroupConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutGroupConfigurationInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutGroupConfigurationOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutGroupConfigurationCommand.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_restJson1PutGroupConfigurationCommand(input, context);
33
- };
34
- PutGroupConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1PutGroupConfigurationCommand(output, context);
36
- };
37
- return PutGroupConfigurationCommand;
38
- }($Command));
39
- export { PutGroupConfigurationCommand };
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 { SearchResourcesInputFilterSensitiveLog, SearchResourcesOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1SearchResourcesCommand, serializeAws_restJson1SearchResourcesCommand, } from "../protocols/Aws_restJson1";
6
- var SearchResourcesCommand = (function (_super) {
7
- __extends(SearchResourcesCommand, _super);
8
- function SearchResourcesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SearchResourcesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SearchResourcesCommand.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 = "ResourceGroupsClient";
18
- var commandName = "SearchResourcesCommand";
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 = "ResourceGroupsClient";
15
+ const commandName = "SearchResourcesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SearchResourcesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: SearchResourcesOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- SearchResourcesCommand.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_restJson1SearchResourcesCommand(input, context);
33
- };
34
- SearchResourcesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1SearchResourcesCommand(output, context);
36
- };
37
- return SearchResourcesCommand;
38
- }($Command));
39
- export { SearchResourcesCommand };
31
+ }
32
+ }