@aws-sdk/client-ram 3.476.0 → 3.478.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/pagination/GetResourcePoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/GetResourceShareAssociationsPaginator.js +2 -24
- package/dist-cjs/pagination/GetResourceShareInvitationsPaginator.js +2 -24
- package/dist-cjs/pagination/GetResourceSharesPaginator.js +2 -24
- package/dist-cjs/pagination/ListPendingInvitationResourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListPermissionAssociationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPermissionVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPermissionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPrincipalsPaginator.js +2 -24
- package/dist-cjs/pagination/ListReplacePermissionAssociationsWorkPaginator.js +2 -24
- package/dist-cjs/pagination/ListResourceSharePermissionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListResourceTypesPaginator.js +2 -24
- package/dist-cjs/pagination/ListResourcesPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +149 -390
- package/dist-es/pagination/GetResourcePoliciesPaginator.js +2 -23
- package/dist-es/pagination/GetResourceShareAssociationsPaginator.js +2 -23
- package/dist-es/pagination/GetResourceShareInvitationsPaginator.js +2 -23
- package/dist-es/pagination/GetResourceSharesPaginator.js +2 -23
- package/dist-es/pagination/ListPendingInvitationResourcesPaginator.js +2 -23
- package/dist-es/pagination/ListPermissionAssociationsPaginator.js +2 -23
- package/dist-es/pagination/ListPermissionVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListPermissionsPaginator.js +2 -23
- package/dist-es/pagination/ListPrincipalsPaginator.js +2 -23
- package/dist-es/pagination/ListReplacePermissionAssociationsWorkPaginator.js +2 -23
- package/dist-es/pagination/ListResourceSharePermissionsPaginator.js +2 -23
- package/dist-es/pagination/ListResourceTypesPaginator.js +2 -23
- package/dist-es/pagination/ListResourcesPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +149 -390
- package/dist-types/pagination/GetResourcePoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/GetResourceShareAssociationsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetResourceShareInvitationsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetResourceSharesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPendingInvitationResourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPermissionAssociationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPermissionVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPermissionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPrincipalsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListReplacePermissionAssociationsWorkPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResourceSharePermissionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResourceTypesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResourcesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetResourcePoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetResourceShareAssociationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetResourceShareInvitationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetResourceSharesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPendingInvitationResourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPermissionAssociationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPermissionVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPermissionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPrincipalsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListReplacePermissionAssociationsWorkPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResourceSharePermissionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResourceTypesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResourcesPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetResourcePolicies = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetResourcePoliciesCommand_1 = require("../commands/GetResourcePoliciesCommand");
|
|
5
6
|
const RAMClient_1 = require("../RAMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetResourcePoliciesCommand_1.GetResourcePoliciesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetResourcePolicies(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof RAMClient_1.RAMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetResourcePolicies = paginateGetResourcePolicies;
|
|
7
|
+
exports.paginateGetResourcePolicies = (0, core_1.createPaginator)(RAMClient_1.RAMClient, GetResourcePoliciesCommand_1.GetResourcePoliciesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetResourceShareAssociations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetResourceShareAssociationsCommand_1 = require("../commands/GetResourceShareAssociationsCommand");
|
|
5
6
|
const RAMClient_1 = require("../RAMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetResourceShareAssociationsCommand_1.GetResourceShareAssociationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetResourceShareAssociations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof RAMClient_1.RAMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetResourceShareAssociations = paginateGetResourceShareAssociations;
|
|
7
|
+
exports.paginateGetResourceShareAssociations = (0, core_1.createPaginator)(RAMClient_1.RAMClient, GetResourceShareAssociationsCommand_1.GetResourceShareAssociationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetResourceShareInvitations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetResourceShareInvitationsCommand_1 = require("../commands/GetResourceShareInvitationsCommand");
|
|
5
6
|
const RAMClient_1 = require("../RAMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetResourceShareInvitationsCommand_1.GetResourceShareInvitationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetResourceShareInvitations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof RAMClient_1.RAMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetResourceShareInvitations = paginateGetResourceShareInvitations;
|
|
7
|
+
exports.paginateGetResourceShareInvitations = (0, core_1.createPaginator)(RAMClient_1.RAMClient, GetResourceShareInvitationsCommand_1.GetResourceShareInvitationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetResourceShares = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetResourceSharesCommand_1 = require("../commands/GetResourceSharesCommand");
|
|
5
6
|
const RAMClient_1 = require("../RAMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetResourceSharesCommand_1.GetResourceSharesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetResourceShares(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof RAMClient_1.RAMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetResourceShares = paginateGetResourceShares;
|
|
7
|
+
exports.paginateGetResourceShares = (0, core_1.createPaginator)(RAMClient_1.RAMClient, GetResourceSharesCommand_1.GetResourceSharesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListPendingInvitationResources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListPendingInvitationResourcesCommand_1 = require("../commands/ListPendingInvitationResourcesCommand");
|
|
5
6
|
const RAMClient_1 = require("../RAMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListPendingInvitationResourcesCommand_1.ListPendingInvitationResourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListPendingInvitationResources(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof RAMClient_1.RAMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListPendingInvitationResources = paginateListPendingInvitationResources;
|
|
7
|
+
exports.paginateListPendingInvitationResources = (0, core_1.createPaginator)(RAMClient_1.RAMClient, ListPendingInvitationResourcesCommand_1.ListPendingInvitationResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListPermissionAssociations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListPermissionAssociationsCommand_1 = require("../commands/ListPermissionAssociationsCommand");
|
|
5
6
|
const RAMClient_1 = require("../RAMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListPermissionAssociationsCommand_1.ListPermissionAssociationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListPermissionAssociations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof RAMClient_1.RAMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListPermissionAssociations = paginateListPermissionAssociations;
|
|
7
|
+
exports.paginateListPermissionAssociations = (0, core_1.createPaginator)(RAMClient_1.RAMClient, ListPermissionAssociationsCommand_1.ListPermissionAssociationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListPermissionVersions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListPermissionVersionsCommand_1 = require("../commands/ListPermissionVersionsCommand");
|
|
5
6
|
const RAMClient_1 = require("../RAMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListPermissionVersionsCommand_1.ListPermissionVersionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListPermissionVersions(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof RAMClient_1.RAMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListPermissionVersions = paginateListPermissionVersions;
|
|
7
|
+
exports.paginateListPermissionVersions = (0, core_1.createPaginator)(RAMClient_1.RAMClient, ListPermissionVersionsCommand_1.ListPermissionVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListPermissions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListPermissionsCommand_1 = require("../commands/ListPermissionsCommand");
|
|
5
6
|
const RAMClient_1 = require("../RAMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListPermissionsCommand_1.ListPermissionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListPermissions(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof RAMClient_1.RAMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListPermissions = paginateListPermissions;
|
|
7
|
+
exports.paginateListPermissions = (0, core_1.createPaginator)(RAMClient_1.RAMClient, ListPermissionsCommand_1.ListPermissionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListPrincipals = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListPrincipalsCommand_1 = require("../commands/ListPrincipalsCommand");
|
|
5
6
|
const RAMClient_1 = require("../RAMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListPrincipalsCommand_1.ListPrincipalsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListPrincipals(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof RAMClient_1.RAMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListPrincipals = paginateListPrincipals;
|
|
7
|
+
exports.paginateListPrincipals = (0, core_1.createPaginator)(RAMClient_1.RAMClient, ListPrincipalsCommand_1.ListPrincipalsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListReplacePermissionAssociationsWork = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListReplacePermissionAssociationsWorkCommand_1 = require("../commands/ListReplacePermissionAssociationsWorkCommand");
|
|
5
6
|
const RAMClient_1 = require("../RAMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListReplacePermissionAssociationsWorkCommand_1.ListReplacePermissionAssociationsWorkCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListReplacePermissionAssociationsWork(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof RAMClient_1.RAMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListReplacePermissionAssociationsWork = paginateListReplacePermissionAssociationsWork;
|
|
7
|
+
exports.paginateListReplacePermissionAssociationsWork = (0, core_1.createPaginator)(RAMClient_1.RAMClient, ListReplacePermissionAssociationsWorkCommand_1.ListReplacePermissionAssociationsWorkCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListResourceSharePermissions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListResourceSharePermissionsCommand_1 = require("../commands/ListResourceSharePermissionsCommand");
|
|
5
6
|
const RAMClient_1 = require("../RAMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListResourceSharePermissionsCommand_1.ListResourceSharePermissionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListResourceSharePermissions(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof RAMClient_1.RAMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListResourceSharePermissions = paginateListResourceSharePermissions;
|
|
7
|
+
exports.paginateListResourceSharePermissions = (0, core_1.createPaginator)(RAMClient_1.RAMClient, ListResourceSharePermissionsCommand_1.ListResourceSharePermissionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListResourceTypes = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListResourceTypesCommand_1 = require("../commands/ListResourceTypesCommand");
|
|
5
6
|
const RAMClient_1 = require("../RAMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListResourceTypesCommand_1.ListResourceTypesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListResourceTypes(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof RAMClient_1.RAMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListResourceTypes = paginateListResourceTypes;
|
|
7
|
+
exports.paginateListResourceTypes = (0, core_1.createPaginator)(RAMClient_1.RAMClient, ListResourceTypesCommand_1.ListResourceTypesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListResources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListResourcesCommand_1 = require("../commands/ListResourcesCommand");
|
|
5
6
|
const RAMClient_1 = require("../RAMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListResourcesCommand_1.ListResourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListResources(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof RAMClient_1.RAMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListResources = paginateListResources;
|
|
7
|
+
exports.paginateListResources = (0, core_1.createPaginator)(RAMClient_1.RAMClient, ListResourcesCommand_1.ListResourcesCommand, "nextToken", "nextToken", "maxResults");
|