@aws-sdk/client-synthetics 3.315.0 → 3.319.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Synthetics = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const AssociateResourceCommand_1 = require("./commands/AssociateResourceCommand");
5
6
  const CreateCanaryCommand_1 = require("./commands/CreateCanaryCommand");
6
7
  const CreateGroupCommand_1 = require("./commands/CreateGroupCommand");
@@ -23,300 +24,30 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
23
24
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
24
25
  const UpdateCanaryCommand_1 = require("./commands/UpdateCanaryCommand");
25
26
  const SyntheticsClient_1 = require("./SyntheticsClient");
27
+ const commands = {
28
+ AssociateResourceCommand: AssociateResourceCommand_1.AssociateResourceCommand,
29
+ CreateCanaryCommand: CreateCanaryCommand_1.CreateCanaryCommand,
30
+ CreateGroupCommand: CreateGroupCommand_1.CreateGroupCommand,
31
+ DeleteCanaryCommand: DeleteCanaryCommand_1.DeleteCanaryCommand,
32
+ DeleteGroupCommand: DeleteGroupCommand_1.DeleteGroupCommand,
33
+ DescribeCanariesCommand: DescribeCanariesCommand_1.DescribeCanariesCommand,
34
+ DescribeCanariesLastRunCommand: DescribeCanariesLastRunCommand_1.DescribeCanariesLastRunCommand,
35
+ DescribeRuntimeVersionsCommand: DescribeRuntimeVersionsCommand_1.DescribeRuntimeVersionsCommand,
36
+ DisassociateResourceCommand: DisassociateResourceCommand_1.DisassociateResourceCommand,
37
+ GetCanaryCommand: GetCanaryCommand_1.GetCanaryCommand,
38
+ GetCanaryRunsCommand: GetCanaryRunsCommand_1.GetCanaryRunsCommand,
39
+ GetGroupCommand: GetGroupCommand_1.GetGroupCommand,
40
+ ListAssociatedGroupsCommand: ListAssociatedGroupsCommand_1.ListAssociatedGroupsCommand,
41
+ ListGroupResourcesCommand: ListGroupResourcesCommand_1.ListGroupResourcesCommand,
42
+ ListGroupsCommand: ListGroupsCommand_1.ListGroupsCommand,
43
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
44
+ StartCanaryCommand: StartCanaryCommand_1.StartCanaryCommand,
45
+ StopCanaryCommand: StopCanaryCommand_1.StopCanaryCommand,
46
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
47
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
48
+ UpdateCanaryCommand: UpdateCanaryCommand_1.UpdateCanaryCommand,
49
+ };
26
50
  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
- }
41
- createCanary(args, optionsOrCb, cb) {
42
- const command = new CreateCanaryCommand_1.CreateCanaryCommand(args);
43
- if (typeof optionsOrCb === "function") {
44
- this.send(command, optionsOrCb);
45
- }
46
- else if (typeof cb === "function") {
47
- if (typeof optionsOrCb !== "object")
48
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
49
- this.send(command, optionsOrCb || {}, cb);
50
- }
51
- else {
52
- return this.send(command, optionsOrCb);
53
- }
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
- }
69
- deleteCanary(args, optionsOrCb, cb) {
70
- const command = new DeleteCanaryCommand_1.DeleteCanaryCommand(args);
71
- if (typeof optionsOrCb === "function") {
72
- this.send(command, optionsOrCb);
73
- }
74
- else if (typeof cb === "function") {
75
- if (typeof optionsOrCb !== "object")
76
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
77
- this.send(command, optionsOrCb || {}, cb);
78
- }
79
- else {
80
- return this.send(command, optionsOrCb);
81
- }
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
- }
97
- describeCanaries(args, optionsOrCb, cb) {
98
- const command = new DescribeCanariesCommand_1.DescribeCanariesCommand(args);
99
- if (typeof optionsOrCb === "function") {
100
- this.send(command, optionsOrCb);
101
- }
102
- else if (typeof cb === "function") {
103
- if (typeof optionsOrCb !== "object")
104
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
105
- this.send(command, optionsOrCb || {}, cb);
106
- }
107
- else {
108
- return this.send(command, optionsOrCb);
109
- }
110
- }
111
- describeCanariesLastRun(args, optionsOrCb, cb) {
112
- const command = new DescribeCanariesLastRunCommand_1.DescribeCanariesLastRunCommand(args);
113
- if (typeof optionsOrCb === "function") {
114
- this.send(command, optionsOrCb);
115
- }
116
- else if (typeof cb === "function") {
117
- if (typeof optionsOrCb !== "object")
118
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
119
- this.send(command, optionsOrCb || {}, cb);
120
- }
121
- else {
122
- return this.send(command, optionsOrCb);
123
- }
124
- }
125
- describeRuntimeVersions(args, optionsOrCb, cb) {
126
- const command = new DescribeRuntimeVersionsCommand_1.DescribeRuntimeVersionsCommand(args);
127
- if (typeof optionsOrCb === "function") {
128
- this.send(command, optionsOrCb);
129
- }
130
- else if (typeof cb === "function") {
131
- if (typeof optionsOrCb !== "object")
132
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
133
- this.send(command, optionsOrCb || {}, cb);
134
- }
135
- else {
136
- return this.send(command, optionsOrCb);
137
- }
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
- }
153
- getCanary(args, optionsOrCb, cb) {
154
- const command = new GetCanaryCommand_1.GetCanaryCommand(args);
155
- if (typeof optionsOrCb === "function") {
156
- this.send(command, optionsOrCb);
157
- }
158
- else if (typeof cb === "function") {
159
- if (typeof optionsOrCb !== "object")
160
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
161
- this.send(command, optionsOrCb || {}, cb);
162
- }
163
- else {
164
- return this.send(command, optionsOrCb);
165
- }
166
- }
167
- getCanaryRuns(args, optionsOrCb, cb) {
168
- const command = new GetCanaryRunsCommand_1.GetCanaryRunsCommand(args);
169
- if (typeof optionsOrCb === "function") {
170
- this.send(command, optionsOrCb);
171
- }
172
- else if (typeof cb === "function") {
173
- if (typeof optionsOrCb !== "object")
174
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
175
- this.send(command, optionsOrCb || {}, cb);
176
- }
177
- else {
178
- return this.send(command, optionsOrCb);
179
- }
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
- }
237
- listTagsForResource(args, optionsOrCb, cb) {
238
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
239
- if (typeof optionsOrCb === "function") {
240
- this.send(command, optionsOrCb);
241
- }
242
- else if (typeof cb === "function") {
243
- if (typeof optionsOrCb !== "object")
244
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
245
- this.send(command, optionsOrCb || {}, cb);
246
- }
247
- else {
248
- return this.send(command, optionsOrCb);
249
- }
250
- }
251
- startCanary(args, optionsOrCb, cb) {
252
- const command = new StartCanaryCommand_1.StartCanaryCommand(args);
253
- if (typeof optionsOrCb === "function") {
254
- this.send(command, optionsOrCb);
255
- }
256
- else if (typeof cb === "function") {
257
- if (typeof optionsOrCb !== "object")
258
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
259
- this.send(command, optionsOrCb || {}, cb);
260
- }
261
- else {
262
- return this.send(command, optionsOrCb);
263
- }
264
- }
265
- stopCanary(args, optionsOrCb, cb) {
266
- const command = new StopCanaryCommand_1.StopCanaryCommand(args);
267
- if (typeof optionsOrCb === "function") {
268
- this.send(command, optionsOrCb);
269
- }
270
- else if (typeof cb === "function") {
271
- if (typeof optionsOrCb !== "object")
272
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
273
- this.send(command, optionsOrCb || {}, cb);
274
- }
275
- else {
276
- return this.send(command, optionsOrCb);
277
- }
278
- }
279
- tagResource(args, optionsOrCb, cb) {
280
- const command = new TagResourceCommand_1.TagResourceCommand(args);
281
- if (typeof optionsOrCb === "function") {
282
- this.send(command, optionsOrCb);
283
- }
284
- else if (typeof cb === "function") {
285
- if (typeof optionsOrCb !== "object")
286
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
287
- this.send(command, optionsOrCb || {}, cb);
288
- }
289
- else {
290
- return this.send(command, optionsOrCb);
291
- }
292
- }
293
- untagResource(args, optionsOrCb, cb) {
294
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
295
- if (typeof optionsOrCb === "function") {
296
- this.send(command, optionsOrCb);
297
- }
298
- else if (typeof cb === "function") {
299
- if (typeof optionsOrCb !== "object")
300
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
301
- this.send(command, optionsOrCb || {}, cb);
302
- }
303
- else {
304
- return this.send(command, optionsOrCb);
305
- }
306
- }
307
- updateCanary(args, optionsOrCb, cb) {
308
- const command = new UpdateCanaryCommand_1.UpdateCanaryCommand(args);
309
- if (typeof optionsOrCb === "function") {
310
- this.send(command, optionsOrCb);
311
- }
312
- else if (typeof cb === "function") {
313
- if (typeof optionsOrCb !== "object")
314
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
315
- this.send(command, optionsOrCb || {}, cb);
316
- }
317
- else {
318
- return this.send(command, optionsOrCb);
319
- }
320
- }
321
51
  }
322
52
  exports.Synthetics = Synthetics;
53
+ (0, smithy_client_1.createAggregatedClient)(commands, Synthetics);
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { AssociateResourceCommand, } from "./commands/AssociateResourceCommand";
2
3
  import { CreateCanaryCommand, } from "./commands/CreateCanaryCommand";
3
4
  import { CreateGroupCommand } from "./commands/CreateGroupCommand";
@@ -20,299 +21,29 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
20
21
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
21
22
  import { UpdateCanaryCommand, } from "./commands/UpdateCanaryCommand";
22
23
  import { SyntheticsClient } from "./SyntheticsClient";
24
+ const commands = {
25
+ AssociateResourceCommand,
26
+ CreateCanaryCommand,
27
+ CreateGroupCommand,
28
+ DeleteCanaryCommand,
29
+ DeleteGroupCommand,
30
+ DescribeCanariesCommand,
31
+ DescribeCanariesLastRunCommand,
32
+ DescribeRuntimeVersionsCommand,
33
+ DisassociateResourceCommand,
34
+ GetCanaryCommand,
35
+ GetCanaryRunsCommand,
36
+ GetGroupCommand,
37
+ ListAssociatedGroupsCommand,
38
+ ListGroupResourcesCommand,
39
+ ListGroupsCommand,
40
+ ListTagsForResourceCommand,
41
+ StartCanaryCommand,
42
+ StopCanaryCommand,
43
+ TagResourceCommand,
44
+ UntagResourceCommand,
45
+ UpdateCanaryCommand,
46
+ };
23
47
  export class Synthetics extends SyntheticsClient {
24
- associateResource(args, optionsOrCb, cb) {
25
- const command = new AssociateResourceCommand(args);
26
- if (typeof optionsOrCb === "function") {
27
- this.send(command, optionsOrCb);
28
- }
29
- else if (typeof cb === "function") {
30
- if (typeof optionsOrCb !== "object")
31
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
32
- this.send(command, optionsOrCb || {}, cb);
33
- }
34
- else {
35
- return this.send(command, optionsOrCb);
36
- }
37
- }
38
- createCanary(args, optionsOrCb, cb) {
39
- const command = new CreateCanaryCommand(args);
40
- if (typeof optionsOrCb === "function") {
41
- this.send(command, optionsOrCb);
42
- }
43
- else if (typeof cb === "function") {
44
- if (typeof optionsOrCb !== "object")
45
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
46
- this.send(command, optionsOrCb || {}, cb);
47
- }
48
- else {
49
- return this.send(command, optionsOrCb);
50
- }
51
- }
52
- createGroup(args, optionsOrCb, cb) {
53
- const command = new CreateGroupCommand(args);
54
- if (typeof optionsOrCb === "function") {
55
- this.send(command, optionsOrCb);
56
- }
57
- else if (typeof cb === "function") {
58
- if (typeof optionsOrCb !== "object")
59
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
60
- this.send(command, optionsOrCb || {}, cb);
61
- }
62
- else {
63
- return this.send(command, optionsOrCb);
64
- }
65
- }
66
- deleteCanary(args, optionsOrCb, cb) {
67
- const command = new DeleteCanaryCommand(args);
68
- if (typeof optionsOrCb === "function") {
69
- this.send(command, optionsOrCb);
70
- }
71
- else if (typeof cb === "function") {
72
- if (typeof optionsOrCb !== "object")
73
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
74
- this.send(command, optionsOrCb || {}, cb);
75
- }
76
- else {
77
- return this.send(command, optionsOrCb);
78
- }
79
- }
80
- deleteGroup(args, optionsOrCb, cb) {
81
- const command = new DeleteGroupCommand(args);
82
- if (typeof optionsOrCb === "function") {
83
- this.send(command, optionsOrCb);
84
- }
85
- else if (typeof cb === "function") {
86
- if (typeof optionsOrCb !== "object")
87
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
88
- this.send(command, optionsOrCb || {}, cb);
89
- }
90
- else {
91
- return this.send(command, optionsOrCb);
92
- }
93
- }
94
- describeCanaries(args, optionsOrCb, cb) {
95
- const command = new DescribeCanariesCommand(args);
96
- if (typeof optionsOrCb === "function") {
97
- this.send(command, optionsOrCb);
98
- }
99
- else if (typeof cb === "function") {
100
- if (typeof optionsOrCb !== "object")
101
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
102
- this.send(command, optionsOrCb || {}, cb);
103
- }
104
- else {
105
- return this.send(command, optionsOrCb);
106
- }
107
- }
108
- describeCanariesLastRun(args, optionsOrCb, cb) {
109
- const command = new DescribeCanariesLastRunCommand(args);
110
- if (typeof optionsOrCb === "function") {
111
- this.send(command, optionsOrCb);
112
- }
113
- else if (typeof cb === "function") {
114
- if (typeof optionsOrCb !== "object")
115
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
116
- this.send(command, optionsOrCb || {}, cb);
117
- }
118
- else {
119
- return this.send(command, optionsOrCb);
120
- }
121
- }
122
- describeRuntimeVersions(args, optionsOrCb, cb) {
123
- const command = new DescribeRuntimeVersionsCommand(args);
124
- if (typeof optionsOrCb === "function") {
125
- this.send(command, optionsOrCb);
126
- }
127
- else if (typeof cb === "function") {
128
- if (typeof optionsOrCb !== "object")
129
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
130
- this.send(command, optionsOrCb || {}, cb);
131
- }
132
- else {
133
- return this.send(command, optionsOrCb);
134
- }
135
- }
136
- disassociateResource(args, optionsOrCb, cb) {
137
- const command = new DisassociateResourceCommand(args);
138
- if (typeof optionsOrCb === "function") {
139
- this.send(command, optionsOrCb);
140
- }
141
- else if (typeof cb === "function") {
142
- if (typeof optionsOrCb !== "object")
143
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
144
- this.send(command, optionsOrCb || {}, cb);
145
- }
146
- else {
147
- return this.send(command, optionsOrCb);
148
- }
149
- }
150
- getCanary(args, optionsOrCb, cb) {
151
- const command = new GetCanaryCommand(args);
152
- if (typeof optionsOrCb === "function") {
153
- this.send(command, optionsOrCb);
154
- }
155
- else if (typeof cb === "function") {
156
- if (typeof optionsOrCb !== "object")
157
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
158
- this.send(command, optionsOrCb || {}, cb);
159
- }
160
- else {
161
- return this.send(command, optionsOrCb);
162
- }
163
- }
164
- getCanaryRuns(args, optionsOrCb, cb) {
165
- const command = new GetCanaryRunsCommand(args);
166
- if (typeof optionsOrCb === "function") {
167
- this.send(command, optionsOrCb);
168
- }
169
- else if (typeof cb === "function") {
170
- if (typeof optionsOrCb !== "object")
171
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
172
- this.send(command, optionsOrCb || {}, cb);
173
- }
174
- else {
175
- return this.send(command, optionsOrCb);
176
- }
177
- }
178
- getGroup(args, optionsOrCb, cb) {
179
- const command = new GetGroupCommand(args);
180
- if (typeof optionsOrCb === "function") {
181
- this.send(command, optionsOrCb);
182
- }
183
- else if (typeof cb === "function") {
184
- if (typeof optionsOrCb !== "object")
185
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
186
- this.send(command, optionsOrCb || {}, cb);
187
- }
188
- else {
189
- return this.send(command, optionsOrCb);
190
- }
191
- }
192
- listAssociatedGroups(args, optionsOrCb, cb) {
193
- const command = new ListAssociatedGroupsCommand(args);
194
- if (typeof optionsOrCb === "function") {
195
- this.send(command, optionsOrCb);
196
- }
197
- else if (typeof cb === "function") {
198
- if (typeof optionsOrCb !== "object")
199
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
200
- this.send(command, optionsOrCb || {}, cb);
201
- }
202
- else {
203
- return this.send(command, optionsOrCb);
204
- }
205
- }
206
- listGroupResources(args, optionsOrCb, cb) {
207
- const command = new ListGroupResourcesCommand(args);
208
- if (typeof optionsOrCb === "function") {
209
- this.send(command, optionsOrCb);
210
- }
211
- else if (typeof cb === "function") {
212
- if (typeof optionsOrCb !== "object")
213
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
214
- this.send(command, optionsOrCb || {}, cb);
215
- }
216
- else {
217
- return this.send(command, optionsOrCb);
218
- }
219
- }
220
- listGroups(args, optionsOrCb, cb) {
221
- const command = new ListGroupsCommand(args);
222
- if (typeof optionsOrCb === "function") {
223
- this.send(command, optionsOrCb);
224
- }
225
- else if (typeof cb === "function") {
226
- if (typeof optionsOrCb !== "object")
227
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
228
- this.send(command, optionsOrCb || {}, cb);
229
- }
230
- else {
231
- return this.send(command, optionsOrCb);
232
- }
233
- }
234
- listTagsForResource(args, optionsOrCb, cb) {
235
- const command = new ListTagsForResourceCommand(args);
236
- if (typeof optionsOrCb === "function") {
237
- this.send(command, optionsOrCb);
238
- }
239
- else if (typeof cb === "function") {
240
- if (typeof optionsOrCb !== "object")
241
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
242
- this.send(command, optionsOrCb || {}, cb);
243
- }
244
- else {
245
- return this.send(command, optionsOrCb);
246
- }
247
- }
248
- startCanary(args, optionsOrCb, cb) {
249
- const command = new StartCanaryCommand(args);
250
- if (typeof optionsOrCb === "function") {
251
- this.send(command, optionsOrCb);
252
- }
253
- else if (typeof cb === "function") {
254
- if (typeof optionsOrCb !== "object")
255
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
256
- this.send(command, optionsOrCb || {}, cb);
257
- }
258
- else {
259
- return this.send(command, optionsOrCb);
260
- }
261
- }
262
- stopCanary(args, optionsOrCb, cb) {
263
- const command = new StopCanaryCommand(args);
264
- if (typeof optionsOrCb === "function") {
265
- this.send(command, optionsOrCb);
266
- }
267
- else if (typeof cb === "function") {
268
- if (typeof optionsOrCb !== "object")
269
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
270
- this.send(command, optionsOrCb || {}, cb);
271
- }
272
- else {
273
- return this.send(command, optionsOrCb);
274
- }
275
- }
276
- tagResource(args, optionsOrCb, cb) {
277
- const command = new TagResourceCommand(args);
278
- if (typeof optionsOrCb === "function") {
279
- this.send(command, optionsOrCb);
280
- }
281
- else if (typeof cb === "function") {
282
- if (typeof optionsOrCb !== "object")
283
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
284
- this.send(command, optionsOrCb || {}, cb);
285
- }
286
- else {
287
- return this.send(command, optionsOrCb);
288
- }
289
- }
290
- untagResource(args, optionsOrCb, cb) {
291
- const command = new UntagResourceCommand(args);
292
- if (typeof optionsOrCb === "function") {
293
- this.send(command, optionsOrCb);
294
- }
295
- else if (typeof cb === "function") {
296
- if (typeof optionsOrCb !== "object")
297
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
298
- this.send(command, optionsOrCb || {}, cb);
299
- }
300
- else {
301
- return this.send(command, optionsOrCb);
302
- }
303
- }
304
- updateCanary(args, optionsOrCb, cb) {
305
- const command = new UpdateCanaryCommand(args);
306
- if (typeof optionsOrCb === "function") {
307
- this.send(command, optionsOrCb);
308
- }
309
- else if (typeof cb === "function") {
310
- if (typeof optionsOrCb !== "object")
311
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
312
- this.send(command, optionsOrCb || {}, cb);
313
- }
314
- else {
315
- return this.send(command, optionsOrCb);
316
- }
317
- }
318
48
  }
49
+ createAggregatedClient(commands, Synthetics);
@@ -21,281 +21,152 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
21
21
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
22
22
  import { UpdateCanaryCommandInput, UpdateCanaryCommandOutput } from "./commands/UpdateCanaryCommand";
23
23
  import { SyntheticsClient } from "./SyntheticsClient";
24
- /**
25
- * @public
26
- * <fullname>Amazon CloudWatch Synthetics</fullname>
27
- * <p>You can use Amazon CloudWatch Synthetics to continually monitor your services. You can
28
- * create and manage <i>canaries</i>, which are modular, lightweight scripts
29
- * that monitor your endpoints and APIs
30
- * from the outside-in. You can set up your canaries to run
31
- * 24 hours a day, once per minute. The canaries help you check the availability and latency
32
- * of your web services and troubleshoot anomalies by investigating load time data,
33
- * screenshots of the UI, logs, and metrics. The canaries seamlessly integrate with CloudWatch
34
- * ServiceLens to help you trace the causes of impacted nodes in your applications. For more
35
- * information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ServiceLens.html">Using ServiceLens to Monitor
36
- * the Health of Your Applications</a> in the <i>Amazon CloudWatch User
37
- * Guide</i>.</p>
38
- *
39
- * <p>Before you create and manage canaries, be aware of the security considerations. For more
40
- * information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/servicelens_canaries_security.html">Security
41
- * Considerations for Synthetics Canaries</a>.</p>
42
- */
43
- export declare class Synthetics extends SyntheticsClient {
24
+ export interface Synthetics {
44
25
  /**
45
- * @public
46
- * <p>Associates a canary with a group. Using groups can help you with
47
- * managing and automating your canaries, and you can also view aggregated run results and statistics
48
- * for all canaries in a group. </p>
49
- * <p>You must run this operation in the Region where the canary exists.</p>
26
+ * @see {@link AssociateResourceCommand}
50
27
  */
51
28
  associateResource(args: AssociateResourceCommandInput, options?: __HttpHandlerOptions): Promise<AssociateResourceCommandOutput>;
52
29
  associateResource(args: AssociateResourceCommandInput, cb: (err: any, data?: AssociateResourceCommandOutput) => void): void;
53
30
  associateResource(args: AssociateResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateResourceCommandOutput) => void): void;
54
31
  /**
55
- * @public
56
- * <p>Creates a canary. Canaries are scripts that monitor your endpoints and APIs from the
57
- * outside-in. Canaries help you check the availability and latency of your web services and
58
- * troubleshoot anomalies by investigating load time data, screenshots of the UI, logs, and
59
- * metrics. You can set up a canary to run continuously or just once. </p>
60
- * <p>Do not use <code>CreateCanary</code> to modify an existing canary. Use <a href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_UpdateCanary.html">UpdateCanary</a> instead.</p>
61
- * <p>To create canaries, you must have the <code>CloudWatchSyntheticsFullAccess</code> policy.
62
- * If you are creating a new IAM role for the canary, you also need the
63
- * <code>iam:CreateRole</code>, <code>iam:CreatePolicy</code> and
64
- * <code>iam:AttachRolePolicy</code> permissions. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Roles">Necessary
65
- * Roles and Permissions</a>.</p>
66
- * <p>Do not include secrets or proprietary information in your canary names. The canary name
67
- * makes up part of the Amazon Resource Name (ARN) for the canary, and the ARN is included in
68
- * outbound calls over the internet. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/servicelens_canaries_security.html">Security
69
- * Considerations for Synthetics Canaries</a>.</p>
32
+ * @see {@link CreateCanaryCommand}
70
33
  */
71
34
  createCanary(args: CreateCanaryCommandInput, options?: __HttpHandlerOptions): Promise<CreateCanaryCommandOutput>;
72
35
  createCanary(args: CreateCanaryCommandInput, cb: (err: any, data?: CreateCanaryCommandOutput) => void): void;
73
36
  createCanary(args: CreateCanaryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCanaryCommandOutput) => void): void;
74
37
  /**
75
- * @public
76
- * <p>Creates a group which you can use to associate canaries with each other, including cross-Region
77
- * canaries. Using groups can help you with
78
- * managing and automating your canaries, and you can also view aggregated run results and statistics
79
- * for all canaries in a group. </p>
80
- * <p>Groups are global resources. When you create a group, it is replicated across Amazon Web Services Regions, and
81
- * you can view it and add canaries to it from any Region.
82
- * Although the group ARN format reflects the Region name where it was created, a group is not constrained to any Region.
83
- * This means that you can put canaries from multiple Regions into the same group, and then use
84
- * that group to view and manage all of those canaries in a single view.</p>
85
- * <p>Groups are supported in all Regions except the Regions that are disabled by default. For more information
86
- * about these Regions, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable">Enabling a Region</a>.</p>
87
- * <p>Each group can contain as many as 10 canaries. You can have as many as 20 groups in your account. Any single canary
88
- * can be a member of up to 10 groups.</p>
38
+ * @see {@link CreateGroupCommand}
89
39
  */
90
40
  createGroup(args: CreateGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateGroupCommandOutput>;
91
41
  createGroup(args: CreateGroupCommandInput, cb: (err: any, data?: CreateGroupCommandOutput) => void): void;
92
42
  createGroup(args: CreateGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGroupCommandOutput) => void): void;
93
43
  /**
94
- * @public
95
- * <p>Permanently deletes the specified canary.</p>
96
- * <p>If you specify <code>DeleteLambda</code> to <code>true</code>, CloudWatch Synthetics also deletes
97
- * the Lambda functions and layers that are used by the canary.</p>
98
- * <p>Other resources used and created by the canary are not automatically deleted.
99
- * After you delete a canary that you do not intend to
100
- * use again, you
101
- * should also delete the following:</p>
102
- * <ul>
103
- * <li>
104
- * <p>The CloudWatch alarms created for this canary. These alarms have a name of
105
- * <code>Synthetics-SharpDrop-Alarm-<i>MyCanaryName</i>
106
- * </code>.</p>
107
- * </li>
108
- * <li>
109
- * <p>Amazon S3 objects and buckets, such as the canary's artifact location.</p>
110
- * </li>
111
- * <li>
112
- * <p>IAM roles created for the canary. If they were created in the console, these roles
113
- * have the name <code>
114
- * role/service-role/CloudWatchSyntheticsRole-<i>MyCanaryName</i>
115
- * </code>.</p>
116
- * </li>
117
- * <li>
118
- * <p>CloudWatch Logs log groups created for the canary. These logs groups have the name
119
- * <code>/aws/lambda/cwsyn-<i>MyCanaryName</i>
120
- * </code>. </p>
121
- * </li>
122
- * </ul>
123
- *
124
- * <p>Before you delete a canary, you might want to use <code>GetCanary</code> to display
125
- * the information about this canary. Make
126
- * note of the information returned by this operation so that you can delete these resources
127
- * after you delete the canary.</p>
44
+ * @see {@link DeleteCanaryCommand}
128
45
  */
129
46
  deleteCanary(args: DeleteCanaryCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCanaryCommandOutput>;
130
47
  deleteCanary(args: DeleteCanaryCommandInput, cb: (err: any, data?: DeleteCanaryCommandOutput) => void): void;
131
48
  deleteCanary(args: DeleteCanaryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCanaryCommandOutput) => void): void;
132
49
  /**
133
- * @public
134
- * <p>Deletes a group. The group doesn't need to be empty to be deleted. If there are canaries in the group,
135
- * they are not deleted when you delete the group.
136
- * </p>
137
- * <p>Groups are a global resource that appear in all Regions, but the request to delete a group
138
- * must be made from its home Region. You can find the home Region of a group within its ARN.</p>
50
+ * @see {@link DeleteGroupCommand}
139
51
  */
140
52
  deleteGroup(args: DeleteGroupCommandInput, options?: __HttpHandlerOptions): Promise<DeleteGroupCommandOutput>;
141
53
  deleteGroup(args: DeleteGroupCommandInput, cb: (err: any, data?: DeleteGroupCommandOutput) => void): void;
142
54
  deleteGroup(args: DeleteGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteGroupCommandOutput) => void): void;
143
55
  /**
144
- * @public
145
- * <p>This operation returns a list of the canaries in your account, along with full details
146
- * about each canary.</p>
147
- * <p>This operation supports resource-level authorization using an IAM policy and
148
- * the <code>Names</code> parameter. If you specify the <code>Names</code> parameter, the operation is successful only if you have authorization to view
149
- * all the canaries that you specify in your request. If you do not have permission to view any of
150
- * the canaries, the request fails with a 403 response.</p>
151
- * <p>You are required to use the <code>Names</code> parameter if you are logged on to a user or role that has an
152
- * IAM policy that restricts which canaries that you are allowed to view. For more information,
153
- * see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Restricted.html">
154
- * Limiting a user to viewing specific canaries</a>.</p>
56
+ * @see {@link DescribeCanariesCommand}
155
57
  */
156
58
  describeCanaries(args: DescribeCanariesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeCanariesCommandOutput>;
157
59
  describeCanaries(args: DescribeCanariesCommandInput, cb: (err: any, data?: DescribeCanariesCommandOutput) => void): void;
158
60
  describeCanaries(args: DescribeCanariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeCanariesCommandOutput) => void): void;
159
61
  /**
160
- * @public
161
- * <p>Use this operation to see information from the most recent run of each canary that you have created.</p>
162
- *
163
- * <p>This operation supports resource-level authorization using an IAM policy and
164
- * the <code>Names</code> parameter. If you specify the <code>Names</code> parameter, the operation is successful only if you have authorization to view
165
- * all the canaries that you specify in your request. If you do not have permission to view any of
166
- * the canaries, the request fails with a 403 response.</p>
167
- * <p>You are required to use the <code>Names</code> parameter if you are logged on to a user or role that has an
168
- * IAM policy that restricts which canaries that you are allowed to view. For more information,
169
- * see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Restricted.html">
170
- * Limiting a user to viewing specific canaries</a>.</p>
62
+ * @see {@link DescribeCanariesLastRunCommand}
171
63
  */
172
64
  describeCanariesLastRun(args: DescribeCanariesLastRunCommandInput, options?: __HttpHandlerOptions): Promise<DescribeCanariesLastRunCommandOutput>;
173
65
  describeCanariesLastRun(args: DescribeCanariesLastRunCommandInput, cb: (err: any, data?: DescribeCanariesLastRunCommandOutput) => void): void;
174
66
  describeCanariesLastRun(args: DescribeCanariesLastRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeCanariesLastRunCommandOutput) => void): void;
175
67
  /**
176
- * @public
177
- * <p>Returns a list of Synthetics canary runtime versions. For more information,
178
- * see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html">
179
- * Canary Runtime Versions</a>.</p>
68
+ * @see {@link DescribeRuntimeVersionsCommand}
180
69
  */
181
70
  describeRuntimeVersions(args: DescribeRuntimeVersionsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeRuntimeVersionsCommandOutput>;
182
71
  describeRuntimeVersions(args: DescribeRuntimeVersionsCommandInput, cb: (err: any, data?: DescribeRuntimeVersionsCommandOutput) => void): void;
183
72
  describeRuntimeVersions(args: DescribeRuntimeVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeRuntimeVersionsCommandOutput) => void): void;
184
73
  /**
185
- * @public
186
- * <p>Removes a canary from a group. You must run this operation in the Region where the canary exists.</p>
74
+ * @see {@link DisassociateResourceCommand}
187
75
  */
188
76
  disassociateResource(args: DisassociateResourceCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateResourceCommandOutput>;
189
77
  disassociateResource(args: DisassociateResourceCommandInput, cb: (err: any, data?: DisassociateResourceCommandOutput) => void): void;
190
78
  disassociateResource(args: DisassociateResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateResourceCommandOutput) => void): void;
191
79
  /**
192
- * @public
193
- * <p>Retrieves complete information about one canary. You must specify
194
- * the name of the canary that you want. To get a list of canaries
195
- * and their names, use <a href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html">DescribeCanaries</a>.</p>
80
+ * @see {@link GetCanaryCommand}
196
81
  */
197
82
  getCanary(args: GetCanaryCommandInput, options?: __HttpHandlerOptions): Promise<GetCanaryCommandOutput>;
198
83
  getCanary(args: GetCanaryCommandInput, cb: (err: any, data?: GetCanaryCommandOutput) => void): void;
199
84
  getCanary(args: GetCanaryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCanaryCommandOutput) => void): void;
200
85
  /**
201
- * @public
202
- * <p>Retrieves a list of runs for a specified canary.</p>
86
+ * @see {@link GetCanaryRunsCommand}
203
87
  */
204
88
  getCanaryRuns(args: GetCanaryRunsCommandInput, options?: __HttpHandlerOptions): Promise<GetCanaryRunsCommandOutput>;
205
89
  getCanaryRuns(args: GetCanaryRunsCommandInput, cb: (err: any, data?: GetCanaryRunsCommandOutput) => void): void;
206
90
  getCanaryRuns(args: GetCanaryRunsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCanaryRunsCommandOutput) => void): void;
207
91
  /**
208
- * @public
209
- * <p>Returns information about one group. Groups are a global resource, so you can use this operation from
210
- * any Region.</p>
92
+ * @see {@link GetGroupCommand}
211
93
  */
212
94
  getGroup(args: GetGroupCommandInput, options?: __HttpHandlerOptions): Promise<GetGroupCommandOutput>;
213
95
  getGroup(args: GetGroupCommandInput, cb: (err: any, data?: GetGroupCommandOutput) => void): void;
214
96
  getGroup(args: GetGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetGroupCommandOutput) => void): void;
215
97
  /**
216
- * @public
217
- * <p>Returns a list of the groups that the specified canary is associated with. The canary
218
- * that you specify must be in the current Region.</p>
98
+ * @see {@link ListAssociatedGroupsCommand}
219
99
  */
220
100
  listAssociatedGroups(args: ListAssociatedGroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListAssociatedGroupsCommandOutput>;
221
101
  listAssociatedGroups(args: ListAssociatedGroupsCommandInput, cb: (err: any, data?: ListAssociatedGroupsCommandOutput) => void): void;
222
102
  listAssociatedGroups(args: ListAssociatedGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAssociatedGroupsCommandOutput) => void): void;
223
103
  /**
224
- * @public
225
- * <p>This operation returns a list of the ARNs of the canaries that are associated with the specified group.</p>
104
+ * @see {@link ListGroupResourcesCommand}
226
105
  */
227
106
  listGroupResources(args: ListGroupResourcesCommandInput, options?: __HttpHandlerOptions): Promise<ListGroupResourcesCommandOutput>;
228
107
  listGroupResources(args: ListGroupResourcesCommandInput, cb: (err: any, data?: ListGroupResourcesCommandOutput) => void): void;
229
108
  listGroupResources(args: ListGroupResourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGroupResourcesCommandOutput) => void): void;
230
109
  /**
231
- * @public
232
- * <p>Returns a list of all groups in the account, displaying their names, unique IDs, and ARNs. The groups
233
- * from all Regions are returned.</p>
110
+ * @see {@link ListGroupsCommand}
234
111
  */
235
112
  listGroups(args: ListGroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListGroupsCommandOutput>;
236
113
  listGroups(args: ListGroupsCommandInput, cb: (err: any, data?: ListGroupsCommandOutput) => void): void;
237
114
  listGroups(args: ListGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGroupsCommandOutput) => void): void;
238
115
  /**
239
- * @public
240
- * <p>Displays the tags associated with a canary or group.</p>
116
+ * @see {@link ListTagsForResourceCommand}
241
117
  */
242
118
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
243
119
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
244
120
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
245
121
  /**
246
- * @public
247
- * <p>Use this operation to run a canary that has already been created.
248
- * The frequency of the canary runs is determined by the value of the canary's <code>Schedule</code>. To see a canary's schedule,
249
- * use <a href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_GetCanary.html">GetCanary</a>.</p>
122
+ * @see {@link StartCanaryCommand}
250
123
  */
251
124
  startCanary(args: StartCanaryCommandInput, options?: __HttpHandlerOptions): Promise<StartCanaryCommandOutput>;
252
125
  startCanary(args: StartCanaryCommandInput, cb: (err: any, data?: StartCanaryCommandOutput) => void): void;
253
126
  startCanary(args: StartCanaryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartCanaryCommandOutput) => void): void;
254
127
  /**
255
- * @public
256
- * <p>Stops the canary to prevent all future runs. If the canary is currently running,the
257
- * run that is in progress completes on its own, publishes metrics, and uploads artifacts, but
258
- * it is not recorded in Synthetics as a completed run.</p>
259
- * <p>You can use <code>StartCanary</code> to start it running again
260
- * with the canary’s current schedule at any point in the future. </p>
128
+ * @see {@link StopCanaryCommand}
261
129
  */
262
130
  stopCanary(args: StopCanaryCommandInput, options?: __HttpHandlerOptions): Promise<StopCanaryCommandOutput>;
263
131
  stopCanary(args: StopCanaryCommandInput, cb: (err: any, data?: StopCanaryCommandOutput) => void): void;
264
132
  stopCanary(args: StopCanaryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopCanaryCommandOutput) => void): void;
265
133
  /**
266
- * @public
267
- * <p>Assigns one or more tags (key-value pairs) to the specified canary or group. </p>
268
- * <p>Tags can help you organize and categorize your
269
- * resources. You can also use them to scope user permissions, by granting a user permission to access or change only resources with
270
- * certain tag values.</p>
271
- * <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p>
272
- * <p>You can use the <code>TagResource</code> action with a resource that already has tags. If you specify a new
273
- * tag key for the resource,
274
- * this tag is appended to the list of tags associated
275
- * with the resource. If you specify a tag key that is already associated with the resource, the new tag
276
- * value that you specify replaces
277
- * the previous value for that tag.</p>
278
- * <p>You can associate as many as 50 tags with a canary or group.</p>
134
+ * @see {@link TagResourceCommand}
279
135
  */
280
136
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
281
137
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
282
138
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
283
139
  /**
284
- * @public
285
- * <p>Removes one or more tags from the specified resource.</p>
140
+ * @see {@link UntagResourceCommand}
286
141
  */
287
142
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
288
143
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
289
144
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
290
145
  /**
291
- * @public
292
- * <p>Updates the configuration of a canary that has
293
- * already been created.</p>
294
- * <p>You can't use this operation to update the tags of an existing canary. To
295
- * change the tags of an existing canary, use
296
- * <a href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_TagResource.html">TagResource</a>.</p>
146
+ * @see {@link UpdateCanaryCommand}
297
147
  */
298
148
  updateCanary(args: UpdateCanaryCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCanaryCommandOutput>;
299
149
  updateCanary(args: UpdateCanaryCommandInput, cb: (err: any, data?: UpdateCanaryCommandOutput) => void): void;
300
150
  updateCanary(args: UpdateCanaryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCanaryCommandOutput) => void): void;
301
151
  }
152
+ /**
153
+ * @public
154
+ * <fullname>Amazon CloudWatch Synthetics</fullname>
155
+ * <p>You can use Amazon CloudWatch Synthetics to continually monitor your services. You can
156
+ * create and manage <i>canaries</i>, which are modular, lightweight scripts
157
+ * that monitor your endpoints and APIs
158
+ * from the outside-in. You can set up your canaries to run
159
+ * 24 hours a day, once per minute. The canaries help you check the availability and latency
160
+ * of your web services and troubleshoot anomalies by investigating load time data,
161
+ * screenshots of the UI, logs, and metrics. The canaries seamlessly integrate with CloudWatch
162
+ * ServiceLens to help you trace the causes of impacted nodes in your applications. For more
163
+ * information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ServiceLens.html">Using ServiceLens to Monitor
164
+ * the Health of Your Applications</a> in the <i>Amazon CloudWatch User
165
+ * Guide</i>.</p>
166
+ *
167
+ * <p>Before you create and manage canaries, be aware of the security considerations. For more
168
+ * information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/servicelens_canaries_security.html">Security
169
+ * Considerations for Synthetics Canaries</a>.</p>
170
+ */
171
+ export declare class Synthetics extends SyntheticsClient implements Synthetics {
172
+ }
@@ -84,7 +84,7 @@ import {
84
84
  UpdateCanaryCommandOutput,
85
85
  } from "./commands/UpdateCanaryCommand";
86
86
  import { SyntheticsClient } from "./SyntheticsClient";
87
- export declare class Synthetics extends SyntheticsClient {
87
+ export interface Synthetics {
88
88
  associateResource(
89
89
  args: AssociateResourceCommandInput,
90
90
  options?: __HttpHandlerOptions
@@ -359,3 +359,6 @@ export declare class Synthetics extends SyntheticsClient {
359
359
  cb: (err: any, data?: UpdateCanaryCommandOutput) => void
360
360
  ): void;
361
361
  }
362
+ export declare class Synthetics
363
+ extends SyntheticsClient
364
+ implements Synthetics {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-synthetics",
3
3
  "description": "AWS SDK for JavaScript Synthetics Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.319.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",