@aws-sdk/client-synthetics 3.118.0 → 3.124.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.
- package/CHANGELOG.md +30 -0
- package/README.md +7 -7
- package/dist-cjs/Synthetics.js +120 -0
- package/dist-cjs/commands/AssociateResourceCommand.js +36 -0
- package/dist-cjs/commands/CreateGroupCommand.js +36 -0
- package/dist-cjs/commands/DeleteGroupCommand.js +36 -0
- package/dist-cjs/commands/DisassociateResourceCommand.js +36 -0
- package/dist-cjs/commands/GetGroupCommand.js +36 -0
- package/dist-cjs/commands/ListAssociatedGroupsCommand.js +36 -0
- package/dist-cjs/commands/ListGroupResourcesCommand.js +36 -0
- package/dist-cjs/commands/ListGroupsCommand.js +36 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/models/models_0.js +236 -58
- package/dist-cjs/pagination/ListAssociatedGroupsPaginator.js +36 -0
- package/dist-cjs/pagination/ListGroupResourcesPaginator.js +36 -0
- package/dist-cjs/pagination/ListGroupsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +866 -139
- package/dist-es/Synthetics.js +120 -0
- package/dist-es/commands/AssociateResourceCommand.js +39 -0
- package/dist-es/commands/CreateGroupCommand.js +39 -0
- package/dist-es/commands/DeleteGroupCommand.js +39 -0
- package/dist-es/commands/DisassociateResourceCommand.js +39 -0
- package/dist-es/commands/GetGroupCommand.js +39 -0
- package/dist-es/commands/ListAssociatedGroupsCommand.js +39 -0
- package/dist-es/commands/ListGroupResourcesCommand.js +39 -0
- package/dist-es/commands/ListGroupsCommand.js +39 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/models/models_0.js +189 -52
- package/dist-es/pagination/ListAssociatedGroupsPaginator.js +75 -0
- package/dist-es/pagination/ListGroupResourcesPaginator.js +75 -0
- package/dist-es/pagination/ListGroupsPaginator.js +75 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1104 -179
- package/dist-types/Synthetics.d.ts +90 -11
- package/dist-types/SyntheticsClient.d.ts +10 -2
- package/dist-types/commands/AssociateResourceCommand.d.ts +38 -0
- package/dist-types/commands/CreateCanaryCommand.d.ts +1 -1
- package/dist-types/commands/CreateGroupCommand.d.ts +47 -0
- package/dist-types/commands/DeleteCanaryCommand.d.ts +1 -1
- package/dist-types/commands/DeleteGroupCommand.d.ts +39 -0
- package/dist-types/commands/DisassociateResourceCommand.d.ts +35 -0
- package/dist-types/commands/GetGroupCommand.d.ts +36 -0
- package/dist-types/commands/ListAssociatedGroupsCommand.d.ts +36 -0
- package/dist-types/commands/ListGroupResourcesCommand.d.ts +35 -0
- package/dist-types/commands/ListGroupsCommand.d.ts +36 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/StopCanaryCommand.d.ts +1 -2
- package/dist-types/commands/TagResourceCommand.d.ts +6 -4
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateCanaryCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +450 -52
- package/dist-types/pagination/ListAssociatedGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListGroupResourcesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +24 -0
- package/dist-types/ts3.4/Synthetics.d.ts +40 -0
- package/dist-types/ts3.4/SyntheticsClient.d.ts +10 -2
- package/dist-types/ts3.4/commands/AssociateResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAssociatedGroupsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListGroupResourcesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListGroupsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +243 -27
- package/dist-types/ts3.4/pagination/ListAssociatedGroupsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListGroupResourcesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListGroupsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
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.124.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.123.0...v3.124.0) (2022-07-06)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @aws-sdk/client-synthetics
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
|
|
7
37
|
|
|
8
38
|
**Note:** Version bump only for package @aws-sdk/client-synthetics
|
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 `
|
|
45
|
+
the commands you need, for example `AssociateResourceCommand`:
|
|
46
46
|
|
|
47
47
|
```js
|
|
48
48
|
// ES5 example
|
|
49
|
-
const { SyntheticsClient,
|
|
49
|
+
const { SyntheticsClient, AssociateResourceCommand } = require("@aws-sdk/client-synthetics");
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
```ts
|
|
53
53
|
// ES6+ example
|
|
54
|
-
import { SyntheticsClient,
|
|
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
|
|
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.
|
|
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
|
-
.
|
|
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.
|
|
169
|
+
client.associateResource(params, (err, data) => {
|
|
170
170
|
// process err and data.
|
|
171
171
|
});
|
|
172
172
|
```
|
package/dist-cjs/Synthetics.js
CHANGED
|
@@ -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);
|