@aws-sdk/client-application-insights 3.35.0 → 3.36.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/CHANGELOG.md +13 -0
- package/dist-cjs/ApplicationInsights.js +0 -1
- package/dist-cjs/ApplicationInsightsClient.js +0 -1
- package/dist-cjs/commands/CreateApplicationCommand.js +0 -1
- package/dist-cjs/commands/CreateComponentCommand.js +0 -1
- package/dist-cjs/commands/CreateLogPatternCommand.js +0 -1
- package/dist-cjs/commands/DeleteApplicationCommand.js +0 -1
- package/dist-cjs/commands/DeleteComponentCommand.js +0 -1
- package/dist-cjs/commands/DeleteLogPatternCommand.js +0 -1
- package/dist-cjs/commands/DescribeApplicationCommand.js +0 -1
- package/dist-cjs/commands/DescribeComponentCommand.js +0 -1
- package/dist-cjs/commands/DescribeComponentConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DescribeComponentConfigurationRecommendationCommand.js +0 -1
- package/dist-cjs/commands/DescribeLogPatternCommand.js +0 -1
- package/dist-cjs/commands/DescribeObservationCommand.js +0 -1
- package/dist-cjs/commands/DescribeProblemCommand.js +0 -1
- package/dist-cjs/commands/DescribeProblemObservationsCommand.js +0 -1
- package/dist-cjs/commands/ListApplicationsCommand.js +0 -1
- package/dist-cjs/commands/ListComponentsCommand.js +0 -1
- package/dist-cjs/commands/ListConfigurationHistoryCommand.js +0 -1
- package/dist-cjs/commands/ListLogPatternSetsCommand.js +0 -1
- package/dist-cjs/commands/ListLogPatternsCommand.js +0 -1
- package/dist-cjs/commands/ListProblemsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateApplicationCommand.js +0 -1
- package/dist-cjs/commands/UpdateComponentCommand.js +0 -1
- package/dist-cjs/commands/UpdateComponentConfigurationCommand.js +0 -1
- package/dist-cjs/commands/UpdateLogPatternCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListApplicationsPaginator.js +0 -1
- package/dist-cjs/pagination/ListComponentsPaginator.js +0 -1
- package/dist-cjs/pagination/ListConfigurationHistoryPaginator.js +0 -1
- package/dist-cjs/pagination/ListLogPatternSetsPaginator.js +0 -1
- package/dist-cjs/pagination/ListLogPatternsPaginator.js +0 -1
- package/dist-cjs/pagination/ListProblemsPaginator.js +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-es/ApplicationInsights.js +0 -1
- package/dist-es/ApplicationInsightsClient.js +0 -1
- package/dist-es/commands/CreateApplicationCommand.js +0 -1
- package/dist-es/commands/CreateComponentCommand.js +0 -1
- package/dist-es/commands/CreateLogPatternCommand.js +0 -1
- package/dist-es/commands/DeleteApplicationCommand.js +0 -1
- package/dist-es/commands/DeleteComponentCommand.js +0 -1
- package/dist-es/commands/DeleteLogPatternCommand.js +0 -1
- package/dist-es/commands/DescribeApplicationCommand.js +0 -1
- package/dist-es/commands/DescribeComponentCommand.js +0 -1
- package/dist-es/commands/DescribeComponentConfigurationCommand.js +0 -1
- package/dist-es/commands/DescribeComponentConfigurationRecommendationCommand.js +0 -1
- package/dist-es/commands/DescribeLogPatternCommand.js +0 -1
- package/dist-es/commands/DescribeObservationCommand.js +0 -1
- package/dist-es/commands/DescribeProblemCommand.js +0 -1
- package/dist-es/commands/DescribeProblemObservationsCommand.js +0 -1
- package/dist-es/commands/ListApplicationsCommand.js +0 -1
- package/dist-es/commands/ListComponentsCommand.js +0 -1
- package/dist-es/commands/ListConfigurationHistoryCommand.js +0 -1
- package/dist-es/commands/ListLogPatternSetsCommand.js +0 -1
- package/dist-es/commands/ListLogPatternsCommand.js +0 -1
- package/dist-es/commands/ListProblemsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateApplicationCommand.js +0 -1
- package/dist-es/commands/UpdateComponentCommand.js +0 -1
- package/dist-es/commands/UpdateComponentConfigurationCommand.js +0 -1
- package/dist-es/commands/UpdateLogPatternCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListApplicationsPaginator.js +0 -1
- package/dist-es/pagination/ListComponentsPaginator.js +0 -1
- package/dist-es/pagination/ListConfigurationHistoryPaginator.js +0 -1
- package/dist-es/pagination/ListLogPatternSetsPaginator.js +0 -1
- package/dist-es/pagination/ListLogPatternsPaginator.js +0 -1
- package/dist-es/pagination/ListProblemsPaginator.js +0 -1
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/package.json +33 -30
- package/dist-cjs/ApplicationInsights.js.map +0 -1
- package/dist-cjs/ApplicationInsightsClient.js.map +0 -1
- package/dist-cjs/commands/CreateApplicationCommand.js.map +0 -1
- package/dist-cjs/commands/CreateComponentCommand.js.map +0 -1
- package/dist-cjs/commands/CreateLogPatternCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteApplicationCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteComponentCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteLogPatternCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeApplicationCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeComponentCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeComponentConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeComponentConfigurationRecommendationCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeLogPatternCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeObservationCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeProblemCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeProblemObservationsCommand.js.map +0 -1
- package/dist-cjs/commands/ListApplicationsCommand.js.map +0 -1
- package/dist-cjs/commands/ListComponentsCommand.js.map +0 -1
- package/dist-cjs/commands/ListConfigurationHistoryCommand.js.map +0 -1
- package/dist-cjs/commands/ListLogPatternSetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListLogPatternsCommand.js.map +0 -1
- package/dist-cjs/commands/ListProblemsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateApplicationCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateComponentCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateComponentConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateLogPatternCommand.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/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListApplicationsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListComponentsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListConfigurationHistoryPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListLogPatternSetsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListLogPatternsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListProblemsPaginator.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/ApplicationInsights.js.map +0 -1
- package/dist-es/ApplicationInsightsClient.js.map +0 -1
- package/dist-es/commands/CreateApplicationCommand.js.map +0 -1
- package/dist-es/commands/CreateComponentCommand.js.map +0 -1
- package/dist-es/commands/CreateLogPatternCommand.js.map +0 -1
- package/dist-es/commands/DeleteApplicationCommand.js.map +0 -1
- package/dist-es/commands/DeleteComponentCommand.js.map +0 -1
- package/dist-es/commands/DeleteLogPatternCommand.js.map +0 -1
- package/dist-es/commands/DescribeApplicationCommand.js.map +0 -1
- package/dist-es/commands/DescribeComponentCommand.js.map +0 -1
- package/dist-es/commands/DescribeComponentConfigurationCommand.js.map +0 -1
- package/dist-es/commands/DescribeComponentConfigurationRecommendationCommand.js.map +0 -1
- package/dist-es/commands/DescribeLogPatternCommand.js.map +0 -1
- package/dist-es/commands/DescribeObservationCommand.js.map +0 -1
- package/dist-es/commands/DescribeProblemCommand.js.map +0 -1
- package/dist-es/commands/DescribeProblemObservationsCommand.js.map +0 -1
- package/dist-es/commands/ListApplicationsCommand.js.map +0 -1
- package/dist-es/commands/ListComponentsCommand.js.map +0 -1
- package/dist-es/commands/ListConfigurationHistoryCommand.js.map +0 -1
- package/dist-es/commands/ListLogPatternSetsCommand.js.map +0 -1
- package/dist-es/commands/ListLogPatternsCommand.js.map +0 -1
- package/dist-es/commands/ListProblemsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateApplicationCommand.js.map +0 -1
- package/dist-es/commands/UpdateComponentCommand.js.map +0 -1
- package/dist-es/commands/UpdateComponentConfigurationCommand.js.map +0 -1
- package/dist-es/commands/UpdateLogPatternCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListApplicationsPaginator.js.map +0 -1
- package/dist-es/pagination/ListComponentsPaginator.js.map +0 -1
- package/dist-es/pagination/ListConfigurationHistoryPaginator.js.map +0 -1
- package/dist-es/pagination/ListLogPatternSetsPaginator.js.map +0 -1
- package/dist-es/pagination/ListLogPatternsPaginator.js.map +0 -1
- package/dist-es/pagination/ListProblemsPaginator.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/jest.config.js +0 -4
- package/src/ApplicationInsights.ts +0 -1037
- package/src/ApplicationInsightsClient.ts +0 -353
- package/src/commands/CreateApplicationCommand.ts +0 -99
- package/src/commands/CreateComponentCommand.ts +0 -99
- package/src/commands/CreateLogPatternCommand.ts +0 -99
- package/src/commands/DeleteApplicationCommand.ts +0 -99
- package/src/commands/DeleteComponentCommand.ts +0 -100
- package/src/commands/DeleteLogPatternCommand.ts +0 -99
- package/src/commands/DescribeApplicationCommand.ts +0 -99
- package/src/commands/DescribeComponentCommand.ts +0 -99
- package/src/commands/DescribeComponentConfigurationCommand.ts +0 -107
- package/src/commands/DescribeComponentConfigurationRecommendationCommand.ts +0 -114
- package/src/commands/DescribeLogPatternCommand.ts +0 -99
- package/src/commands/DescribeObservationCommand.ts +0 -99
- package/src/commands/DescribeProblemCommand.ts +0 -99
- package/src/commands/DescribeProblemObservationsCommand.ts +0 -104
- package/src/commands/ListApplicationsCommand.ts +0 -99
- package/src/commands/ListComponentsCommand.ts +0 -99
- package/src/commands/ListConfigurationHistoryCommand.ts +0 -112
- package/src/commands/ListLogPatternSetsCommand.ts +0 -99
- package/src/commands/ListLogPatternsCommand.ts +0 -99
- package/src/commands/ListProblemsCommand.ts +0 -99
- package/src/commands/ListTagsForResourceCommand.ts +0 -104
- package/src/commands/TagResourceCommand.ts +0 -106
- package/src/commands/UntagResourceCommand.ts +0 -99
- package/src/commands/UpdateApplicationCommand.ts +0 -99
- package/src/commands/UpdateComponentCommand.ts +0 -100
- package/src/commands/UpdateComponentConfigurationCommand.ts +0 -106
- package/src/commands/UpdateLogPatternCommand.ts +0 -99
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -37
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2046
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListApplicationsPaginator.ts +0 -59
- package/src/pagination/ListComponentsPaginator.ts +0 -59
- package/src/pagination/ListConfigurationHistoryPaginator.ts +0 -59
- package/src/pagination/ListLogPatternSetsPaginator.ts +0 -59
- package/src/pagination/ListLogPatternsPaginator.ts +0 -59
- package/src/pagination/ListProblemsPaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -3617
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ApplicationInsights } from "../ApplicationInsights";
|
|
4
|
-
import { ApplicationInsightsClient } from "../ApplicationInsightsClient";
|
|
5
|
-
|
|
6
|
-
export interface ApplicationInsightsPaginationConfiguration extends PaginationConfiguration {
|
|
7
|
-
client: ApplicationInsights | ApplicationInsightsClient;
|
|
8
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ApplicationInsights } from "../ApplicationInsights";
|
|
4
|
-
import { ApplicationInsightsClient } from "../ApplicationInsightsClient";
|
|
5
|
-
import {
|
|
6
|
-
ListApplicationsCommand,
|
|
7
|
-
ListApplicationsCommandInput,
|
|
8
|
-
ListApplicationsCommandOutput,
|
|
9
|
-
} from "../commands/ListApplicationsCommand";
|
|
10
|
-
import { ApplicationInsightsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: ApplicationInsightsClient,
|
|
17
|
-
input: ListApplicationsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListApplicationsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListApplicationsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: ApplicationInsights,
|
|
28
|
-
input: ListApplicationsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListApplicationsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listApplications(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListApplications(
|
|
35
|
-
config: ApplicationInsightsPaginationConfiguration,
|
|
36
|
-
input: ListApplicationsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListApplicationsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListApplicationsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof ApplicationInsights) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof ApplicationInsightsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected ApplicationInsights | ApplicationInsightsClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ApplicationInsights } from "../ApplicationInsights";
|
|
4
|
-
import { ApplicationInsightsClient } from "../ApplicationInsightsClient";
|
|
5
|
-
import {
|
|
6
|
-
ListComponentsCommand,
|
|
7
|
-
ListComponentsCommandInput,
|
|
8
|
-
ListComponentsCommandOutput,
|
|
9
|
-
} from "../commands/ListComponentsCommand";
|
|
10
|
-
import { ApplicationInsightsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: ApplicationInsightsClient,
|
|
17
|
-
input: ListComponentsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListComponentsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListComponentsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: ApplicationInsights,
|
|
28
|
-
input: ListComponentsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListComponentsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listComponents(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListComponents(
|
|
35
|
-
config: ApplicationInsightsPaginationConfiguration,
|
|
36
|
-
input: ListComponentsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListComponentsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListComponentsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof ApplicationInsights) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof ApplicationInsightsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected ApplicationInsights | ApplicationInsightsClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ApplicationInsights } from "../ApplicationInsights";
|
|
4
|
-
import { ApplicationInsightsClient } from "../ApplicationInsightsClient";
|
|
5
|
-
import {
|
|
6
|
-
ListConfigurationHistoryCommand,
|
|
7
|
-
ListConfigurationHistoryCommandInput,
|
|
8
|
-
ListConfigurationHistoryCommandOutput,
|
|
9
|
-
} from "../commands/ListConfigurationHistoryCommand";
|
|
10
|
-
import { ApplicationInsightsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: ApplicationInsightsClient,
|
|
17
|
-
input: ListConfigurationHistoryCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListConfigurationHistoryCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListConfigurationHistoryCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: ApplicationInsights,
|
|
28
|
-
input: ListConfigurationHistoryCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListConfigurationHistoryCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listConfigurationHistory(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListConfigurationHistory(
|
|
35
|
-
config: ApplicationInsightsPaginationConfiguration,
|
|
36
|
-
input: ListConfigurationHistoryCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListConfigurationHistoryCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListConfigurationHistoryCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof ApplicationInsights) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof ApplicationInsightsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected ApplicationInsights | ApplicationInsightsClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ApplicationInsights } from "../ApplicationInsights";
|
|
4
|
-
import { ApplicationInsightsClient } from "../ApplicationInsightsClient";
|
|
5
|
-
import {
|
|
6
|
-
ListLogPatternSetsCommand,
|
|
7
|
-
ListLogPatternSetsCommandInput,
|
|
8
|
-
ListLogPatternSetsCommandOutput,
|
|
9
|
-
} from "../commands/ListLogPatternSetsCommand";
|
|
10
|
-
import { ApplicationInsightsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: ApplicationInsightsClient,
|
|
17
|
-
input: ListLogPatternSetsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListLogPatternSetsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListLogPatternSetsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: ApplicationInsights,
|
|
28
|
-
input: ListLogPatternSetsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListLogPatternSetsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listLogPatternSets(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListLogPatternSets(
|
|
35
|
-
config: ApplicationInsightsPaginationConfiguration,
|
|
36
|
-
input: ListLogPatternSetsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListLogPatternSetsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListLogPatternSetsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof ApplicationInsights) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof ApplicationInsightsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected ApplicationInsights | ApplicationInsightsClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ApplicationInsights } from "../ApplicationInsights";
|
|
4
|
-
import { ApplicationInsightsClient } from "../ApplicationInsightsClient";
|
|
5
|
-
import {
|
|
6
|
-
ListLogPatternsCommand,
|
|
7
|
-
ListLogPatternsCommandInput,
|
|
8
|
-
ListLogPatternsCommandOutput,
|
|
9
|
-
} from "../commands/ListLogPatternsCommand";
|
|
10
|
-
import { ApplicationInsightsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: ApplicationInsightsClient,
|
|
17
|
-
input: ListLogPatternsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListLogPatternsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListLogPatternsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: ApplicationInsights,
|
|
28
|
-
input: ListLogPatternsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListLogPatternsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listLogPatterns(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListLogPatterns(
|
|
35
|
-
config: ApplicationInsightsPaginationConfiguration,
|
|
36
|
-
input: ListLogPatternsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListLogPatternsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListLogPatternsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof ApplicationInsights) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof ApplicationInsightsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected ApplicationInsights | ApplicationInsightsClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ApplicationInsights } from "../ApplicationInsights";
|
|
4
|
-
import { ApplicationInsightsClient } from "../ApplicationInsightsClient";
|
|
5
|
-
import {
|
|
6
|
-
ListProblemsCommand,
|
|
7
|
-
ListProblemsCommandInput,
|
|
8
|
-
ListProblemsCommandOutput,
|
|
9
|
-
} from "../commands/ListProblemsCommand";
|
|
10
|
-
import { ApplicationInsightsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: ApplicationInsightsClient,
|
|
17
|
-
input: ListProblemsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListProblemsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListProblemsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: ApplicationInsights,
|
|
28
|
-
input: ListProblemsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListProblemsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listProblems(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListProblems(
|
|
35
|
-
config: ApplicationInsightsPaginationConfiguration,
|
|
36
|
-
input: ListProblemsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListProblemsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListProblemsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof ApplicationInsights) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof ApplicationInsightsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected ApplicationInsights | ApplicationInsightsClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|