@aws-sdk/client-memorydb 3.238.0 → 3.239.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/MemoryDB.js +45 -0
- package/dist-cjs/commands/DescribeReservedNodesCommand.js +46 -0
- package/dist-cjs/commands/DescribeReservedNodesOfferingsCommand.js +46 -0
- package/dist-cjs/commands/PurchaseReservedNodesOfferingCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/models/models_0.js +92 -4
- package/dist-cjs/pagination/DescribeACLsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeClustersPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeEngineVersionsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeEventsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeParameterGroupsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeParametersPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeReservedNodesOfferingsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeReservedNodesPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeServiceUpdatesPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeSnapshotsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeSubnetGroupsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeUsersPaginator.js +36 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/index.js +16 -0
- package/dist-cjs/protocols/Aws_json1_1.js +342 -2
- package/dist-es/MemoryDB.js +45 -0
- package/dist-es/commands/DescribeReservedNodesCommand.js +42 -0
- package/dist-es/commands/DescribeReservedNodesOfferingsCommand.js +42 -0
- package/dist-es/commands/PurchaseReservedNodesOfferingCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +75 -0
- package/dist-es/pagination/DescribeACLsPaginator.js +32 -0
- package/dist-es/pagination/DescribeClustersPaginator.js +32 -0
- package/dist-es/pagination/DescribeEngineVersionsPaginator.js +32 -0
- package/dist-es/pagination/DescribeEventsPaginator.js +32 -0
- package/dist-es/pagination/DescribeParameterGroupsPaginator.js +32 -0
- package/dist-es/pagination/DescribeParametersPaginator.js +32 -0
- package/dist-es/pagination/DescribeReservedNodesOfferingsPaginator.js +32 -0
- package/dist-es/pagination/DescribeReservedNodesPaginator.js +32 -0
- package/dist-es/pagination/DescribeServiceUpdatesPaginator.js +32 -0
- package/dist-es/pagination/DescribeSnapshotsPaginator.js +32 -0
- package/dist-es/pagination/DescribeSubnetGroupsPaginator.js +32 -0
- package/dist-es/pagination/DescribeUsersPaginator.js +32 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/index.js +13 -0
- package/dist-es/protocols/Aws_json1_1.js +335 -1
- package/dist-types/MemoryDB.d.ts +21 -1
- package/dist-types/MemoryDBClient.d.ts +5 -2
- package/dist-types/commands/DescribeReservedNodesCommand.d.ts +37 -0
- package/dist-types/commands/DescribeReservedNodesOfferingsCommand.d.ts +37 -0
- package/dist-types/commands/PurchaseReservedNodesOfferingCommand.d.ts +37 -0
- package/dist-types/commands/TagResourceCommand.d.ts +0 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +275 -2
- package/dist-types/pagination/DescribeACLsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeClustersPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeEngineVersionsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeEventsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeParameterGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeParametersPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeReservedNodesOfferingsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeReservedNodesPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeServiceUpdatesPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeSnapshotsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeSubnetGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeUsersPaginator.d.ts +4 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/index.d.ts +13 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/MemoryDB.d.ts +51 -0
- package/dist-types/ts3.4/MemoryDBClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DescribeReservedNodesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeReservedNodesOfferingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PurchaseReservedNodesOfferingCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +115 -0
- package/dist-types/ts3.4/pagination/DescribeACLsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeClustersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeEngineVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeParameterGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeParametersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeReservedNodesOfferingsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeReservedNodesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeServiceUpdatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeSnapshotsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeSubnetGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeUsersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/index.d.ts +13 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
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
|
@@ -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";
|