@aws-sdk/client-cloudfront 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/ListCloudFrontOriginAccessIdentitiesPaginator.js +2 -24
- package/dist-cjs/pagination/ListDistributionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListInvalidationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListKeyValueStoresPaginator.js +2 -24
- package/dist-cjs/pagination/ListStreamingDistributionsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restXml.js +3622 -4760
- package/dist-es/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.js +2 -23
- package/dist-es/pagination/ListDistributionsPaginator.js +2 -23
- package/dist-es/pagination/ListInvalidationsPaginator.js +2 -23
- package/dist-es/pagination/ListKeyValueStoresPaginator.js +2 -23
- package/dist-es/pagination/ListStreamingDistributionsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restXml.js +3623 -4761
- package/dist-types/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDistributionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInvalidationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListKeyValueStoresPaginator.d.ts +1 -1
- package/dist-types/pagination/ListStreamingDistributionsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDistributionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInvalidationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListKeyValueStoresPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListStreamingDistributionsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudFrontClient } from "../CloudFrontClient";
|
|
2
3
|
import { ListCloudFrontOriginAccessIdentitiesCommand, } from "../commands/ListCloudFrontOriginAccessIdentitiesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListCloudFrontOriginAccessIdentitiesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListCloudFrontOriginAccessIdentities(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxItems"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudFrontClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudFront | CloudFrontClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.CloudFrontOriginAccessIdentityList.NextMarker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListCloudFrontOriginAccessIdentities = createPaginator(CloudFrontClient, ListCloudFrontOriginAccessIdentitiesCommand, "Marker", "CloudFrontOriginAccessIdentityList.NextMarker", "MaxItems");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudFrontClient } from "../CloudFrontClient";
|
|
2
3
|
import { ListDistributionsCommand, } from "../commands/ListDistributionsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDistributionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDistributions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxItems"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudFrontClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudFront | CloudFrontClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.DistributionList.NextMarker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListDistributions = createPaginator(CloudFrontClient, ListDistributionsCommand, "Marker", "DistributionList.NextMarker", "MaxItems");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudFrontClient } from "../CloudFrontClient";
|
|
2
3
|
import { ListInvalidationsCommand, } from "../commands/ListInvalidationsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListInvalidationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListInvalidations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxItems"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudFrontClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudFront | CloudFrontClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.InvalidationList.NextMarker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListInvalidations = createPaginator(CloudFrontClient, ListInvalidationsCommand, "Marker", "InvalidationList.NextMarker", "MaxItems");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudFrontClient } from "../CloudFrontClient";
|
|
2
3
|
import { ListKeyValueStoresCommand, } from "../commands/ListKeyValueStoresCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListKeyValueStoresCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListKeyValueStores(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxItems"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudFrontClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudFront | CloudFrontClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.KeyValueStoreList.NextMarker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListKeyValueStores = createPaginator(CloudFrontClient, ListKeyValueStoresCommand, "Marker", "KeyValueStoreList.NextMarker", "MaxItems");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudFrontClient } from "../CloudFrontClient";
|
|
2
3
|
import { ListStreamingDistributionsCommand, } from "../commands/ListStreamingDistributionsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListStreamingDistributionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListStreamingDistributions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
input["MaxItems"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudFrontClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudFront | CloudFrontClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.StreamingDistributionList.NextMarker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListStreamingDistributions = createPaginator(CloudFrontClient, ListStreamingDistributionsCommand, "Marker", "StreamingDistributionList.NextMarker", "MaxItems");
|