@aws-sdk/client-memorydb 3.238.0 → 3.241.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.
Files changed (96) hide show
  1. package/dist-cjs/MemoryDB.js +45 -0
  2. package/dist-cjs/commands/DescribeReservedNodesCommand.js +46 -0
  3. package/dist-cjs/commands/DescribeReservedNodesOfferingsCommand.js +46 -0
  4. package/dist-cjs/commands/PurchaseReservedNodesOfferingCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +3 -0
  6. package/dist-cjs/endpoint/ruleset.js +3 -3
  7. package/dist-cjs/index.js +1 -0
  8. package/dist-cjs/models/models_0.js +92 -4
  9. package/dist-cjs/pagination/DescribeACLsPaginator.js +36 -0
  10. package/dist-cjs/pagination/DescribeClustersPaginator.js +36 -0
  11. package/dist-cjs/pagination/DescribeEngineVersionsPaginator.js +36 -0
  12. package/dist-cjs/pagination/DescribeEventsPaginator.js +36 -0
  13. package/dist-cjs/pagination/DescribeParameterGroupsPaginator.js +36 -0
  14. package/dist-cjs/pagination/DescribeParametersPaginator.js +36 -0
  15. package/dist-cjs/pagination/DescribeReservedNodesOfferingsPaginator.js +36 -0
  16. package/dist-cjs/pagination/DescribeReservedNodesPaginator.js +36 -0
  17. package/dist-cjs/pagination/DescribeServiceUpdatesPaginator.js +36 -0
  18. package/dist-cjs/pagination/DescribeSnapshotsPaginator.js +36 -0
  19. package/dist-cjs/pagination/DescribeSubnetGroupsPaginator.js +36 -0
  20. package/dist-cjs/pagination/DescribeUsersPaginator.js +36 -0
  21. package/dist-cjs/pagination/Interfaces.js +2 -0
  22. package/dist-cjs/pagination/index.js +16 -0
  23. package/dist-cjs/protocols/Aws_json1_1.js +342 -2
  24. package/dist-es/MemoryDB.js +45 -0
  25. package/dist-es/commands/DescribeReservedNodesCommand.js +42 -0
  26. package/dist-es/commands/DescribeReservedNodesOfferingsCommand.js +42 -0
  27. package/dist-es/commands/PurchaseReservedNodesOfferingCommand.js +42 -0
  28. package/dist-es/commands/index.js +3 -0
  29. package/dist-es/endpoint/ruleset.js +3 -3
  30. package/dist-es/index.js +1 -0
  31. package/dist-es/models/models_0.js +75 -0
  32. package/dist-es/pagination/DescribeACLsPaginator.js +32 -0
  33. package/dist-es/pagination/DescribeClustersPaginator.js +32 -0
  34. package/dist-es/pagination/DescribeEngineVersionsPaginator.js +32 -0
  35. package/dist-es/pagination/DescribeEventsPaginator.js +32 -0
  36. package/dist-es/pagination/DescribeParameterGroupsPaginator.js +32 -0
  37. package/dist-es/pagination/DescribeParametersPaginator.js +32 -0
  38. package/dist-es/pagination/DescribeReservedNodesOfferingsPaginator.js +32 -0
  39. package/dist-es/pagination/DescribeReservedNodesPaginator.js +32 -0
  40. package/dist-es/pagination/DescribeServiceUpdatesPaginator.js +32 -0
  41. package/dist-es/pagination/DescribeSnapshotsPaginator.js +32 -0
  42. package/dist-es/pagination/DescribeSubnetGroupsPaginator.js +32 -0
  43. package/dist-es/pagination/DescribeUsersPaginator.js +32 -0
  44. package/dist-es/pagination/Interfaces.js +1 -0
  45. package/dist-es/pagination/index.js +13 -0
  46. package/dist-es/protocols/Aws_json1_1.js +335 -1
  47. package/dist-types/MemoryDB.d.ts +21 -1
  48. package/dist-types/MemoryDBClient.d.ts +5 -2
  49. package/dist-types/commands/DescribeReservedNodesCommand.d.ts +37 -0
  50. package/dist-types/commands/DescribeReservedNodesOfferingsCommand.d.ts +37 -0
  51. package/dist-types/commands/PurchaseReservedNodesOfferingCommand.d.ts +37 -0
  52. package/dist-types/commands/TagResourceCommand.d.ts +0 -1
  53. package/dist-types/commands/index.d.ts +3 -0
  54. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  55. package/dist-types/index.d.ts +1 -0
  56. package/dist-types/models/models_0.d.ts +275 -2
  57. package/dist-types/pagination/DescribeACLsPaginator.d.ts +4 -0
  58. package/dist-types/pagination/DescribeClustersPaginator.d.ts +4 -0
  59. package/dist-types/pagination/DescribeEngineVersionsPaginator.d.ts +4 -0
  60. package/dist-types/pagination/DescribeEventsPaginator.d.ts +4 -0
  61. package/dist-types/pagination/DescribeParameterGroupsPaginator.d.ts +4 -0
  62. package/dist-types/pagination/DescribeParametersPaginator.d.ts +4 -0
  63. package/dist-types/pagination/DescribeReservedNodesOfferingsPaginator.d.ts +4 -0
  64. package/dist-types/pagination/DescribeReservedNodesPaginator.d.ts +4 -0
  65. package/dist-types/pagination/DescribeServiceUpdatesPaginator.d.ts +4 -0
  66. package/dist-types/pagination/DescribeSnapshotsPaginator.d.ts +4 -0
  67. package/dist-types/pagination/DescribeSubnetGroupsPaginator.d.ts +4 -0
  68. package/dist-types/pagination/DescribeUsersPaginator.d.ts +4 -0
  69. package/dist-types/pagination/Interfaces.d.ts +6 -0
  70. package/dist-types/pagination/index.d.ts +13 -0
  71. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  72. package/dist-types/ts3.4/MemoryDB.d.ts +51 -0
  73. package/dist-types/ts3.4/MemoryDBClient.d.ts +18 -0
  74. package/dist-types/ts3.4/commands/DescribeReservedNodesCommand.d.ts +41 -0
  75. package/dist-types/ts3.4/commands/DescribeReservedNodesOfferingsCommand.d.ts +41 -0
  76. package/dist-types/ts3.4/commands/PurchaseReservedNodesOfferingCommand.d.ts +41 -0
  77. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  78. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  79. package/dist-types/ts3.4/index.d.ts +1 -0
  80. package/dist-types/ts3.4/models/models_0.d.ts +115 -0
  81. package/dist-types/ts3.4/pagination/DescribeACLsPaginator.d.ts +11 -0
  82. package/dist-types/ts3.4/pagination/DescribeClustersPaginator.d.ts +11 -0
  83. package/dist-types/ts3.4/pagination/DescribeEngineVersionsPaginator.d.ts +11 -0
  84. package/dist-types/ts3.4/pagination/DescribeEventsPaginator.d.ts +11 -0
  85. package/dist-types/ts3.4/pagination/DescribeParameterGroupsPaginator.d.ts +11 -0
  86. package/dist-types/ts3.4/pagination/DescribeParametersPaginator.d.ts +11 -0
  87. package/dist-types/ts3.4/pagination/DescribeReservedNodesOfferingsPaginator.d.ts +11 -0
  88. package/dist-types/ts3.4/pagination/DescribeReservedNodesPaginator.d.ts +11 -0
  89. package/dist-types/ts3.4/pagination/DescribeServiceUpdatesPaginator.d.ts +11 -0
  90. package/dist-types/ts3.4/pagination/DescribeSnapshotsPaginator.d.ts +11 -0
  91. package/dist-types/ts3.4/pagination/DescribeSubnetGroupsPaginator.d.ts +11 -0
  92. package/dist-types/ts3.4/pagination/DescribeUsersPaginator.d.ts +11 -0
  93. package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
  94. package/dist-types/ts3.4/pagination/index.d.ts +13 -0
  95. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  96. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- const q = "required", r = "fn", s = "argv", t = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [q]: false, "type": "String" }, f = { [q]: true, "default": false, "type": "Boolean" }, g = { [t]: "Region" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: a }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: a }, "supportsDualStack"] }] }, n = [h], o = [i], p = [j];
3
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [g], assign: a }], type: b, rules: [{ conditions: [{ [r]: "isSet", [s]: n }, { [r]: "parseURL", [s]: n, assign: "url" }], type: b, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://memory-db-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://memory-db-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://memory-db.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ conditions: [{ [r]: "stringEquals", [s]: [g, "fips"] }], endpoint: { url: "https://memory-db-fips.us-west-1.amazonaws.com", properties: k, headers: k }, type: d }, { endpoint: { url: "https://memory-db.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] };
1
+ const r = "fn", s = "argv", t = "ref";
2
+ const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [t]: "Region" }, j = { [t]: "Endpoint" }, k = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, l = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, m = {}, n = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsFIPS"] }] }, o = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsDualStack"] }] }, p = [k], q = [l];
3
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [i], assign: d }], type: e, rules: [{ conditions: [{ [r]: "isSet", [s]: [j] }], type: e, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: j, properties: m, headers: m }, type: g }] }] }, { conditions: [k, l], type: e, rules: [{ conditions: [n, o], type: e, rules: [{ endpoint: { url: "https://memory-db-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://memory-db-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [o], type: e, rules: [{ endpoint: { url: "https://memory-db.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ conditions: [{ [r]: "stringEquals", [s]: [i, "fips"] }], endpoint: { url: "https://memory-db-fips.us-west-1.amazonaws.com", properties: m, headers: m }, type: g }, { endpoint: { url: "https://memory-db.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }] };
4
4
  export const ruleSet = _data;
package/dist-es/index.js CHANGED
@@ -2,4 +2,5 @@ export * from "./MemoryDB";
2
2
  export * from "./MemoryDBClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export * from "./pagination";
5
6
  export { MemoryDBServiceException } from "./models/MemoryDBServiceException";
@@ -514,6 +514,30 @@ export var SourceType;
514
514
  SourceType["subnet_group"] = "subnet-group";
515
515
  SourceType["user"] = "user";
516
516
  })(SourceType || (SourceType = {}));
517
+ export class ReservedNodeNotFoundFault extends __BaseException {
518
+ constructor(opts) {
519
+ super({
520
+ name: "ReservedNodeNotFoundFault",
521
+ $fault: "client",
522
+ ...opts,
523
+ });
524
+ this.name = "ReservedNodeNotFoundFault";
525
+ this.$fault = "client";
526
+ Object.setPrototypeOf(this, ReservedNodeNotFoundFault.prototype);
527
+ }
528
+ }
529
+ export class ReservedNodesOfferingNotFoundFault extends __BaseException {
530
+ constructor(opts) {
531
+ super({
532
+ name: "ReservedNodesOfferingNotFoundFault",
533
+ $fault: "client",
534
+ ...opts,
535
+ });
536
+ this.name = "ReservedNodesOfferingNotFoundFault";
537
+ this.$fault = "client";
538
+ Object.setPrototypeOf(this, ReservedNodesOfferingNotFoundFault.prototype);
539
+ }
540
+ }
517
541
  export var ServiceUpdateType;
518
542
  (function (ServiceUpdateType) {
519
543
  ServiceUpdateType["SECURITY_UPDATE"] = "security-update";
@@ -578,6 +602,30 @@ export class InvalidARNFault extends __BaseException {
578
602
  Object.setPrototypeOf(this, InvalidARNFault.prototype);
579
603
  }
580
604
  }
605
+ export class ReservedNodeAlreadyExistsFault extends __BaseException {
606
+ constructor(opts) {
607
+ super({
608
+ name: "ReservedNodeAlreadyExistsFault",
609
+ $fault: "client",
610
+ ...opts,
611
+ });
612
+ this.name = "ReservedNodeAlreadyExistsFault";
613
+ this.$fault = "client";
614
+ Object.setPrototypeOf(this, ReservedNodeAlreadyExistsFault.prototype);
615
+ }
616
+ }
617
+ export class ReservedNodeQuotaExceededFault extends __BaseException {
618
+ constructor(opts) {
619
+ super({
620
+ name: "ReservedNodeQuotaExceededFault",
621
+ $fault: "client",
622
+ ...opts,
623
+ });
624
+ this.name = "ReservedNodeQuotaExceededFault";
625
+ this.$fault = "client";
626
+ Object.setPrototypeOf(this, ReservedNodeQuotaExceededFault.prototype);
627
+ }
628
+ }
581
629
  export class TagNotFoundFault extends __BaseException {
582
630
  constructor(opts) {
583
631
  super({
@@ -833,6 +881,27 @@ export const ParameterFilterSensitiveLog = (obj) => ({
833
881
  export const DescribeParametersResponseFilterSensitiveLog = (obj) => ({
834
882
  ...obj,
835
883
  });
884
+ export const DescribeReservedNodesRequestFilterSensitiveLog = (obj) => ({
885
+ ...obj,
886
+ });
887
+ export const RecurringChargeFilterSensitiveLog = (obj) => ({
888
+ ...obj,
889
+ });
890
+ export const ReservedNodeFilterSensitiveLog = (obj) => ({
891
+ ...obj,
892
+ });
893
+ export const DescribeReservedNodesResponseFilterSensitiveLog = (obj) => ({
894
+ ...obj,
895
+ });
896
+ export const DescribeReservedNodesOfferingsRequestFilterSensitiveLog = (obj) => ({
897
+ ...obj,
898
+ });
899
+ export const ReservedNodesOfferingFilterSensitiveLog = (obj) => ({
900
+ ...obj,
901
+ });
902
+ export const DescribeReservedNodesOfferingsResponseFilterSensitiveLog = (obj) => ({
903
+ ...obj,
904
+ });
836
905
  export const DescribeServiceUpdatesRequestFilterSensitiveLog = (obj) => ({
837
906
  ...obj,
838
907
  });
@@ -881,6 +950,12 @@ export const ListTagsRequestFilterSensitiveLog = (obj) => ({
881
950
  export const ListTagsResponseFilterSensitiveLog = (obj) => ({
882
951
  ...obj,
883
952
  });
953
+ export const PurchaseReservedNodesOfferingRequestFilterSensitiveLog = (obj) => ({
954
+ ...obj,
955
+ });
956
+ export const PurchaseReservedNodesOfferingResponseFilterSensitiveLog = (obj) => ({
957
+ ...obj,
958
+ });
884
959
  export const ResetParameterGroupRequestFilterSensitiveLog = (obj) => ({
885
960
  ...obj,
886
961
  });
@@ -0,0 +1,32 @@
1
+ import { DescribeACLsCommand, } from "../commands/DescribeACLsCommand";
2
+ import { MemoryDB } from "../MemoryDB";
3
+ import { MemoryDBClient } from "../MemoryDBClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new DescribeACLsCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.describeACLs(input, ...args);
9
+ };
10
+ export async function* paginateDescribeACLs(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof MemoryDB) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof MemoryDBClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected MemoryDB | MemoryDBClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { DescribeClustersCommand, } from "../commands/DescribeClustersCommand";
2
+ import { MemoryDB } from "../MemoryDB";
3
+ import { MemoryDBClient } from "../MemoryDBClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new DescribeClustersCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.describeClusters(input, ...args);
9
+ };
10
+ export async function* paginateDescribeClusters(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof MemoryDB) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof MemoryDBClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected MemoryDB | MemoryDBClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { DescribeEngineVersionsCommand, } from "../commands/DescribeEngineVersionsCommand";
2
+ import { MemoryDB } from "../MemoryDB";
3
+ import { MemoryDBClient } from "../MemoryDBClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new DescribeEngineVersionsCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.describeEngineVersions(input, ...args);
9
+ };
10
+ export async function* paginateDescribeEngineVersions(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof MemoryDB) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof MemoryDBClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected MemoryDB | MemoryDBClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { DescribeEventsCommand, } from "../commands/DescribeEventsCommand";
2
+ import { MemoryDB } from "../MemoryDB";
3
+ import { MemoryDBClient } from "../MemoryDBClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new DescribeEventsCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.describeEvents(input, ...args);
9
+ };
10
+ export async function* paginateDescribeEvents(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof MemoryDB) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof MemoryDBClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected MemoryDB | MemoryDBClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { DescribeParameterGroupsCommand, } from "../commands/DescribeParameterGroupsCommand";
2
+ import { MemoryDB } from "../MemoryDB";
3
+ import { MemoryDBClient } from "../MemoryDBClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new DescribeParameterGroupsCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.describeParameterGroups(input, ...args);
9
+ };
10
+ export async function* paginateDescribeParameterGroups(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof MemoryDB) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof MemoryDBClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected MemoryDB | MemoryDBClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { DescribeParametersCommand, } from "../commands/DescribeParametersCommand";
2
+ import { MemoryDB } from "../MemoryDB";
3
+ import { MemoryDBClient } from "../MemoryDBClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new DescribeParametersCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.describeParameters(input, ...args);
9
+ };
10
+ export async function* paginateDescribeParameters(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof MemoryDB) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof MemoryDBClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected MemoryDB | MemoryDBClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { DescribeReservedNodesOfferingsCommand, } from "../commands/DescribeReservedNodesOfferingsCommand";
2
+ import { MemoryDB } from "../MemoryDB";
3
+ import { MemoryDBClient } from "../MemoryDBClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new DescribeReservedNodesOfferingsCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.describeReservedNodesOfferings(input, ...args);
9
+ };
10
+ export async function* paginateDescribeReservedNodesOfferings(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof MemoryDB) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof MemoryDBClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected MemoryDB | MemoryDBClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { DescribeReservedNodesCommand, } from "../commands/DescribeReservedNodesCommand";
2
+ import { MemoryDB } from "../MemoryDB";
3
+ import { MemoryDBClient } from "../MemoryDBClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new DescribeReservedNodesCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.describeReservedNodes(input, ...args);
9
+ };
10
+ export async function* paginateDescribeReservedNodes(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof MemoryDB) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof MemoryDBClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected MemoryDB | MemoryDBClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { DescribeServiceUpdatesCommand, } from "../commands/DescribeServiceUpdatesCommand";
2
+ import { MemoryDB } from "../MemoryDB";
3
+ import { MemoryDBClient } from "../MemoryDBClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new DescribeServiceUpdatesCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.describeServiceUpdates(input, ...args);
9
+ };
10
+ export async function* paginateDescribeServiceUpdates(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof MemoryDB) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof MemoryDBClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected MemoryDB | MemoryDBClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { DescribeSnapshotsCommand, } from "../commands/DescribeSnapshotsCommand";
2
+ import { MemoryDB } from "../MemoryDB";
3
+ import { MemoryDBClient } from "../MemoryDBClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new DescribeSnapshotsCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.describeSnapshots(input, ...args);
9
+ };
10
+ export async function* paginateDescribeSnapshots(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof MemoryDB) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof MemoryDBClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected MemoryDB | MemoryDBClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { DescribeSubnetGroupsCommand, } from "../commands/DescribeSubnetGroupsCommand";
2
+ import { MemoryDB } from "../MemoryDB";
3
+ import { MemoryDBClient } from "../MemoryDBClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new DescribeSubnetGroupsCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.describeSubnetGroups(input, ...args);
9
+ };
10
+ export async function* paginateDescribeSubnetGroups(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof MemoryDB) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof MemoryDBClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected MemoryDB | MemoryDBClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { DescribeUsersCommand, } from "../commands/DescribeUsersCommand";
2
+ import { MemoryDB } from "../MemoryDB";
3
+ import { MemoryDBClient } from "../MemoryDBClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new DescribeUsersCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.describeUsers(input, ...args);
9
+ };
10
+ export async function* paginateDescribeUsers(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof MemoryDB) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof MemoryDBClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected MemoryDB | MemoryDBClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ export * from "./DescribeACLsPaginator";
2
+ export * from "./DescribeClustersPaginator";
3
+ export * from "./DescribeEngineVersionsPaginator";
4
+ export * from "./DescribeEventsPaginator";
5
+ export * from "./DescribeParameterGroupsPaginator";
6
+ export * from "./DescribeParametersPaginator";
7
+ export * from "./DescribeReservedNodesOfferingsPaginator";
8
+ export * from "./DescribeReservedNodesPaginator";
9
+ export * from "./DescribeServiceUpdatesPaginator";
10
+ export * from "./DescribeSnapshotsPaginator";
11
+ export * from "./Interfaces";
12
+ export * from "./DescribeSubnetGroupsPaginator";
13
+ export * from "./DescribeUsersPaginator";