@aws-sdk/client-ssm-contacts 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 CHANGED
@@ -1749,6 +1749,28 @@ class UpdateRotationCommand extends smithyClient.Command
1749
1749
  .build() {
1750
1750
  }
1751
1751
 
1752
+ const paginateListContactChannels = core.createPaginator(SSMContactsClient, ListContactChannelsCommand, "NextToken", "NextToken", "MaxResults");
1753
+
1754
+ const paginateListContacts = core.createPaginator(SSMContactsClient, ListContactsCommand, "NextToken", "NextToken", "MaxResults");
1755
+
1756
+ const paginateListEngagements = core.createPaginator(SSMContactsClient, ListEngagementsCommand, "NextToken", "NextToken", "MaxResults");
1757
+
1758
+ const paginateListPageReceipts = core.createPaginator(SSMContactsClient, ListPageReceiptsCommand, "NextToken", "NextToken", "MaxResults");
1759
+
1760
+ const paginateListPageResolutions = core.createPaginator(SSMContactsClient, ListPageResolutionsCommand, "NextToken", "NextToken", "");
1761
+
1762
+ const paginateListPagesByContact = core.createPaginator(SSMContactsClient, ListPagesByContactCommand, "NextToken", "NextToken", "MaxResults");
1763
+
1764
+ const paginateListPagesByEngagement = core.createPaginator(SSMContactsClient, ListPagesByEngagementCommand, "NextToken", "NextToken", "MaxResults");
1765
+
1766
+ const paginateListPreviewRotationShifts = core.createPaginator(SSMContactsClient, ListPreviewRotationShiftsCommand, "NextToken", "NextToken", "MaxResults");
1767
+
1768
+ const paginateListRotationOverrides = core.createPaginator(SSMContactsClient, ListRotationOverridesCommand, "NextToken", "NextToken", "MaxResults");
1769
+
1770
+ const paginateListRotationShifts = core.createPaginator(SSMContactsClient, ListRotationShiftsCommand, "NextToken", "NextToken", "MaxResults");
1771
+
1772
+ const paginateListRotations = core.createPaginator(SSMContactsClient, ListRotationsCommand, "NextToken", "NextToken", "MaxResults");
1773
+
1752
1774
  const commands = {
1753
1775
  AcceptPageCommand,
1754
1776
  ActivateContactChannelCommand,
@@ -1790,31 +1812,22 @@ const commands = {
1790
1812
  UpdateContactChannelCommand,
1791
1813
  UpdateRotationCommand,
1792
1814
  };
1815
+ const paginators = {
1816
+ paginateListContactChannels,
1817
+ paginateListContacts,
1818
+ paginateListEngagements,
1819
+ paginateListPageReceipts,
1820
+ paginateListPageResolutions,
1821
+ paginateListPagesByContact,
1822
+ paginateListPagesByEngagement,
1823
+ paginateListPreviewRotationShifts,
1824
+ paginateListRotationOverrides,
1825
+ paginateListRotations,
1826
+ paginateListRotationShifts,
1827
+ };
1793
1828
  class SSMContacts extends SSMContactsClient {
1794
1829
  }
1795
- smithyClient.createAggregatedClient(commands, SSMContacts);
1796
-
1797
- const paginateListContactChannels = core.createPaginator(SSMContactsClient, ListContactChannelsCommand, "NextToken", "NextToken", "MaxResults");
1798
-
1799
- const paginateListContacts = core.createPaginator(SSMContactsClient, ListContactsCommand, "NextToken", "NextToken", "MaxResults");
1800
-
1801
- const paginateListEngagements = core.createPaginator(SSMContactsClient, ListEngagementsCommand, "NextToken", "NextToken", "MaxResults");
1802
-
1803
- const paginateListPageReceipts = core.createPaginator(SSMContactsClient, ListPageReceiptsCommand, "NextToken", "NextToken", "MaxResults");
1804
-
1805
- const paginateListPageResolutions = core.createPaginator(SSMContactsClient, ListPageResolutionsCommand, "NextToken", "NextToken", "");
1806
-
1807
- const paginateListPagesByContact = core.createPaginator(SSMContactsClient, ListPagesByContactCommand, "NextToken", "NextToken", "MaxResults");
1808
-
1809
- const paginateListPagesByEngagement = core.createPaginator(SSMContactsClient, ListPagesByEngagementCommand, "NextToken", "NextToken", "MaxResults");
1810
-
1811
- const paginateListPreviewRotationShifts = core.createPaginator(SSMContactsClient, ListPreviewRotationShiftsCommand, "NextToken", "NextToken", "MaxResults");
1812
-
1813
- const paginateListRotationOverrides = core.createPaginator(SSMContactsClient, ListRotationOverridesCommand, "NextToken", "NextToken", "MaxResults");
1814
-
1815
- const paginateListRotations = core.createPaginator(SSMContactsClient, ListRotationsCommand, "NextToken", "NextToken", "MaxResults");
1816
-
1817
- const paginateListRotationShifts = core.createPaginator(SSMContactsClient, ListRotationShiftsCommand, "NextToken", "NextToken", "MaxResults");
1830
+ smithyClient.createAggregatedClient(commands, SSMContacts, { paginators });
1818
1831
 
1819
1832
  const AcceptCodeValidation = {
1820
1833
  ENFORCE: "ENFORCE",
@@ -38,6 +38,17 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
38
38
  import { UpdateContactChannelCommand, } from "./commands/UpdateContactChannelCommand";
39
39
  import { UpdateContactCommand, } from "./commands/UpdateContactCommand";
40
40
  import { UpdateRotationCommand, } from "./commands/UpdateRotationCommand";
41
+ import { paginateListContactChannels } from "./pagination/ListContactChannelsPaginator";
42
+ import { paginateListContacts } from "./pagination/ListContactsPaginator";
43
+ import { paginateListEngagements } from "./pagination/ListEngagementsPaginator";
44
+ import { paginateListPageReceipts } from "./pagination/ListPageReceiptsPaginator";
45
+ import { paginateListPageResolutions } from "./pagination/ListPageResolutionsPaginator";
46
+ import { paginateListPagesByContact } from "./pagination/ListPagesByContactPaginator";
47
+ import { paginateListPagesByEngagement } from "./pagination/ListPagesByEngagementPaginator";
48
+ import { paginateListPreviewRotationShifts } from "./pagination/ListPreviewRotationShiftsPaginator";
49
+ import { paginateListRotationOverrides } from "./pagination/ListRotationOverridesPaginator";
50
+ import { paginateListRotationShifts } from "./pagination/ListRotationShiftsPaginator";
51
+ import { paginateListRotations } from "./pagination/ListRotationsPaginator";
41
52
  import { SSMContactsClient } from "./SSMContactsClient";
42
53
  const commands = {
43
54
  AcceptPageCommand,
@@ -80,6 +91,19 @@ const commands = {
80
91
  UpdateContactChannelCommand,
81
92
  UpdateRotationCommand,
82
93
  };
94
+ const paginators = {
95
+ paginateListContactChannels,
96
+ paginateListContacts,
97
+ paginateListEngagements,
98
+ paginateListPageReceipts,
99
+ paginateListPageResolutions,
100
+ paginateListPagesByContact,
101
+ paginateListPagesByEngagement,
102
+ paginateListPreviewRotationShifts,
103
+ paginateListRotationOverrides,
104
+ paginateListRotations,
105
+ paginateListRotationShifts,
106
+ };
83
107
  export class SSMContacts extends SSMContactsClient {
84
108
  }
85
- createAggregatedClient(commands, SSMContacts);
109
+ createAggregatedClient(commands, SSMContacts, { 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 { AcceptPageCommandInput, AcceptPageCommandOutput } from "./commands/AcceptPageCommand";
3
3
  import { ActivateContactChannelCommandInput, ActivateContactChannelCommandOutput } from "./commands/ActivateContactChannelCommand";
4
4
  import { CreateContactChannelCommandInput, CreateContactChannelCommandOutput } from "./commands/CreateContactChannelCommand";
@@ -277,6 +277,83 @@ export interface SSMContacts {
277
277
  updateRotation(args: UpdateRotationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRotationCommandOutput>;
278
278
  updateRotation(args: UpdateRotationCommandInput, cb: (err: any, data?: UpdateRotationCommandOutput) => void): void;
279
279
  updateRotation(args: UpdateRotationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRotationCommandOutput) => void): void;
280
+ /**
281
+ * @see {@link ListContactChannelsCommand}
282
+ * @param args - command input.
283
+ * @param paginationConfig - optional pagination config.
284
+ * @returns AsyncIterable of {@link ListContactChannelsCommandOutput}.
285
+ */
286
+ paginateListContactChannels(args: ListContactChannelsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListContactChannelsCommandOutput>;
287
+ /**
288
+ * @see {@link ListContactsCommand}
289
+ * @param args - command input.
290
+ * @param paginationConfig - optional pagination config.
291
+ * @returns AsyncIterable of {@link ListContactsCommandOutput}.
292
+ */
293
+ paginateListContacts(args?: ListContactsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListContactsCommandOutput>;
294
+ /**
295
+ * @see {@link ListEngagementsCommand}
296
+ * @param args - command input.
297
+ * @param paginationConfig - optional pagination config.
298
+ * @returns AsyncIterable of {@link ListEngagementsCommandOutput}.
299
+ */
300
+ paginateListEngagements(args?: ListEngagementsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListEngagementsCommandOutput>;
301
+ /**
302
+ * @see {@link ListPageReceiptsCommand}
303
+ * @param args - command input.
304
+ * @param paginationConfig - optional pagination config.
305
+ * @returns AsyncIterable of {@link ListPageReceiptsCommandOutput}.
306
+ */
307
+ paginateListPageReceipts(args: ListPageReceiptsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPageReceiptsCommandOutput>;
308
+ /**
309
+ * @see {@link ListPageResolutionsCommand}
310
+ * @param args - command input.
311
+ * @param paginationConfig - optional pagination config.
312
+ * @returns AsyncIterable of {@link ListPageResolutionsCommandOutput}.
313
+ */
314
+ paginateListPageResolutions(args: ListPageResolutionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPageResolutionsCommandOutput>;
315
+ /**
316
+ * @see {@link ListPagesByContactCommand}
317
+ * @param args - command input.
318
+ * @param paginationConfig - optional pagination config.
319
+ * @returns AsyncIterable of {@link ListPagesByContactCommandOutput}.
320
+ */
321
+ paginateListPagesByContact(args: ListPagesByContactCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPagesByContactCommandOutput>;
322
+ /**
323
+ * @see {@link ListPagesByEngagementCommand}
324
+ * @param args - command input.
325
+ * @param paginationConfig - optional pagination config.
326
+ * @returns AsyncIterable of {@link ListPagesByEngagementCommandOutput}.
327
+ */
328
+ paginateListPagesByEngagement(args: ListPagesByEngagementCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPagesByEngagementCommandOutput>;
329
+ /**
330
+ * @see {@link ListPreviewRotationShiftsCommand}
331
+ * @param args - command input.
332
+ * @param paginationConfig - optional pagination config.
333
+ * @returns AsyncIterable of {@link ListPreviewRotationShiftsCommandOutput}.
334
+ */
335
+ paginateListPreviewRotationShifts(args: ListPreviewRotationShiftsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPreviewRotationShiftsCommandOutput>;
336
+ /**
337
+ * @see {@link ListRotationOverridesCommand}
338
+ * @param args - command input.
339
+ * @param paginationConfig - optional pagination config.
340
+ * @returns AsyncIterable of {@link ListRotationOverridesCommandOutput}.
341
+ */
342
+ paginateListRotationOverrides(args: ListRotationOverridesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRotationOverridesCommandOutput>;
343
+ /**
344
+ * @see {@link ListRotationsCommand}
345
+ * @param args - command input.
346
+ * @param paginationConfig - optional pagination config.
347
+ * @returns AsyncIterable of {@link ListRotationsCommandOutput}.
348
+ */
349
+ paginateListRotations(args?: ListRotationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRotationsCommandOutput>;
350
+ /**
351
+ * @see {@link ListRotationShiftsCommand}
352
+ * @param args - command input.
353
+ * @param paginationConfig - optional pagination config.
354
+ * @returns AsyncIterable of {@link ListRotationShiftsCommandOutput}.
355
+ */
356
+ paginateListRotationShifts(args: ListRotationShiftsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRotationShiftsCommandOutput>;
280
357
  }
281
358
  /**
282
359
  * <p>Systems Manager Incident Manager is an incident management console designed to help users
@@ -1,4 +1,8 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ } from "@smithy/types";
2
6
  import {
3
7
  AcceptPageCommandInput,
4
8
  AcceptPageCommandOutput,
@@ -667,6 +671,83 @@ export interface SSMContacts {
667
671
  options: __HttpHandlerOptions,
668
672
  cb: (err: any, data?: UpdateRotationCommandOutput) => void
669
673
  ): void;
674
+ paginateListContactChannels(
675
+ args: ListContactChannelsCommandInput,
676
+ paginationConfig?: Pick<
677
+ PaginationConfiguration,
678
+ Exclude<keyof PaginationConfiguration, "client">
679
+ >
680
+ ): Paginator<ListContactChannelsCommandOutput>;
681
+ paginateListContacts(
682
+ args?: ListContactsCommandInput,
683
+ paginationConfig?: Pick<
684
+ PaginationConfiguration,
685
+ Exclude<keyof PaginationConfiguration, "client">
686
+ >
687
+ ): Paginator<ListContactsCommandOutput>;
688
+ paginateListEngagements(
689
+ args?: ListEngagementsCommandInput,
690
+ paginationConfig?: Pick<
691
+ PaginationConfiguration,
692
+ Exclude<keyof PaginationConfiguration, "client">
693
+ >
694
+ ): Paginator<ListEngagementsCommandOutput>;
695
+ paginateListPageReceipts(
696
+ args: ListPageReceiptsCommandInput,
697
+ paginationConfig?: Pick<
698
+ PaginationConfiguration,
699
+ Exclude<keyof PaginationConfiguration, "client">
700
+ >
701
+ ): Paginator<ListPageReceiptsCommandOutput>;
702
+ paginateListPageResolutions(
703
+ args: ListPageResolutionsCommandInput,
704
+ paginationConfig?: Pick<
705
+ PaginationConfiguration,
706
+ Exclude<keyof PaginationConfiguration, "client">
707
+ >
708
+ ): Paginator<ListPageResolutionsCommandOutput>;
709
+ paginateListPagesByContact(
710
+ args: ListPagesByContactCommandInput,
711
+ paginationConfig?: Pick<
712
+ PaginationConfiguration,
713
+ Exclude<keyof PaginationConfiguration, "client">
714
+ >
715
+ ): Paginator<ListPagesByContactCommandOutput>;
716
+ paginateListPagesByEngagement(
717
+ args: ListPagesByEngagementCommandInput,
718
+ paginationConfig?: Pick<
719
+ PaginationConfiguration,
720
+ Exclude<keyof PaginationConfiguration, "client">
721
+ >
722
+ ): Paginator<ListPagesByEngagementCommandOutput>;
723
+ paginateListPreviewRotationShifts(
724
+ args: ListPreviewRotationShiftsCommandInput,
725
+ paginationConfig?: Pick<
726
+ PaginationConfiguration,
727
+ Exclude<keyof PaginationConfiguration, "client">
728
+ >
729
+ ): Paginator<ListPreviewRotationShiftsCommandOutput>;
730
+ paginateListRotationOverrides(
731
+ args: ListRotationOverridesCommandInput,
732
+ paginationConfig?: Pick<
733
+ PaginationConfiguration,
734
+ Exclude<keyof PaginationConfiguration, "client">
735
+ >
736
+ ): Paginator<ListRotationOverridesCommandOutput>;
737
+ paginateListRotations(
738
+ args?: ListRotationsCommandInput,
739
+ paginationConfig?: Pick<
740
+ PaginationConfiguration,
741
+ Exclude<keyof PaginationConfiguration, "client">
742
+ >
743
+ ): Paginator<ListRotationsCommandOutput>;
744
+ paginateListRotationShifts(
745
+ args: ListRotationShiftsCommandInput,
746
+ paginationConfig?: Pick<
747
+ PaginationConfiguration,
748
+ Exclude<keyof PaginationConfiguration, "client">
749
+ >
750
+ ): Paginator<ListRotationShiftsCommandOutput>;
670
751
  }
671
752
  export declare class SSMContacts
672
753
  extends SSMContactsClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ssm-contacts",
3
3
  "description": "AWS SDK for JavaScript Ssm Contacts Client for Node.js, Browser and React Native",
4
- "version": "3.975.0",
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-ssm-contacts",
@@ -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.1",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.2",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
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.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
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.21.1",
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.11",
42
- "@smithy/middleware-retry": "^4.4.27",
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.10.12",
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.26",
55
- "@smithy/util-defaults-mode-node": "^4.2.29",
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",