@aws-sdk/client-synthetics 3.975.0 → 3.978.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/dist-cjs/index.js +24 -15
- package/dist-es/Synthetics.js +17 -1
- package/dist-types/Synthetics.d.ts +50 -1
- package/dist-types/ts3.4/Synthetics.d.ts +54 -1
- package/package.json +17 -17
package/dist-cjs/index.js
CHANGED
|
@@ -1293,6 +1293,20 @@ class UpdateCanaryCommand extends smithyClient.Command
|
|
|
1293
1293
|
.build() {
|
|
1294
1294
|
}
|
|
1295
1295
|
|
|
1296
|
+
const paginateDescribeCanariesLastRun = core.createPaginator(SyntheticsClient, DescribeCanariesLastRunCommand, "NextToken", "NextToken", "MaxResults");
|
|
1297
|
+
|
|
1298
|
+
const paginateDescribeCanaries = core.createPaginator(SyntheticsClient, DescribeCanariesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1299
|
+
|
|
1300
|
+
const paginateDescribeRuntimeVersions = core.createPaginator(SyntheticsClient, DescribeRuntimeVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1301
|
+
|
|
1302
|
+
const paginateGetCanaryRuns = core.createPaginator(SyntheticsClient, GetCanaryRunsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1303
|
+
|
|
1304
|
+
const paginateListAssociatedGroups = core.createPaginator(SyntheticsClient, ListAssociatedGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1305
|
+
|
|
1306
|
+
const paginateListGroupResources = core.createPaginator(SyntheticsClient, ListGroupResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1307
|
+
|
|
1308
|
+
const paginateListGroups = core.createPaginator(SyntheticsClient, ListGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1309
|
+
|
|
1296
1310
|
const commands = {
|
|
1297
1311
|
AssociateResourceCommand,
|
|
1298
1312
|
CreateCanaryCommand,
|
|
@@ -1317,23 +1331,18 @@ const commands = {
|
|
|
1317
1331
|
UntagResourceCommand,
|
|
1318
1332
|
UpdateCanaryCommand,
|
|
1319
1333
|
};
|
|
1334
|
+
const paginators = {
|
|
1335
|
+
paginateDescribeCanaries,
|
|
1336
|
+
paginateDescribeCanariesLastRun,
|
|
1337
|
+
paginateDescribeRuntimeVersions,
|
|
1338
|
+
paginateGetCanaryRuns,
|
|
1339
|
+
paginateListAssociatedGroups,
|
|
1340
|
+
paginateListGroupResources,
|
|
1341
|
+
paginateListGroups,
|
|
1342
|
+
};
|
|
1320
1343
|
class Synthetics extends SyntheticsClient {
|
|
1321
1344
|
}
|
|
1322
|
-
smithyClient.createAggregatedClient(commands, Synthetics);
|
|
1323
|
-
|
|
1324
|
-
const paginateDescribeCanaries = core.createPaginator(SyntheticsClient, DescribeCanariesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1325
|
-
|
|
1326
|
-
const paginateDescribeCanariesLastRun = core.createPaginator(SyntheticsClient, DescribeCanariesLastRunCommand, "NextToken", "NextToken", "MaxResults");
|
|
1327
|
-
|
|
1328
|
-
const paginateDescribeRuntimeVersions = core.createPaginator(SyntheticsClient, DescribeRuntimeVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1329
|
-
|
|
1330
|
-
const paginateGetCanaryRuns = core.createPaginator(SyntheticsClient, GetCanaryRunsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1331
|
-
|
|
1332
|
-
const paginateListAssociatedGroups = core.createPaginator(SyntheticsClient, ListAssociatedGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1333
|
-
|
|
1334
|
-
const paginateListGroupResources = core.createPaginator(SyntheticsClient, ListGroupResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1335
|
-
|
|
1336
|
-
const paginateListGroups = core.createPaginator(SyntheticsClient, ListGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1345
|
+
smithyClient.createAggregatedClient(commands, Synthetics, { paginators });
|
|
1337
1346
|
|
|
1338
1347
|
const EncryptionMode = {
|
|
1339
1348
|
SSE_KMS: "SSE_KMS",
|
package/dist-es/Synthetics.js
CHANGED
|
@@ -21,6 +21,13 @@ import { StopCanaryCommand } from "./commands/StopCanaryCommand";
|
|
|
21
21
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
22
22
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
23
23
|
import { UpdateCanaryCommand, } from "./commands/UpdateCanaryCommand";
|
|
24
|
+
import { paginateDescribeCanariesLastRun } from "./pagination/DescribeCanariesLastRunPaginator";
|
|
25
|
+
import { paginateDescribeCanaries } from "./pagination/DescribeCanariesPaginator";
|
|
26
|
+
import { paginateDescribeRuntimeVersions } from "./pagination/DescribeRuntimeVersionsPaginator";
|
|
27
|
+
import { paginateGetCanaryRuns } from "./pagination/GetCanaryRunsPaginator";
|
|
28
|
+
import { paginateListAssociatedGroups } from "./pagination/ListAssociatedGroupsPaginator";
|
|
29
|
+
import { paginateListGroupResources } from "./pagination/ListGroupResourcesPaginator";
|
|
30
|
+
import { paginateListGroups } from "./pagination/ListGroupsPaginator";
|
|
24
31
|
import { SyntheticsClient } from "./SyntheticsClient";
|
|
25
32
|
const commands = {
|
|
26
33
|
AssociateResourceCommand,
|
|
@@ -46,6 +53,15 @@ const commands = {
|
|
|
46
53
|
UntagResourceCommand,
|
|
47
54
|
UpdateCanaryCommand,
|
|
48
55
|
};
|
|
56
|
+
const paginators = {
|
|
57
|
+
paginateDescribeCanaries,
|
|
58
|
+
paginateDescribeCanariesLastRun,
|
|
59
|
+
paginateDescribeRuntimeVersions,
|
|
60
|
+
paginateGetCanaryRuns,
|
|
61
|
+
paginateListAssociatedGroups,
|
|
62
|
+
paginateListGroupResources,
|
|
63
|
+
paginateListGroups,
|
|
64
|
+
};
|
|
49
65
|
export class Synthetics extends SyntheticsClient {
|
|
50
66
|
}
|
|
51
|
-
createAggregatedClient(commands, Synthetics);
|
|
67
|
+
createAggregatedClient(commands, Synthetics, { paginators });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { AssociateResourceCommandInput, AssociateResourceCommandOutput } from "./commands/AssociateResourceCommand";
|
|
3
3
|
import { CreateCanaryCommandInput, CreateCanaryCommandOutput } from "./commands/CreateCanaryCommand";
|
|
4
4
|
import { CreateGroupCommandInput, CreateGroupCommandOutput } from "./commands/CreateGroupCommand";
|
|
@@ -159,6 +159,55 @@ export interface Synthetics {
|
|
|
159
159
|
updateCanary(args: UpdateCanaryCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCanaryCommandOutput>;
|
|
160
160
|
updateCanary(args: UpdateCanaryCommandInput, cb: (err: any, data?: UpdateCanaryCommandOutput) => void): void;
|
|
161
161
|
updateCanary(args: UpdateCanaryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCanaryCommandOutput) => void): void;
|
|
162
|
+
/**
|
|
163
|
+
* @see {@link DescribeCanariesCommand}
|
|
164
|
+
* @param args - command input.
|
|
165
|
+
* @param paginationConfig - optional pagination config.
|
|
166
|
+
* @returns AsyncIterable of {@link DescribeCanariesCommandOutput}.
|
|
167
|
+
*/
|
|
168
|
+
paginateDescribeCanaries(args?: DescribeCanariesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<DescribeCanariesCommandOutput>;
|
|
169
|
+
/**
|
|
170
|
+
* @see {@link DescribeCanariesLastRunCommand}
|
|
171
|
+
* @param args - command input.
|
|
172
|
+
* @param paginationConfig - optional pagination config.
|
|
173
|
+
* @returns AsyncIterable of {@link DescribeCanariesLastRunCommandOutput}.
|
|
174
|
+
*/
|
|
175
|
+
paginateDescribeCanariesLastRun(args?: DescribeCanariesLastRunCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<DescribeCanariesLastRunCommandOutput>;
|
|
176
|
+
/**
|
|
177
|
+
* @see {@link DescribeRuntimeVersionsCommand}
|
|
178
|
+
* @param args - command input.
|
|
179
|
+
* @param paginationConfig - optional pagination config.
|
|
180
|
+
* @returns AsyncIterable of {@link DescribeRuntimeVersionsCommandOutput}.
|
|
181
|
+
*/
|
|
182
|
+
paginateDescribeRuntimeVersions(args?: DescribeRuntimeVersionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<DescribeRuntimeVersionsCommandOutput>;
|
|
183
|
+
/**
|
|
184
|
+
* @see {@link GetCanaryRunsCommand}
|
|
185
|
+
* @param args - command input.
|
|
186
|
+
* @param paginationConfig - optional pagination config.
|
|
187
|
+
* @returns AsyncIterable of {@link GetCanaryRunsCommandOutput}.
|
|
188
|
+
*/
|
|
189
|
+
paginateGetCanaryRuns(args: GetCanaryRunsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetCanaryRunsCommandOutput>;
|
|
190
|
+
/**
|
|
191
|
+
* @see {@link ListAssociatedGroupsCommand}
|
|
192
|
+
* @param args - command input.
|
|
193
|
+
* @param paginationConfig - optional pagination config.
|
|
194
|
+
* @returns AsyncIterable of {@link ListAssociatedGroupsCommandOutput}.
|
|
195
|
+
*/
|
|
196
|
+
paginateListAssociatedGroups(args: ListAssociatedGroupsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAssociatedGroupsCommandOutput>;
|
|
197
|
+
/**
|
|
198
|
+
* @see {@link ListGroupResourcesCommand}
|
|
199
|
+
* @param args - command input.
|
|
200
|
+
* @param paginationConfig - optional pagination config.
|
|
201
|
+
* @returns AsyncIterable of {@link ListGroupResourcesCommandOutput}.
|
|
202
|
+
*/
|
|
203
|
+
paginateListGroupResources(args: ListGroupResourcesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListGroupResourcesCommandOutput>;
|
|
204
|
+
/**
|
|
205
|
+
* @see {@link ListGroupsCommand}
|
|
206
|
+
* @param args - command input.
|
|
207
|
+
* @param paginationConfig - optional pagination config.
|
|
208
|
+
* @returns AsyncIterable of {@link ListGroupsCommandOutput}.
|
|
209
|
+
*/
|
|
210
|
+
paginateListGroups(args?: ListGroupsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListGroupsCommandOutput>;
|
|
162
211
|
}
|
|
163
212
|
/**
|
|
164
213
|
* <fullname>Amazon CloudWatch Synthetics</fullname>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import {
|
|
3
7
|
AssociateResourceCommandInput,
|
|
4
8
|
AssociateResourceCommandOutput,
|
|
@@ -379,6 +383,55 @@ export interface Synthetics {
|
|
|
379
383
|
options: __HttpHandlerOptions,
|
|
380
384
|
cb: (err: any, data?: UpdateCanaryCommandOutput) => void
|
|
381
385
|
): void;
|
|
386
|
+
paginateDescribeCanaries(
|
|
387
|
+
args?: DescribeCanariesCommandInput,
|
|
388
|
+
paginationConfig?: Pick<
|
|
389
|
+
PaginationConfiguration,
|
|
390
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
391
|
+
>
|
|
392
|
+
): Paginator<DescribeCanariesCommandOutput>;
|
|
393
|
+
paginateDescribeCanariesLastRun(
|
|
394
|
+
args?: DescribeCanariesLastRunCommandInput,
|
|
395
|
+
paginationConfig?: Pick<
|
|
396
|
+
PaginationConfiguration,
|
|
397
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
398
|
+
>
|
|
399
|
+
): Paginator<DescribeCanariesLastRunCommandOutput>;
|
|
400
|
+
paginateDescribeRuntimeVersions(
|
|
401
|
+
args?: DescribeRuntimeVersionsCommandInput,
|
|
402
|
+
paginationConfig?: Pick<
|
|
403
|
+
PaginationConfiguration,
|
|
404
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
405
|
+
>
|
|
406
|
+
): Paginator<DescribeRuntimeVersionsCommandOutput>;
|
|
407
|
+
paginateGetCanaryRuns(
|
|
408
|
+
args: GetCanaryRunsCommandInput,
|
|
409
|
+
paginationConfig?: Pick<
|
|
410
|
+
PaginationConfiguration,
|
|
411
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
412
|
+
>
|
|
413
|
+
): Paginator<GetCanaryRunsCommandOutput>;
|
|
414
|
+
paginateListAssociatedGroups(
|
|
415
|
+
args: ListAssociatedGroupsCommandInput,
|
|
416
|
+
paginationConfig?: Pick<
|
|
417
|
+
PaginationConfiguration,
|
|
418
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
419
|
+
>
|
|
420
|
+
): Paginator<ListAssociatedGroupsCommandOutput>;
|
|
421
|
+
paginateListGroupResources(
|
|
422
|
+
args: ListGroupResourcesCommandInput,
|
|
423
|
+
paginationConfig?: Pick<
|
|
424
|
+
PaginationConfiguration,
|
|
425
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
426
|
+
>
|
|
427
|
+
): Paginator<ListGroupResourcesCommandOutput>;
|
|
428
|
+
paginateListGroups(
|
|
429
|
+
args?: ListGroupsCommandInput,
|
|
430
|
+
paginationConfig?: Pick<
|
|
431
|
+
PaginationConfiguration,
|
|
432
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
433
|
+
>
|
|
434
|
+
): Paginator<ListGroupsCommandOutput>;
|
|
382
435
|
}
|
|
383
436
|
export declare class Synthetics
|
|
384
437
|
extends SyntheticsClient
|
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.
|
|
4
|
+
"version": "3.978.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-synthetics",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
-
"@aws-sdk/types": "^3.973.
|
|
24
|
+
"@aws-sdk/core": "^3.973.4",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.2",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "^3.972.2",
|
|
27
|
+
"@aws-sdk/middleware-logger": "^3.972.2",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.2",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.4",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.2",
|
|
31
|
+
"@aws-sdk/types": "^3.973.1",
|
|
32
32
|
"@aws-sdk/util-endpoints": "3.972.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.2",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.2",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.22.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
46
|
"@smithy/node-http-handler": "^4.4.8",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|