@aws-sdk/client-codeguruprofiler 3.490.0 → 3.495.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 (41) hide show
  1. package/dist-cjs/CodeGuruProfiler.js +1 -57
  2. package/dist-cjs/CodeGuruProfilerClient.js +1 -43
  3. package/dist-cjs/commands/AddNotificationChannelsCommand.js +1 -28
  4. package/dist-cjs/commands/BatchGetFrameMetricDataCommand.js +1 -28
  5. package/dist-cjs/commands/ConfigureAgentCommand.js +1 -28
  6. package/dist-cjs/commands/CreateProfilingGroupCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteProfilingGroupCommand.js +1 -28
  8. package/dist-cjs/commands/DescribeProfilingGroupCommand.js +1 -28
  9. package/dist-cjs/commands/GetFindingsReportAccountSummaryCommand.js +1 -28
  10. package/dist-cjs/commands/GetNotificationConfigurationCommand.js +1 -28
  11. package/dist-cjs/commands/GetPolicyCommand.js +1 -28
  12. package/dist-cjs/commands/GetProfileCommand.js +1 -28
  13. package/dist-cjs/commands/GetRecommendationsCommand.js +1 -28
  14. package/dist-cjs/commands/ListFindingsReportsCommand.js +1 -28
  15. package/dist-cjs/commands/ListProfileTimesCommand.js +1 -28
  16. package/dist-cjs/commands/ListProfilingGroupsCommand.js +1 -28
  17. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  18. package/dist-cjs/commands/PostAgentProfileCommand.js +1 -28
  19. package/dist-cjs/commands/PutPermissionCommand.js +1 -28
  20. package/dist-cjs/commands/RemoveNotificationChannelCommand.js +1 -28
  21. package/dist-cjs/commands/RemovePermissionCommand.js +1 -28
  22. package/dist-cjs/commands/SubmitFeedbackCommand.js +1 -28
  23. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  24. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  25. package/dist-cjs/commands/UpdateProfilingGroupCommand.js +1 -28
  26. package/dist-cjs/commands/index.js +1 -26
  27. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  28. package/dist-cjs/extensionConfiguration.js +1 -2
  29. package/dist-cjs/index.js +2512 -11
  30. package/dist-cjs/models/CodeGuruProfilerServiceException.js +1 -12
  31. package/dist-cjs/models/index.js +1 -4
  32. package/dist-cjs/models/models_0.js +1 -129
  33. package/dist-cjs/pagination/GetFindingsReportAccountSummaryPaginator.js +1 -7
  34. package/dist-cjs/pagination/Interfaces.js +1 -2
  35. package/dist-cjs/pagination/ListFindingsReportsPaginator.js +1 -7
  36. package/dist-cjs/pagination/ListProfileTimesPaginator.js +1 -7
  37. package/dist-cjs/pagination/ListProfilingGroupsPaginator.js +1 -7
  38. package/dist-cjs/pagination/index.js +1 -8
  39. package/dist-cjs/protocols/Aws_restJson1.js +1 -1673
  40. package/dist-cjs/runtimeExtensions.js +1 -22
  41. package/package.json +41 -41
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,2513 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CodeGuruProfilerServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./CodeGuruProfilerClient"), exports);
6
- tslib_1.__exportStar(require("./CodeGuruProfiler"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var CodeGuruProfilerServiceException_1 = require("./models/CodeGuruProfilerServiceException");
12
- Object.defineProperty(exports, "CodeGuruProfilerServiceException", { enumerable: true, get: function () { return CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ ActionGroup: () => ActionGroup,
25
+ AddNotificationChannelsCommand: () => AddNotificationChannelsCommand,
26
+ AgentParameterField: () => AgentParameterField,
27
+ AggregationPeriod: () => AggregationPeriod,
28
+ BatchGetFrameMetricDataCommand: () => BatchGetFrameMetricDataCommand,
29
+ CodeGuruProfiler: () => CodeGuruProfiler,
30
+ CodeGuruProfilerClient: () => CodeGuruProfilerClient,
31
+ CodeGuruProfilerServiceException: () => CodeGuruProfilerServiceException,
32
+ ComputePlatform: () => ComputePlatform,
33
+ ConfigureAgentCommand: () => ConfigureAgentCommand,
34
+ ConflictException: () => ConflictException,
35
+ CreateProfilingGroupCommand: () => CreateProfilingGroupCommand,
36
+ DeleteProfilingGroupCommand: () => DeleteProfilingGroupCommand,
37
+ DescribeProfilingGroupCommand: () => DescribeProfilingGroupCommand,
38
+ EventPublisher: () => EventPublisher,
39
+ FeedbackType: () => FeedbackType,
40
+ GetFindingsReportAccountSummaryCommand: () => GetFindingsReportAccountSummaryCommand,
41
+ GetNotificationConfigurationCommand: () => GetNotificationConfigurationCommand,
42
+ GetPolicyCommand: () => GetPolicyCommand,
43
+ GetProfileCommand: () => GetProfileCommand,
44
+ GetRecommendationsCommand: () => GetRecommendationsCommand,
45
+ InternalServerException: () => InternalServerException,
46
+ ListFindingsReportsCommand: () => ListFindingsReportsCommand,
47
+ ListProfileTimesCommand: () => ListProfileTimesCommand,
48
+ ListProfilingGroupsCommand: () => ListProfilingGroupsCommand,
49
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
50
+ MetadataField: () => MetadataField,
51
+ MetricType: () => MetricType,
52
+ OrderBy: () => OrderBy,
53
+ PostAgentProfileCommand: () => PostAgentProfileCommand,
54
+ PutPermissionCommand: () => PutPermissionCommand,
55
+ RemoveNotificationChannelCommand: () => RemoveNotificationChannelCommand,
56
+ RemovePermissionCommand: () => RemovePermissionCommand,
57
+ ResourceNotFoundException: () => ResourceNotFoundException,
58
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
59
+ SubmitFeedbackCommand: () => SubmitFeedbackCommand,
60
+ TagResourceCommand: () => TagResourceCommand,
61
+ ThrottlingException: () => ThrottlingException,
62
+ UntagResourceCommand: () => UntagResourceCommand,
63
+ UpdateProfilingGroupCommand: () => UpdateProfilingGroupCommand,
64
+ ValidationException: () => ValidationException,
65
+ __Client: () => import_smithy_client.Client,
66
+ paginateGetFindingsReportAccountSummary: () => paginateGetFindingsReportAccountSummary,
67
+ paginateListFindingsReports: () => paginateListFindingsReports,
68
+ paginateListProfileTimes: () => paginateListProfileTimes,
69
+ paginateListProfilingGroups: () => paginateListProfilingGroups
70
+ });
71
+ module.exports = __toCommonJS(src_exports);
72
+
73
+ // src/CodeGuruProfilerClient.ts
74
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
75
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
76
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
77
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
78
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
79
+ var import_config_resolver = require("@smithy/config-resolver");
80
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
81
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
82
+ var import_middleware_retry = require("@smithy/middleware-retry");
83
+
84
+
85
+ // src/endpoint/EndpointParameters.ts
86
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
87
+ return {
88
+ ...options,
89
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
90
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
91
+ defaultSigningName: "codeguru-profiler"
92
+ };
93
+ }, "resolveClientEndpointParameters");
94
+ var commonParams = {
95
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
96
+ Endpoint: { type: "builtInParams", name: "endpoint" },
97
+ Region: { type: "builtInParams", name: "region" },
98
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
99
+ };
100
+
101
+ // src/CodeGuruProfilerClient.ts
102
+ var import_runtimeConfig = require("././runtimeConfig");
103
+
104
+ // src/runtimeExtensions.ts
105
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
106
+ var import_protocol_http = require("@smithy/protocol-http");
107
+ var import_smithy_client = require("@smithy/smithy-client");
108
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
109
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
110
+ const extensionConfiguration = {
111
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
112
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
113
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
114
+ };
115
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
116
+ return {
117
+ ...runtimeConfig,
118
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
119
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
120
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
121
+ };
122
+ }, "resolveRuntimeExtensions");
123
+
124
+ // src/CodeGuruProfilerClient.ts
125
+ var _CodeGuruProfilerClient = class _CodeGuruProfilerClient extends import_smithy_client.Client {
126
+ constructor(...[configuration]) {
127
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
128
+ const _config_1 = resolveClientEndpointParameters(_config_0);
129
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
130
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
131
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
132
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
133
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
134
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
135
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
136
+ super(_config_8);
137
+ this.config = _config_8;
138
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
139
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
140
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
141
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
142
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
143
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
144
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
145
+ }
146
+ /**
147
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
148
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
149
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
150
+ */
151
+ destroy() {
152
+ super.destroy();
153
+ }
154
+ };
155
+ __name(_CodeGuruProfilerClient, "CodeGuruProfilerClient");
156
+ var CodeGuruProfilerClient = _CodeGuruProfilerClient;
157
+
158
+ // src/CodeGuruProfiler.ts
159
+
160
+
161
+ // src/commands/AddNotificationChannelsCommand.ts
162
+
163
+ var import_middleware_serde = require("@smithy/middleware-serde");
164
+
165
+ var import_types = require("@smithy/types");
166
+
167
+ // src/protocols/Aws_restJson1.ts
168
+ var import_core = require("@smithy/core");
169
+
170
+ var import_uuid = require("uuid");
171
+
172
+ // src/models/CodeGuruProfilerServiceException.ts
173
+
174
+ var _CodeGuruProfilerServiceException = class _CodeGuruProfilerServiceException extends import_smithy_client.ServiceException {
175
+ /**
176
+ * @internal
177
+ */
178
+ constructor(options) {
179
+ super(options);
180
+ Object.setPrototypeOf(this, _CodeGuruProfilerServiceException.prototype);
181
+ }
182
+ };
183
+ __name(_CodeGuruProfilerServiceException, "CodeGuruProfilerServiceException");
184
+ var CodeGuruProfilerServiceException = _CodeGuruProfilerServiceException;
185
+
186
+ // src/models/models_0.ts
187
+ var ActionGroup = {
188
+ /**
189
+ * Permission group type for Agent APIs - ConfigureAgent, PostAgentProfile
190
+ */
191
+ AGENT_PERMISSIONS: "agentPermissions"
192
+ };
193
+ var EventPublisher = {
194
+ /**
195
+ * Notifications for Anomaly Detection
196
+ */
197
+ ANOMALY_DETECTION: "AnomalyDetection"
198
+ };
199
+ var _ConflictException = class _ConflictException extends CodeGuruProfilerServiceException {
200
+ /**
201
+ * @internal
202
+ */
203
+ constructor(opts) {
204
+ super({
205
+ name: "ConflictException",
206
+ $fault: "client",
207
+ ...opts
208
+ });
209
+ this.name = "ConflictException";
210
+ this.$fault = "client";
211
+ Object.setPrototypeOf(this, _ConflictException.prototype);
212
+ }
213
+ };
214
+ __name(_ConflictException, "ConflictException");
215
+ var ConflictException = _ConflictException;
216
+ var _InternalServerException = class _InternalServerException extends CodeGuruProfilerServiceException {
217
+ /**
218
+ * @internal
219
+ */
220
+ constructor(opts) {
221
+ super({
222
+ name: "InternalServerException",
223
+ $fault: "server",
224
+ ...opts
225
+ });
226
+ this.name = "InternalServerException";
227
+ this.$fault = "server";
228
+ this.$retryable = {};
229
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
230
+ }
231
+ };
232
+ __name(_InternalServerException, "InternalServerException");
233
+ var InternalServerException = _InternalServerException;
234
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends CodeGuruProfilerServiceException {
235
+ /**
236
+ * @internal
237
+ */
238
+ constructor(opts) {
239
+ super({
240
+ name: "ResourceNotFoundException",
241
+ $fault: "client",
242
+ ...opts
243
+ });
244
+ this.name = "ResourceNotFoundException";
245
+ this.$fault = "client";
246
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
247
+ }
248
+ };
249
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
250
+ var ResourceNotFoundException = _ResourceNotFoundException;
251
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends CodeGuruProfilerServiceException {
252
+ /**
253
+ * @internal
254
+ */
255
+ constructor(opts) {
256
+ super({
257
+ name: "ServiceQuotaExceededException",
258
+ $fault: "client",
259
+ ...opts
260
+ });
261
+ this.name = "ServiceQuotaExceededException";
262
+ this.$fault = "client";
263
+ this.$retryable = {};
264
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
265
+ }
266
+ };
267
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
268
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
269
+ var _ThrottlingException = class _ThrottlingException extends CodeGuruProfilerServiceException {
270
+ /**
271
+ * @internal
272
+ */
273
+ constructor(opts) {
274
+ super({
275
+ name: "ThrottlingException",
276
+ $fault: "client",
277
+ ...opts
278
+ });
279
+ this.name = "ThrottlingException";
280
+ this.$fault = "client";
281
+ this.$retryable = {};
282
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
283
+ }
284
+ };
285
+ __name(_ThrottlingException, "ThrottlingException");
286
+ var ThrottlingException = _ThrottlingException;
287
+ var _ValidationException = class _ValidationException extends CodeGuruProfilerServiceException {
288
+ /**
289
+ * @internal
290
+ */
291
+ constructor(opts) {
292
+ super({
293
+ name: "ValidationException",
294
+ $fault: "client",
295
+ ...opts
296
+ });
297
+ this.name = "ValidationException";
298
+ this.$fault = "client";
299
+ Object.setPrototypeOf(this, _ValidationException.prototype);
300
+ }
301
+ };
302
+ __name(_ValidationException, "ValidationException");
303
+ var ValidationException = _ValidationException;
304
+ var AgentParameterField = {
305
+ /**
306
+ * Maximum stack depth to be captured by the CodeGuru Profiler.
307
+ */
308
+ MAX_STACK_DEPTH: "MaxStackDepth",
309
+ /**
310
+ * Percentage of memory to be used by CodeGuru profiler. Minimum of 30MB is required for the agent.
311
+ */
312
+ MEMORY_USAGE_LIMIT_PERCENT: "MemoryUsageLimitPercent",
313
+ /**
314
+ * Minimum time in milliseconds between sending reports.
315
+ */
316
+ MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS: "MinimumTimeForReportingInMilliseconds",
317
+ /**
318
+ * Reporting interval in milliseconds used to report profiles.
319
+ */
320
+ REPORTING_INTERVAL_IN_MILLISECONDS: "ReportingIntervalInMilliseconds",
321
+ /**
322
+ * Sampling interval in milliseconds used to sample profiles.
323
+ */
324
+ SAMPLING_INTERVAL_IN_MILLISECONDS: "SamplingIntervalInMilliseconds"
325
+ };
326
+ var AggregationPeriod = {
327
+ /**
328
+ * Period of one day.
329
+ */
330
+ P1D: "P1D",
331
+ /**
332
+ * Period of one hour.
333
+ */
334
+ PT1H: "PT1H",
335
+ /**
336
+ * Period of five minutes.
337
+ */
338
+ PT5M: "PT5M"
339
+ };
340
+ var FeedbackType = {
341
+ /**
342
+ * Profiler recommendation flagged as not useful.
343
+ */
344
+ Negative: "Negative",
345
+ /**
346
+ * Profiler recommendation flagged as useful.
347
+ */
348
+ Positive: "Positive"
349
+ };
350
+ var MetricType = {
351
+ /**
352
+ * Metric value aggregated for all instances of a frame name in a profile relative to the root frame.
353
+ */
354
+ AggregatedRelativeTotalTime: "AggregatedRelativeTotalTime"
355
+ };
356
+ var MetadataField = {
357
+ /**
358
+ * Unique identifier for the agent instance.
359
+ */
360
+ AGENT_ID: "AgentId",
361
+ /**
362
+ * AWS requestId of the Lambda invocation.
363
+ */
364
+ AWS_REQUEST_ID: "AwsRequestId",
365
+ /**
366
+ * Compute platform on which agent is running.
367
+ */
368
+ COMPUTE_PLATFORM: "ComputePlatform",
369
+ /**
370
+ * Execution environment on which Lambda function is running.
371
+ */
372
+ EXECUTION_ENVIRONMENT: "ExecutionEnvironment",
373
+ /**
374
+ * Function ARN that's used to invoke the Lambda function.
375
+ */
376
+ LAMBDA_FUNCTION_ARN: "LambdaFunctionArn",
377
+ /**
378
+ * Memory allocated for the Lambda function.
379
+ */
380
+ LAMBDA_MEMORY_LIMIT_IN_MB: "LambdaMemoryLimitInMB",
381
+ /**
382
+ * Time in milliseconds for the previous Lambda invocation.
383
+ */
384
+ LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS: "LambdaPreviousExecutionTimeInMilliseconds",
385
+ /**
386
+ * Time in milliseconds left before the execution times out.
387
+ */
388
+ LAMBDA_REMAINING_TIME_IN_MILLISECONDS: "LambdaRemainingTimeInMilliseconds",
389
+ /**
390
+ * Time in milliseconds between two invocations of the Lambda function.
391
+ */
392
+ LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS: "LambdaTimeGapBetweenInvokesInMilliseconds"
393
+ };
394
+ var ComputePlatform = {
395
+ /**
396
+ * Compute platform meant to used for AWS Lambda.
397
+ */
398
+ AWSLAMBDA: "AWSLambda",
399
+ /**
400
+ * Compute platform meant to used for all usecases (like EC2, Fargate, physical servers etc.) but AWS Lambda.
401
+ */
402
+ DEFAULT: "Default"
403
+ };
404
+ var OrderBy = {
405
+ /**
406
+ * Order by timestamp in ascending order.
407
+ */
408
+ TIMESTAMP_ASCENDING: "TimestampAscending",
409
+ /**
410
+ * Order by timestamp in descending order.
411
+ */
412
+ TIMESTAMP_DESCENDING: "TimestampDescending"
413
+ };
414
+
415
+ // src/protocols/Aws_restJson1.ts
416
+ var se_AddNotificationChannelsCommand = /* @__PURE__ */ __name(async (input, context) => {
417
+ const b = (0, import_core.requestBuilder)(input, context);
418
+ const headers = {
419
+ "content-type": "application/json"
420
+ };
421
+ b.bp("/profilingGroups/{profilingGroupName}/notificationConfiguration");
422
+ b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
423
+ let body;
424
+ body = JSON.stringify(
425
+ (0, import_smithy_client.take)(input, {
426
+ channels: (_) => (0, import_smithy_client._json)(_)
427
+ })
428
+ );
429
+ b.m("POST").h(headers).b(body);
430
+ return b.build();
431
+ }, "se_AddNotificationChannelsCommand");
432
+ var se_BatchGetFrameMetricDataCommand = /* @__PURE__ */ __name(async (input, context) => {
433
+ const b = (0, import_core.requestBuilder)(input, context);
434
+ const headers = {
435
+ "content-type": "application/json"
436
+ };
437
+ b.bp("/profilingGroups/{profilingGroupName}/frames/-/metrics");
438
+ b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
439
+ const query = (0, import_smithy_client.map)({
440
+ [_sT]: [() => input.startTime !== void 0, () => (input[_sT].toISOString().split(".")[0] + "Z").toString()],
441
+ [_eT]: [() => input.endTime !== void 0, () => (input[_eT].toISOString().split(".")[0] + "Z").toString()],
442
+ [_p]: [, input[_p]],
443
+ [_tR]: [, input[_tR]]
444
+ });
445
+ let body;
446
+ body = JSON.stringify(
447
+ (0, import_smithy_client.take)(input, {
448
+ frameMetrics: (_) => (0, import_smithy_client._json)(_)
449
+ })
450
+ );
451
+ b.m("POST").h(headers).q(query).b(body);
452
+ return b.build();
453
+ }, "se_BatchGetFrameMetricDataCommand");
454
+ var se_ConfigureAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
455
+ const b = (0, import_core.requestBuilder)(input, context);
456
+ const headers = {
457
+ "content-type": "application/json"
458
+ };
459
+ b.bp("/profilingGroups/{profilingGroupName}/configureAgent");
460
+ b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
461
+ let body;
462
+ body = JSON.stringify(
463
+ (0, import_smithy_client.take)(input, {
464
+ fleetInstanceId: [],
465
+ metadata: (_) => (0, import_smithy_client._json)(_)
466
+ })
467
+ );
468
+ b.m("POST").h(headers).b(body);
469
+ return b.build();
470
+ }, "se_ConfigureAgentCommand");
471
+ var se_CreateProfilingGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
472
+ const b = (0, import_core.requestBuilder)(input, context);
473
+ const headers = {
474
+ "content-type": "application/json"
475
+ };
476
+ b.bp("/profilingGroups");
477
+ const query = (0, import_smithy_client.map)({
478
+ [_cT]: [, (0, import_smithy_client.expectNonNull)(input[_cT], `clientToken`)]
479
+ });
480
+ let body;
481
+ body = JSON.stringify(
482
+ (0, import_smithy_client.take)(input, {
483
+ agentOrchestrationConfig: (_) => (0, import_smithy_client._json)(_),
484
+ computePlatform: [],
485
+ profilingGroupName: [],
486
+ tags: (_) => (0, import_smithy_client._json)(_)
487
+ })
488
+ );
489
+ b.m("POST").h(headers).q(query).b(body);
490
+ return b.build();
491
+ }, "se_CreateProfilingGroupCommand");
492
+ var se_DeleteProfilingGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
493
+ const b = (0, import_core.requestBuilder)(input, context);
494
+ const headers = {};
495
+ b.bp("/profilingGroups/{profilingGroupName}");
496
+ b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
497
+ let body;
498
+ b.m("DELETE").h(headers).b(body);
499
+ return b.build();
500
+ }, "se_DeleteProfilingGroupCommand");
501
+ var se_DescribeProfilingGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
502
+ const b = (0, import_core.requestBuilder)(input, context);
503
+ const headers = {};
504
+ b.bp("/profilingGroups/{profilingGroupName}");
505
+ b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
506
+ let body;
507
+ b.m("GET").h(headers).b(body);
508
+ return b.build();
509
+ }, "se_DescribeProfilingGroupCommand");
510
+ var se_GetFindingsReportAccountSummaryCommand = /* @__PURE__ */ __name(async (input, context) => {
511
+ const b = (0, import_core.requestBuilder)(input, context);
512
+ const headers = {};
513
+ b.bp("/internal/findingsReports");
514
+ const query = (0, import_smithy_client.map)({
515
+ [_nT]: [, input[_nT]],
516
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
517
+ [_dRO]: [() => input.dailyReportsOnly !== void 0, () => input[_dRO].toString()]
518
+ });
519
+ let body;
520
+ b.m("GET").h(headers).q(query).b(body);
521
+ return b.build();
522
+ }, "se_GetFindingsReportAccountSummaryCommand");
523
+ var se_GetNotificationConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
524
+ const b = (0, import_core.requestBuilder)(input, context);
525
+ const headers = {};
526
+ b.bp("/profilingGroups/{profilingGroupName}/notificationConfiguration");
527
+ b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
528
+ let body;
529
+ b.m("GET").h(headers).b(body);
530
+ return b.build();
531
+ }, "se_GetNotificationConfigurationCommand");
532
+ var se_GetPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
533
+ const b = (0, import_core.requestBuilder)(input, context);
534
+ const headers = {};
535
+ b.bp("/profilingGroups/{profilingGroupName}/policy");
536
+ b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
537
+ let body;
538
+ b.m("GET").h(headers).b(body);
539
+ return b.build();
540
+ }, "se_GetPolicyCommand");
541
+ var se_GetProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
542
+ const b = (0, import_core.requestBuilder)(input, context);
543
+ const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
544
+ [_a]: input[_a]
545
+ });
546
+ b.bp("/profilingGroups/{profilingGroupName}/profile");
547
+ b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
548
+ const query = (0, import_smithy_client.map)({
549
+ [_sT]: [() => input.startTime !== void 0, () => (input[_sT].toISOString().split(".")[0] + "Z").toString()],
550
+ [_p]: [, input[_p]],
551
+ [_eT]: [() => input.endTime !== void 0, () => (input[_eT].toISOString().split(".")[0] + "Z").toString()],
552
+ [_mD]: [() => input.maxDepth !== void 0, () => input[_mD].toString()]
553
+ });
554
+ let body;
555
+ b.m("GET").h(headers).q(query).b(body);
556
+ return b.build();
557
+ }, "se_GetProfileCommand");
558
+ var se_GetRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
559
+ const b = (0, import_core.requestBuilder)(input, context);
560
+ const headers = {};
561
+ b.bp("/internal/profilingGroups/{profilingGroupName}/recommendations");
562
+ b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
563
+ const query = (0, import_smithy_client.map)({
564
+ [_sT]: [
565
+ (0, import_smithy_client.expectNonNull)(input.startTime, `startTime`) != null,
566
+ () => (input[_sT].toISOString().split(".")[0] + "Z").toString()
567
+ ],
568
+ [_eT]: [
569
+ (0, import_smithy_client.expectNonNull)(input.endTime, `endTime`) != null,
570
+ () => (input[_eT].toISOString().split(".")[0] + "Z").toString()
571
+ ],
572
+ [_l]: [, input[_l]]
573
+ });
574
+ let body;
575
+ b.m("GET").h(headers).q(query).b(body);
576
+ return b.build();
577
+ }, "se_GetRecommendationsCommand");
578
+ var se_ListFindingsReportsCommand = /* @__PURE__ */ __name(async (input, context) => {
579
+ const b = (0, import_core.requestBuilder)(input, context);
580
+ const headers = {};
581
+ b.bp("/internal/profilingGroups/{profilingGroupName}/findingsReports");
582
+ b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
583
+ const query = (0, import_smithy_client.map)({
584
+ [_sT]: [
585
+ (0, import_smithy_client.expectNonNull)(input.startTime, `startTime`) != null,
586
+ () => (input[_sT].toISOString().split(".")[0] + "Z").toString()
587
+ ],
588
+ [_eT]: [
589
+ (0, import_smithy_client.expectNonNull)(input.endTime, `endTime`) != null,
590
+ () => (input[_eT].toISOString().split(".")[0] + "Z").toString()
591
+ ],
592
+ [_nT]: [, input[_nT]],
593
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
594
+ [_dRO]: [() => input.dailyReportsOnly !== void 0, () => input[_dRO].toString()]
595
+ });
596
+ let body;
597
+ b.m("GET").h(headers).q(query).b(body);
598
+ return b.build();
599
+ }, "se_ListFindingsReportsCommand");
600
+ var se_ListProfileTimesCommand = /* @__PURE__ */ __name(async (input, context) => {
601
+ const b = (0, import_core.requestBuilder)(input, context);
602
+ const headers = {};
603
+ b.bp("/profilingGroups/{profilingGroupName}/profileTimes");
604
+ b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
605
+ const query = (0, import_smithy_client.map)({
606
+ [_sT]: [
607
+ (0, import_smithy_client.expectNonNull)(input.startTime, `startTime`) != null,
608
+ () => (input[_sT].toISOString().split(".")[0] + "Z").toString()
609
+ ],
610
+ [_eT]: [
611
+ (0, import_smithy_client.expectNonNull)(input.endTime, `endTime`) != null,
612
+ () => (input[_eT].toISOString().split(".")[0] + "Z").toString()
613
+ ],
614
+ [_p]: [, (0, import_smithy_client.expectNonNull)(input[_p], `period`)],
615
+ [_oB]: [, input[_oB]],
616
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
617
+ [_nT]: [, input[_nT]]
618
+ });
619
+ let body;
620
+ b.m("GET").h(headers).q(query).b(body);
621
+ return b.build();
622
+ }, "se_ListProfileTimesCommand");
623
+ var se_ListProfilingGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
624
+ const b = (0, import_core.requestBuilder)(input, context);
625
+ const headers = {};
626
+ b.bp("/profilingGroups");
627
+ const query = (0, import_smithy_client.map)({
628
+ [_nT]: [, input[_nT]],
629
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
630
+ [_iD]: [() => input.includeDescription !== void 0, () => input[_iD].toString()]
631
+ });
632
+ let body;
633
+ b.m("GET").h(headers).q(query).b(body);
634
+ return b.build();
635
+ }, "se_ListProfilingGroupsCommand");
636
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
637
+ const b = (0, import_core.requestBuilder)(input, context);
638
+ const headers = {};
639
+ b.bp("/tags/{resourceArn}");
640
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
641
+ let body;
642
+ b.m("GET").h(headers).b(body);
643
+ return b.build();
644
+ }, "se_ListTagsForResourceCommand");
645
+ var se_PostAgentProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
646
+ const b = (0, import_core.requestBuilder)(input, context);
647
+ const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
648
+ [_ct]: input[_cTo] || "application/octet-stream"
649
+ });
650
+ b.bp("/profilingGroups/{profilingGroupName}/agentProfile");
651
+ b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
652
+ const query = (0, import_smithy_client.map)({
653
+ [_pT]: [, input[_pT] ?? (0, import_uuid.v4)()]
654
+ });
655
+ let body;
656
+ if (input.agentProfile !== void 0) {
657
+ body = input.agentProfile;
658
+ }
659
+ b.m("POST").h(headers).q(query).b(body);
660
+ return b.build();
661
+ }, "se_PostAgentProfileCommand");
662
+ var se_PutPermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
663
+ const b = (0, import_core.requestBuilder)(input, context);
664
+ const headers = {
665
+ "content-type": "application/json"
666
+ };
667
+ b.bp("/profilingGroups/{profilingGroupName}/policy/{actionGroup}");
668
+ b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
669
+ b.p("actionGroup", () => input.actionGroup, "{actionGroup}", false);
670
+ let body;
671
+ body = JSON.stringify(
672
+ (0, import_smithy_client.take)(input, {
673
+ principals: (_) => (0, import_smithy_client._json)(_),
674
+ revisionId: []
675
+ })
676
+ );
677
+ b.m("PUT").h(headers).b(body);
678
+ return b.build();
679
+ }, "se_PutPermissionCommand");
680
+ var se_RemoveNotificationChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
681
+ const b = (0, import_core.requestBuilder)(input, context);
682
+ const headers = {};
683
+ b.bp("/profilingGroups/{profilingGroupName}/notificationConfiguration/{channelId}");
684
+ b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
685
+ b.p("channelId", () => input.channelId, "{channelId}", false);
686
+ let body;
687
+ b.m("DELETE").h(headers).b(body);
688
+ return b.build();
689
+ }, "se_RemoveNotificationChannelCommand");
690
+ var se_RemovePermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
691
+ const b = (0, import_core.requestBuilder)(input, context);
692
+ const headers = {};
693
+ b.bp("/profilingGroups/{profilingGroupName}/policy/{actionGroup}");
694
+ b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
695
+ b.p("actionGroup", () => input.actionGroup, "{actionGroup}", false);
696
+ const query = (0, import_smithy_client.map)({
697
+ [_rI]: [, (0, import_smithy_client.expectNonNull)(input[_rI], `revisionId`)]
698
+ });
699
+ let body;
700
+ b.m("DELETE").h(headers).q(query).b(body);
701
+ return b.build();
702
+ }, "se_RemovePermissionCommand");
703
+ var se_SubmitFeedbackCommand = /* @__PURE__ */ __name(async (input, context) => {
704
+ const b = (0, import_core.requestBuilder)(input, context);
705
+ const headers = {
706
+ "content-type": "application/json"
707
+ };
708
+ b.bp("/internal/profilingGroups/{profilingGroupName}/anomalies/{anomalyInstanceId}/feedback");
709
+ b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
710
+ b.p("anomalyInstanceId", () => input.anomalyInstanceId, "{anomalyInstanceId}", false);
711
+ let body;
712
+ body = JSON.stringify(
713
+ (0, import_smithy_client.take)(input, {
714
+ comment: [],
715
+ type: []
716
+ })
717
+ );
718
+ b.m("POST").h(headers).b(body);
719
+ return b.build();
720
+ }, "se_SubmitFeedbackCommand");
721
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
722
+ const b = (0, import_core.requestBuilder)(input, context);
723
+ const headers = {
724
+ "content-type": "application/json"
725
+ };
726
+ b.bp("/tags/{resourceArn}");
727
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
728
+ let body;
729
+ body = JSON.stringify(
730
+ (0, import_smithy_client.take)(input, {
731
+ tags: (_) => (0, import_smithy_client._json)(_)
732
+ })
733
+ );
734
+ b.m("POST").h(headers).b(body);
735
+ return b.build();
736
+ }, "se_TagResourceCommand");
737
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
738
+ const b = (0, import_core.requestBuilder)(input, context);
739
+ const headers = {};
740
+ b.bp("/tags/{resourceArn}");
741
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
742
+ const query = (0, import_smithy_client.map)({
743
+ [_tK]: [
744
+ (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
745
+ () => (input[_tK] || []).map((_entry) => _entry)
746
+ ]
747
+ });
748
+ let body;
749
+ b.m("DELETE").h(headers).q(query).b(body);
750
+ return b.build();
751
+ }, "se_UntagResourceCommand");
752
+ var se_UpdateProfilingGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
753
+ const b = (0, import_core.requestBuilder)(input, context);
754
+ const headers = {
755
+ "content-type": "application/json"
756
+ };
757
+ b.bp("/profilingGroups/{profilingGroupName}");
758
+ b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
759
+ let body;
760
+ body = JSON.stringify(
761
+ (0, import_smithy_client.take)(input, {
762
+ agentOrchestrationConfig: (_) => (0, import_smithy_client._json)(_)
763
+ })
764
+ );
765
+ b.m("PUT").h(headers).b(body);
766
+ return b.build();
767
+ }, "se_UpdateProfilingGroupCommand");
768
+ var de_AddNotificationChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
769
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
770
+ return de_AddNotificationChannelsCommandError(output, context);
771
+ }
772
+ const contents = (0, import_smithy_client.map)({
773
+ $metadata: deserializeMetadata(output)
774
+ });
775
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
776
+ const doc = (0, import_smithy_client.take)(data, {
777
+ notificationConfiguration: import_smithy_client._json
778
+ });
779
+ Object.assign(contents, doc);
780
+ return contents;
781
+ }, "de_AddNotificationChannelsCommand");
782
+ var de_AddNotificationChannelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
783
+ const parsedOutput = {
784
+ ...output,
785
+ body: await parseErrorBody(output.body, context)
786
+ };
787
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
788
+ switch (errorCode) {
789
+ case "ConflictException":
790
+ case "com.amazonaws.codeguruprofiler#ConflictException":
791
+ throw await de_ConflictExceptionRes(parsedOutput, context);
792
+ case "InternalServerException":
793
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
794
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
795
+ case "ResourceNotFoundException":
796
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
797
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
798
+ case "ServiceQuotaExceededException":
799
+ case "com.amazonaws.codeguruprofiler#ServiceQuotaExceededException":
800
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
801
+ case "ThrottlingException":
802
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
803
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
804
+ case "ValidationException":
805
+ case "com.amazonaws.codeguruprofiler#ValidationException":
806
+ throw await de_ValidationExceptionRes(parsedOutput, context);
807
+ default:
808
+ const parsedBody = parsedOutput.body;
809
+ return throwDefaultError({
810
+ output,
811
+ parsedBody,
812
+ errorCode
813
+ });
814
+ }
815
+ }, "de_AddNotificationChannelsCommandError");
816
+ var de_BatchGetFrameMetricDataCommand = /* @__PURE__ */ __name(async (output, context) => {
817
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
818
+ return de_BatchGetFrameMetricDataCommandError(output, context);
819
+ }
820
+ const contents = (0, import_smithy_client.map)({
821
+ $metadata: deserializeMetadata(output)
822
+ });
823
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
824
+ const doc = (0, import_smithy_client.take)(data, {
825
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
826
+ endTimes: (_) => de_ListOfTimestamps(_, context),
827
+ frameMetricData: (_) => de_FrameMetricData(_, context),
828
+ resolution: import_smithy_client.expectString,
829
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
830
+ unprocessedEndTimes: (_) => de_UnprocessedEndTimeMap(_, context)
831
+ });
832
+ Object.assign(contents, doc);
833
+ return contents;
834
+ }, "de_BatchGetFrameMetricDataCommand");
835
+ var de_BatchGetFrameMetricDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
836
+ const parsedOutput = {
837
+ ...output,
838
+ body: await parseErrorBody(output.body, context)
839
+ };
840
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
841
+ switch (errorCode) {
842
+ case "InternalServerException":
843
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
844
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
845
+ case "ResourceNotFoundException":
846
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
847
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
848
+ case "ThrottlingException":
849
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
850
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
851
+ case "ValidationException":
852
+ case "com.amazonaws.codeguruprofiler#ValidationException":
853
+ throw await de_ValidationExceptionRes(parsedOutput, context);
854
+ default:
855
+ const parsedBody = parsedOutput.body;
856
+ return throwDefaultError({
857
+ output,
858
+ parsedBody,
859
+ errorCode
860
+ });
861
+ }
862
+ }, "de_BatchGetFrameMetricDataCommandError");
863
+ var de_ConfigureAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
864
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
865
+ return de_ConfigureAgentCommandError(output, context);
866
+ }
867
+ const contents = (0, import_smithy_client.map)({
868
+ $metadata: deserializeMetadata(output)
869
+ });
870
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
871
+ contents.configuration = (0, import_smithy_client._json)(data);
872
+ return contents;
873
+ }, "de_ConfigureAgentCommand");
874
+ var de_ConfigureAgentCommandError = /* @__PURE__ */ __name(async (output, context) => {
875
+ const parsedOutput = {
876
+ ...output,
877
+ body: await parseErrorBody(output.body, context)
878
+ };
879
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
880
+ switch (errorCode) {
881
+ case "InternalServerException":
882
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
883
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
884
+ case "ResourceNotFoundException":
885
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
886
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
887
+ case "ThrottlingException":
888
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
889
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
890
+ case "ValidationException":
891
+ case "com.amazonaws.codeguruprofiler#ValidationException":
892
+ throw await de_ValidationExceptionRes(parsedOutput, context);
893
+ default:
894
+ const parsedBody = parsedOutput.body;
895
+ return throwDefaultError({
896
+ output,
897
+ parsedBody,
898
+ errorCode
899
+ });
900
+ }
901
+ }, "de_ConfigureAgentCommandError");
902
+ var de_CreateProfilingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
903
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
904
+ return de_CreateProfilingGroupCommandError(output, context);
905
+ }
906
+ const contents = (0, import_smithy_client.map)({
907
+ $metadata: deserializeMetadata(output)
908
+ });
909
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
910
+ contents.profilingGroup = de_ProfilingGroupDescription(data, context);
911
+ return contents;
912
+ }, "de_CreateProfilingGroupCommand");
913
+ var de_CreateProfilingGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
914
+ const parsedOutput = {
915
+ ...output,
916
+ body: await parseErrorBody(output.body, context)
917
+ };
918
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
919
+ switch (errorCode) {
920
+ case "ConflictException":
921
+ case "com.amazonaws.codeguruprofiler#ConflictException":
922
+ throw await de_ConflictExceptionRes(parsedOutput, context);
923
+ case "InternalServerException":
924
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
925
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
926
+ case "ServiceQuotaExceededException":
927
+ case "com.amazonaws.codeguruprofiler#ServiceQuotaExceededException":
928
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
929
+ case "ThrottlingException":
930
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
931
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
932
+ case "ValidationException":
933
+ case "com.amazonaws.codeguruprofiler#ValidationException":
934
+ throw await de_ValidationExceptionRes(parsedOutput, context);
935
+ default:
936
+ const parsedBody = parsedOutput.body;
937
+ return throwDefaultError({
938
+ output,
939
+ parsedBody,
940
+ errorCode
941
+ });
942
+ }
943
+ }, "de_CreateProfilingGroupCommandError");
944
+ var de_DeleteProfilingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
945
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
946
+ return de_DeleteProfilingGroupCommandError(output, context);
947
+ }
948
+ const contents = (0, import_smithy_client.map)({
949
+ $metadata: deserializeMetadata(output)
950
+ });
951
+ await (0, import_smithy_client.collectBody)(output.body, context);
952
+ return contents;
953
+ }, "de_DeleteProfilingGroupCommand");
954
+ var de_DeleteProfilingGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
955
+ const parsedOutput = {
956
+ ...output,
957
+ body: await parseErrorBody(output.body, context)
958
+ };
959
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
960
+ switch (errorCode) {
961
+ case "ConflictException":
962
+ case "com.amazonaws.codeguruprofiler#ConflictException":
963
+ throw await de_ConflictExceptionRes(parsedOutput, context);
964
+ case "InternalServerException":
965
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
966
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
967
+ case "ResourceNotFoundException":
968
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
969
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
970
+ case "ThrottlingException":
971
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
972
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
973
+ case "ValidationException":
974
+ case "com.amazonaws.codeguruprofiler#ValidationException":
975
+ throw await de_ValidationExceptionRes(parsedOutput, context);
976
+ default:
977
+ const parsedBody = parsedOutput.body;
978
+ return throwDefaultError({
979
+ output,
980
+ parsedBody,
981
+ errorCode
982
+ });
983
+ }
984
+ }, "de_DeleteProfilingGroupCommandError");
985
+ var de_DescribeProfilingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
986
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
987
+ return de_DescribeProfilingGroupCommandError(output, context);
988
+ }
989
+ const contents = (0, import_smithy_client.map)({
990
+ $metadata: deserializeMetadata(output)
991
+ });
992
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
993
+ contents.profilingGroup = de_ProfilingGroupDescription(data, context);
994
+ return contents;
995
+ }, "de_DescribeProfilingGroupCommand");
996
+ var de_DescribeProfilingGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
997
+ const parsedOutput = {
998
+ ...output,
999
+ body: await parseErrorBody(output.body, context)
1000
+ };
1001
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1002
+ switch (errorCode) {
1003
+ case "InternalServerException":
1004
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1005
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1006
+ case "ResourceNotFoundException":
1007
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1008
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1009
+ case "ThrottlingException":
1010
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
1011
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1012
+ case "ValidationException":
1013
+ case "com.amazonaws.codeguruprofiler#ValidationException":
1014
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1015
+ default:
1016
+ const parsedBody = parsedOutput.body;
1017
+ return throwDefaultError({
1018
+ output,
1019
+ parsedBody,
1020
+ errorCode
1021
+ });
1022
+ }
1023
+ }, "de_DescribeProfilingGroupCommandError");
1024
+ var de_GetFindingsReportAccountSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
1025
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1026
+ return de_GetFindingsReportAccountSummaryCommandError(output, context);
1027
+ }
1028
+ const contents = (0, import_smithy_client.map)({
1029
+ $metadata: deserializeMetadata(output)
1030
+ });
1031
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1032
+ const doc = (0, import_smithy_client.take)(data, {
1033
+ nextToken: import_smithy_client.expectString,
1034
+ reportSummaries: (_) => de_FindingsReportSummaries(_, context)
1035
+ });
1036
+ Object.assign(contents, doc);
1037
+ return contents;
1038
+ }, "de_GetFindingsReportAccountSummaryCommand");
1039
+ var de_GetFindingsReportAccountSummaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1040
+ const parsedOutput = {
1041
+ ...output,
1042
+ body: await parseErrorBody(output.body, context)
1043
+ };
1044
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1045
+ switch (errorCode) {
1046
+ case "InternalServerException":
1047
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1048
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1049
+ case "ThrottlingException":
1050
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
1051
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1052
+ case "ValidationException":
1053
+ case "com.amazonaws.codeguruprofiler#ValidationException":
1054
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1055
+ default:
1056
+ const parsedBody = parsedOutput.body;
1057
+ return throwDefaultError({
1058
+ output,
1059
+ parsedBody,
1060
+ errorCode
1061
+ });
1062
+ }
1063
+ }, "de_GetFindingsReportAccountSummaryCommandError");
1064
+ var de_GetNotificationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1065
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1066
+ return de_GetNotificationConfigurationCommandError(output, context);
1067
+ }
1068
+ const contents = (0, import_smithy_client.map)({
1069
+ $metadata: deserializeMetadata(output)
1070
+ });
1071
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1072
+ const doc = (0, import_smithy_client.take)(data, {
1073
+ notificationConfiguration: import_smithy_client._json
1074
+ });
1075
+ Object.assign(contents, doc);
1076
+ return contents;
1077
+ }, "de_GetNotificationConfigurationCommand");
1078
+ var de_GetNotificationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1079
+ const parsedOutput = {
1080
+ ...output,
1081
+ body: await parseErrorBody(output.body, context)
1082
+ };
1083
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1084
+ switch (errorCode) {
1085
+ case "InternalServerException":
1086
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1087
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1088
+ case "ResourceNotFoundException":
1089
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1090
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1091
+ case "ThrottlingException":
1092
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
1093
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1094
+ case "ValidationException":
1095
+ case "com.amazonaws.codeguruprofiler#ValidationException":
1096
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1097
+ default:
1098
+ const parsedBody = parsedOutput.body;
1099
+ return throwDefaultError({
1100
+ output,
1101
+ parsedBody,
1102
+ errorCode
1103
+ });
1104
+ }
1105
+ }, "de_GetNotificationConfigurationCommandError");
1106
+ var de_GetPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1107
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1108
+ return de_GetPolicyCommandError(output, context);
1109
+ }
1110
+ const contents = (0, import_smithy_client.map)({
1111
+ $metadata: deserializeMetadata(output)
1112
+ });
1113
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1114
+ const doc = (0, import_smithy_client.take)(data, {
1115
+ policy: import_smithy_client.expectString,
1116
+ revisionId: import_smithy_client.expectString
1117
+ });
1118
+ Object.assign(contents, doc);
1119
+ return contents;
1120
+ }, "de_GetPolicyCommand");
1121
+ var de_GetPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1122
+ const parsedOutput = {
1123
+ ...output,
1124
+ body: await parseErrorBody(output.body, context)
1125
+ };
1126
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1127
+ switch (errorCode) {
1128
+ case "InternalServerException":
1129
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1130
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1131
+ case "ResourceNotFoundException":
1132
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1133
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1134
+ case "ThrottlingException":
1135
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
1136
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1137
+ default:
1138
+ const parsedBody = parsedOutput.body;
1139
+ return throwDefaultError({
1140
+ output,
1141
+ parsedBody,
1142
+ errorCode
1143
+ });
1144
+ }
1145
+ }, "de_GetPolicyCommandError");
1146
+ var de_GetProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
1147
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1148
+ return de_GetProfileCommandError(output, context);
1149
+ }
1150
+ const contents = (0, import_smithy_client.map)({
1151
+ $metadata: deserializeMetadata(output),
1152
+ [_cTo]: [, output.headers[_ct]],
1153
+ [_cE]: [, output.headers[_ce]]
1154
+ });
1155
+ const data = await (0, import_smithy_client.collectBody)(output.body, context);
1156
+ contents.profile = data;
1157
+ return contents;
1158
+ }, "de_GetProfileCommand");
1159
+ var de_GetProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
1160
+ const parsedOutput = {
1161
+ ...output,
1162
+ body: await parseErrorBody(output.body, context)
1163
+ };
1164
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1165
+ switch (errorCode) {
1166
+ case "InternalServerException":
1167
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1168
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1169
+ case "ResourceNotFoundException":
1170
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1171
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1172
+ case "ThrottlingException":
1173
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
1174
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1175
+ case "ValidationException":
1176
+ case "com.amazonaws.codeguruprofiler#ValidationException":
1177
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1178
+ default:
1179
+ const parsedBody = parsedOutput.body;
1180
+ return throwDefaultError({
1181
+ output,
1182
+ parsedBody,
1183
+ errorCode
1184
+ });
1185
+ }
1186
+ }, "de_GetProfileCommandError");
1187
+ var de_GetRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1188
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1189
+ return de_GetRecommendationsCommandError(output, context);
1190
+ }
1191
+ const contents = (0, import_smithy_client.map)({
1192
+ $metadata: deserializeMetadata(output)
1193
+ });
1194
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1195
+ const doc = (0, import_smithy_client.take)(data, {
1196
+ anomalies: (_) => de_Anomalies(_, context),
1197
+ profileEndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1198
+ profileStartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1199
+ profilingGroupName: import_smithy_client.expectString,
1200
+ recommendations: (_) => de_Recommendations(_, context)
1201
+ });
1202
+ Object.assign(contents, doc);
1203
+ return contents;
1204
+ }, "de_GetRecommendationsCommand");
1205
+ var de_GetRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1206
+ const parsedOutput = {
1207
+ ...output,
1208
+ body: await parseErrorBody(output.body, context)
1209
+ };
1210
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1211
+ switch (errorCode) {
1212
+ case "InternalServerException":
1213
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1214
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1215
+ case "ResourceNotFoundException":
1216
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1217
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1218
+ case "ThrottlingException":
1219
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
1220
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1221
+ case "ValidationException":
1222
+ case "com.amazonaws.codeguruprofiler#ValidationException":
1223
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1224
+ default:
1225
+ const parsedBody = parsedOutput.body;
1226
+ return throwDefaultError({
1227
+ output,
1228
+ parsedBody,
1229
+ errorCode
1230
+ });
1231
+ }
1232
+ }, "de_GetRecommendationsCommandError");
1233
+ var de_ListFindingsReportsCommand = /* @__PURE__ */ __name(async (output, context) => {
1234
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1235
+ return de_ListFindingsReportsCommandError(output, context);
1236
+ }
1237
+ const contents = (0, import_smithy_client.map)({
1238
+ $metadata: deserializeMetadata(output)
1239
+ });
1240
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1241
+ const doc = (0, import_smithy_client.take)(data, {
1242
+ findingsReportSummaries: (_) => de_FindingsReportSummaries(_, context),
1243
+ nextToken: import_smithy_client.expectString
1244
+ });
1245
+ Object.assign(contents, doc);
1246
+ return contents;
1247
+ }, "de_ListFindingsReportsCommand");
1248
+ var de_ListFindingsReportsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1249
+ const parsedOutput = {
1250
+ ...output,
1251
+ body: await parseErrorBody(output.body, context)
1252
+ };
1253
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1254
+ switch (errorCode) {
1255
+ case "InternalServerException":
1256
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1257
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1258
+ case "ResourceNotFoundException":
1259
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1260
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1261
+ case "ThrottlingException":
1262
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
1263
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1264
+ case "ValidationException":
1265
+ case "com.amazonaws.codeguruprofiler#ValidationException":
1266
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1267
+ default:
1268
+ const parsedBody = parsedOutput.body;
1269
+ return throwDefaultError({
1270
+ output,
1271
+ parsedBody,
1272
+ errorCode
1273
+ });
1274
+ }
1275
+ }, "de_ListFindingsReportsCommandError");
1276
+ var de_ListProfileTimesCommand = /* @__PURE__ */ __name(async (output, context) => {
1277
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1278
+ return de_ListProfileTimesCommandError(output, context);
1279
+ }
1280
+ const contents = (0, import_smithy_client.map)({
1281
+ $metadata: deserializeMetadata(output)
1282
+ });
1283
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1284
+ const doc = (0, import_smithy_client.take)(data, {
1285
+ nextToken: import_smithy_client.expectString,
1286
+ profileTimes: (_) => de_ProfileTimes(_, context)
1287
+ });
1288
+ Object.assign(contents, doc);
1289
+ return contents;
1290
+ }, "de_ListProfileTimesCommand");
1291
+ var de_ListProfileTimesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1292
+ const parsedOutput = {
1293
+ ...output,
1294
+ body: await parseErrorBody(output.body, context)
1295
+ };
1296
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1297
+ switch (errorCode) {
1298
+ case "InternalServerException":
1299
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1300
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1301
+ case "ResourceNotFoundException":
1302
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1303
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1304
+ case "ThrottlingException":
1305
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
1306
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1307
+ case "ValidationException":
1308
+ case "com.amazonaws.codeguruprofiler#ValidationException":
1309
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1310
+ default:
1311
+ const parsedBody = parsedOutput.body;
1312
+ return throwDefaultError({
1313
+ output,
1314
+ parsedBody,
1315
+ errorCode
1316
+ });
1317
+ }
1318
+ }, "de_ListProfileTimesCommandError");
1319
+ var de_ListProfilingGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1320
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1321
+ return de_ListProfilingGroupsCommandError(output, context);
1322
+ }
1323
+ const contents = (0, import_smithy_client.map)({
1324
+ $metadata: deserializeMetadata(output)
1325
+ });
1326
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1327
+ const doc = (0, import_smithy_client.take)(data, {
1328
+ nextToken: import_smithy_client.expectString,
1329
+ profilingGroupNames: import_smithy_client._json,
1330
+ profilingGroups: (_) => de_ProfilingGroupDescriptions(_, context)
1331
+ });
1332
+ Object.assign(contents, doc);
1333
+ return contents;
1334
+ }, "de_ListProfilingGroupsCommand");
1335
+ var de_ListProfilingGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1336
+ const parsedOutput = {
1337
+ ...output,
1338
+ body: await parseErrorBody(output.body, context)
1339
+ };
1340
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1341
+ switch (errorCode) {
1342
+ case "InternalServerException":
1343
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1344
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1345
+ case "ThrottlingException":
1346
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
1347
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1348
+ default:
1349
+ const parsedBody = parsedOutput.body;
1350
+ return throwDefaultError({
1351
+ output,
1352
+ parsedBody,
1353
+ errorCode
1354
+ });
1355
+ }
1356
+ }, "de_ListProfilingGroupsCommandError");
1357
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1358
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1359
+ return de_ListTagsForResourceCommandError(output, context);
1360
+ }
1361
+ const contents = (0, import_smithy_client.map)({
1362
+ $metadata: deserializeMetadata(output)
1363
+ });
1364
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1365
+ const doc = (0, import_smithy_client.take)(data, {
1366
+ tags: import_smithy_client._json
1367
+ });
1368
+ Object.assign(contents, doc);
1369
+ return contents;
1370
+ }, "de_ListTagsForResourceCommand");
1371
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1372
+ const parsedOutput = {
1373
+ ...output,
1374
+ body: await parseErrorBody(output.body, context)
1375
+ };
1376
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1377
+ switch (errorCode) {
1378
+ case "InternalServerException":
1379
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1380
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1381
+ case "ResourceNotFoundException":
1382
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1383
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1384
+ case "ValidationException":
1385
+ case "com.amazonaws.codeguruprofiler#ValidationException":
1386
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1387
+ default:
1388
+ const parsedBody = parsedOutput.body;
1389
+ return throwDefaultError({
1390
+ output,
1391
+ parsedBody,
1392
+ errorCode
1393
+ });
1394
+ }
1395
+ }, "de_ListTagsForResourceCommandError");
1396
+ var de_PostAgentProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
1397
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1398
+ return de_PostAgentProfileCommandError(output, context);
1399
+ }
1400
+ const contents = (0, import_smithy_client.map)({
1401
+ $metadata: deserializeMetadata(output)
1402
+ });
1403
+ await (0, import_smithy_client.collectBody)(output.body, context);
1404
+ return contents;
1405
+ }, "de_PostAgentProfileCommand");
1406
+ var de_PostAgentProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
1407
+ const parsedOutput = {
1408
+ ...output,
1409
+ body: await parseErrorBody(output.body, context)
1410
+ };
1411
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1412
+ switch (errorCode) {
1413
+ case "InternalServerException":
1414
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1415
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1416
+ case "ResourceNotFoundException":
1417
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1418
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1419
+ case "ThrottlingException":
1420
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
1421
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1422
+ case "ValidationException":
1423
+ case "com.amazonaws.codeguruprofiler#ValidationException":
1424
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1425
+ default:
1426
+ const parsedBody = parsedOutput.body;
1427
+ return throwDefaultError({
1428
+ output,
1429
+ parsedBody,
1430
+ errorCode
1431
+ });
1432
+ }
1433
+ }, "de_PostAgentProfileCommandError");
1434
+ var de_PutPermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
1435
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1436
+ return de_PutPermissionCommandError(output, context);
1437
+ }
1438
+ const contents = (0, import_smithy_client.map)({
1439
+ $metadata: deserializeMetadata(output)
1440
+ });
1441
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1442
+ const doc = (0, import_smithy_client.take)(data, {
1443
+ policy: import_smithy_client.expectString,
1444
+ revisionId: import_smithy_client.expectString
1445
+ });
1446
+ Object.assign(contents, doc);
1447
+ return contents;
1448
+ }, "de_PutPermissionCommand");
1449
+ var de_PutPermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1450
+ const parsedOutput = {
1451
+ ...output,
1452
+ body: await parseErrorBody(output.body, context)
1453
+ };
1454
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1455
+ switch (errorCode) {
1456
+ case "ConflictException":
1457
+ case "com.amazonaws.codeguruprofiler#ConflictException":
1458
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1459
+ case "InternalServerException":
1460
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1461
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1462
+ case "ResourceNotFoundException":
1463
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1464
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1465
+ case "ThrottlingException":
1466
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
1467
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1468
+ case "ValidationException":
1469
+ case "com.amazonaws.codeguruprofiler#ValidationException":
1470
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1471
+ default:
1472
+ const parsedBody = parsedOutput.body;
1473
+ return throwDefaultError({
1474
+ output,
1475
+ parsedBody,
1476
+ errorCode
1477
+ });
1478
+ }
1479
+ }, "de_PutPermissionCommandError");
1480
+ var de_RemoveNotificationChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
1481
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1482
+ return de_RemoveNotificationChannelCommandError(output, context);
1483
+ }
1484
+ const contents = (0, import_smithy_client.map)({
1485
+ $metadata: deserializeMetadata(output)
1486
+ });
1487
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1488
+ const doc = (0, import_smithy_client.take)(data, {
1489
+ notificationConfiguration: import_smithy_client._json
1490
+ });
1491
+ Object.assign(contents, doc);
1492
+ return contents;
1493
+ }, "de_RemoveNotificationChannelCommand");
1494
+ var de_RemoveNotificationChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
1495
+ const parsedOutput = {
1496
+ ...output,
1497
+ body: await parseErrorBody(output.body, context)
1498
+ };
1499
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1500
+ switch (errorCode) {
1501
+ case "InternalServerException":
1502
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1503
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1504
+ case "ResourceNotFoundException":
1505
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1506
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1507
+ case "ThrottlingException":
1508
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
1509
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1510
+ case "ValidationException":
1511
+ case "com.amazonaws.codeguruprofiler#ValidationException":
1512
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1513
+ default:
1514
+ const parsedBody = parsedOutput.body;
1515
+ return throwDefaultError({
1516
+ output,
1517
+ parsedBody,
1518
+ errorCode
1519
+ });
1520
+ }
1521
+ }, "de_RemoveNotificationChannelCommandError");
1522
+ var de_RemovePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
1523
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1524
+ return de_RemovePermissionCommandError(output, context);
1525
+ }
1526
+ const contents = (0, import_smithy_client.map)({
1527
+ $metadata: deserializeMetadata(output)
1528
+ });
1529
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1530
+ const doc = (0, import_smithy_client.take)(data, {
1531
+ policy: import_smithy_client.expectString,
1532
+ revisionId: import_smithy_client.expectString
1533
+ });
1534
+ Object.assign(contents, doc);
1535
+ return contents;
1536
+ }, "de_RemovePermissionCommand");
1537
+ var de_RemovePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1538
+ const parsedOutput = {
1539
+ ...output,
1540
+ body: await parseErrorBody(output.body, context)
1541
+ };
1542
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1543
+ switch (errorCode) {
1544
+ case "ConflictException":
1545
+ case "com.amazonaws.codeguruprofiler#ConflictException":
1546
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1547
+ case "InternalServerException":
1548
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1549
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1550
+ case "ResourceNotFoundException":
1551
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1552
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1553
+ case "ThrottlingException":
1554
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
1555
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1556
+ case "ValidationException":
1557
+ case "com.amazonaws.codeguruprofiler#ValidationException":
1558
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1559
+ default:
1560
+ const parsedBody = parsedOutput.body;
1561
+ return throwDefaultError({
1562
+ output,
1563
+ parsedBody,
1564
+ errorCode
1565
+ });
1566
+ }
1567
+ }, "de_RemovePermissionCommandError");
1568
+ var de_SubmitFeedbackCommand = /* @__PURE__ */ __name(async (output, context) => {
1569
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1570
+ return de_SubmitFeedbackCommandError(output, context);
1571
+ }
1572
+ const contents = (0, import_smithy_client.map)({
1573
+ $metadata: deserializeMetadata(output)
1574
+ });
1575
+ await (0, import_smithy_client.collectBody)(output.body, context);
1576
+ return contents;
1577
+ }, "de_SubmitFeedbackCommand");
1578
+ var de_SubmitFeedbackCommandError = /* @__PURE__ */ __name(async (output, context) => {
1579
+ const parsedOutput = {
1580
+ ...output,
1581
+ body: await parseErrorBody(output.body, context)
1582
+ };
1583
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1584
+ switch (errorCode) {
1585
+ case "InternalServerException":
1586
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1587
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1588
+ case "ResourceNotFoundException":
1589
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1590
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1591
+ case "ThrottlingException":
1592
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
1593
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1594
+ case "ValidationException":
1595
+ case "com.amazonaws.codeguruprofiler#ValidationException":
1596
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1597
+ default:
1598
+ const parsedBody = parsedOutput.body;
1599
+ return throwDefaultError({
1600
+ output,
1601
+ parsedBody,
1602
+ errorCode
1603
+ });
1604
+ }
1605
+ }, "de_SubmitFeedbackCommandError");
1606
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1607
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1608
+ return de_TagResourceCommandError(output, context);
1609
+ }
1610
+ const contents = (0, import_smithy_client.map)({
1611
+ $metadata: deserializeMetadata(output)
1612
+ });
1613
+ await (0, import_smithy_client.collectBody)(output.body, context);
1614
+ return contents;
1615
+ }, "de_TagResourceCommand");
1616
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1617
+ const parsedOutput = {
1618
+ ...output,
1619
+ body: await parseErrorBody(output.body, context)
1620
+ };
1621
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1622
+ switch (errorCode) {
1623
+ case "InternalServerException":
1624
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1625
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1626
+ case "ResourceNotFoundException":
1627
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1628
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1629
+ case "ValidationException":
1630
+ case "com.amazonaws.codeguruprofiler#ValidationException":
1631
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1632
+ default:
1633
+ const parsedBody = parsedOutput.body;
1634
+ return throwDefaultError({
1635
+ output,
1636
+ parsedBody,
1637
+ errorCode
1638
+ });
1639
+ }
1640
+ }, "de_TagResourceCommandError");
1641
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1642
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1643
+ return de_UntagResourceCommandError(output, context);
1644
+ }
1645
+ const contents = (0, import_smithy_client.map)({
1646
+ $metadata: deserializeMetadata(output)
1647
+ });
1648
+ await (0, import_smithy_client.collectBody)(output.body, context);
1649
+ return contents;
1650
+ }, "de_UntagResourceCommand");
1651
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1652
+ const parsedOutput = {
1653
+ ...output,
1654
+ body: await parseErrorBody(output.body, context)
1655
+ };
1656
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1657
+ switch (errorCode) {
1658
+ case "InternalServerException":
1659
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1660
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1661
+ case "ResourceNotFoundException":
1662
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1663
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1664
+ case "ValidationException":
1665
+ case "com.amazonaws.codeguruprofiler#ValidationException":
1666
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1667
+ default:
1668
+ const parsedBody = parsedOutput.body;
1669
+ return throwDefaultError({
1670
+ output,
1671
+ parsedBody,
1672
+ errorCode
1673
+ });
1674
+ }
1675
+ }, "de_UntagResourceCommandError");
1676
+ var de_UpdateProfilingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1677
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1678
+ return de_UpdateProfilingGroupCommandError(output, context);
1679
+ }
1680
+ const contents = (0, import_smithy_client.map)({
1681
+ $metadata: deserializeMetadata(output)
1682
+ });
1683
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1684
+ contents.profilingGroup = de_ProfilingGroupDescription(data, context);
1685
+ return contents;
1686
+ }, "de_UpdateProfilingGroupCommand");
1687
+ var de_UpdateProfilingGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1688
+ const parsedOutput = {
1689
+ ...output,
1690
+ body: await parseErrorBody(output.body, context)
1691
+ };
1692
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1693
+ switch (errorCode) {
1694
+ case "ConflictException":
1695
+ case "com.amazonaws.codeguruprofiler#ConflictException":
1696
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1697
+ case "InternalServerException":
1698
+ case "com.amazonaws.codeguruprofiler#InternalServerException":
1699
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1700
+ case "ResourceNotFoundException":
1701
+ case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1702
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1703
+ case "ThrottlingException":
1704
+ case "com.amazonaws.codeguruprofiler#ThrottlingException":
1705
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1706
+ case "ValidationException":
1707
+ case "com.amazonaws.codeguruprofiler#ValidationException":
1708
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1709
+ default:
1710
+ const parsedBody = parsedOutput.body;
1711
+ return throwDefaultError({
1712
+ output,
1713
+ parsedBody,
1714
+ errorCode
1715
+ });
1716
+ }
1717
+ }, "de_UpdateProfilingGroupCommandError");
1718
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(CodeGuruProfilerServiceException);
1719
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1720
+ const contents = (0, import_smithy_client.map)({});
1721
+ const data = parsedOutput.body;
1722
+ const doc = (0, import_smithy_client.take)(data, {
1723
+ message: import_smithy_client.expectString
1724
+ });
1725
+ Object.assign(contents, doc);
1726
+ const exception = new ConflictException({
1727
+ $metadata: deserializeMetadata(parsedOutput),
1728
+ ...contents
1729
+ });
1730
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1731
+ }, "de_ConflictExceptionRes");
1732
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1733
+ const contents = (0, import_smithy_client.map)({});
1734
+ const data = parsedOutput.body;
1735
+ const doc = (0, import_smithy_client.take)(data, {
1736
+ message: import_smithy_client.expectString
1737
+ });
1738
+ Object.assign(contents, doc);
1739
+ const exception = new InternalServerException({
1740
+ $metadata: deserializeMetadata(parsedOutput),
1741
+ ...contents
1742
+ });
1743
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1744
+ }, "de_InternalServerExceptionRes");
1745
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1746
+ const contents = (0, import_smithy_client.map)({});
1747
+ const data = parsedOutput.body;
1748
+ const doc = (0, import_smithy_client.take)(data, {
1749
+ message: import_smithy_client.expectString
1750
+ });
1751
+ Object.assign(contents, doc);
1752
+ const exception = new ResourceNotFoundException({
1753
+ $metadata: deserializeMetadata(parsedOutput),
1754
+ ...contents
1755
+ });
1756
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1757
+ }, "de_ResourceNotFoundExceptionRes");
1758
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1759
+ const contents = (0, import_smithy_client.map)({});
1760
+ const data = parsedOutput.body;
1761
+ const doc = (0, import_smithy_client.take)(data, {
1762
+ message: import_smithy_client.expectString
1763
+ });
1764
+ Object.assign(contents, doc);
1765
+ const exception = new ServiceQuotaExceededException({
1766
+ $metadata: deserializeMetadata(parsedOutput),
1767
+ ...contents
1768
+ });
1769
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1770
+ }, "de_ServiceQuotaExceededExceptionRes");
1771
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1772
+ const contents = (0, import_smithy_client.map)({});
1773
+ const data = parsedOutput.body;
1774
+ const doc = (0, import_smithy_client.take)(data, {
1775
+ message: import_smithy_client.expectString
1776
+ });
1777
+ Object.assign(contents, doc);
1778
+ const exception = new ThrottlingException({
1779
+ $metadata: deserializeMetadata(parsedOutput),
1780
+ ...contents
1781
+ });
1782
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1783
+ }, "de_ThrottlingExceptionRes");
1784
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1785
+ const contents = (0, import_smithy_client.map)({});
1786
+ const data = parsedOutput.body;
1787
+ const doc = (0, import_smithy_client.take)(data, {
1788
+ message: import_smithy_client.expectString
1789
+ });
1790
+ Object.assign(contents, doc);
1791
+ const exception = new ValidationException({
1792
+ $metadata: deserializeMetadata(parsedOutput),
1793
+ ...contents
1794
+ });
1795
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1796
+ }, "de_ValidationExceptionRes");
1797
+ var de_AggregatedProfileTime = /* @__PURE__ */ __name((output, context) => {
1798
+ return (0, import_smithy_client.take)(output, {
1799
+ period: import_smithy_client.expectString,
1800
+ start: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1801
+ });
1802
+ }, "de_AggregatedProfileTime");
1803
+ var de_Anomalies = /* @__PURE__ */ __name((output, context) => {
1804
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1805
+ return de_Anomaly(entry, context);
1806
+ });
1807
+ return retVal;
1808
+ }, "de_Anomalies");
1809
+ var de_Anomaly = /* @__PURE__ */ __name((output, context) => {
1810
+ return (0, import_smithy_client.take)(output, {
1811
+ instances: (_) => de_AnomalyInstances(_, context),
1812
+ metric: import_smithy_client._json,
1813
+ reason: import_smithy_client.expectString
1814
+ });
1815
+ }, "de_Anomaly");
1816
+ var de_AnomalyInstance = /* @__PURE__ */ __name((output, context) => {
1817
+ return (0, import_smithy_client.take)(output, {
1818
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1819
+ id: import_smithy_client.expectString,
1820
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1821
+ userFeedback: import_smithy_client._json
1822
+ });
1823
+ }, "de_AnomalyInstance");
1824
+ var de_AnomalyInstances = /* @__PURE__ */ __name((output, context) => {
1825
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1826
+ return de_AnomalyInstance(entry, context);
1827
+ });
1828
+ return retVal;
1829
+ }, "de_AnomalyInstances");
1830
+ var de_FindingsReportSummaries = /* @__PURE__ */ __name((output, context) => {
1831
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1832
+ return de_FindingsReportSummary(entry, context);
1833
+ });
1834
+ return retVal;
1835
+ }, "de_FindingsReportSummaries");
1836
+ var de_FindingsReportSummary = /* @__PURE__ */ __name((output, context) => {
1837
+ return (0, import_smithy_client.take)(output, {
1838
+ id: import_smithy_client.expectString,
1839
+ profileEndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1840
+ profileStartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1841
+ profilingGroupName: import_smithy_client.expectString,
1842
+ totalNumberOfFindings: import_smithy_client.expectInt32
1843
+ });
1844
+ }, "de_FindingsReportSummary");
1845
+ var de_FrameMetricData = /* @__PURE__ */ __name((output, context) => {
1846
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1847
+ return de_FrameMetricDatum(entry, context);
1848
+ });
1849
+ return retVal;
1850
+ }, "de_FrameMetricData");
1851
+ var de_FrameMetricDatum = /* @__PURE__ */ __name((output, context) => {
1852
+ return (0, import_smithy_client.take)(output, {
1853
+ frameMetric: import_smithy_client._json,
1854
+ values: (_) => de_FrameMetricValues(_, context)
1855
+ });
1856
+ }, "de_FrameMetricDatum");
1857
+ var de_FrameMetricValues = /* @__PURE__ */ __name((output, context) => {
1858
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1859
+ return (0, import_smithy_client.limitedParseDouble)(entry);
1860
+ });
1861
+ return retVal;
1862
+ }, "de_FrameMetricValues");
1863
+ var de_ListOfTimestamps = /* @__PURE__ */ __name((output, context) => {
1864
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1865
+ return de_TimestampStructure(entry, context);
1866
+ });
1867
+ return retVal;
1868
+ }, "de_ListOfTimestamps");
1869
+ var de_Match = /* @__PURE__ */ __name((output, context) => {
1870
+ return (0, import_smithy_client.take)(output, {
1871
+ frameAddress: import_smithy_client.expectString,
1872
+ targetFramesIndex: import_smithy_client.expectInt32,
1873
+ thresholdBreachValue: import_smithy_client.limitedParseDouble
1874
+ });
1875
+ }, "de_Match");
1876
+ var de_Matches = /* @__PURE__ */ __name((output, context) => {
1877
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1878
+ return de_Match(entry, context);
1879
+ });
1880
+ return retVal;
1881
+ }, "de_Matches");
1882
+ var de_Pattern = /* @__PURE__ */ __name((output, context) => {
1883
+ return (0, import_smithy_client.take)(output, {
1884
+ countersToAggregate: import_smithy_client._json,
1885
+ description: import_smithy_client.expectString,
1886
+ id: import_smithy_client.expectString,
1887
+ name: import_smithy_client.expectString,
1888
+ resolutionSteps: import_smithy_client.expectString,
1889
+ targetFrames: import_smithy_client._json,
1890
+ thresholdPercent: import_smithy_client.limitedParseDouble
1891
+ });
1892
+ }, "de_Pattern");
1893
+ var de_ProfileTime = /* @__PURE__ */ __name((output, context) => {
1894
+ return (0, import_smithy_client.take)(output, {
1895
+ start: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1896
+ });
1897
+ }, "de_ProfileTime");
1898
+ var de_ProfileTimes = /* @__PURE__ */ __name((output, context) => {
1899
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1900
+ return de_ProfileTime(entry, context);
1901
+ });
1902
+ return retVal;
1903
+ }, "de_ProfileTimes");
1904
+ var de_ProfilingGroupDescription = /* @__PURE__ */ __name((output, context) => {
1905
+ return (0, import_smithy_client.take)(output, {
1906
+ agentOrchestrationConfig: import_smithy_client._json,
1907
+ arn: import_smithy_client.expectString,
1908
+ computePlatform: import_smithy_client.expectString,
1909
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1910
+ name: import_smithy_client.expectString,
1911
+ profilingStatus: (_) => de_ProfilingStatus(_, context),
1912
+ tags: import_smithy_client._json,
1913
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1914
+ });
1915
+ }, "de_ProfilingGroupDescription");
1916
+ var de_ProfilingGroupDescriptions = /* @__PURE__ */ __name((output, context) => {
1917
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1918
+ return de_ProfilingGroupDescription(entry, context);
1919
+ });
1920
+ return retVal;
1921
+ }, "de_ProfilingGroupDescriptions");
1922
+ var de_ProfilingStatus = /* @__PURE__ */ __name((output, context) => {
1923
+ return (0, import_smithy_client.take)(output, {
1924
+ latestAgentOrchestratedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1925
+ latestAgentProfileReportedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1926
+ latestAggregatedProfile: (_) => de_AggregatedProfileTime(_, context)
1927
+ });
1928
+ }, "de_ProfilingStatus");
1929
+ var de_Recommendation = /* @__PURE__ */ __name((output, context) => {
1930
+ return (0, import_smithy_client.take)(output, {
1931
+ allMatchesCount: import_smithy_client.expectInt32,
1932
+ allMatchesSum: import_smithy_client.limitedParseDouble,
1933
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1934
+ pattern: (_) => de_Pattern(_, context),
1935
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1936
+ topMatches: (_) => de_Matches(_, context)
1937
+ });
1938
+ }, "de_Recommendation");
1939
+ var de_Recommendations = /* @__PURE__ */ __name((output, context) => {
1940
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1941
+ return de_Recommendation(entry, context);
1942
+ });
1943
+ return retVal;
1944
+ }, "de_Recommendations");
1945
+ var de_TimestampStructure = /* @__PURE__ */ __name((output, context) => {
1946
+ return (0, import_smithy_client.take)(output, {
1947
+ value: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1948
+ });
1949
+ }, "de_TimestampStructure");
1950
+ var de_UnprocessedEndTimeMap = /* @__PURE__ */ __name((output, context) => {
1951
+ return Object.entries(output).reduce((acc, [key, value]) => {
1952
+ if (value === null) {
1953
+ return acc;
1954
+ }
1955
+ acc[key] = de_ListOfTimestamps(value, context);
1956
+ return acc;
1957
+ }, {});
1958
+ }, "de_UnprocessedEndTimeMap");
1959
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1960
+ httpStatusCode: output.statusCode,
1961
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1962
+ extendedRequestId: output.headers["x-amz-id-2"],
1963
+ cfId: output.headers["x-amz-cf-id"]
1964
+ }), "deserializeMetadata");
1965
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1966
+ var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
1967
+ var _a = "accept";
1968
+ var _cE = "contentEncoding";
1969
+ var _cT = "clientToken";
1970
+ var _cTo = "contentType";
1971
+ var _ce = "content-encoding";
1972
+ var _ct = "content-type";
1973
+ var _dRO = "dailyReportsOnly";
1974
+ var _eT = "endTime";
1975
+ var _iD = "includeDescription";
1976
+ var _l = "locale";
1977
+ var _mD = "maxDepth";
1978
+ var _mR = "maxResults";
1979
+ var _nT = "nextToken";
1980
+ var _oB = "orderBy";
1981
+ var _p = "period";
1982
+ var _pT = "profileToken";
1983
+ var _rI = "revisionId";
1984
+ var _sT = "startTime";
1985
+ var _tK = "tagKeys";
1986
+ var _tR = "targetResolution";
1987
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1988
+ if (encoded.length) {
1989
+ return JSON.parse(encoded);
1990
+ }
1991
+ return {};
1992
+ }), "parseBody");
1993
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1994
+ const value = await parseBody(errorBody, context);
1995
+ value.message = value.message ?? value.Message;
1996
+ return value;
1997
+ }, "parseErrorBody");
1998
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1999
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2000
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2001
+ let cleanValue = rawValue;
2002
+ if (typeof cleanValue === "number") {
2003
+ cleanValue = cleanValue.toString();
2004
+ }
2005
+ if (cleanValue.indexOf(",") >= 0) {
2006
+ cleanValue = cleanValue.split(",")[0];
2007
+ }
2008
+ if (cleanValue.indexOf(":") >= 0) {
2009
+ cleanValue = cleanValue.split(":")[0];
2010
+ }
2011
+ if (cleanValue.indexOf("#") >= 0) {
2012
+ cleanValue = cleanValue.split("#")[1];
2013
+ }
2014
+ return cleanValue;
2015
+ }, "sanitizeErrorCode");
2016
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2017
+ if (headerKey !== void 0) {
2018
+ return sanitizeErrorCode(output.headers[headerKey]);
2019
+ }
2020
+ if (data.code !== void 0) {
2021
+ return sanitizeErrorCode(data.code);
2022
+ }
2023
+ if (data["__type"] !== void 0) {
2024
+ return sanitizeErrorCode(data["__type"]);
2025
+ }
2026
+ }, "loadRestJsonErrorCode");
2027
+
2028
+ // src/commands/AddNotificationChannelsCommand.ts
2029
+ var _AddNotificationChannelsCommand = class _AddNotificationChannelsCommand extends import_smithy_client.Command.classBuilder().ep({
2030
+ ...commonParams
2031
+ }).m(function(Command, cs, config, o) {
2032
+ return [
2033
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2034
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2035
+ ];
2036
+ }).s("CodeGuruProfiler", "AddNotificationChannels", {}).n("CodeGuruProfilerClient", "AddNotificationChannelsCommand").f(void 0, void 0).ser(se_AddNotificationChannelsCommand).de(de_AddNotificationChannelsCommand).build() {
2037
+ };
2038
+ __name(_AddNotificationChannelsCommand, "AddNotificationChannelsCommand");
2039
+ var AddNotificationChannelsCommand = _AddNotificationChannelsCommand;
2040
+
2041
+ // src/commands/BatchGetFrameMetricDataCommand.ts
2042
+
2043
+
2044
+
2045
+
2046
+ var _BatchGetFrameMetricDataCommand = class _BatchGetFrameMetricDataCommand extends import_smithy_client.Command.classBuilder().ep({
2047
+ ...commonParams
2048
+ }).m(function(Command, cs, config, o) {
2049
+ return [
2050
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2051
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2052
+ ];
2053
+ }).s("CodeGuruProfiler", "BatchGetFrameMetricData", {}).n("CodeGuruProfilerClient", "BatchGetFrameMetricDataCommand").f(void 0, void 0).ser(se_BatchGetFrameMetricDataCommand).de(de_BatchGetFrameMetricDataCommand).build() {
2054
+ };
2055
+ __name(_BatchGetFrameMetricDataCommand, "BatchGetFrameMetricDataCommand");
2056
+ var BatchGetFrameMetricDataCommand = _BatchGetFrameMetricDataCommand;
2057
+
2058
+ // src/commands/ConfigureAgentCommand.ts
2059
+
2060
+
2061
+
2062
+
2063
+ var _ConfigureAgentCommand = class _ConfigureAgentCommand extends import_smithy_client.Command.classBuilder().ep({
2064
+ ...commonParams
2065
+ }).m(function(Command, cs, config, o) {
2066
+ return [
2067
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2068
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2069
+ ];
2070
+ }).s("CodeGuruProfiler", "ConfigureAgent", {}).n("CodeGuruProfilerClient", "ConfigureAgentCommand").f(void 0, void 0).ser(se_ConfigureAgentCommand).de(de_ConfigureAgentCommand).build() {
2071
+ };
2072
+ __name(_ConfigureAgentCommand, "ConfigureAgentCommand");
2073
+ var ConfigureAgentCommand = _ConfigureAgentCommand;
2074
+
2075
+ // src/commands/CreateProfilingGroupCommand.ts
2076
+
2077
+
2078
+
2079
+
2080
+ var _CreateProfilingGroupCommand = class _CreateProfilingGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2081
+ ...commonParams
2082
+ }).m(function(Command, cs, config, o) {
2083
+ return [
2084
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2085
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2086
+ ];
2087
+ }).s("CodeGuruProfiler", "CreateProfilingGroup", {}).n("CodeGuruProfilerClient", "CreateProfilingGroupCommand").f(void 0, void 0).ser(se_CreateProfilingGroupCommand).de(de_CreateProfilingGroupCommand).build() {
2088
+ };
2089
+ __name(_CreateProfilingGroupCommand, "CreateProfilingGroupCommand");
2090
+ var CreateProfilingGroupCommand = _CreateProfilingGroupCommand;
2091
+
2092
+ // src/commands/DeleteProfilingGroupCommand.ts
2093
+
2094
+
2095
+
2096
+
2097
+ var _DeleteProfilingGroupCommand = class _DeleteProfilingGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2098
+ ...commonParams
2099
+ }).m(function(Command, cs, config, o) {
2100
+ return [
2101
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2102
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2103
+ ];
2104
+ }).s("CodeGuruProfiler", "DeleteProfilingGroup", {}).n("CodeGuruProfilerClient", "DeleteProfilingGroupCommand").f(void 0, void 0).ser(se_DeleteProfilingGroupCommand).de(de_DeleteProfilingGroupCommand).build() {
2105
+ };
2106
+ __name(_DeleteProfilingGroupCommand, "DeleteProfilingGroupCommand");
2107
+ var DeleteProfilingGroupCommand = _DeleteProfilingGroupCommand;
2108
+
2109
+ // src/commands/DescribeProfilingGroupCommand.ts
2110
+
2111
+
2112
+
2113
+
2114
+ var _DescribeProfilingGroupCommand = class _DescribeProfilingGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2115
+ ...commonParams
2116
+ }).m(function(Command, cs, config, o) {
2117
+ return [
2118
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2119
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2120
+ ];
2121
+ }).s("CodeGuruProfiler", "DescribeProfilingGroup", {}).n("CodeGuruProfilerClient", "DescribeProfilingGroupCommand").f(void 0, void 0).ser(se_DescribeProfilingGroupCommand).de(de_DescribeProfilingGroupCommand).build() {
2122
+ };
2123
+ __name(_DescribeProfilingGroupCommand, "DescribeProfilingGroupCommand");
2124
+ var DescribeProfilingGroupCommand = _DescribeProfilingGroupCommand;
2125
+
2126
+ // src/commands/GetFindingsReportAccountSummaryCommand.ts
2127
+
2128
+
2129
+
2130
+
2131
+ var _GetFindingsReportAccountSummaryCommand = class _GetFindingsReportAccountSummaryCommand extends import_smithy_client.Command.classBuilder().ep({
2132
+ ...commonParams
2133
+ }).m(function(Command, cs, config, o) {
2134
+ return [
2135
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2136
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2137
+ ];
2138
+ }).s("CodeGuruProfiler", "GetFindingsReportAccountSummary", {}).n("CodeGuruProfilerClient", "GetFindingsReportAccountSummaryCommand").f(void 0, void 0).ser(se_GetFindingsReportAccountSummaryCommand).de(de_GetFindingsReportAccountSummaryCommand).build() {
2139
+ };
2140
+ __name(_GetFindingsReportAccountSummaryCommand, "GetFindingsReportAccountSummaryCommand");
2141
+ var GetFindingsReportAccountSummaryCommand = _GetFindingsReportAccountSummaryCommand;
2142
+
2143
+ // src/commands/GetNotificationConfigurationCommand.ts
2144
+
2145
+
2146
+
2147
+
2148
+ var _GetNotificationConfigurationCommand = class _GetNotificationConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
2149
+ ...commonParams
2150
+ }).m(function(Command, cs, config, o) {
2151
+ return [
2152
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2153
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2154
+ ];
2155
+ }).s("CodeGuruProfiler", "GetNotificationConfiguration", {}).n("CodeGuruProfilerClient", "GetNotificationConfigurationCommand").f(void 0, void 0).ser(se_GetNotificationConfigurationCommand).de(de_GetNotificationConfigurationCommand).build() {
2156
+ };
2157
+ __name(_GetNotificationConfigurationCommand, "GetNotificationConfigurationCommand");
2158
+ var GetNotificationConfigurationCommand = _GetNotificationConfigurationCommand;
2159
+
2160
+ // src/commands/GetPolicyCommand.ts
2161
+
2162
+
2163
+
2164
+
2165
+ var _GetPolicyCommand = class _GetPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2166
+ ...commonParams
2167
+ }).m(function(Command, cs, config, o) {
2168
+ return [
2169
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2170
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2171
+ ];
2172
+ }).s("CodeGuruProfiler", "GetPolicy", {}).n("CodeGuruProfilerClient", "GetPolicyCommand").f(void 0, void 0).ser(se_GetPolicyCommand).de(de_GetPolicyCommand).build() {
2173
+ };
2174
+ __name(_GetPolicyCommand, "GetPolicyCommand");
2175
+ var GetPolicyCommand = _GetPolicyCommand;
2176
+
2177
+ // src/commands/GetProfileCommand.ts
2178
+
2179
+
2180
+
2181
+
2182
+ var _GetProfileCommand = class _GetProfileCommand extends import_smithy_client.Command.classBuilder().ep({
2183
+ ...commonParams
2184
+ }).m(function(Command, cs, config, o) {
2185
+ return [
2186
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2187
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2188
+ ];
2189
+ }).s("CodeGuruProfiler", "GetProfile", {}).n("CodeGuruProfilerClient", "GetProfileCommand").f(void 0, void 0).ser(se_GetProfileCommand).de(de_GetProfileCommand).build() {
2190
+ };
2191
+ __name(_GetProfileCommand, "GetProfileCommand");
2192
+ var GetProfileCommand = _GetProfileCommand;
2193
+
2194
+ // src/commands/GetRecommendationsCommand.ts
2195
+
2196
+
2197
+
2198
+
2199
+ var _GetRecommendationsCommand = class _GetRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
2200
+ ...commonParams
2201
+ }).m(function(Command, cs, config, o) {
2202
+ return [
2203
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2204
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2205
+ ];
2206
+ }).s("CodeGuruProfiler", "GetRecommendations", {}).n("CodeGuruProfilerClient", "GetRecommendationsCommand").f(void 0, void 0).ser(se_GetRecommendationsCommand).de(de_GetRecommendationsCommand).build() {
2207
+ };
2208
+ __name(_GetRecommendationsCommand, "GetRecommendationsCommand");
2209
+ var GetRecommendationsCommand = _GetRecommendationsCommand;
2210
+
2211
+ // src/commands/ListFindingsReportsCommand.ts
2212
+
2213
+
2214
+
2215
+
2216
+ var _ListFindingsReportsCommand = class _ListFindingsReportsCommand extends import_smithy_client.Command.classBuilder().ep({
2217
+ ...commonParams
2218
+ }).m(function(Command, cs, config, o) {
2219
+ return [
2220
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2221
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2222
+ ];
2223
+ }).s("CodeGuruProfiler", "ListFindingsReports", {}).n("CodeGuruProfilerClient", "ListFindingsReportsCommand").f(void 0, void 0).ser(se_ListFindingsReportsCommand).de(de_ListFindingsReportsCommand).build() {
2224
+ };
2225
+ __name(_ListFindingsReportsCommand, "ListFindingsReportsCommand");
2226
+ var ListFindingsReportsCommand = _ListFindingsReportsCommand;
2227
+
2228
+ // src/commands/ListProfileTimesCommand.ts
2229
+
2230
+
2231
+
2232
+
2233
+ var _ListProfileTimesCommand = class _ListProfileTimesCommand extends import_smithy_client.Command.classBuilder().ep({
2234
+ ...commonParams
2235
+ }).m(function(Command, cs, config, o) {
2236
+ return [
2237
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2238
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2239
+ ];
2240
+ }).s("CodeGuruProfiler", "ListProfileTimes", {}).n("CodeGuruProfilerClient", "ListProfileTimesCommand").f(void 0, void 0).ser(se_ListProfileTimesCommand).de(de_ListProfileTimesCommand).build() {
2241
+ };
2242
+ __name(_ListProfileTimesCommand, "ListProfileTimesCommand");
2243
+ var ListProfileTimesCommand = _ListProfileTimesCommand;
2244
+
2245
+ // src/commands/ListProfilingGroupsCommand.ts
2246
+
2247
+
2248
+
2249
+
2250
+ var _ListProfilingGroupsCommand = class _ListProfilingGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
2251
+ ...commonParams
2252
+ }).m(function(Command, cs, config, o) {
2253
+ return [
2254
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2255
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2256
+ ];
2257
+ }).s("CodeGuruProfiler", "ListProfilingGroups", {}).n("CodeGuruProfilerClient", "ListProfilingGroupsCommand").f(void 0, void 0).ser(se_ListProfilingGroupsCommand).de(de_ListProfilingGroupsCommand).build() {
2258
+ };
2259
+ __name(_ListProfilingGroupsCommand, "ListProfilingGroupsCommand");
2260
+ var ListProfilingGroupsCommand = _ListProfilingGroupsCommand;
2261
+
2262
+ // src/commands/ListTagsForResourceCommand.ts
2263
+
2264
+
2265
+
2266
+
2267
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2268
+ ...commonParams
2269
+ }).m(function(Command, cs, config, o) {
2270
+ return [
2271
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2272
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2273
+ ];
2274
+ }).s("CodeGuruProfiler", "ListTagsForResource", {}).n("CodeGuruProfilerClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2275
+ };
2276
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2277
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2278
+
2279
+ // src/commands/PostAgentProfileCommand.ts
2280
+
2281
+
2282
+
2283
+
2284
+ var _PostAgentProfileCommand = class _PostAgentProfileCommand extends import_smithy_client.Command.classBuilder().ep({
2285
+ ...commonParams
2286
+ }).m(function(Command, cs, config, o) {
2287
+ return [
2288
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2289
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2290
+ ];
2291
+ }).s("CodeGuruProfiler", "PostAgentProfile", {}).n("CodeGuruProfilerClient", "PostAgentProfileCommand").f(void 0, void 0).ser(se_PostAgentProfileCommand).de(de_PostAgentProfileCommand).build() {
2292
+ };
2293
+ __name(_PostAgentProfileCommand, "PostAgentProfileCommand");
2294
+ var PostAgentProfileCommand = _PostAgentProfileCommand;
2295
+
2296
+ // src/commands/PutPermissionCommand.ts
2297
+
2298
+
2299
+
2300
+
2301
+ var _PutPermissionCommand = class _PutPermissionCommand extends import_smithy_client.Command.classBuilder().ep({
2302
+ ...commonParams
2303
+ }).m(function(Command, cs, config, o) {
2304
+ return [
2305
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2306
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2307
+ ];
2308
+ }).s("CodeGuruProfiler", "PutPermission", {}).n("CodeGuruProfilerClient", "PutPermissionCommand").f(void 0, void 0).ser(se_PutPermissionCommand).de(de_PutPermissionCommand).build() {
2309
+ };
2310
+ __name(_PutPermissionCommand, "PutPermissionCommand");
2311
+ var PutPermissionCommand = _PutPermissionCommand;
2312
+
2313
+ // src/commands/RemoveNotificationChannelCommand.ts
2314
+
2315
+
2316
+
2317
+
2318
+ var _RemoveNotificationChannelCommand = class _RemoveNotificationChannelCommand extends import_smithy_client.Command.classBuilder().ep({
2319
+ ...commonParams
2320
+ }).m(function(Command, cs, config, o) {
2321
+ return [
2322
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2323
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2324
+ ];
2325
+ }).s("CodeGuruProfiler", "RemoveNotificationChannel", {}).n("CodeGuruProfilerClient", "RemoveNotificationChannelCommand").f(void 0, void 0).ser(se_RemoveNotificationChannelCommand).de(de_RemoveNotificationChannelCommand).build() {
2326
+ };
2327
+ __name(_RemoveNotificationChannelCommand, "RemoveNotificationChannelCommand");
2328
+ var RemoveNotificationChannelCommand = _RemoveNotificationChannelCommand;
2329
+
2330
+ // src/commands/RemovePermissionCommand.ts
2331
+
2332
+
2333
+
2334
+
2335
+ var _RemovePermissionCommand = class _RemovePermissionCommand extends import_smithy_client.Command.classBuilder().ep({
2336
+ ...commonParams
2337
+ }).m(function(Command, cs, config, o) {
2338
+ return [
2339
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2340
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2341
+ ];
2342
+ }).s("CodeGuruProfiler", "RemovePermission", {}).n("CodeGuruProfilerClient", "RemovePermissionCommand").f(void 0, void 0).ser(se_RemovePermissionCommand).de(de_RemovePermissionCommand).build() {
2343
+ };
2344
+ __name(_RemovePermissionCommand, "RemovePermissionCommand");
2345
+ var RemovePermissionCommand = _RemovePermissionCommand;
2346
+
2347
+ // src/commands/SubmitFeedbackCommand.ts
2348
+
2349
+
2350
+
2351
+
2352
+ var _SubmitFeedbackCommand = class _SubmitFeedbackCommand extends import_smithy_client.Command.classBuilder().ep({
2353
+ ...commonParams
2354
+ }).m(function(Command, cs, config, o) {
2355
+ return [
2356
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2357
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2358
+ ];
2359
+ }).s("CodeGuruProfiler", "SubmitFeedback", {}).n("CodeGuruProfilerClient", "SubmitFeedbackCommand").f(void 0, void 0).ser(se_SubmitFeedbackCommand).de(de_SubmitFeedbackCommand).build() {
2360
+ };
2361
+ __name(_SubmitFeedbackCommand, "SubmitFeedbackCommand");
2362
+ var SubmitFeedbackCommand = _SubmitFeedbackCommand;
2363
+
2364
+ // src/commands/TagResourceCommand.ts
2365
+
2366
+
2367
+
2368
+
2369
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2370
+ ...commonParams
2371
+ }).m(function(Command, cs, config, o) {
2372
+ return [
2373
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2374
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2375
+ ];
2376
+ }).s("CodeGuruProfiler", "TagResource", {}).n("CodeGuruProfilerClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2377
+ };
2378
+ __name(_TagResourceCommand, "TagResourceCommand");
2379
+ var TagResourceCommand = _TagResourceCommand;
2380
+
2381
+ // src/commands/UntagResourceCommand.ts
2382
+
2383
+
2384
+
2385
+
2386
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2387
+ ...commonParams
2388
+ }).m(function(Command, cs, config, o) {
2389
+ return [
2390
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2391
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2392
+ ];
2393
+ }).s("CodeGuruProfiler", "UntagResource", {}).n("CodeGuruProfilerClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2394
+ };
2395
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2396
+ var UntagResourceCommand = _UntagResourceCommand;
2397
+
2398
+ // src/commands/UpdateProfilingGroupCommand.ts
2399
+
2400
+
2401
+
2402
+
2403
+ var _UpdateProfilingGroupCommand = class _UpdateProfilingGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2404
+ ...commonParams
2405
+ }).m(function(Command, cs, config, o) {
2406
+ return [
2407
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2408
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2409
+ ];
2410
+ }).s("CodeGuruProfiler", "UpdateProfilingGroup", {}).n("CodeGuruProfilerClient", "UpdateProfilingGroupCommand").f(void 0, void 0).ser(se_UpdateProfilingGroupCommand).de(de_UpdateProfilingGroupCommand).build() {
2411
+ };
2412
+ __name(_UpdateProfilingGroupCommand, "UpdateProfilingGroupCommand");
2413
+ var UpdateProfilingGroupCommand = _UpdateProfilingGroupCommand;
2414
+
2415
+ // src/CodeGuruProfiler.ts
2416
+ var commands = {
2417
+ AddNotificationChannelsCommand,
2418
+ BatchGetFrameMetricDataCommand,
2419
+ ConfigureAgentCommand,
2420
+ CreateProfilingGroupCommand,
2421
+ DeleteProfilingGroupCommand,
2422
+ DescribeProfilingGroupCommand,
2423
+ GetFindingsReportAccountSummaryCommand,
2424
+ GetNotificationConfigurationCommand,
2425
+ GetPolicyCommand,
2426
+ GetProfileCommand,
2427
+ GetRecommendationsCommand,
2428
+ ListFindingsReportsCommand,
2429
+ ListProfileTimesCommand,
2430
+ ListProfilingGroupsCommand,
2431
+ ListTagsForResourceCommand,
2432
+ PostAgentProfileCommand,
2433
+ PutPermissionCommand,
2434
+ RemoveNotificationChannelCommand,
2435
+ RemovePermissionCommand,
2436
+ SubmitFeedbackCommand,
2437
+ TagResourceCommand,
2438
+ UntagResourceCommand,
2439
+ UpdateProfilingGroupCommand
2440
+ };
2441
+ var _CodeGuruProfiler = class _CodeGuruProfiler extends CodeGuruProfilerClient {
2442
+ };
2443
+ __name(_CodeGuruProfiler, "CodeGuruProfiler");
2444
+ var CodeGuruProfiler = _CodeGuruProfiler;
2445
+ (0, import_smithy_client.createAggregatedClient)(commands, CodeGuruProfiler);
2446
+
2447
+ // src/pagination/GetFindingsReportAccountSummaryPaginator.ts
2448
+
2449
+ var paginateGetFindingsReportAccountSummary = (0, import_core.createPaginator)(CodeGuruProfilerClient, GetFindingsReportAccountSummaryCommand, "nextToken", "nextToken", "maxResults");
2450
+
2451
+ // src/pagination/ListFindingsReportsPaginator.ts
2452
+
2453
+ var paginateListFindingsReports = (0, import_core.createPaginator)(CodeGuruProfilerClient, ListFindingsReportsCommand, "nextToken", "nextToken", "maxResults");
2454
+
2455
+ // src/pagination/ListProfileTimesPaginator.ts
2456
+
2457
+ var paginateListProfileTimes = (0, import_core.createPaginator)(CodeGuruProfilerClient, ListProfileTimesCommand, "nextToken", "nextToken", "maxResults");
2458
+
2459
+ // src/pagination/ListProfilingGroupsPaginator.ts
2460
+
2461
+ var paginateListProfilingGroups = (0, import_core.createPaginator)(CodeGuruProfilerClient, ListProfilingGroupsCommand, "nextToken", "nextToken", "maxResults");
2462
+
2463
+ // src/index.ts
2464
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2465
+ // Annotate the CommonJS export names for ESM import in node:
2466
+ 0 && (module.exports = {
2467
+ ActionGroup,
2468
+ AddNotificationChannelsCommand,
2469
+ AgentParameterField,
2470
+ AggregationPeriod,
2471
+ BatchGetFrameMetricDataCommand,
2472
+ CodeGuruProfiler,
2473
+ CodeGuruProfilerClient,
2474
+ CodeGuruProfilerServiceException,
2475
+ ComputePlatform,
2476
+ ConfigureAgentCommand,
2477
+ ConflictException,
2478
+ CreateProfilingGroupCommand,
2479
+ DeleteProfilingGroupCommand,
2480
+ DescribeProfilingGroupCommand,
2481
+ EventPublisher,
2482
+ FeedbackType,
2483
+ GetFindingsReportAccountSummaryCommand,
2484
+ GetNotificationConfigurationCommand,
2485
+ GetPolicyCommand,
2486
+ GetProfileCommand,
2487
+ GetRecommendationsCommand,
2488
+ InternalServerException,
2489
+ ListFindingsReportsCommand,
2490
+ ListProfileTimesCommand,
2491
+ ListProfilingGroupsCommand,
2492
+ ListTagsForResourceCommand,
2493
+ MetadataField,
2494
+ MetricType,
2495
+ OrderBy,
2496
+ PostAgentProfileCommand,
2497
+ PutPermissionCommand,
2498
+ RemoveNotificationChannelCommand,
2499
+ RemovePermissionCommand,
2500
+ ResourceNotFoundException,
2501
+ ServiceQuotaExceededException,
2502
+ SubmitFeedbackCommand,
2503
+ TagResourceCommand,
2504
+ ThrottlingException,
2505
+ UntagResourceCommand,
2506
+ UpdateProfilingGroupCommand,
2507
+ ValidationException,
2508
+ __Client,
2509
+ paginateGetFindingsReportAccountSummary,
2510
+ paginateListFindingsReports,
2511
+ paginateListProfileTimes,
2512
+ paginateListProfilingGroups
2513
+ });