@aws-sdk/client-securitylake 3.220.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/LICENSE +201 -0
- package/README.md +219 -0
- package/dist-cjs/SecurityLake.js +457 -0
- package/dist-cjs/SecurityLakeClient.js +40 -0
- package/dist-cjs/commands/CreateAwsLogSourceCommand.js +46 -0
- package/dist-cjs/commands/CreateCustomLogSourceCommand.js +46 -0
- package/dist-cjs/commands/CreateDatalakeAutoEnableCommand.js +46 -0
- package/dist-cjs/commands/CreateDatalakeCommand.js +46 -0
- package/dist-cjs/commands/CreateDatalakeDelegatedAdminCommand.js +46 -0
- package/dist-cjs/commands/CreateDatalakeExceptionsSubscriptionCommand.js +46 -0
- package/dist-cjs/commands/CreateSubscriberCommand.js +46 -0
- package/dist-cjs/commands/CreateSubscriptionNotificationConfigurationCommand.js +46 -0
- package/dist-cjs/commands/DeleteAwsLogSourceCommand.js +46 -0
- package/dist-cjs/commands/DeleteCustomLogSourceCommand.js +46 -0
- package/dist-cjs/commands/DeleteDatalakeAutoEnableCommand.js +46 -0
- package/dist-cjs/commands/DeleteDatalakeCommand.js +46 -0
- package/dist-cjs/commands/DeleteDatalakeDelegatedAdminCommand.js +46 -0
- package/dist-cjs/commands/DeleteDatalakeExceptionsSubscriptionCommand.js +46 -0
- package/dist-cjs/commands/DeleteSubscriberCommand.js +46 -0
- package/dist-cjs/commands/DeleteSubscriptionNotificationConfigurationCommand.js +46 -0
- package/dist-cjs/commands/GetDatalakeAutoEnableCommand.js +46 -0
- package/dist-cjs/commands/GetDatalakeCommand.js +46 -0
- package/dist-cjs/commands/GetDatalakeExceptionsExpiryCommand.js +46 -0
- package/dist-cjs/commands/GetDatalakeExceptionsSubscriptionCommand.js +46 -0
- package/dist-cjs/commands/GetDatalakeStatusCommand.js +46 -0
- package/dist-cjs/commands/GetSubscriberCommand.js +46 -0
- package/dist-cjs/commands/ListDatalakeExceptionsCommand.js +46 -0
- package/dist-cjs/commands/ListLogSourcesCommand.js +46 -0
- package/dist-cjs/commands/ListSubscribersCommand.js +46 -0
- package/dist-cjs/commands/UpdateDatalakeCommand.js +46 -0
- package/dist-cjs/commands/UpdateDatalakeExceptionsExpiryCommand.js +46 -0
- package/dist-cjs/commands/UpdateDatalakeExceptionsSubscriptionCommand.js +46 -0
- package/dist-cjs/commands/UpdateSubscriberCommand.js +46 -0
- package/dist-cjs/commands/UpdateSubscriptionNotificationConfigurationCommand.js +46 -0
- package/dist-cjs/commands/index.js +33 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +312 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/SecurityLakeServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +652 -0
- package/dist-cjs/pagination/GetDatalakeStatusPaginator.js +36 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListDatalakeExceptionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListLogSourcesPaginator.js +36 -0
- package/dist-cjs/pagination/ListSubscribersPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2809 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/SecurityLake.js +453 -0
- package/dist-es/SecurityLakeClient.js +36 -0
- package/dist-es/commands/CreateAwsLogSourceCommand.js +42 -0
- package/dist-es/commands/CreateCustomLogSourceCommand.js +42 -0
- package/dist-es/commands/CreateDatalakeAutoEnableCommand.js +42 -0
- package/dist-es/commands/CreateDatalakeCommand.js +42 -0
- package/dist-es/commands/CreateDatalakeDelegatedAdminCommand.js +42 -0
- package/dist-es/commands/CreateDatalakeExceptionsSubscriptionCommand.js +42 -0
- package/dist-es/commands/CreateSubscriberCommand.js +42 -0
- package/dist-es/commands/CreateSubscriptionNotificationConfigurationCommand.js +42 -0
- package/dist-es/commands/DeleteAwsLogSourceCommand.js +42 -0
- package/dist-es/commands/DeleteCustomLogSourceCommand.js +42 -0
- package/dist-es/commands/DeleteDatalakeAutoEnableCommand.js +42 -0
- package/dist-es/commands/DeleteDatalakeCommand.js +42 -0
- package/dist-es/commands/DeleteDatalakeDelegatedAdminCommand.js +42 -0
- package/dist-es/commands/DeleteDatalakeExceptionsSubscriptionCommand.js +42 -0
- package/dist-es/commands/DeleteSubscriberCommand.js +42 -0
- package/dist-es/commands/DeleteSubscriptionNotificationConfigurationCommand.js +42 -0
- package/dist-es/commands/GetDatalakeAutoEnableCommand.js +42 -0
- package/dist-es/commands/GetDatalakeCommand.js +42 -0
- package/dist-es/commands/GetDatalakeExceptionsExpiryCommand.js +42 -0
- package/dist-es/commands/GetDatalakeExceptionsSubscriptionCommand.js +42 -0
- package/dist-es/commands/GetDatalakeStatusCommand.js +42 -0
- package/dist-es/commands/GetSubscriberCommand.js +42 -0
- package/dist-es/commands/ListDatalakeExceptionsCommand.js +42 -0
- package/dist-es/commands/ListLogSourcesCommand.js +42 -0
- package/dist-es/commands/ListSubscribersCommand.js +42 -0
- package/dist-es/commands/UpdateDatalakeCommand.js +42 -0
- package/dist-es/commands/UpdateDatalakeExceptionsExpiryCommand.js +42 -0
- package/dist-es/commands/UpdateDatalakeExceptionsSubscriptionCommand.js +42 -0
- package/dist-es/commands/UpdateSubscriberCommand.js +42 -0
- package/dist-es/commands/UpdateSubscriptionNotificationConfigurationCommand.js +42 -0
- package/dist-es/commands/index.js +30 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +309 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/SecurityLakeServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +560 -0
- package/dist-es/pagination/GetDatalakeStatusPaginator.js +32 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListDatalakeExceptionsPaginator.js +32 -0
- package/dist-es/pagination/ListLogSourcesPaginator.js +32 -0
- package/dist-es/pagination/ListSubscribersPaginator.js +32 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +2745 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/SecurityLake.d.ts +303 -0
- package/dist-types/SecurityLakeClient.d.ts +185 -0
- package/dist-types/commands/CreateAwsLogSourceCommand.d.ts +51 -0
- package/dist-types/commands/CreateCustomLogSourceCommand.d.ts +42 -0
- package/dist-types/commands/CreateDatalakeAutoEnableCommand.d.ts +38 -0
- package/dist-types/commands/CreateDatalakeCommand.d.ts +49 -0
- package/dist-types/commands/CreateDatalakeDelegatedAdminCommand.d.ts +39 -0
- package/dist-types/commands/CreateDatalakeExceptionsSubscriptionCommand.d.ts +38 -0
- package/dist-types/commands/CreateSubscriberCommand.d.ts +37 -0
- package/dist-types/commands/CreateSubscriptionNotificationConfigurationCommand.d.ts +38 -0
- package/dist-types/commands/DeleteAwsLogSourceCommand.d.ts +53 -0
- package/dist-types/commands/DeleteCustomLogSourceCommand.d.ts +37 -0
- package/dist-types/commands/DeleteDatalakeAutoEnableCommand.d.ts +42 -0
- package/dist-types/commands/DeleteDatalakeCommand.d.ts +43 -0
- package/dist-types/commands/DeleteDatalakeDelegatedAdminCommand.d.ts +37 -0
- package/dist-types/commands/DeleteDatalakeExceptionsSubscriptionCommand.d.ts +37 -0
- package/dist-types/commands/DeleteSubscriberCommand.d.ts +37 -0
- package/dist-types/commands/DeleteSubscriptionNotificationConfigurationCommand.d.ts +38 -0
- package/dist-types/commands/GetDatalakeAutoEnableCommand.d.ts +37 -0
- package/dist-types/commands/GetDatalakeCommand.d.ts +37 -0
- package/dist-types/commands/GetDatalakeExceptionsExpiryCommand.d.ts +38 -0
- package/dist-types/commands/GetDatalakeExceptionsSubscriptionCommand.d.ts +37 -0
- package/dist-types/commands/GetDatalakeStatusCommand.d.ts +37 -0
- package/dist-types/commands/GetSubscriberCommand.d.ts +37 -0
- package/dist-types/commands/ListDatalakeExceptionsCommand.d.ts +37 -0
- package/dist-types/commands/ListLogSourcesCommand.d.ts +37 -0
- package/dist-types/commands/ListSubscribersCommand.d.ts +37 -0
- package/dist-types/commands/UpdateDatalakeCommand.d.ts +40 -0
- package/dist-types/commands/UpdateDatalakeExceptionsExpiryCommand.d.ts +40 -0
- package/dist-types/commands/UpdateDatalakeExceptionsSubscriptionCommand.d.ts +37 -0
- package/dist-types/commands/UpdateSubscriberCommand.d.ts +37 -0
- package/dist-types/commands/UpdateSubscriptionNotificationConfigurationCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +30 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/SecurityLakeServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1497 -0
- package/dist-types/pagination/GetDatalakeStatusPaginator.d.ts +4 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListDatalakeExceptionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListLogSourcesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSubscribersPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +92 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/SecurityLake.d.ts +556 -0
- package/dist-types/ts3.4/SecurityLakeClient.d.ts +292 -0
- package/dist-types/ts3.4/commands/CreateAwsLogSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateCustomLogSourceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateDatalakeAutoEnableCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateDatalakeCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreateDatalakeDelegatedAdminCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateDatalakeExceptionsSubscriptionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateSubscriberCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreateSubscriptionNotificationConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteAwsLogSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteCustomLogSourceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteDatalakeAutoEnableCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteDatalakeCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteDatalakeDelegatedAdminCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteDatalakeExceptionsSubscriptionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteSubscriberCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteSubscriptionNotificationConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetDatalakeAutoEnableCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetDatalakeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetDatalakeExceptionsExpiryCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetDatalakeExceptionsSubscriptionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetDatalakeStatusCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSubscriberCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListDatalakeExceptionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListLogSourcesCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListSubscribersCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateDatalakeCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateDatalakeExceptionsExpiryCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateDatalakeExceptionsSubscriptionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateSubscriberCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateSubscriptionNotificationConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +30 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/SecurityLakeServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +746 -0
- package/dist-types/ts3.4/pagination/GetDatalakeStatusPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListDatalakeExceptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListLogSourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSubscribersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +365 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +77 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
- package/package.json +101 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateGetDatalakeStatus = void 0;
|
|
4
|
+
const GetDatalakeStatusCommand_1 = require("../commands/GetDatalakeStatusCommand");
|
|
5
|
+
const SecurityLake_1 = require("../SecurityLake");
|
|
6
|
+
const SecurityLakeClient_1 = require("../SecurityLakeClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new GetDatalakeStatusCommand_1.GetDatalakeStatusCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.getDatalakeStatus(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateGetDatalakeStatus(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
input["maxAccountResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof SecurityLake_1.SecurityLake) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof SecurityLakeClient_1.SecurityLakeClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected SecurityLake | SecurityLakeClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.nextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateGetDatalakeStatus = paginateGetDatalakeStatus;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListDatalakeExceptions = void 0;
|
|
4
|
+
const ListDatalakeExceptionsCommand_1 = require("../commands/ListDatalakeExceptionsCommand");
|
|
5
|
+
const SecurityLake_1 = require("../SecurityLake");
|
|
6
|
+
const SecurityLakeClient_1 = require("../SecurityLakeClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListDatalakeExceptionsCommand_1.ListDatalakeExceptionsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listDatalakeExceptions(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListDatalakeExceptions(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
input["maxFailures"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof SecurityLake_1.SecurityLake) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof SecurityLakeClient_1.SecurityLakeClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected SecurityLake | SecurityLakeClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.nextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListDatalakeExceptions = paginateListDatalakeExceptions;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListLogSources = void 0;
|
|
4
|
+
const ListLogSourcesCommand_1 = require("../commands/ListLogSourcesCommand");
|
|
5
|
+
const SecurityLake_1 = require("../SecurityLake");
|
|
6
|
+
const SecurityLakeClient_1 = require("../SecurityLakeClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListLogSourcesCommand_1.ListLogSourcesCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listLogSources(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListLogSources(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
input["maxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof SecurityLake_1.SecurityLake) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof SecurityLakeClient_1.SecurityLakeClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected SecurityLake | SecurityLakeClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.nextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListLogSources = paginateListLogSources;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListSubscribers = void 0;
|
|
4
|
+
const ListSubscribersCommand_1 = require("../commands/ListSubscribersCommand");
|
|
5
|
+
const SecurityLake_1 = require("../SecurityLake");
|
|
6
|
+
const SecurityLakeClient_1 = require("../SecurityLakeClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListSubscribersCommand_1.ListSubscribersCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listSubscribers(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListSubscribers(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
input["maxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof SecurityLake_1.SecurityLake) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof SecurityLakeClient_1.SecurityLakeClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected SecurityLake | SecurityLakeClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.nextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListSubscribers = paginateListSubscribers;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./GetDatalakeStatusPaginator"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListDatalakeExceptionsPaginator"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ListLogSourcesPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListSubscribersPaginator"), exports);
|