@aws-sdk/client-securitylake 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/GetDataLakeSourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListDataLakeExceptionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListLogSourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListSubscribersPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +149 -371
- package/dist-es/pagination/GetDataLakeSourcesPaginator.js +2 -23
- package/dist-es/pagination/ListDataLakeExceptionsPaginator.js +2 -23
- package/dist-es/pagination/ListLogSourcesPaginator.js +2 -23
- package/dist-es/pagination/ListSubscribersPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +150 -372
- package/dist-types/pagination/GetDataLakeSourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDataLakeExceptionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListLogSourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSubscribersPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetDataLakeSourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDataLakeExceptionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListLogSourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSubscribersPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetDataLakeSourcesCommand, } from "../commands/GetDataLakeSourcesCommand";
|
|
2
3
|
import { SecurityLakeClient } from "../SecurityLakeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetDataLakeSourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetDataLakeSources(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityLakeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityLake | SecurityLakeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetDataLakeSources = createPaginator(SecurityLakeClient, GetDataLakeSourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDataLakeExceptionsCommand, } from "../commands/ListDataLakeExceptionsCommand";
|
|
2
3
|
import { SecurityLakeClient } from "../SecurityLakeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDataLakeExceptionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDataLakeExceptions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityLakeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityLake | SecurityLakeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListDataLakeExceptions = createPaginator(SecurityLakeClient, ListDataLakeExceptionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListLogSourcesCommand, } from "../commands/ListLogSourcesCommand";
|
|
2
3
|
import { SecurityLakeClient } from "../SecurityLakeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListLogSourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListLogSources(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityLakeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityLake | SecurityLakeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListLogSources = createPaginator(SecurityLakeClient, ListLogSourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSubscribersCommand, } from "../commands/ListSubscribersCommand";
|
|
2
3
|
import { SecurityLakeClient } from "../SecurityLakeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSubscribersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSubscribers(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityLakeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityLake | SecurityLakeClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListSubscribers = createPaginator(SecurityLakeClient, ListSubscribersCommand, "nextToken", "nextToken", "maxResults");
|