@aws-sdk/client-resource-groups-tagging-api 3.33.0 → 3.36.1
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/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/ResourceGroupsTaggingAPI.js +1 -5
- package/{dist/cjs → dist-cjs}/ResourceGroupsTaggingAPIClient.js +8 -17
- package/{dist/cjs → dist-cjs}/commands/DescribeReportCreationCommand.js +2 -29
- package/dist-cjs/commands/GetComplianceSummaryCommand.js +36 -0
- package/dist-cjs/commands/GetResourcesCommand.js +36 -0
- package/dist-cjs/commands/GetTagKeysCommand.js +36 -0
- package/dist-cjs/commands/GetTagValuesCommand.js +36 -0
- package/dist-cjs/commands/StartReportCreationCommand.js +36 -0
- package/dist-cjs/commands/TagResourcesCommand.js +36 -0
- package/dist-cjs/commands/UntagResourcesCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -85
- package/{dist/cjs → dist-cjs}/pagination/GetComplianceSummaryPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/GetResourcesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/GetTagKeysPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/GetTagValuesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/ResourceGroupsTaggingAPI.js +2 -6
- package/{dist/es → dist-es}/ResourceGroupsTaggingAPIClient.js +2 -11
- package/{dist/es → dist-es}/commands/DescribeReportCreationCommand.js +4 -32
- package/dist-es/commands/GetComplianceSummaryCommand.js +39 -0
- package/dist-es/commands/GetResourcesCommand.js +39 -0
- package/dist-es/commands/GetTagKeysCommand.js +39 -0
- package/dist-es/commands/GetTagValuesCommand.js +39 -0
- package/{dist/es → dist-es}/commands/StartReportCreationCommand.js +4 -38
- package/dist-es/commands/TagResourcesCommand.js +39 -0
- package/dist-es/commands/UntagResourcesCommand.js +39 -0
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -85
- package/{dist/es → dist-es}/pagination/GetComplianceSummaryPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/GetResourcesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/GetTagKeysPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/GetTagValuesPaginator.js +17 -30
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +188 -194
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/ResourceGroupsTaggingAPI.d.ts +2 -2
- package/{dist/types → dist-types}/ResourceGroupsTaggingAPIClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/DescribeReportCreationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetComplianceSummaryCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetTagKeysCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetTagValuesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/StartReportCreationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/TagResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UntagResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/GetComplianceSummaryPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetTagKeysPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetTagValuesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/ResourceGroupsTaggingAPI.d.ts +45 -0
- package/{dist/types → dist-types}/ts3.4/ResourceGroupsTaggingAPIClient.d.ts +32 -97
- package/dist-types/ts3.4/commands/DescribeReportCreationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetComplianceSummaryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetResourcesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTagKeysCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTagValuesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartReportCreationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourcesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourcesCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +331 -0
- package/{dist/types → dist-types}/ts3.4/pagination/GetComplianceSummaryPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetTagKeysPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetTagValuesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +52 -49
- package/ResourceGroupsTaggingAPI.ts +0 -385
- package/ResourceGroupsTaggingAPIClient.ts +0 -269
- package/commands/DescribeReportCreationCommand.ts +0 -100
- package/commands/GetComplianceSummaryCommand.ts +0 -110
- package/commands/GetResourcesCommand.ts +0 -121
- package/commands/GetTagKeysCommand.ts +0 -105
- package/commands/GetTagValuesCommand.ts +0 -105
- package/commands/StartReportCreationCommand.ts +0 -106
- package/commands/TagResourcesCommand.ts +0 -125
- package/commands/UntagResourcesCommand.ts +0 -113
- package/dist/cjs/ResourceGroupsTaggingAPI.js.map +0 -1
- package/dist/cjs/ResourceGroupsTaggingAPIClient.js.map +0 -1
- package/dist/cjs/commands/DescribeReportCreationCommand.js.map +0 -1
- package/dist/cjs/commands/GetComplianceSummaryCommand.js +0 -73
- package/dist/cjs/commands/GetComplianceSummaryCommand.js.map +0 -1
- package/dist/cjs/commands/GetResourcesCommand.js +0 -84
- package/dist/cjs/commands/GetResourcesCommand.js.map +0 -1
- package/dist/cjs/commands/GetTagKeysCommand.js +0 -68
- package/dist/cjs/commands/GetTagKeysCommand.js.map +0 -1
- package/dist/cjs/commands/GetTagValuesCommand.js +0 -68
- package/dist/cjs/commands/GetTagValuesCommand.js.map +0 -1
- package/dist/cjs/commands/StartReportCreationCommand.js +0 -69
- package/dist/cjs/commands/StartReportCreationCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourcesCommand.js +0 -88
- package/dist/cjs/commands/TagResourcesCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourcesCommand.js +0 -76
- package/dist/cjs/commands/UntagResourcesCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/GetComplianceSummaryPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetResourcesPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetTagKeysPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetTagValuesPaginator.js.map +0 -1
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/ResourceGroupsTaggingAPI.js.map +0 -1
- package/dist/es/ResourceGroupsTaggingAPIClient.js.map +0 -1
- package/dist/es/commands/DescribeReportCreationCommand.js.map +0 -1
- package/dist/es/commands/GetComplianceSummaryCommand.js +0 -77
- package/dist/es/commands/GetComplianceSummaryCommand.js.map +0 -1
- package/dist/es/commands/GetResourcesCommand.js +0 -88
- package/dist/es/commands/GetResourcesCommand.js.map +0 -1
- package/dist/es/commands/GetTagKeysCommand.js +0 -72
- package/dist/es/commands/GetTagKeysCommand.js.map +0 -1
- package/dist/es/commands/GetTagValuesCommand.js +0 -72
- package/dist/es/commands/GetTagValuesCommand.js.map +0 -1
- package/dist/es/commands/StartReportCreationCommand.js.map +0 -1
- package/dist/es/commands/TagResourcesCommand.js +0 -92
- package/dist/es/commands/TagResourcesCommand.js.map +0 -1
- package/dist/es/commands/UntagResourcesCommand.js +0 -80
- package/dist/es/commands/UntagResourcesCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -17
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/GetComplianceSummaryPaginator.js.map +0 -1
- package/dist/es/pagination/GetResourcesPaginator.js.map +0 -1
- package/dist/es/pagination/GetTagKeysPaginator.js.map +0 -1
- package/dist/es/pagination/GetTagValuesPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/ResourceGroupsTaggingAPI.d.ts +0 -164
- package/dist/types/ts3.4/commands/DescribeReportCreationCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/GetComplianceSummaryCommand.d.ts +0 -47
- package/dist/types/ts3.4/commands/GetResourcesCommand.d.ts +0 -58
- package/dist/types/ts3.4/commands/GetTagKeysCommand.d.ts +0 -42
- package/dist/types/ts3.4/commands/GetTagValuesCommand.d.ts +0 -42
- package/dist/types/ts3.4/commands/StartReportCreationCommand.d.ts +0 -43
- package/dist/types/ts3.4/commands/TagResourcesCommand.d.ts +0 -62
- package/dist/types/ts3.4/commands/UntagResourcesCommand.d.ts +0 -50
- package/dist/types/ts3.4/models/models_0.d.ts +0 -804
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -947
- package/pagination/GetComplianceSummaryPaginator.ts +0 -58
- package/pagination/GetResourcesPaginator.ts +0 -58
- package/pagination/GetTagKeysPaginator.ts +0 -53
- package/pagination/GetTagValuesPaginator.ts +0 -57
- package/pagination/Interfaces.ts +0 -7
- package/protocols/Aws_json1_1.ts +0 -1448
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { ResourceGroupsTaggingAPI } from "../ResourceGroupsTaggingAPI";
|
|
2
|
-
import { ResourceGroupsTaggingAPIClient } from "../ResourceGroupsTaggingAPIClient";
|
|
3
|
-
import {
|
|
4
|
-
GetComplianceSummaryCommand,
|
|
5
|
-
GetComplianceSummaryCommandInput,
|
|
6
|
-
GetComplianceSummaryCommandOutput,
|
|
7
|
-
} from "../commands/GetComplianceSummaryCommand";
|
|
8
|
-
import { ResourceGroupsTaggingAPIPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: ResourceGroupsTaggingAPIClient,
|
|
16
|
-
input: GetComplianceSummaryCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<GetComplianceSummaryCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new GetComplianceSummaryCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: ResourceGroupsTaggingAPI,
|
|
27
|
-
input: GetComplianceSummaryCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<GetComplianceSummaryCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.getComplianceSummary(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateGetComplianceSummary(
|
|
34
|
-
config: ResourceGroupsTaggingAPIPaginationConfiguration,
|
|
35
|
-
input: GetComplianceSummaryCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<GetComplianceSummaryCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.PaginationToken
|
|
39
|
-
let token: typeof input.PaginationToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: GetComplianceSummaryCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.PaginationToken = token;
|
|
44
|
-
input["MaxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof ResourceGroupsTaggingAPI) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof ResourceGroupsTaggingAPIClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected ResourceGroupsTaggingAPI | ResourceGroupsTaggingAPIClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.PaginationToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { ResourceGroupsTaggingAPI } from "../ResourceGroupsTaggingAPI";
|
|
2
|
-
import { ResourceGroupsTaggingAPIClient } from "../ResourceGroupsTaggingAPIClient";
|
|
3
|
-
import {
|
|
4
|
-
GetResourcesCommand,
|
|
5
|
-
GetResourcesCommandInput,
|
|
6
|
-
GetResourcesCommandOutput,
|
|
7
|
-
} from "../commands/GetResourcesCommand";
|
|
8
|
-
import { ResourceGroupsTaggingAPIPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: ResourceGroupsTaggingAPIClient,
|
|
16
|
-
input: GetResourcesCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<GetResourcesCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new GetResourcesCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: ResourceGroupsTaggingAPI,
|
|
27
|
-
input: GetResourcesCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<GetResourcesCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.getResources(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateGetResources(
|
|
34
|
-
config: ResourceGroupsTaggingAPIPaginationConfiguration,
|
|
35
|
-
input: GetResourcesCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<GetResourcesCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.PaginationToken
|
|
39
|
-
let token: typeof input.PaginationToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: GetResourcesCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.PaginationToken = token;
|
|
44
|
-
input["ResourcesPerPage"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof ResourceGroupsTaggingAPI) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof ResourceGroupsTaggingAPIClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected ResourceGroupsTaggingAPI | ResourceGroupsTaggingAPIClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.PaginationToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ResourceGroupsTaggingAPI } from "../ResourceGroupsTaggingAPI";
|
|
2
|
-
import { ResourceGroupsTaggingAPIClient } from "../ResourceGroupsTaggingAPIClient";
|
|
3
|
-
import { GetTagKeysCommand, GetTagKeysCommandInput, GetTagKeysCommandOutput } from "../commands/GetTagKeysCommand";
|
|
4
|
-
import { ResourceGroupsTaggingAPIPaginationConfiguration } from "./Interfaces";
|
|
5
|
-
import { Paginator } from "@aws-sdk/types";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
|
-
const makePagedClientRequest = async (
|
|
11
|
-
client: ResourceGroupsTaggingAPIClient,
|
|
12
|
-
input: GetTagKeysCommandInput,
|
|
13
|
-
...args: any
|
|
14
|
-
): Promise<GetTagKeysCommandOutput> => {
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
return await client.send(new GetTagKeysCommand(input), ...args);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @private
|
|
20
|
-
*/
|
|
21
|
-
const makePagedRequest = async (
|
|
22
|
-
client: ResourceGroupsTaggingAPI,
|
|
23
|
-
input: GetTagKeysCommandInput,
|
|
24
|
-
...args: any
|
|
25
|
-
): Promise<GetTagKeysCommandOutput> => {
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
return await client.getTagKeys(input, ...args);
|
|
28
|
-
};
|
|
29
|
-
export async function* paginateGetTagKeys(
|
|
30
|
-
config: ResourceGroupsTaggingAPIPaginationConfiguration,
|
|
31
|
-
input: GetTagKeysCommandInput,
|
|
32
|
-
...additionalArguments: any
|
|
33
|
-
): Paginator<GetTagKeysCommandOutput> {
|
|
34
|
-
// ToDo: replace with actual type instead of typeof input.PaginationToken
|
|
35
|
-
let token: typeof input.PaginationToken | undefined = config.startingToken || undefined;
|
|
36
|
-
let hasNext = true;
|
|
37
|
-
let page: GetTagKeysCommandOutput;
|
|
38
|
-
while (hasNext) {
|
|
39
|
-
input.PaginationToken = token;
|
|
40
|
-
if (config.client instanceof ResourceGroupsTaggingAPI) {
|
|
41
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
42
|
-
} else if (config.client instanceof ResourceGroupsTaggingAPIClient) {
|
|
43
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
44
|
-
} else {
|
|
45
|
-
throw new Error("Invalid client, expected ResourceGroupsTaggingAPI | ResourceGroupsTaggingAPIClient");
|
|
46
|
-
}
|
|
47
|
-
yield page;
|
|
48
|
-
token = page.PaginationToken;
|
|
49
|
-
hasNext = !!token;
|
|
50
|
-
}
|
|
51
|
-
// @ts-ignore
|
|
52
|
-
return undefined;
|
|
53
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ResourceGroupsTaggingAPI } from "../ResourceGroupsTaggingAPI";
|
|
2
|
-
import { ResourceGroupsTaggingAPIClient } from "../ResourceGroupsTaggingAPIClient";
|
|
3
|
-
import {
|
|
4
|
-
GetTagValuesCommand,
|
|
5
|
-
GetTagValuesCommandInput,
|
|
6
|
-
GetTagValuesCommandOutput,
|
|
7
|
-
} from "../commands/GetTagValuesCommand";
|
|
8
|
-
import { ResourceGroupsTaggingAPIPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: ResourceGroupsTaggingAPIClient,
|
|
16
|
-
input: GetTagValuesCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<GetTagValuesCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new GetTagValuesCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: ResourceGroupsTaggingAPI,
|
|
27
|
-
input: GetTagValuesCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<GetTagValuesCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.getTagValues(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateGetTagValues(
|
|
34
|
-
config: ResourceGroupsTaggingAPIPaginationConfiguration,
|
|
35
|
-
input: GetTagValuesCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<GetTagValuesCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.PaginationToken
|
|
39
|
-
let token: typeof input.PaginationToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: GetTagValuesCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.PaginationToken = token;
|
|
44
|
-
if (config.client instanceof ResourceGroupsTaggingAPI) {
|
|
45
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
46
|
-
} else if (config.client instanceof ResourceGroupsTaggingAPIClient) {
|
|
47
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else {
|
|
49
|
-
throw new Error("Invalid client, expected ResourceGroupsTaggingAPI | ResourceGroupsTaggingAPIClient");
|
|
50
|
-
}
|
|
51
|
-
yield page;
|
|
52
|
-
token = page.PaginationToken;
|
|
53
|
-
hasNext = !!token;
|
|
54
|
-
}
|
|
55
|
-
// @ts-ignore
|
|
56
|
-
return undefined;
|
|
57
|
-
}
|
package/pagination/Interfaces.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ResourceGroupsTaggingAPI } from "../ResourceGroupsTaggingAPI";
|
|
2
|
-
import { ResourceGroupsTaggingAPIClient } from "../ResourceGroupsTaggingAPIClient";
|
|
3
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
4
|
-
|
|
5
|
-
export interface ResourceGroupsTaggingAPIPaginationConfiguration extends PaginationConfiguration {
|
|
6
|
-
client: ResourceGroupsTaggingAPI | ResourceGroupsTaggingAPIClient;
|
|
7
|
-
}
|