@aws-sdk/client-codeguruprofiler 3.181.0 → 3.183.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 (39) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/CodeGuruProfiler.js +94 -101
  3. package/dist-es/CodeGuruProfilerClient.js +22 -28
  4. package/dist-es/commands/AddNotificationChannelsCommand.js +21 -28
  5. package/dist-es/commands/BatchGetFrameMetricDataCommand.js +21 -28
  6. package/dist-es/commands/ConfigureAgentCommand.js +21 -28
  7. package/dist-es/commands/CreateProfilingGroupCommand.js +21 -28
  8. package/dist-es/commands/DeleteProfilingGroupCommand.js +21 -28
  9. package/dist-es/commands/DescribeProfilingGroupCommand.js +21 -28
  10. package/dist-es/commands/GetFindingsReportAccountSummaryCommand.js +21 -28
  11. package/dist-es/commands/GetNotificationConfigurationCommand.js +21 -28
  12. package/dist-es/commands/GetPolicyCommand.js +21 -28
  13. package/dist-es/commands/GetProfileCommand.js +21 -28
  14. package/dist-es/commands/GetRecommendationsCommand.js +21 -28
  15. package/dist-es/commands/ListFindingsReportsCommand.js +21 -28
  16. package/dist-es/commands/ListProfileTimesCommand.js +21 -28
  17. package/dist-es/commands/ListProfilingGroupsCommand.js +21 -28
  18. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  19. package/dist-es/commands/PostAgentProfileCommand.js +21 -28
  20. package/dist-es/commands/PutPermissionCommand.js +21 -28
  21. package/dist-es/commands/RemoveNotificationChannelCommand.js +21 -28
  22. package/dist-es/commands/RemovePermissionCommand.js +21 -28
  23. package/dist-es/commands/SubmitFeedbackCommand.js +21 -28
  24. package/dist-es/commands/TagResourceCommand.js +21 -28
  25. package/dist-es/commands/UntagResourceCommand.js +21 -28
  26. package/dist-es/commands/UpdateProfilingGroupCommand.js +21 -28
  27. package/dist-es/endpoints.js +8 -8
  28. package/dist-es/models/CodeGuruProfilerServiceException.js +5 -10
  29. package/dist-es/models/models_0.js +264 -135
  30. package/dist-es/pagination/GetFindingsReportAccountSummaryPaginator.js +25 -68
  31. package/dist-es/pagination/ListFindingsReportsPaginator.js +25 -68
  32. package/dist-es/pagination/ListProfileTimesPaginator.js +25 -68
  33. package/dist-es/pagination/ListProfilingGroupsPaginator.js +25 -68
  34. package/dist-es/protocols/Aws_restJson1.js +1718 -2420
  35. package/dist-es/runtimeConfig.browser.js +26 -12
  36. package/dist-es/runtimeConfig.js +30 -12
  37. package/dist-es/runtimeConfig.native.js +8 -5
  38. package/dist-es/runtimeConfig.shared.js +8 -11
  39. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateProfilingGroupRequestFilterSensitiveLog, UpdateProfilingGroupResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateProfilingGroupCommand, serializeAws_restJson1UpdateProfilingGroupCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateProfilingGroupCommand = (function (_super) {
7
- __extends(UpdateProfilingGroupCommand, _super);
8
- function UpdateProfilingGroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateProfilingGroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateProfilingGroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CodeGuruProfilerClient";
18
- var commandName = "UpdateProfilingGroupCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CodeGuruProfilerClient";
15
+ const commandName = "UpdateProfilingGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateProfilingGroupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateProfilingGroupResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateProfilingGroupCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1UpdateProfilingGroupCommand(input, context);
33
- };
34
- UpdateProfilingGroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateProfilingGroupCommand(output, context);
36
- };
37
- return UpdateProfilingGroupCommand;
38
- }($Command));
39
- export { UpdateProfilingGroupCommand };
31
+ }
32
+ }
@@ -1,7 +1,6 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {};
4
- var partitionHash = {
2
+ const regionHash = {};
3
+ const partitionHash = {
5
4
  aws: {
6
5
  regions: [
7
6
  "af-south-1",
@@ -121,8 +120,9 @@ var partitionHash = {
121
120
  ],
122
121
  },
123
122
  };
124
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
- return __generator(this, function (_a) {
126
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "codeguru-profiler", regionHash: regionHash, partitionHash: partitionHash }))];
127
- });
128
- }); };
123
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
+ ...options,
125
+ signingService: "codeguru-profiler",
126
+ regionHash,
127
+ partitionHash,
128
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var CodeGuruProfilerServiceException = (function (_super) {
4
- __extends(CodeGuruProfilerServiceException, _super);
5
- function CodeGuruProfilerServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, CodeGuruProfilerServiceException.prototype);
8
- return _this;
2
+ export class CodeGuruProfilerServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, CodeGuruProfilerServiceException.prototype);
9
6
  }
10
- return CodeGuruProfilerServiceException;
11
- }(__ServiceException));
12
- export { CodeGuruProfilerServiceException };
7
+ }
@@ -1,4 +1,3 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { CodeGuruProfilerServiceException as __BaseException } from "./CodeGuruProfilerServiceException";
3
2
  export var ActionGroup;
4
3
  (function (ActionGroup) {
@@ -8,81 +7,81 @@ export var EventPublisher;
8
7
  (function (EventPublisher) {
9
8
  EventPublisher["ANOMALY_DETECTION"] = "AnomalyDetection";
10
9
  })(EventPublisher || (EventPublisher = {}));
11
- var ConflictException = (function (_super) {
12
- __extends(ConflictException, _super);
13
- function ConflictException(opts) {
14
- var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
15
- _this.name = "ConflictException";
16
- _this.$fault = "client";
17
- Object.setPrototypeOf(_this, ConflictException.prototype);
18
- return _this;
10
+ export class ConflictException extends __BaseException {
11
+ constructor(opts) {
12
+ super({
13
+ name: "ConflictException",
14
+ $fault: "client",
15
+ ...opts,
16
+ });
17
+ this.name = "ConflictException";
18
+ this.$fault = "client";
19
+ Object.setPrototypeOf(this, ConflictException.prototype);
19
20
  }
20
- return ConflictException;
21
- }(__BaseException));
22
- export { ConflictException };
23
- var InternalServerException = (function (_super) {
24
- __extends(InternalServerException, _super);
25
- function InternalServerException(opts) {
26
- var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
27
- _this.name = "InternalServerException";
28
- _this.$fault = "server";
29
- _this.$retryable = {};
30
- Object.setPrototypeOf(_this, InternalServerException.prototype);
31
- return _this;
21
+ }
22
+ export class InternalServerException extends __BaseException {
23
+ constructor(opts) {
24
+ super({
25
+ name: "InternalServerException",
26
+ $fault: "server",
27
+ ...opts,
28
+ });
29
+ this.name = "InternalServerException";
30
+ this.$fault = "server";
31
+ this.$retryable = {};
32
+ Object.setPrototypeOf(this, InternalServerException.prototype);
32
33
  }
33
- return InternalServerException;
34
- }(__BaseException));
35
- export { InternalServerException };
36
- var ResourceNotFoundException = (function (_super) {
37
- __extends(ResourceNotFoundException, _super);
38
- function ResourceNotFoundException(opts) {
39
- var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
40
- _this.name = "ResourceNotFoundException";
41
- _this.$fault = "client";
42
- Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
43
- return _this;
34
+ }
35
+ export class ResourceNotFoundException extends __BaseException {
36
+ constructor(opts) {
37
+ super({
38
+ name: "ResourceNotFoundException",
39
+ $fault: "client",
40
+ ...opts,
41
+ });
42
+ this.name = "ResourceNotFoundException";
43
+ this.$fault = "client";
44
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
44
45
  }
45
- return ResourceNotFoundException;
46
- }(__BaseException));
47
- export { ResourceNotFoundException };
48
- var ServiceQuotaExceededException = (function (_super) {
49
- __extends(ServiceQuotaExceededException, _super);
50
- function ServiceQuotaExceededException(opts) {
51
- var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
52
- _this.name = "ServiceQuotaExceededException";
53
- _this.$fault = "client";
54
- _this.$retryable = {};
55
- Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
56
- return _this;
46
+ }
47
+ export class ServiceQuotaExceededException extends __BaseException {
48
+ constructor(opts) {
49
+ super({
50
+ name: "ServiceQuotaExceededException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ this.name = "ServiceQuotaExceededException";
55
+ this.$fault = "client";
56
+ this.$retryable = {};
57
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
57
58
  }
58
- return ServiceQuotaExceededException;
59
- }(__BaseException));
60
- export { ServiceQuotaExceededException };
61
- var ThrottlingException = (function (_super) {
62
- __extends(ThrottlingException, _super);
63
- function ThrottlingException(opts) {
64
- var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
65
- _this.name = "ThrottlingException";
66
- _this.$fault = "client";
67
- _this.$retryable = {};
68
- Object.setPrototypeOf(_this, ThrottlingException.prototype);
69
- return _this;
59
+ }
60
+ export class ThrottlingException extends __BaseException {
61
+ constructor(opts) {
62
+ super({
63
+ name: "ThrottlingException",
64
+ $fault: "client",
65
+ ...opts,
66
+ });
67
+ this.name = "ThrottlingException";
68
+ this.$fault = "client";
69
+ this.$retryable = {};
70
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
70
71
  }
71
- return ThrottlingException;
72
- }(__BaseException));
73
- export { ThrottlingException };
74
- var ValidationException = (function (_super) {
75
- __extends(ValidationException, _super);
76
- function ValidationException(opts) {
77
- var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
78
- _this.name = "ValidationException";
79
- _this.$fault = "client";
80
- Object.setPrototypeOf(_this, ValidationException.prototype);
81
- return _this;
72
+ }
73
+ export class ValidationException extends __BaseException {
74
+ constructor(opts) {
75
+ super({
76
+ name: "ValidationException",
77
+ $fault: "client",
78
+ ...opts,
79
+ });
80
+ this.name = "ValidationException";
81
+ this.$fault = "client";
82
+ Object.setPrototypeOf(this, ValidationException.prototype);
82
83
  }
83
- return ValidationException;
84
- }(__BaseException));
85
- export { ValidationException };
84
+ }
86
85
  export var AgentParameterField;
87
86
  (function (AgentParameterField) {
88
87
  AgentParameterField["MAX_STACK_DEPTH"] = "MaxStackDepth";
@@ -128,68 +127,198 @@ export var OrderBy;
128
127
  OrderBy["TIMESTAMP_ASCENDING"] = "TimestampAscending";
129
128
  OrderBy["TIMESTAMP_DESCENDING"] = "TimestampDescending";
130
129
  })(OrderBy || (OrderBy = {}));
131
- export var ChannelFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
132
- export var AddNotificationChannelsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
133
- export var NotificationConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
134
- export var AddNotificationChannelsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
135
- export var AgentConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
136
- export var AgentOrchestrationConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
137
- export var AggregatedProfileTimeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
138
- export var UserFeedbackFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
139
- export var AnomalyInstanceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
140
- export var MetricFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
141
- export var AnomalyFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
142
- export var FrameMetricFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
143
- export var BatchGetFrameMetricDataRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
144
- export var TimestampStructureFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
145
- export var FrameMetricDatumFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
146
- export var BatchGetFrameMetricDataResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
147
- export var GetFindingsReportAccountSummaryRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
148
- export var FindingsReportSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
149
- export var GetFindingsReportAccountSummaryResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
150
- export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
151
- export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
152
- export var ConfigureAgentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
153
- export var ConfigureAgentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
154
- export var CreateProfilingGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
155
- export var ProfilingStatusFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
156
- export var ProfilingGroupDescriptionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
157
- export var CreateProfilingGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
158
- export var DeleteProfilingGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
159
- export var DeleteProfilingGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
160
- export var DescribeProfilingGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
161
- export var DescribeProfilingGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
162
- export var GetNotificationConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
163
- export var GetNotificationConfigurationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
164
- export var GetPolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
165
- export var GetPolicyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
166
- export var GetProfileRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
167
- export var GetProfileResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
168
- export var GetRecommendationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
169
- export var PatternFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
170
- export var MatchFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
171
- export var RecommendationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
172
- export var GetRecommendationsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
173
- export var ListFindingsReportsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
174
- export var ListFindingsReportsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
175
- export var ListProfileTimesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
176
- export var ProfileTimeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
177
- export var ListProfileTimesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
178
- export var ListProfilingGroupsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
179
- export var ListProfilingGroupsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
180
- export var PostAgentProfileRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
181
- export var PostAgentProfileResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
182
- export var PutPermissionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
183
- export var PutPermissionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
184
- export var RemoveNotificationChannelRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
185
- export var RemoveNotificationChannelResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
186
- export var RemovePermissionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
187
- export var RemovePermissionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
188
- export var SubmitFeedbackRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
189
- export var SubmitFeedbackResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
190
- export var UpdateProfilingGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
191
- export var UpdateProfilingGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
192
- export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
193
- export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
194
- export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
195
- export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
130
+ export const ChannelFilterSensitiveLog = (obj) => ({
131
+ ...obj,
132
+ });
133
+ export const AddNotificationChannelsRequestFilterSensitiveLog = (obj) => ({
134
+ ...obj,
135
+ });
136
+ export const NotificationConfigurationFilterSensitiveLog = (obj) => ({
137
+ ...obj,
138
+ });
139
+ export const AddNotificationChannelsResponseFilterSensitiveLog = (obj) => ({
140
+ ...obj,
141
+ });
142
+ export const AgentConfigurationFilterSensitiveLog = (obj) => ({
143
+ ...obj,
144
+ });
145
+ export const AgentOrchestrationConfigFilterSensitiveLog = (obj) => ({
146
+ ...obj,
147
+ });
148
+ export const AggregatedProfileTimeFilterSensitiveLog = (obj) => ({
149
+ ...obj,
150
+ });
151
+ export const UserFeedbackFilterSensitiveLog = (obj) => ({
152
+ ...obj,
153
+ });
154
+ export const AnomalyInstanceFilterSensitiveLog = (obj) => ({
155
+ ...obj,
156
+ });
157
+ export const MetricFilterSensitiveLog = (obj) => ({
158
+ ...obj,
159
+ });
160
+ export const AnomalyFilterSensitiveLog = (obj) => ({
161
+ ...obj,
162
+ });
163
+ export const FrameMetricFilterSensitiveLog = (obj) => ({
164
+ ...obj,
165
+ });
166
+ export const BatchGetFrameMetricDataRequestFilterSensitiveLog = (obj) => ({
167
+ ...obj,
168
+ });
169
+ export const TimestampStructureFilterSensitiveLog = (obj) => ({
170
+ ...obj,
171
+ });
172
+ export const FrameMetricDatumFilterSensitiveLog = (obj) => ({
173
+ ...obj,
174
+ });
175
+ export const BatchGetFrameMetricDataResponseFilterSensitiveLog = (obj) => ({
176
+ ...obj,
177
+ });
178
+ export const GetFindingsReportAccountSummaryRequestFilterSensitiveLog = (obj) => ({
179
+ ...obj,
180
+ });
181
+ export const FindingsReportSummaryFilterSensitiveLog = (obj) => ({
182
+ ...obj,
183
+ });
184
+ export const GetFindingsReportAccountSummaryResponseFilterSensitiveLog = (obj) => ({
185
+ ...obj,
186
+ });
187
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
188
+ ...obj,
189
+ });
190
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
191
+ ...obj,
192
+ });
193
+ export const ConfigureAgentRequestFilterSensitiveLog = (obj) => ({
194
+ ...obj,
195
+ });
196
+ export const ConfigureAgentResponseFilterSensitiveLog = (obj) => ({
197
+ ...obj,
198
+ });
199
+ export const CreateProfilingGroupRequestFilterSensitiveLog = (obj) => ({
200
+ ...obj,
201
+ });
202
+ export const ProfilingStatusFilterSensitiveLog = (obj) => ({
203
+ ...obj,
204
+ });
205
+ export const ProfilingGroupDescriptionFilterSensitiveLog = (obj) => ({
206
+ ...obj,
207
+ });
208
+ export const CreateProfilingGroupResponseFilterSensitiveLog = (obj) => ({
209
+ ...obj,
210
+ });
211
+ export const DeleteProfilingGroupRequestFilterSensitiveLog = (obj) => ({
212
+ ...obj,
213
+ });
214
+ export const DeleteProfilingGroupResponseFilterSensitiveLog = (obj) => ({
215
+ ...obj,
216
+ });
217
+ export const DescribeProfilingGroupRequestFilterSensitiveLog = (obj) => ({
218
+ ...obj,
219
+ });
220
+ export const DescribeProfilingGroupResponseFilterSensitiveLog = (obj) => ({
221
+ ...obj,
222
+ });
223
+ export const GetNotificationConfigurationRequestFilterSensitiveLog = (obj) => ({
224
+ ...obj,
225
+ });
226
+ export const GetNotificationConfigurationResponseFilterSensitiveLog = (obj) => ({
227
+ ...obj,
228
+ });
229
+ export const GetPolicyRequestFilterSensitiveLog = (obj) => ({
230
+ ...obj,
231
+ });
232
+ export const GetPolicyResponseFilterSensitiveLog = (obj) => ({
233
+ ...obj,
234
+ });
235
+ export const GetProfileRequestFilterSensitiveLog = (obj) => ({
236
+ ...obj,
237
+ });
238
+ export const GetProfileResponseFilterSensitiveLog = (obj) => ({
239
+ ...obj,
240
+ });
241
+ export const GetRecommendationsRequestFilterSensitiveLog = (obj) => ({
242
+ ...obj,
243
+ });
244
+ export const PatternFilterSensitiveLog = (obj) => ({
245
+ ...obj,
246
+ });
247
+ export const MatchFilterSensitiveLog = (obj) => ({
248
+ ...obj,
249
+ });
250
+ export const RecommendationFilterSensitiveLog = (obj) => ({
251
+ ...obj,
252
+ });
253
+ export const GetRecommendationsResponseFilterSensitiveLog = (obj) => ({
254
+ ...obj,
255
+ });
256
+ export const ListFindingsReportsRequestFilterSensitiveLog = (obj) => ({
257
+ ...obj,
258
+ });
259
+ export const ListFindingsReportsResponseFilterSensitiveLog = (obj) => ({
260
+ ...obj,
261
+ });
262
+ export const ListProfileTimesRequestFilterSensitiveLog = (obj) => ({
263
+ ...obj,
264
+ });
265
+ export const ProfileTimeFilterSensitiveLog = (obj) => ({
266
+ ...obj,
267
+ });
268
+ export const ListProfileTimesResponseFilterSensitiveLog = (obj) => ({
269
+ ...obj,
270
+ });
271
+ export const ListProfilingGroupsRequestFilterSensitiveLog = (obj) => ({
272
+ ...obj,
273
+ });
274
+ export const ListProfilingGroupsResponseFilterSensitiveLog = (obj) => ({
275
+ ...obj,
276
+ });
277
+ export const PostAgentProfileRequestFilterSensitiveLog = (obj) => ({
278
+ ...obj,
279
+ });
280
+ export const PostAgentProfileResponseFilterSensitiveLog = (obj) => ({
281
+ ...obj,
282
+ });
283
+ export const PutPermissionRequestFilterSensitiveLog = (obj) => ({
284
+ ...obj,
285
+ });
286
+ export const PutPermissionResponseFilterSensitiveLog = (obj) => ({
287
+ ...obj,
288
+ });
289
+ export const RemoveNotificationChannelRequestFilterSensitiveLog = (obj) => ({
290
+ ...obj,
291
+ });
292
+ export const RemoveNotificationChannelResponseFilterSensitiveLog = (obj) => ({
293
+ ...obj,
294
+ });
295
+ export const RemovePermissionRequestFilterSensitiveLog = (obj) => ({
296
+ ...obj,
297
+ });
298
+ export const RemovePermissionResponseFilterSensitiveLog = (obj) => ({
299
+ ...obj,
300
+ });
301
+ export const SubmitFeedbackRequestFilterSensitiveLog = (obj) => ({
302
+ ...obj,
303
+ });
304
+ export const SubmitFeedbackResponseFilterSensitiveLog = (obj) => ({
305
+ ...obj,
306
+ });
307
+ export const UpdateProfilingGroupRequestFilterSensitiveLog = (obj) => ({
308
+ ...obj,
309
+ });
310
+ export const UpdateProfilingGroupResponseFilterSensitiveLog = (obj) => ({
311
+ ...obj,
312
+ });
313
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
314
+ ...obj,
315
+ });
316
+ export const TagResourceResponseFilterSensitiveLog = (obj) => ({
317
+ ...obj,
318
+ });
319
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
320
+ ...obj,
321
+ });
322
+ export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
323
+ ...obj,
324
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { CodeGuruProfiler } from "../CodeGuruProfiler";
3
2
  import { CodeGuruProfilerClient } from "../CodeGuruProfilerClient";
4
3
  import { GetFindingsReportAccountSummaryCommand, } from "../commands/GetFindingsReportAccountSummaryCommand";
5
- var makePagedClientRequest = function (client, input) {
6
- var args = [];
7
- for (var _i = 2; _i < arguments.length; _i++) {
8
- args[_i - 2] = arguments[_i];
9
- }
10
- return __awaiter(void 0, void 0, void 0, function () {
11
- return __generator(this, function (_a) {
12
- switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new GetFindingsReportAccountSummaryCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new GetFindingsReportAccountSummaryCommand(input), ...args);
18
6
  };
19
- var makePagedRequest = function (client, input) {
20
- var args = [];
21
- for (var _i = 2; _i < arguments.length; _i++) {
22
- args[_i - 2] = arguments[_i];
23
- }
24
- return __awaiter(void 0, void 0, void 0, function () {
25
- return __generator(this, function (_a) {
26
- switch (_a.label) {
27
- case 0: return [4, client.getFindingsReportAccountSummary.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.getFindingsReportAccountSummary(input, ...args);
32
9
  };
33
- export function paginateGetFindingsReportAccountSummary(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateGetFindingsReportAccountSummary(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.nextToken = token;
16
+ input["maxResults"] = config.pageSize;
17
+ if (config.client instanceof CodeGuruProfiler) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof CodeGuruProfilerClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected CodeGuruProfiler | CodeGuruProfilerClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.nextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateGetFindingsReportAccountSummary_1() {
39
- var token, hasNext, page, prevToken;
40
- return __generator(this, function (_a) {
41
- switch (_a.label) {
42
- case 0:
43
- token = config.startingToken || undefined;
44
- hasNext = true;
45
- _a.label = 1;
46
- case 1:
47
- if (!hasNext) return [3, 9];
48
- input.nextToken = token;
49
- input["maxResults"] = config.pageSize;
50
- if (!(config.client instanceof CodeGuruProfiler)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
- case 2:
53
- page = _a.sent();
54
- return [3, 6];
55
- case 3:
56
- if (!(config.client instanceof CodeGuruProfilerClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
- case 4:
59
- page = _a.sent();
60
- return [3, 6];
61
- case 5: throw new Error("Invalid client, expected CodeGuruProfiler | CodeGuruProfilerClient");
62
- case 6: return [4, __await(page)];
63
- case 7: return [4, _a.sent()];
64
- case 8:
65
- _a.sent();
66
- prevToken = token;
67
- token = page.nextToken;
68
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
- return [3, 1];
70
- case 9: return [4, __await(undefined)];
71
- case 10: return [2, _a.sent()];
72
- }
73
- });
74
- });
31
+ return undefined;
75
32
  }