@aws-sdk/client-codeguruprofiler 3.477.0 → 3.481.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.
Files changed (113) hide show
  1. package/dist-cjs/commands/AddNotificationChannelsCommand.js +18 -41
  2. package/dist-cjs/commands/BatchGetFrameMetricDataCommand.js +18 -41
  3. package/dist-cjs/commands/ConfigureAgentCommand.js +18 -41
  4. package/dist-cjs/commands/CreateProfilingGroupCommand.js +18 -41
  5. package/dist-cjs/commands/DeleteProfilingGroupCommand.js +18 -41
  6. package/dist-cjs/commands/DescribeProfilingGroupCommand.js +18 -41
  7. package/dist-cjs/commands/GetFindingsReportAccountSummaryCommand.js +18 -41
  8. package/dist-cjs/commands/GetNotificationConfigurationCommand.js +18 -41
  9. package/dist-cjs/commands/GetPolicyCommand.js +18 -41
  10. package/dist-cjs/commands/GetProfileCommand.js +18 -41
  11. package/dist-cjs/commands/GetRecommendationsCommand.js +18 -41
  12. package/dist-cjs/commands/ListFindingsReportsCommand.js +18 -41
  13. package/dist-cjs/commands/ListProfileTimesCommand.js +18 -41
  14. package/dist-cjs/commands/ListProfilingGroupsCommand.js +18 -41
  15. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  16. package/dist-cjs/commands/PostAgentProfileCommand.js +18 -41
  17. package/dist-cjs/commands/PutPermissionCommand.js +18 -41
  18. package/dist-cjs/commands/RemoveNotificationChannelCommand.js +18 -41
  19. package/dist-cjs/commands/RemovePermissionCommand.js +18 -41
  20. package/dist-cjs/commands/SubmitFeedbackCommand.js +18 -41
  21. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  22. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  23. package/dist-cjs/commands/UpdateProfilingGroupCommand.js +18 -41
  24. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  25. package/dist-cjs/pagination/GetFindingsReportAccountSummaryPaginator.js +2 -24
  26. package/dist-cjs/pagination/ListFindingsReportsPaginator.js +2 -24
  27. package/dist-cjs/pagination/ListProfileTimesPaginator.js +2 -24
  28. package/dist-cjs/pagination/ListProfilingGroupsPaginator.js +2 -24
  29. package/dist-es/commands/AddNotificationChannelsCommand.js +18 -41
  30. package/dist-es/commands/BatchGetFrameMetricDataCommand.js +18 -41
  31. package/dist-es/commands/ConfigureAgentCommand.js +18 -41
  32. package/dist-es/commands/CreateProfilingGroupCommand.js +18 -41
  33. package/dist-es/commands/DeleteProfilingGroupCommand.js +18 -41
  34. package/dist-es/commands/DescribeProfilingGroupCommand.js +18 -41
  35. package/dist-es/commands/GetFindingsReportAccountSummaryCommand.js +18 -41
  36. package/dist-es/commands/GetNotificationConfigurationCommand.js +18 -41
  37. package/dist-es/commands/GetPolicyCommand.js +18 -41
  38. package/dist-es/commands/GetProfileCommand.js +18 -41
  39. package/dist-es/commands/GetRecommendationsCommand.js +18 -41
  40. package/dist-es/commands/ListFindingsReportsCommand.js +18 -41
  41. package/dist-es/commands/ListProfileTimesCommand.js +18 -41
  42. package/dist-es/commands/ListProfilingGroupsCommand.js +18 -41
  43. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  44. package/dist-es/commands/PostAgentProfileCommand.js +18 -41
  45. package/dist-es/commands/PutPermissionCommand.js +18 -41
  46. package/dist-es/commands/RemoveNotificationChannelCommand.js +18 -41
  47. package/dist-es/commands/RemovePermissionCommand.js +18 -41
  48. package/dist-es/commands/SubmitFeedbackCommand.js +18 -41
  49. package/dist-es/commands/TagResourceCommand.js +18 -41
  50. package/dist-es/commands/UntagResourceCommand.js +18 -41
  51. package/dist-es/commands/UpdateProfilingGroupCommand.js +18 -41
  52. package/dist-es/endpoint/EndpointParameters.js +6 -0
  53. package/dist-es/pagination/GetFindingsReportAccountSummaryPaginator.js +2 -23
  54. package/dist-es/pagination/ListFindingsReportsPaginator.js +2 -23
  55. package/dist-es/pagination/ListProfileTimesPaginator.js +2 -23
  56. package/dist-es/pagination/ListProfilingGroupsPaginator.js +2 -23
  57. package/dist-types/commands/AddNotificationChannelsCommand.d.ts +6 -21
  58. package/dist-types/commands/BatchGetFrameMetricDataCommand.d.ts +6 -21
  59. package/dist-types/commands/ConfigureAgentCommand.d.ts +6 -21
  60. package/dist-types/commands/CreateProfilingGroupCommand.d.ts +6 -21
  61. package/dist-types/commands/DeleteProfilingGroupCommand.d.ts +6 -21
  62. package/dist-types/commands/DescribeProfilingGroupCommand.d.ts +6 -21
  63. package/dist-types/commands/GetFindingsReportAccountSummaryCommand.d.ts +6 -21
  64. package/dist-types/commands/GetNotificationConfigurationCommand.d.ts +6 -21
  65. package/dist-types/commands/GetPolicyCommand.d.ts +6 -21
  66. package/dist-types/commands/GetProfileCommand.d.ts +6 -21
  67. package/dist-types/commands/GetRecommendationsCommand.d.ts +6 -21
  68. package/dist-types/commands/ListFindingsReportsCommand.d.ts +6 -21
  69. package/dist-types/commands/ListProfileTimesCommand.d.ts +6 -21
  70. package/dist-types/commands/ListProfilingGroupsCommand.d.ts +6 -21
  71. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  72. package/dist-types/commands/PostAgentProfileCommand.d.ts +6 -21
  73. package/dist-types/commands/PutPermissionCommand.d.ts +6 -21
  74. package/dist-types/commands/RemoveNotificationChannelCommand.d.ts +6 -21
  75. package/dist-types/commands/RemovePermissionCommand.d.ts +6 -21
  76. package/dist-types/commands/SubmitFeedbackCommand.d.ts +6 -21
  77. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  78. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  79. package/dist-types/commands/UpdateProfilingGroupCommand.d.ts +6 -21
  80. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  81. package/dist-types/pagination/GetFindingsReportAccountSummaryPaginator.d.ts +1 -1
  82. package/dist-types/pagination/ListFindingsReportsPaginator.d.ts +1 -1
  83. package/dist-types/pagination/ListProfileTimesPaginator.d.ts +1 -1
  84. package/dist-types/pagination/ListProfilingGroupsPaginator.d.ts +1 -1
  85. package/dist-types/ts3.4/commands/AddNotificationChannelsCommand.d.ts +12 -24
  86. package/dist-types/ts3.4/commands/BatchGetFrameMetricDataCommand.d.ts +12 -24
  87. package/dist-types/ts3.4/commands/ConfigureAgentCommand.d.ts +14 -23
  88. package/dist-types/ts3.4/commands/CreateProfilingGroupCommand.d.ts +12 -24
  89. package/dist-types/ts3.4/commands/DeleteProfilingGroupCommand.d.ts +12 -24
  90. package/dist-types/ts3.4/commands/DescribeProfilingGroupCommand.d.ts +12 -24
  91. package/dist-types/ts3.4/commands/GetFindingsReportAccountSummaryCommand.d.ts +12 -24
  92. package/dist-types/ts3.4/commands/GetNotificationConfigurationCommand.d.ts +12 -24
  93. package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +14 -23
  94. package/dist-types/ts3.4/commands/GetProfileCommand.d.ts +14 -23
  95. package/dist-types/ts3.4/commands/GetRecommendationsCommand.d.ts +14 -23
  96. package/dist-types/ts3.4/commands/ListFindingsReportsCommand.d.ts +14 -23
  97. package/dist-types/ts3.4/commands/ListProfileTimesCommand.d.ts +14 -23
  98. package/dist-types/ts3.4/commands/ListProfilingGroupsCommand.d.ts +14 -23
  99. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  100. package/dist-types/ts3.4/commands/PostAgentProfileCommand.d.ts +13 -20
  101. package/dist-types/ts3.4/commands/PutPermissionCommand.d.ts +14 -23
  102. package/dist-types/ts3.4/commands/RemoveNotificationChannelCommand.d.ts +12 -24
  103. package/dist-types/ts3.4/commands/RemovePermissionCommand.d.ts +14 -23
  104. package/dist-types/ts3.4/commands/SubmitFeedbackCommand.d.ts +14 -23
  105. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  106. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  107. package/dist-types/ts3.4/commands/UpdateProfilingGroupCommand.d.ts +12 -24
  108. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  109. package/dist-types/ts3.4/pagination/GetFindingsReportAccountSummaryPaginator.d.ts +3 -3
  110. package/dist-types/ts3.4/pagination/ListFindingsReportsPaginator.d.ts +3 -3
  111. package/dist-types/ts3.4/pagination/ListProfileTimesPaginator.d.ts +3 -3
  112. package/dist-types/ts3.4/pagination/ListProfilingGroupsPaginator.d.ts +3 -3
  113. package/package.json +11 -11
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class TagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CodeGuruProfilerClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CodeGuruProfiler",
35
- operation: "TagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_TagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_TagResourceCommand(output, context);
46
- }
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("CodeGuruProfiler", "TagResource", {})
19
+ .n("CodeGuruProfilerClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UntagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CodeGuruProfilerClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CodeGuruProfiler",
35
- operation: "UntagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UntagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UntagResourceCommand(output, context);
46
- }
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("CodeGuruProfiler", "UntagResource", {})
19
+ .n("CodeGuruProfilerClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateProfilingGroupCommand, se_UpdateProfilingGroupCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateProfilingGroupCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateProfilingGroupCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CodeGuruProfilerClient";
26
- const commandName = "UpdateProfilingGroupCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CodeGuruProfiler",
35
- operation: "UpdateProfilingGroup",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateProfilingGroupCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateProfilingGroupCommand(output, context);
46
- }
7
+ export class UpdateProfilingGroupCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("CodeGuruProfiler", "UpdateProfilingGroup", {})
19
+ .n("CodeGuruProfilerClient", "UpdateProfilingGroupCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateProfilingGroupCommand)
22
+ .de(de_UpdateProfilingGroupCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "codeguru-profiler",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeGuruProfilerClient } from "../CodeGuruProfilerClient";
2
3
  import { GetFindingsReportAccountSummaryCommand, } from "../commands/GetFindingsReportAccountSummaryCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetFindingsReportAccountSummaryCommand(input), ...args);
5
- };
6
- export async function* paginateGetFindingsReportAccountSummary(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 CodeGuruProfilerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CodeGuruProfiler | CodeGuruProfilerClient");
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 paginateGetFindingsReportAccountSummary = createPaginator(CodeGuruProfilerClient, GetFindingsReportAccountSummaryCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeGuruProfilerClient } from "../CodeGuruProfilerClient";
2
3
  import { ListFindingsReportsCommand, } from "../commands/ListFindingsReportsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListFindingsReportsCommand(input), ...args);
5
- };
6
- export async function* paginateListFindingsReports(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 CodeGuruProfilerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CodeGuruProfiler | CodeGuruProfilerClient");
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 paginateListFindingsReports = createPaginator(CodeGuruProfilerClient, ListFindingsReportsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeGuruProfilerClient } from "../CodeGuruProfilerClient";
2
3
  import { ListProfileTimesCommand, } from "../commands/ListProfileTimesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListProfileTimesCommand(input), ...args);
5
- };
6
- export async function* paginateListProfileTimes(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 CodeGuruProfilerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CodeGuruProfiler | CodeGuruProfilerClient");
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 paginateListProfileTimes = createPaginator(CodeGuruProfilerClient, ListProfileTimesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeGuruProfilerClient } from "../CodeGuruProfilerClient";
2
3
  import { ListProfilingGroupsCommand, } from "../commands/ListProfilingGroupsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListProfilingGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateListProfilingGroups(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 CodeGuruProfilerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CodeGuruProfiler | CodeGuruProfilerClient");
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 paginateListProfilingGroups = createPaginator(CodeGuruProfilerClient, ListProfilingGroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruProfilerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruProfilerClient";
5
4
  import { AddNotificationChannelsRequest, AddNotificationChannelsResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AddNotificationChannelsCommandInput extends AddNotificationChan
21
20
  */
22
21
  export interface AddNotificationChannelsCommandOutput extends AddNotificationChannelsResponse, __MetadataBearer {
23
22
  }
23
+ declare const AddNotificationChannelsCommand_base: {
24
+ new (input: AddNotificationChannelsCommandInput): import("@smithy/smithy-client").CommandImpl<AddNotificationChannelsCommandInput, AddNotificationChannelsCommandOutput, CodeGuruProfilerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Add up to 2 anomaly notifications channels for a profiling group.</p>
@@ -94,23 +97,5 @@ export interface AddNotificationChannelsCommandOutput extends AddNotificationCha
94
97
  * <p>Base exception class for all service exceptions from CodeGuruProfiler service.</p>
95
98
  *
96
99
  */
97
- export declare class AddNotificationChannelsCommand extends $Command<AddNotificationChannelsCommandInput, AddNotificationChannelsCommandOutput, CodeGuruProfilerClientResolvedConfig> {
98
- readonly input: AddNotificationChannelsCommandInput;
99
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
100
- /**
101
- * @public
102
- */
103
- constructor(input: AddNotificationChannelsCommandInput);
104
- /**
105
- * @internal
106
- */
107
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AddNotificationChannelsCommandInput, AddNotificationChannelsCommandOutput>;
108
- /**
109
- * @internal
110
- */
111
- private serialize;
112
- /**
113
- * @internal
114
- */
115
- private deserialize;
100
+ export declare class AddNotificationChannelsCommand extends AddNotificationChannelsCommand_base {
116
101
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruProfilerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruProfilerClient";
5
4
  import { BatchGetFrameMetricDataRequest, BatchGetFrameMetricDataResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface BatchGetFrameMetricDataCommandInput extends BatchGetFrameMetric
21
20
  */
22
21
  export interface BatchGetFrameMetricDataCommandOutput extends BatchGetFrameMetricDataResponse, __MetadataBearer {
23
22
  }
23
+ declare const BatchGetFrameMetricDataCommand_base: {
24
+ new (input: BatchGetFrameMetricDataCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetFrameMetricDataCommandInput, BatchGetFrameMetricDataCommandOutput, CodeGuruProfilerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>
@@ -106,23 +109,5 @@ export interface BatchGetFrameMetricDataCommandOutput extends BatchGetFrameMetri
106
109
  * <p>Base exception class for all service exceptions from CodeGuruProfiler service.</p>
107
110
  *
108
111
  */
109
- export declare class BatchGetFrameMetricDataCommand extends $Command<BatchGetFrameMetricDataCommandInput, BatchGetFrameMetricDataCommandOutput, CodeGuruProfilerClientResolvedConfig> {
110
- readonly input: BatchGetFrameMetricDataCommandInput;
111
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
112
- /**
113
- * @public
114
- */
115
- constructor(input: BatchGetFrameMetricDataCommandInput);
116
- /**
117
- * @internal
118
- */
119
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchGetFrameMetricDataCommandInput, BatchGetFrameMetricDataCommandOutput>;
120
- /**
121
- * @internal
122
- */
123
- private serialize;
124
- /**
125
- * @internal
126
- */
127
- private deserialize;
112
+ export declare class BatchGetFrameMetricDataCommand extends BatchGetFrameMetricDataCommand_base {
128
113
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruProfilerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruProfilerClient";
5
4
  import { ConfigureAgentRequest, ConfigureAgentResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface ConfigureAgentCommandInput extends ConfigureAgentRequest {
21
20
  */
22
21
  export interface ConfigureAgentCommandOutput extends ConfigureAgentResponse, __MetadataBearer {
23
22
  }
23
+ declare const ConfigureAgentCommand_base: {
24
+ new (input: ConfigureAgentCommandInput): import("@smithy/smithy-client").CommandImpl<ConfigureAgentCommandInput, ConfigureAgentCommandOutput, CodeGuruProfilerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>
@@ -77,23 +80,5 @@ export interface ConfigureAgentCommandOutput extends ConfigureAgentResponse, __M
77
80
  * <p>Base exception class for all service exceptions from CodeGuruProfiler service.</p>
78
81
  *
79
82
  */
80
- export declare class ConfigureAgentCommand extends $Command<ConfigureAgentCommandInput, ConfigureAgentCommandOutput, CodeGuruProfilerClientResolvedConfig> {
81
- readonly input: ConfigureAgentCommandInput;
82
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
83
- /**
84
- * @public
85
- */
86
- constructor(input: ConfigureAgentCommandInput);
87
- /**
88
- * @internal
89
- */
90
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ConfigureAgentCommandInput, ConfigureAgentCommandOutput>;
91
- /**
92
- * @internal
93
- */
94
- private serialize;
95
- /**
96
- * @internal
97
- */
98
- private deserialize;
83
+ export declare class ConfigureAgentCommand extends ConfigureAgentCommand_base {
99
84
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruProfilerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruProfilerClient";
5
4
  import { CreateProfilingGroupRequest, CreateProfilingGroupResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateProfilingGroupCommandInput extends CreateProfilingGroupRe
21
20
  */
22
21
  export interface CreateProfilingGroupCommandOutput extends CreateProfilingGroupResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateProfilingGroupCommand_base: {
24
+ new (input: CreateProfilingGroupCommandInput): import("@smithy/smithy-client").CommandImpl<CreateProfilingGroupCommandInput, CreateProfilingGroupCommandOutput, CodeGuruProfilerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a profiling group.</p>
@@ -100,23 +103,5 @@ export interface CreateProfilingGroupCommandOutput extends CreateProfilingGroupR
100
103
  * <p>Base exception class for all service exceptions from CodeGuruProfiler service.</p>
101
104
  *
102
105
  */
103
- export declare class CreateProfilingGroupCommand extends $Command<CreateProfilingGroupCommandInput, CreateProfilingGroupCommandOutput, CodeGuruProfilerClientResolvedConfig> {
104
- readonly input: CreateProfilingGroupCommandInput;
105
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
106
- /**
107
- * @public
108
- */
109
- constructor(input: CreateProfilingGroupCommandInput);
110
- /**
111
- * @internal
112
- */
113
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateProfilingGroupCommandInput, CreateProfilingGroupCommandOutput>;
114
- /**
115
- * @internal
116
- */
117
- private serialize;
118
- /**
119
- * @internal
120
- */
121
- private deserialize;
106
+ export declare class CreateProfilingGroupCommand extends CreateProfilingGroupCommand_base {
122
107
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruProfilerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruProfilerClient";
5
4
  import { DeleteProfilingGroupRequest, DeleteProfilingGroupResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteProfilingGroupCommandInput extends DeleteProfilingGroupRe
21
20
  */
22
21
  export interface DeleteProfilingGroupCommandOutput extends DeleteProfilingGroupResponse, __MetadataBearer {
23
22
  }
23
+ declare const DeleteProfilingGroupCommand_base: {
24
+ new (input: DeleteProfilingGroupCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteProfilingGroupCommandInput, DeleteProfilingGroupCommandOutput, CodeGuruProfilerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes a profiling group.</p>
@@ -67,23 +70,5 @@ export interface DeleteProfilingGroupCommandOutput extends DeleteProfilingGroupR
67
70
  * <p>Base exception class for all service exceptions from CodeGuruProfiler service.</p>
68
71
  *
69
72
  */
70
- export declare class DeleteProfilingGroupCommand extends $Command<DeleteProfilingGroupCommandInput, DeleteProfilingGroupCommandOutput, CodeGuruProfilerClientResolvedConfig> {
71
- readonly input: DeleteProfilingGroupCommandInput;
72
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
73
- /**
74
- * @public
75
- */
76
- constructor(input: DeleteProfilingGroupCommandInput);
77
- /**
78
- * @internal
79
- */
80
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteProfilingGroupCommandInput, DeleteProfilingGroupCommandOutput>;
81
- /**
82
- * @internal
83
- */
84
- private serialize;
85
- /**
86
- * @internal
87
- */
88
- private deserialize;
73
+ export declare class DeleteProfilingGroupCommand extends DeleteProfilingGroupCommand_base {
89
74
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruProfilerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruProfilerClient";
5
4
  import { DescribeProfilingGroupRequest, DescribeProfilingGroupResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DescribeProfilingGroupCommandInput extends DescribeProfilingGro
21
20
  */
22
21
  export interface DescribeProfilingGroupCommandOutput extends DescribeProfilingGroupResponse, __MetadataBearer {
23
22
  }
23
+ declare const DescribeProfilingGroupCommand_base: {
24
+ new (input: DescribeProfilingGroupCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeProfilingGroupCommandInput, DescribeProfilingGroupCommandOutput, CodeGuruProfilerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>
@@ -88,23 +91,5 @@ export interface DescribeProfilingGroupCommandOutput extends DescribeProfilingGr
88
91
  * <p>Base exception class for all service exceptions from CodeGuruProfiler service.</p>
89
92
  *
90
93
  */
91
- export declare class DescribeProfilingGroupCommand extends $Command<DescribeProfilingGroupCommandInput, DescribeProfilingGroupCommandOutput, CodeGuruProfilerClientResolvedConfig> {
92
- readonly input: DescribeProfilingGroupCommandInput;
93
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
94
- /**
95
- * @public
96
- */
97
- constructor(input: DescribeProfilingGroupCommandInput);
98
- /**
99
- * @internal
100
- */
101
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeProfilingGroupCommandInput, DescribeProfilingGroupCommandOutput>;
102
- /**
103
- * @internal
104
- */
105
- private serialize;
106
- /**
107
- * @internal
108
- */
109
- private deserialize;
94
+ export declare class DescribeProfilingGroupCommand extends DescribeProfilingGroupCommand_base {
110
95
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CodeGuruProfilerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruProfilerClient";
5
4
  import { GetFindingsReportAccountSummaryRequest, GetFindingsReportAccountSummaryResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface GetFindingsReportAccountSummaryCommandInput extends GetFindings
21
20
  */
22
21
  export interface GetFindingsReportAccountSummaryCommandOutput extends GetFindingsReportAccountSummaryResponse, __MetadataBearer {
23
22
  }
23
+ declare const GetFindingsReportAccountSummaryCommand_base: {
24
+ new (input: GetFindingsReportAccountSummaryCommandInput): import("@smithy/smithy-client").CommandImpl<GetFindingsReportAccountSummaryCommandInput, GetFindingsReportAccountSummaryCommandOutput, CodeGuruProfilerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>
@@ -77,23 +80,5 @@ export interface GetFindingsReportAccountSummaryCommandOutput extends GetFinding
77
80
  * <p>Base exception class for all service exceptions from CodeGuruProfiler service.</p>
78
81
  *
79
82
  */
80
- export declare class GetFindingsReportAccountSummaryCommand extends $Command<GetFindingsReportAccountSummaryCommandInput, GetFindingsReportAccountSummaryCommandOutput, CodeGuruProfilerClientResolvedConfig> {
81
- readonly input: GetFindingsReportAccountSummaryCommandInput;
82
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
83
- /**
84
- * @public
85
- */
86
- constructor(input: GetFindingsReportAccountSummaryCommandInput);
87
- /**
88
- * @internal
89
- */
90
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeGuruProfilerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetFindingsReportAccountSummaryCommandInput, GetFindingsReportAccountSummaryCommandOutput>;
91
- /**
92
- * @internal
93
- */
94
- private serialize;
95
- /**
96
- * @internal
97
- */
98
- private deserialize;
83
+ export declare class GetFindingsReportAccountSummaryCommand extends GetFindingsReportAccountSummaryCommand_base {
99
84
  }