@aws-sdk/client-synthetics 3.121.0 → 3.128.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 (76) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/Synthetics.js +120 -0
  4. package/dist-cjs/commands/AssociateResourceCommand.js +36 -0
  5. package/dist-cjs/commands/CreateGroupCommand.js +36 -0
  6. package/dist-cjs/commands/DeleteGroupCommand.js +36 -0
  7. package/dist-cjs/commands/DisassociateResourceCommand.js +36 -0
  8. package/dist-cjs/commands/GetGroupCommand.js +36 -0
  9. package/dist-cjs/commands/ListAssociatedGroupsCommand.js +36 -0
  10. package/dist-cjs/commands/ListGroupResourcesCommand.js +36 -0
  11. package/dist-cjs/commands/ListGroupsCommand.js +36 -0
  12. package/dist-cjs/commands/index.js +8 -0
  13. package/dist-cjs/models/models_0.js +236 -58
  14. package/dist-cjs/pagination/ListAssociatedGroupsPaginator.js +36 -0
  15. package/dist-cjs/pagination/ListGroupResourcesPaginator.js +36 -0
  16. package/dist-cjs/pagination/ListGroupsPaginator.js +36 -0
  17. package/dist-cjs/pagination/index.js +3 -0
  18. package/dist-cjs/protocols/Aws_restJson1.js +874 -221
  19. package/dist-es/Synthetics.js +120 -0
  20. package/dist-es/commands/AssociateResourceCommand.js +39 -0
  21. package/dist-es/commands/CreateGroupCommand.js +39 -0
  22. package/dist-es/commands/DeleteGroupCommand.js +39 -0
  23. package/dist-es/commands/DisassociateResourceCommand.js +39 -0
  24. package/dist-es/commands/GetGroupCommand.js +39 -0
  25. package/dist-es/commands/ListAssociatedGroupsCommand.js +39 -0
  26. package/dist-es/commands/ListGroupResourcesCommand.js +39 -0
  27. package/dist-es/commands/ListGroupsCommand.js +39 -0
  28. package/dist-es/commands/index.js +8 -0
  29. package/dist-es/models/models_0.js +189 -52
  30. package/dist-es/pagination/ListAssociatedGroupsPaginator.js +75 -0
  31. package/dist-es/pagination/ListGroupResourcesPaginator.js +75 -0
  32. package/dist-es/pagination/ListGroupsPaginator.js +75 -0
  33. package/dist-es/pagination/index.js +3 -0
  34. package/dist-es/protocols/Aws_restJson1.js +1088 -237
  35. package/dist-types/Synthetics.d.ts +90 -11
  36. package/dist-types/SyntheticsClient.d.ts +10 -2
  37. package/dist-types/commands/AssociateResourceCommand.d.ts +38 -0
  38. package/dist-types/commands/CreateCanaryCommand.d.ts +1 -1
  39. package/dist-types/commands/CreateGroupCommand.d.ts +47 -0
  40. package/dist-types/commands/DeleteCanaryCommand.d.ts +1 -1
  41. package/dist-types/commands/DeleteGroupCommand.d.ts +39 -0
  42. package/dist-types/commands/DisassociateResourceCommand.d.ts +35 -0
  43. package/dist-types/commands/GetGroupCommand.d.ts +36 -0
  44. package/dist-types/commands/ListAssociatedGroupsCommand.d.ts +36 -0
  45. package/dist-types/commands/ListGroupResourcesCommand.d.ts +35 -0
  46. package/dist-types/commands/ListGroupsCommand.d.ts +36 -0
  47. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  48. package/dist-types/commands/StopCanaryCommand.d.ts +1 -2
  49. package/dist-types/commands/TagResourceCommand.d.ts +6 -4
  50. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  51. package/dist-types/commands/UpdateCanaryCommand.d.ts +1 -1
  52. package/dist-types/commands/index.d.ts +8 -0
  53. package/dist-types/models/models_0.d.ts +450 -52
  54. package/dist-types/pagination/ListAssociatedGroupsPaginator.d.ts +4 -0
  55. package/dist-types/pagination/ListGroupResourcesPaginator.d.ts +4 -0
  56. package/dist-types/pagination/ListGroupsPaginator.d.ts +4 -0
  57. package/dist-types/pagination/index.d.ts +3 -0
  58. package/dist-types/protocols/Aws_restJson1.d.ts +24 -0
  59. package/dist-types/ts3.4/Synthetics.d.ts +40 -0
  60. package/dist-types/ts3.4/SyntheticsClient.d.ts +10 -2
  61. package/dist-types/ts3.4/commands/AssociateResourceCommand.d.ts +17 -0
  62. package/dist-types/ts3.4/commands/CreateGroupCommand.d.ts +17 -0
  63. package/dist-types/ts3.4/commands/DeleteGroupCommand.d.ts +17 -0
  64. package/dist-types/ts3.4/commands/DisassociateResourceCommand.d.ts +17 -0
  65. package/dist-types/ts3.4/commands/GetGroupCommand.d.ts +17 -0
  66. package/dist-types/ts3.4/commands/ListAssociatedGroupsCommand.d.ts +17 -0
  67. package/dist-types/ts3.4/commands/ListGroupResourcesCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/ListGroupsCommand.d.ts +17 -0
  69. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  70. package/dist-types/ts3.4/models/models_0.d.ts +243 -27
  71. package/dist-types/ts3.4/pagination/ListAssociatedGroupsPaginator.d.ts +4 -0
  72. package/dist-types/ts3.4/pagination/ListGroupResourcesPaginator.d.ts +4 -0
  73. package/dist-types/ts3.4/pagination/ListGroupsPaginator.d.ts +4 -0
  74. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  75. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  76. package/package.json +26 -26
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-synthetics
9
+
10
+
11
+
12
+
13
+
14
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-synthetics
17
+
18
+
19
+
20
+
21
+
22
+ # [3.124.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.123.0...v3.124.0) (2022-07-06)
23
+
24
+
25
+ ### Features
26
+
27
+ * **client-synthetics:** This release introduces Group feature, which enables users to group cross-region canaries. ([5e37998](https://github.com/aws/aws-sdk-js-v3/commit/5e379989f0f5dcc87bb93a0c4577f2ea2879f9e7))
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
34
 
8
35
 
package/README.md CHANGED
@@ -42,16 +42,16 @@ using your favorite package manager:
42
42
 
43
43
  The AWS SDK is modulized by clients and commands.
44
44
  To send a request, you only need to import the `SyntheticsClient` and
45
- the commands you need, for example `CreateCanaryCommand`:
45
+ the commands you need, for example `AssociateResourceCommand`:
46
46
 
47
47
  ```js
48
48
  // ES5 example
49
- const { SyntheticsClient, CreateCanaryCommand } = require("@aws-sdk/client-synthetics");
49
+ const { SyntheticsClient, AssociateResourceCommand } = require("@aws-sdk/client-synthetics");
50
50
  ```
51
51
 
52
52
  ```ts
53
53
  // ES6+ example
54
- import { SyntheticsClient, CreateCanaryCommand } from "@aws-sdk/client-synthetics";
54
+ import { SyntheticsClient, AssociateResourceCommand } from "@aws-sdk/client-synthetics";
55
55
  ```
56
56
 
57
57
  ### Usage
@@ -70,7 +70,7 @@ const client = new SyntheticsClient({ region: "REGION" });
70
70
  const params = {
71
71
  /** input parameters */
72
72
  };
73
- const command = new CreateCanaryCommand(params);
73
+ const command = new AssociateResourceCommand(params);
74
74
  ```
75
75
 
76
76
  #### Async/await
@@ -149,7 +149,7 @@ const client = new AWS.Synthetics({ region: "REGION" });
149
149
 
150
150
  // async/await.
151
151
  try {
152
- const data = await client.createCanary(params);
152
+ const data = await client.associateResource(params);
153
153
  // process data.
154
154
  } catch (error) {
155
155
  // error handling.
@@ -157,7 +157,7 @@ try {
157
157
 
158
158
  // Promises.
159
159
  client
160
- .createCanary(params)
160
+ .associateResource(params)
161
161
  .then((data) => {
162
162
  // process data.
163
163
  })
@@ -166,7 +166,7 @@ client
166
166
  });
167
167
 
168
168
  // callbacks.
169
- client.createCanary(params, (err, data) => {
169
+ client.associateResource(params, (err, data) => {
170
170
  // process err and data.
171
171
  });
172
172
  ```
@@ -1,13 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Synthetics = void 0;
4
+ const AssociateResourceCommand_1 = require("./commands/AssociateResourceCommand");
4
5
  const CreateCanaryCommand_1 = require("./commands/CreateCanaryCommand");
6
+ const CreateGroupCommand_1 = require("./commands/CreateGroupCommand");
5
7
  const DeleteCanaryCommand_1 = require("./commands/DeleteCanaryCommand");
8
+ const DeleteGroupCommand_1 = require("./commands/DeleteGroupCommand");
6
9
  const DescribeCanariesCommand_1 = require("./commands/DescribeCanariesCommand");
7
10
  const DescribeCanariesLastRunCommand_1 = require("./commands/DescribeCanariesLastRunCommand");
8
11
  const DescribeRuntimeVersionsCommand_1 = require("./commands/DescribeRuntimeVersionsCommand");
12
+ const DisassociateResourceCommand_1 = require("./commands/DisassociateResourceCommand");
9
13
  const GetCanaryCommand_1 = require("./commands/GetCanaryCommand");
10
14
  const GetCanaryRunsCommand_1 = require("./commands/GetCanaryRunsCommand");
15
+ const GetGroupCommand_1 = require("./commands/GetGroupCommand");
16
+ const ListAssociatedGroupsCommand_1 = require("./commands/ListAssociatedGroupsCommand");
17
+ const ListGroupResourcesCommand_1 = require("./commands/ListGroupResourcesCommand");
18
+ const ListGroupsCommand_1 = require("./commands/ListGroupsCommand");
11
19
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
12
20
  const StartCanaryCommand_1 = require("./commands/StartCanaryCommand");
13
21
  const StopCanaryCommand_1 = require("./commands/StopCanaryCommand");
@@ -16,6 +24,20 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
16
24
  const UpdateCanaryCommand_1 = require("./commands/UpdateCanaryCommand");
17
25
  const SyntheticsClient_1 = require("./SyntheticsClient");
18
26
  class Synthetics extends SyntheticsClient_1.SyntheticsClient {
27
+ associateResource(args, optionsOrCb, cb) {
28
+ const command = new AssociateResourceCommand_1.AssociateResourceCommand(args);
29
+ if (typeof optionsOrCb === "function") {
30
+ this.send(command, optionsOrCb);
31
+ }
32
+ else if (typeof cb === "function") {
33
+ if (typeof optionsOrCb !== "object")
34
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
35
+ this.send(command, optionsOrCb || {}, cb);
36
+ }
37
+ else {
38
+ return this.send(command, optionsOrCb);
39
+ }
40
+ }
19
41
  createCanary(args, optionsOrCb, cb) {
20
42
  const command = new CreateCanaryCommand_1.CreateCanaryCommand(args);
21
43
  if (typeof optionsOrCb === "function") {
@@ -30,6 +52,20 @@ class Synthetics extends SyntheticsClient_1.SyntheticsClient {
30
52
  return this.send(command, optionsOrCb);
31
53
  }
32
54
  }
55
+ createGroup(args, optionsOrCb, cb) {
56
+ const command = new CreateGroupCommand_1.CreateGroupCommand(args);
57
+ if (typeof optionsOrCb === "function") {
58
+ this.send(command, optionsOrCb);
59
+ }
60
+ else if (typeof cb === "function") {
61
+ if (typeof optionsOrCb !== "object")
62
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
63
+ this.send(command, optionsOrCb || {}, cb);
64
+ }
65
+ else {
66
+ return this.send(command, optionsOrCb);
67
+ }
68
+ }
33
69
  deleteCanary(args, optionsOrCb, cb) {
34
70
  const command = new DeleteCanaryCommand_1.DeleteCanaryCommand(args);
35
71
  if (typeof optionsOrCb === "function") {
@@ -44,6 +80,20 @@ class Synthetics extends SyntheticsClient_1.SyntheticsClient {
44
80
  return this.send(command, optionsOrCb);
45
81
  }
46
82
  }
83
+ deleteGroup(args, optionsOrCb, cb) {
84
+ const command = new DeleteGroupCommand_1.DeleteGroupCommand(args);
85
+ if (typeof optionsOrCb === "function") {
86
+ this.send(command, optionsOrCb);
87
+ }
88
+ else if (typeof cb === "function") {
89
+ if (typeof optionsOrCb !== "object")
90
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
91
+ this.send(command, optionsOrCb || {}, cb);
92
+ }
93
+ else {
94
+ return this.send(command, optionsOrCb);
95
+ }
96
+ }
47
97
  describeCanaries(args, optionsOrCb, cb) {
48
98
  const command = new DescribeCanariesCommand_1.DescribeCanariesCommand(args);
49
99
  if (typeof optionsOrCb === "function") {
@@ -86,6 +136,20 @@ class Synthetics extends SyntheticsClient_1.SyntheticsClient {
86
136
  return this.send(command, optionsOrCb);
87
137
  }
88
138
  }
139
+ disassociateResource(args, optionsOrCb, cb) {
140
+ const command = new DisassociateResourceCommand_1.DisassociateResourceCommand(args);
141
+ if (typeof optionsOrCb === "function") {
142
+ this.send(command, optionsOrCb);
143
+ }
144
+ else if (typeof cb === "function") {
145
+ if (typeof optionsOrCb !== "object")
146
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
147
+ this.send(command, optionsOrCb || {}, cb);
148
+ }
149
+ else {
150
+ return this.send(command, optionsOrCb);
151
+ }
152
+ }
89
153
  getCanary(args, optionsOrCb, cb) {
90
154
  const command = new GetCanaryCommand_1.GetCanaryCommand(args);
91
155
  if (typeof optionsOrCb === "function") {
@@ -114,6 +178,62 @@ class Synthetics extends SyntheticsClient_1.SyntheticsClient {
114
178
  return this.send(command, optionsOrCb);
115
179
  }
116
180
  }
181
+ getGroup(args, optionsOrCb, cb) {
182
+ const command = new GetGroupCommand_1.GetGroupCommand(args);
183
+ if (typeof optionsOrCb === "function") {
184
+ this.send(command, optionsOrCb);
185
+ }
186
+ else if (typeof cb === "function") {
187
+ if (typeof optionsOrCb !== "object")
188
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
189
+ this.send(command, optionsOrCb || {}, cb);
190
+ }
191
+ else {
192
+ return this.send(command, optionsOrCb);
193
+ }
194
+ }
195
+ listAssociatedGroups(args, optionsOrCb, cb) {
196
+ const command = new ListAssociatedGroupsCommand_1.ListAssociatedGroupsCommand(args);
197
+ if (typeof optionsOrCb === "function") {
198
+ this.send(command, optionsOrCb);
199
+ }
200
+ else if (typeof cb === "function") {
201
+ if (typeof optionsOrCb !== "object")
202
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
203
+ this.send(command, optionsOrCb || {}, cb);
204
+ }
205
+ else {
206
+ return this.send(command, optionsOrCb);
207
+ }
208
+ }
209
+ listGroupResources(args, optionsOrCb, cb) {
210
+ const command = new ListGroupResourcesCommand_1.ListGroupResourcesCommand(args);
211
+ if (typeof optionsOrCb === "function") {
212
+ this.send(command, optionsOrCb);
213
+ }
214
+ else if (typeof cb === "function") {
215
+ if (typeof optionsOrCb !== "object")
216
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
217
+ this.send(command, optionsOrCb || {}, cb);
218
+ }
219
+ else {
220
+ return this.send(command, optionsOrCb);
221
+ }
222
+ }
223
+ listGroups(args, optionsOrCb, cb) {
224
+ const command = new ListGroupsCommand_1.ListGroupsCommand(args);
225
+ if (typeof optionsOrCb === "function") {
226
+ this.send(command, optionsOrCb);
227
+ }
228
+ else if (typeof cb === "function") {
229
+ if (typeof optionsOrCb !== "object")
230
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
231
+ this.send(command, optionsOrCb || {}, cb);
232
+ }
233
+ else {
234
+ return this.send(command, optionsOrCb);
235
+ }
236
+ }
117
237
  listTagsForResource(args, optionsOrCb, cb) {
118
238
  const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
119
239
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssociateResourceCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class AssociateResourceCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "SyntheticsClient";
18
+ const commandName = "AssociateResourceCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.AssociateResourceRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.AssociateResourceResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1AssociateResourceCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1AssociateResourceCommand)(output, context);
34
+ }
35
+ }
36
+ exports.AssociateResourceCommand = AssociateResourceCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateGroupCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateGroupCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "SyntheticsClient";
18
+ const commandName = "CreateGroupCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateGroupRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateGroupResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1CreateGroupCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1CreateGroupCommand)(output, context);
34
+ }
35
+ }
36
+ exports.CreateGroupCommand = CreateGroupCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteGroupCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DeleteGroupCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "SyntheticsClient";
18
+ const commandName = "DeleteGroupCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DeleteGroupRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DeleteGroupResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1DeleteGroupCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteGroupCommand)(output, context);
34
+ }
35
+ }
36
+ exports.DeleteGroupCommand = DeleteGroupCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DisassociateResourceCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DisassociateResourceCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "SyntheticsClient";
18
+ const commandName = "DisassociateResourceCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DisassociateResourceRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DisassociateResourceResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1DisassociateResourceCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1DisassociateResourceCommand)(output, context);
34
+ }
35
+ }
36
+ exports.DisassociateResourceCommand = DisassociateResourceCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetGroupCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class GetGroupCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "SyntheticsClient";
18
+ const commandName = "GetGroupCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.GetGroupRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.GetGroupResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1GetGroupCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1GetGroupCommand)(output, context);
34
+ }
35
+ }
36
+ exports.GetGroupCommand = GetGroupCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListAssociatedGroupsCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class ListAssociatedGroupsCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "SyntheticsClient";
18
+ const commandName = "ListAssociatedGroupsCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListAssociatedGroupsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListAssociatedGroupsResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1ListAssociatedGroupsCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListAssociatedGroupsCommand)(output, context);
34
+ }
35
+ }
36
+ exports.ListAssociatedGroupsCommand = ListAssociatedGroupsCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListGroupResourcesCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class ListGroupResourcesCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "SyntheticsClient";
18
+ const commandName = "ListGroupResourcesCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListGroupResourcesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListGroupResourcesResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1ListGroupResourcesCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListGroupResourcesCommand)(output, context);
34
+ }
35
+ }
36
+ exports.ListGroupResourcesCommand = ListGroupResourcesCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListGroupsCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class ListGroupsCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "SyntheticsClient";
18
+ const commandName = "ListGroupsCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListGroupsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListGroupsResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1ListGroupsCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListGroupsCommand)(output, context);
34
+ }
35
+ }
36
+ exports.ListGroupsCommand = ListGroupsCommand;
@@ -1,13 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./AssociateResourceCommand"), exports);
4
5
  tslib_1.__exportStar(require("./CreateCanaryCommand"), exports);
6
+ tslib_1.__exportStar(require("./CreateGroupCommand"), exports);
5
7
  tslib_1.__exportStar(require("./DeleteCanaryCommand"), exports);
8
+ tslib_1.__exportStar(require("./DeleteGroupCommand"), exports);
6
9
  tslib_1.__exportStar(require("./DescribeCanariesCommand"), exports);
7
10
  tslib_1.__exportStar(require("./DescribeCanariesLastRunCommand"), exports);
8
11
  tslib_1.__exportStar(require("./DescribeRuntimeVersionsCommand"), exports);
12
+ tslib_1.__exportStar(require("./DisassociateResourceCommand"), exports);
9
13
  tslib_1.__exportStar(require("./GetCanaryCommand"), exports);
10
14
  tslib_1.__exportStar(require("./GetCanaryRunsCommand"), exports);
15
+ tslib_1.__exportStar(require("./GetGroupCommand"), exports);
16
+ tslib_1.__exportStar(require("./ListAssociatedGroupsCommand"), exports);
17
+ tslib_1.__exportStar(require("./ListGroupResourcesCommand"), exports);
18
+ tslib_1.__exportStar(require("./ListGroupsCommand"), exports);
11
19
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
12
20
  tslib_1.__exportStar(require("./StartCanaryCommand"), exports);
13
21
  tslib_1.__exportStar(require("./StopCanaryCommand"), exports);