@aws-sdk/client-shield 3.975.0 → 3.980.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
@@ -1719,6 +1719,14 @@ class UpdateSubscriptionCommand extends smithyClient.Command
1719
1719
  .build() {
1720
1720
  }
1721
1721
 
1722
+ const paginateListAttacks = core.createPaginator(ShieldClient, ListAttacksCommand, "NextToken", "NextToken", "MaxResults");
1723
+
1724
+ const paginateListProtectionGroups = core.createPaginator(ShieldClient, ListProtectionGroupsCommand, "NextToken", "NextToken", "MaxResults");
1725
+
1726
+ const paginateListProtections = core.createPaginator(ShieldClient, ListProtectionsCommand, "NextToken", "NextToken", "MaxResults");
1727
+
1728
+ const paginateListResourcesInProtectionGroup = core.createPaginator(ShieldClient, ListResourcesInProtectionGroupCommand, "NextToken", "NextToken", "MaxResults");
1729
+
1722
1730
  const commands = {
1723
1731
  AssociateDRTLogBucketCommand,
1724
1732
  AssociateDRTRoleCommand,
@@ -1757,17 +1765,15 @@ const commands = {
1757
1765
  UpdateProtectionGroupCommand,
1758
1766
  UpdateSubscriptionCommand,
1759
1767
  };
1768
+ const paginators = {
1769
+ paginateListAttacks,
1770
+ paginateListProtectionGroups,
1771
+ paginateListProtections,
1772
+ paginateListResourcesInProtectionGroup,
1773
+ };
1760
1774
  class Shield extends ShieldClient {
1761
1775
  }
1762
- smithyClient.createAggregatedClient(commands, Shield);
1763
-
1764
- const paginateListAttacks = core.createPaginator(ShieldClient, ListAttacksCommand, "NextToken", "NextToken", "MaxResults");
1765
-
1766
- const paginateListProtectionGroups = core.createPaginator(ShieldClient, ListProtectionGroupsCommand, "NextToken", "NextToken", "MaxResults");
1767
-
1768
- const paginateListProtections = core.createPaginator(ShieldClient, ListProtectionsCommand, "NextToken", "NextToken", "MaxResults");
1769
-
1770
- const paginateListResourcesInProtectionGroup = core.createPaginator(ShieldClient, ListResourcesInProtectionGroupCommand, "NextToken", "NextToken", "MaxResults");
1776
+ smithyClient.createAggregatedClient(commands, Shield, { paginators });
1771
1777
 
1772
1778
  const ApplicationLayerAutomaticResponseStatus = {
1773
1779
  DISABLED: "DISABLED",
package/dist-es/Shield.js CHANGED
@@ -35,6 +35,10 @@ import { UpdateApplicationLayerAutomaticResponseCommand, } from "./commands/Upda
35
35
  import { UpdateEmergencyContactSettingsCommand, } from "./commands/UpdateEmergencyContactSettingsCommand";
36
36
  import { UpdateProtectionGroupCommand, } from "./commands/UpdateProtectionGroupCommand";
37
37
  import { UpdateSubscriptionCommand, } from "./commands/UpdateSubscriptionCommand";
38
+ import { paginateListAttacks } from "./pagination/ListAttacksPaginator";
39
+ import { paginateListProtectionGroups } from "./pagination/ListProtectionGroupsPaginator";
40
+ import { paginateListProtections } from "./pagination/ListProtectionsPaginator";
41
+ import { paginateListResourcesInProtectionGroup } from "./pagination/ListResourcesInProtectionGroupPaginator";
38
42
  import { ShieldClient } from "./ShieldClient";
39
43
  const commands = {
40
44
  AssociateDRTLogBucketCommand,
@@ -74,6 +78,12 @@ const commands = {
74
78
  UpdateProtectionGroupCommand,
75
79
  UpdateSubscriptionCommand,
76
80
  };
81
+ const paginators = {
82
+ paginateListAttacks,
83
+ paginateListProtectionGroups,
84
+ paginateListProtections,
85
+ paginateListResourcesInProtectionGroup,
86
+ };
77
87
  export class Shield extends ShieldClient {
78
88
  }
79
- createAggregatedClient(commands, Shield);
89
+ createAggregatedClient(commands, Shield, { 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 { AssociateDRTLogBucketCommandInput, AssociateDRTLogBucketCommandOutput } from "./commands/AssociateDRTLogBucketCommand";
3
3
  import { AssociateDRTRoleCommandInput, AssociateDRTRoleCommandOutput } from "./commands/AssociateDRTRoleCommand";
4
4
  import { AssociateHealthCheckCommandInput, AssociateHealthCheckCommandOutput } from "./commands/AssociateHealthCheckCommand";
@@ -269,6 +269,34 @@ export interface Shield {
269
269
  updateSubscription(args: UpdateSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSubscriptionCommandOutput>;
270
270
  updateSubscription(args: UpdateSubscriptionCommandInput, cb: (err: any, data?: UpdateSubscriptionCommandOutput) => void): void;
271
271
  updateSubscription(args: UpdateSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSubscriptionCommandOutput) => void): void;
272
+ /**
273
+ * @see {@link ListAttacksCommand}
274
+ * @param args - command input.
275
+ * @param paginationConfig - optional pagination config.
276
+ * @returns AsyncIterable of {@link ListAttacksCommandOutput}.
277
+ */
278
+ paginateListAttacks(args?: ListAttacksCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAttacksCommandOutput>;
279
+ /**
280
+ * @see {@link ListProtectionGroupsCommand}
281
+ * @param args - command input.
282
+ * @param paginationConfig - optional pagination config.
283
+ * @returns AsyncIterable of {@link ListProtectionGroupsCommandOutput}.
284
+ */
285
+ paginateListProtectionGroups(args?: ListProtectionGroupsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListProtectionGroupsCommandOutput>;
286
+ /**
287
+ * @see {@link ListProtectionsCommand}
288
+ * @param args - command input.
289
+ * @param paginationConfig - optional pagination config.
290
+ * @returns AsyncIterable of {@link ListProtectionsCommandOutput}.
291
+ */
292
+ paginateListProtections(args?: ListProtectionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListProtectionsCommandOutput>;
293
+ /**
294
+ * @see {@link ListResourcesInProtectionGroupCommand}
295
+ * @param args - command input.
296
+ * @param paginationConfig - optional pagination config.
297
+ * @returns AsyncIterable of {@link ListResourcesInProtectionGroupCommandOutput}.
298
+ */
299
+ paginateListResourcesInProtectionGroup(args: ListResourcesInProtectionGroupCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListResourcesInProtectionGroupCommandOutput>;
272
300
  }
273
301
  /**
274
302
  * <fullname>Shield Advanced</fullname>
@@ -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
  AssociateDRTLogBucketCommandInput,
4
8
  AssociateDRTLogBucketCommandOutput,
@@ -653,5 +657,33 @@ export interface Shield {
653
657
  options: __HttpHandlerOptions,
654
658
  cb: (err: any, data?: UpdateSubscriptionCommandOutput) => void
655
659
  ): void;
660
+ paginateListAttacks(
661
+ args?: ListAttacksCommandInput,
662
+ paginationConfig?: Pick<
663
+ PaginationConfiguration,
664
+ Exclude<keyof PaginationConfiguration, "client">
665
+ >
666
+ ): Paginator<ListAttacksCommandOutput>;
667
+ paginateListProtectionGroups(
668
+ args?: ListProtectionGroupsCommandInput,
669
+ paginationConfig?: Pick<
670
+ PaginationConfiguration,
671
+ Exclude<keyof PaginationConfiguration, "client">
672
+ >
673
+ ): Paginator<ListProtectionGroupsCommandOutput>;
674
+ paginateListProtections(
675
+ args?: ListProtectionsCommandInput,
676
+ paginationConfig?: Pick<
677
+ PaginationConfiguration,
678
+ Exclude<keyof PaginationConfiguration, "client">
679
+ >
680
+ ): Paginator<ListProtectionsCommandOutput>;
681
+ paginateListResourcesInProtectionGroup(
682
+ args: ListResourcesInProtectionGroupCommandInput,
683
+ paginationConfig?: Pick<
684
+ PaginationConfiguration,
685
+ Exclude<keyof PaginationConfiguration, "client">
686
+ >
687
+ ): Paginator<ListResourcesInProtectionGroupCommandOutput>;
656
688
  }
657
689
  export declare class Shield extends ShieldClient implements Shield {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-shield",
3
3
  "description": "AWS SDK for JavaScript Shield Client for Node.js, Browser and React Native",
4
- "version": "3.975.0",
4
+ "version": "3.980.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-shield",
@@ -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",
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",
24
+ "@aws-sdk/core": "^3.973.5",
25
+ "@aws-sdk/credential-provider-node": "^3.972.4",
26
+ "@aws-sdk/middleware-host-header": "^3.972.3",
27
+ "@aws-sdk/middleware-logger": "^3.972.3",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.5",
30
+ "@aws-sdk/region-config-resolver": "^3.972.3",
31
+ "@aws-sdk/types": "^3.973.1",
32
+ "@aws-sdk/util-endpoints": "3.980.0",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.3",
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",