@aws-sdk/client-codeguruprofiler 3.121.0 → 3.130.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-codeguruprofiler
20
+
21
+
22
+
23
+
24
+
25
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-codeguruprofiler
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
34
 
8
35
 
@@ -24,8 +24,7 @@ const serializeAws_restJson1AddNotificationChannelsCommand = async (input, conte
24
24
  }
25
25
  let body;
26
26
  body = JSON.stringify({
27
- ...(input.channels !== undefined &&
28
- input.channels !== null && { channels: serializeAws_restJson1Channels(input.channels, context) }),
27
+ ...(input.channels != null && { channels: serializeAws_restJson1Channels(input.channels, context) }),
29
28
  });
30
29
  return new protocol_http_1.HttpRequest({
31
30
  protocol,
@@ -63,8 +62,9 @@ const serializeAws_restJson1BatchGetFrameMetricDataCommand = async (input, conte
63
62
  };
64
63
  let body;
65
64
  body = JSON.stringify({
66
- ...(input.frameMetrics !== undefined &&
67
- input.frameMetrics !== null && { frameMetrics: serializeAws_restJson1FrameMetrics(input.frameMetrics, context) }),
65
+ ...(input.frameMetrics != null && {
66
+ frameMetrics: serializeAws_restJson1FrameMetrics(input.frameMetrics, context),
67
+ }),
68
68
  });
69
69
  return new protocol_http_1.HttpRequest({
70
70
  protocol,
@@ -97,10 +97,8 @@ const serializeAws_restJson1ConfigureAgentCommand = async (input, context) => {
97
97
  }
98
98
  let body;
99
99
  body = JSON.stringify({
100
- ...(input.fleetInstanceId !== undefined &&
101
- input.fleetInstanceId !== null && { fleetInstanceId: input.fleetInstanceId }),
102
- ...(input.metadata !== undefined &&
103
- input.metadata !== null && { metadata: serializeAws_restJson1Metadata(input.metadata, context) }),
100
+ ...(input.fleetInstanceId != null && { fleetInstanceId: input.fleetInstanceId }),
101
+ ...(input.metadata != null && { metadata: serializeAws_restJson1Metadata(input.metadata, context) }),
104
102
  });
105
103
  return new protocol_http_1.HttpRequest({
106
104
  protocol,
@@ -124,16 +122,12 @@ const serializeAws_restJson1CreateProfilingGroupCommand = async (input, context)
124
122
  };
125
123
  let body;
126
124
  body = JSON.stringify({
127
- ...(input.agentOrchestrationConfig !== undefined &&
128
- input.agentOrchestrationConfig !== null && {
125
+ ...(input.agentOrchestrationConfig != null && {
129
126
  agentOrchestrationConfig: serializeAws_restJson1AgentOrchestrationConfig(input.agentOrchestrationConfig, context),
130
127
  }),
131
- ...(input.computePlatform !== undefined &&
132
- input.computePlatform !== null && { computePlatform: input.computePlatform }),
133
- ...(input.profilingGroupName !== undefined &&
134
- input.profilingGroupName !== null && { profilingGroupName: input.profilingGroupName }),
135
- ...(input.tags !== undefined &&
136
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
128
+ ...(input.computePlatform != null && { computePlatform: input.computePlatform }),
129
+ ...(input.profilingGroupName != null && { profilingGroupName: input.profilingGroupName }),
130
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
137
131
  });
138
132
  return new protocol_http_1.HttpRequest({
139
133
  protocol,
@@ -529,9 +523,8 @@ const serializeAws_restJson1PutPermissionCommand = async (input, context) => {
529
523
  }
530
524
  let body;
531
525
  body = JSON.stringify({
532
- ...(input.principals !== undefined &&
533
- input.principals !== null && { principals: serializeAws_restJson1Principals(input.principals, context) }),
534
- ...(input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId }),
526
+ ...(input.principals != null && { principals: serializeAws_restJson1Principals(input.principals, context) }),
527
+ ...(input.revisionId != null && { revisionId: input.revisionId }),
535
528
  });
536
529
  return new protocol_http_1.HttpRequest({
537
530
  protocol,
@@ -651,8 +644,8 @@ const serializeAws_restJson1SubmitFeedbackCommand = async (input, context) => {
651
644
  }
652
645
  let body;
653
646
  body = JSON.stringify({
654
- ...(input.comment !== undefined && input.comment !== null && { comment: input.comment }),
655
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
647
+ ...(input.comment != null && { comment: input.comment }),
648
+ ...(input.type != null && { type: input.type }),
656
649
  });
657
650
  return new protocol_http_1.HttpRequest({
658
651
  protocol,
@@ -683,8 +676,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
683
676
  }
684
677
  let body;
685
678
  body = JSON.stringify({
686
- ...(input.tags !== undefined &&
687
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
679
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
688
680
  });
689
681
  return new protocol_http_1.HttpRequest({
690
682
  protocol,
@@ -745,8 +737,7 @@ const serializeAws_restJson1UpdateProfilingGroupCommand = async (input, context)
745
737
  }
746
738
  let body;
747
739
  body = JSON.stringify({
748
- ...(input.agentOrchestrationConfig !== undefined &&
749
- input.agentOrchestrationConfig !== null && {
740
+ ...(input.agentOrchestrationConfig != null && {
750
741
  agentOrchestrationConfig: serializeAws_restJson1AgentOrchestrationConfig(input.agentOrchestrationConfig, context),
751
742
  }),
752
743
  });
@@ -1962,18 +1953,16 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1962
1953
  };
1963
1954
  const serializeAws_restJson1AgentOrchestrationConfig = (input, context) => {
1964
1955
  return {
1965
- ...(input.profilingEnabled !== undefined &&
1966
- input.profilingEnabled !== null && { profilingEnabled: input.profilingEnabled }),
1956
+ ...(input.profilingEnabled != null && { profilingEnabled: input.profilingEnabled }),
1967
1957
  };
1968
1958
  };
1969
1959
  const serializeAws_restJson1Channel = (input, context) => {
1970
1960
  return {
1971
- ...(input.eventPublishers !== undefined &&
1972
- input.eventPublishers !== null && {
1961
+ ...(input.eventPublishers != null && {
1973
1962
  eventPublishers: serializeAws_restJson1EventPublishers(input.eventPublishers, context),
1974
1963
  }),
1975
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
1976
- ...(input.uri !== undefined && input.uri !== null && { uri: input.uri }),
1964
+ ...(input.id != null && { id: input.id }),
1965
+ ...(input.uri != null && { uri: input.uri }),
1977
1966
  };
1978
1967
  };
1979
1968
  const serializeAws_restJson1Channels = (input, context) => {
@@ -1998,10 +1987,11 @@ const serializeAws_restJson1EventPublishers = (input, context) => {
1998
1987
  };
1999
1988
  const serializeAws_restJson1FrameMetric = (input, context) => {
2000
1989
  return {
2001
- ...(input.frameName !== undefined && input.frameName !== null && { frameName: input.frameName }),
2002
- ...(input.threadStates !== undefined &&
2003
- input.threadStates !== null && { threadStates: serializeAws_restJson1ThreadStates(input.threadStates, context) }),
2004
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
1990
+ ...(input.frameName != null && { frameName: input.frameName }),
1991
+ ...(input.threadStates != null && {
1992
+ threadStates: serializeAws_restJson1ThreadStates(input.threadStates, context),
1993
+ }),
1994
+ ...(input.type != null && { type: input.type }),
2005
1995
  };
2006
1996
  };
2007
1997
  const serializeAws_restJson1FrameMetrics = (input, context) => {
@@ -2058,7 +2048,7 @@ const serializeAws_restJson1ThreadStates = (input, context) => {
2058
2048
  };
2059
2049
  const deserializeAws_restJson1AgentConfiguration = (output, context) => {
2060
2050
  return {
2061
- agentParameters: output.agentParameters !== undefined && output.agentParameters !== null
2051
+ agentParameters: output.agentParameters != null
2062
2052
  ? deserializeAws_restJson1AgentParameters(output.agentParameters, context)
2063
2053
  : undefined,
2064
2054
  periodInSeconds: (0, smithy_client_1.expectInt32)(output.periodInSeconds),
@@ -2084,9 +2074,7 @@ const deserializeAws_restJson1AgentParameters = (output, context) => {
2084
2074
  const deserializeAws_restJson1AggregatedProfileTime = (output, context) => {
2085
2075
  return {
2086
2076
  period: (0, smithy_client_1.expectString)(output.period),
2087
- start: output.start !== undefined && output.start !== null
2088
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.start))
2089
- : undefined,
2077
+ start: output.start != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.start)) : undefined,
2090
2078
  };
2091
2079
  };
2092
2080
  const deserializeAws_restJson1Anomalies = (output, context) => {
@@ -2102,27 +2090,17 @@ const deserializeAws_restJson1Anomalies = (output, context) => {
2102
2090
  };
2103
2091
  const deserializeAws_restJson1Anomaly = (output, context) => {
2104
2092
  return {
2105
- instances: output.instances !== undefined && output.instances !== null
2106
- ? deserializeAws_restJson1AnomalyInstances(output.instances, context)
2107
- : undefined,
2108
- metric: output.metric !== undefined && output.metric !== null
2109
- ? deserializeAws_restJson1Metric(output.metric, context)
2110
- : undefined,
2093
+ instances: output.instances != null ? deserializeAws_restJson1AnomalyInstances(output.instances, context) : undefined,
2094
+ metric: output.metric != null ? deserializeAws_restJson1Metric(output.metric, context) : undefined,
2111
2095
  reason: (0, smithy_client_1.expectString)(output.reason),
2112
2096
  };
2113
2097
  };
2114
2098
  const deserializeAws_restJson1AnomalyInstance = (output, context) => {
2115
2099
  return {
2116
- endTime: output.endTime !== undefined && output.endTime !== null
2117
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime))
2118
- : undefined,
2100
+ endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime)) : undefined,
2119
2101
  id: (0, smithy_client_1.expectString)(output.id),
2120
- startTime: output.startTime !== undefined && output.startTime !== null
2121
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime))
2122
- : undefined,
2123
- userFeedback: output.userFeedback !== undefined && output.userFeedback !== null
2124
- ? deserializeAws_restJson1UserFeedback(output.userFeedback, context)
2125
- : undefined,
2102
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime)) : undefined,
2103
+ userFeedback: output.userFeedback != null ? deserializeAws_restJson1UserFeedback(output.userFeedback, context) : undefined,
2126
2104
  };
2127
2105
  };
2128
2106
  const deserializeAws_restJson1AnomalyInstances = (output, context) => {
@@ -2138,7 +2116,7 @@ const deserializeAws_restJson1AnomalyInstances = (output, context) => {
2138
2116
  };
2139
2117
  const deserializeAws_restJson1Channel = (output, context) => {
2140
2118
  return {
2141
- eventPublishers: output.eventPublishers !== undefined && output.eventPublishers !== null
2119
+ eventPublishers: output.eventPublishers != null
2142
2120
  ? deserializeAws_restJson1EventPublishers(output.eventPublishers, context)
2143
2121
  : undefined,
2144
2122
  id: (0, smithy_client_1.expectString)(output.id),
@@ -2181,12 +2159,8 @@ const deserializeAws_restJson1FindingsReportSummaries = (output, context) => {
2181
2159
  const deserializeAws_restJson1FindingsReportSummary = (output, context) => {
2182
2160
  return {
2183
2161
  id: (0, smithy_client_1.expectString)(output.id),
2184
- profileEndTime: output.profileEndTime !== undefined && output.profileEndTime !== null
2185
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.profileEndTime))
2186
- : undefined,
2187
- profileStartTime: output.profileStartTime !== undefined && output.profileStartTime !== null
2188
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.profileStartTime))
2189
- : undefined,
2162
+ profileEndTime: output.profileEndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.profileEndTime)) : undefined,
2163
+ profileStartTime: output.profileStartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.profileStartTime)) : undefined,
2190
2164
  profilingGroupName: (0, smithy_client_1.expectString)(output.profilingGroupName),
2191
2165
  totalNumberOfFindings: (0, smithy_client_1.expectInt32)(output.totalNumberOfFindings),
2192
2166
  };
@@ -2194,9 +2168,7 @@ const deserializeAws_restJson1FindingsReportSummary = (output, context) => {
2194
2168
  const deserializeAws_restJson1FrameMetric = (output, context) => {
2195
2169
  return {
2196
2170
  frameName: (0, smithy_client_1.expectString)(output.frameName),
2197
- threadStates: output.threadStates !== undefined && output.threadStates !== null
2198
- ? deserializeAws_restJson1ThreadStates(output.threadStates, context)
2199
- : undefined,
2171
+ threadStates: output.threadStates != null ? deserializeAws_restJson1ThreadStates(output.threadStates, context) : undefined,
2200
2172
  type: (0, smithy_client_1.expectString)(output.type),
2201
2173
  };
2202
2174
  };
@@ -2213,12 +2185,8 @@ const deserializeAws_restJson1FrameMetricData = (output, context) => {
2213
2185
  };
2214
2186
  const deserializeAws_restJson1FrameMetricDatum = (output, context) => {
2215
2187
  return {
2216
- frameMetric: output.frameMetric !== undefined && output.frameMetric !== null
2217
- ? deserializeAws_restJson1FrameMetric(output.frameMetric, context)
2218
- : undefined,
2219
- values: output.values !== undefined && output.values !== null
2220
- ? deserializeAws_restJson1FrameMetricValues(output.values, context)
2221
- : undefined,
2188
+ frameMetric: output.frameMetric != null ? deserializeAws_restJson1FrameMetric(output.frameMetric, context) : undefined,
2189
+ values: output.values != null ? deserializeAws_restJson1FrameMetricValues(output.values, context) : undefined,
2222
2190
  };
2223
2191
  };
2224
2192
  const deserializeAws_restJson1FrameMetricValues = (output, context) => {
@@ -2264,39 +2232,31 @@ const deserializeAws_restJson1Matches = (output, context) => {
2264
2232
  const deserializeAws_restJson1Metric = (output, context) => {
2265
2233
  return {
2266
2234
  frameName: (0, smithy_client_1.expectString)(output.frameName),
2267
- threadStates: output.threadStates !== undefined && output.threadStates !== null
2268
- ? deserializeAws_restJson1Strings(output.threadStates, context)
2269
- : undefined,
2235
+ threadStates: output.threadStates != null ? deserializeAws_restJson1Strings(output.threadStates, context) : undefined,
2270
2236
  type: (0, smithy_client_1.expectString)(output.type),
2271
2237
  };
2272
2238
  };
2273
2239
  const deserializeAws_restJson1NotificationConfiguration = (output, context) => {
2274
2240
  return {
2275
- channels: output.channels !== undefined && output.channels !== null
2276
- ? deserializeAws_restJson1Channels(output.channels, context)
2277
- : undefined,
2241
+ channels: output.channels != null ? deserializeAws_restJson1Channels(output.channels, context) : undefined,
2278
2242
  };
2279
2243
  };
2280
2244
  const deserializeAws_restJson1Pattern = (output, context) => {
2281
2245
  return {
2282
- countersToAggregate: output.countersToAggregate !== undefined && output.countersToAggregate !== null
2246
+ countersToAggregate: output.countersToAggregate != null
2283
2247
  ? deserializeAws_restJson1Strings(output.countersToAggregate, context)
2284
2248
  : undefined,
2285
2249
  description: (0, smithy_client_1.expectString)(output.description),
2286
2250
  id: (0, smithy_client_1.expectString)(output.id),
2287
2251
  name: (0, smithy_client_1.expectString)(output.name),
2288
2252
  resolutionSteps: (0, smithy_client_1.expectString)(output.resolutionSteps),
2289
- targetFrames: output.targetFrames !== undefined && output.targetFrames !== null
2290
- ? deserializeAws_restJson1TargetFrames(output.targetFrames, context)
2291
- : undefined,
2253
+ targetFrames: output.targetFrames != null ? deserializeAws_restJson1TargetFrames(output.targetFrames, context) : undefined,
2292
2254
  thresholdPercent: (0, smithy_client_1.limitedParseDouble)(output.thresholdPercent),
2293
2255
  };
2294
2256
  };
2295
2257
  const deserializeAws_restJson1ProfileTime = (output, context) => {
2296
2258
  return {
2297
- start: output.start !== undefined && output.start !== null
2298
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.start))
2299
- : undefined,
2259
+ start: output.start != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.start)) : undefined,
2300
2260
  };
2301
2261
  };
2302
2262
  const deserializeAws_restJson1ProfileTimes = (output, context) => {
@@ -2312,24 +2272,18 @@ const deserializeAws_restJson1ProfileTimes = (output, context) => {
2312
2272
  };
2313
2273
  const deserializeAws_restJson1ProfilingGroupDescription = (output, context) => {
2314
2274
  return {
2315
- agentOrchestrationConfig: output.agentOrchestrationConfig !== undefined && output.agentOrchestrationConfig !== null
2275
+ agentOrchestrationConfig: output.agentOrchestrationConfig != null
2316
2276
  ? deserializeAws_restJson1AgentOrchestrationConfig(output.agentOrchestrationConfig, context)
2317
2277
  : undefined,
2318
2278
  arn: (0, smithy_client_1.expectString)(output.arn),
2319
2279
  computePlatform: (0, smithy_client_1.expectString)(output.computePlatform),
2320
- createdAt: output.createdAt !== undefined && output.createdAt !== null
2321
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
2322
- : undefined,
2280
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
2323
2281
  name: (0, smithy_client_1.expectString)(output.name),
2324
- profilingStatus: output.profilingStatus !== undefined && output.profilingStatus !== null
2282
+ profilingStatus: output.profilingStatus != null
2325
2283
  ? deserializeAws_restJson1ProfilingStatus(output.profilingStatus, context)
2326
2284
  : undefined,
2327
- tags: output.tags !== undefined && output.tags !== null
2328
- ? deserializeAws_restJson1TagsMap(output.tags, context)
2329
- : undefined,
2330
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
2331
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
2332
- : undefined,
2285
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
2286
+ updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt)) : undefined,
2333
2287
  };
2334
2288
  };
2335
2289
  const deserializeAws_restJson1ProfilingGroupDescriptions = (output, context) => {
@@ -2356,13 +2310,13 @@ const deserializeAws_restJson1ProfilingGroupNames = (output, context) => {
2356
2310
  };
2357
2311
  const deserializeAws_restJson1ProfilingStatus = (output, context) => {
2358
2312
  return {
2359
- latestAgentOrchestratedAt: output.latestAgentOrchestratedAt !== undefined && output.latestAgentOrchestratedAt !== null
2313
+ latestAgentOrchestratedAt: output.latestAgentOrchestratedAt != null
2360
2314
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.latestAgentOrchestratedAt))
2361
2315
  : undefined,
2362
- latestAgentProfileReportedAt: output.latestAgentProfileReportedAt !== undefined && output.latestAgentProfileReportedAt !== null
2316
+ latestAgentProfileReportedAt: output.latestAgentProfileReportedAt != null
2363
2317
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.latestAgentProfileReportedAt))
2364
2318
  : undefined,
2365
- latestAggregatedProfile: output.latestAggregatedProfile !== undefined && output.latestAggregatedProfile !== null
2319
+ latestAggregatedProfile: output.latestAggregatedProfile != null
2366
2320
  ? deserializeAws_restJson1AggregatedProfileTime(output.latestAggregatedProfile, context)
2367
2321
  : undefined,
2368
2322
  };
@@ -2371,18 +2325,10 @@ const deserializeAws_restJson1Recommendation = (output, context) => {
2371
2325
  return {
2372
2326
  allMatchesCount: (0, smithy_client_1.expectInt32)(output.allMatchesCount),
2373
2327
  allMatchesSum: (0, smithy_client_1.limitedParseDouble)(output.allMatchesSum),
2374
- endTime: output.endTime !== undefined && output.endTime !== null
2375
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime))
2376
- : undefined,
2377
- pattern: output.pattern !== undefined && output.pattern !== null
2378
- ? deserializeAws_restJson1Pattern(output.pattern, context)
2379
- : undefined,
2380
- startTime: output.startTime !== undefined && output.startTime !== null
2381
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime))
2382
- : undefined,
2383
- topMatches: output.topMatches !== undefined && output.topMatches !== null
2384
- ? deserializeAws_restJson1Matches(output.topMatches, context)
2385
- : undefined,
2328
+ endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime)) : undefined,
2329
+ pattern: output.pattern != null ? deserializeAws_restJson1Pattern(output.pattern, context) : undefined,
2330
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime)) : undefined,
2331
+ topMatches: output.topMatches != null ? deserializeAws_restJson1Matches(output.topMatches, context) : undefined,
2386
2332
  };
2387
2333
  };
2388
2334
  const deserializeAws_restJson1Recommendations = (output, context) => {
@@ -2453,9 +2399,7 @@ const deserializeAws_restJson1ThreadStates = (output, context) => {
2453
2399
  };
2454
2400
  const deserializeAws_restJson1TimestampStructure = (output, context) => {
2455
2401
  return {
2456
- value: output.value !== undefined && output.value !== null
2457
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.value))
2458
- : undefined,
2402
+ value: output.value != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.value)) : undefined,
2459
2403
  };
2460
2404
  };
2461
2405
  const deserializeAws_restJson1UnprocessedEndTimeMap = (output, context) => {
@@ -2505,6 +2449,9 @@ const loadRestJsonErrorCode = (output, data) => {
2505
2449
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2506
2450
  const sanitizeErrorCode = (rawValue) => {
2507
2451
  let cleanValue = rawValue;
2452
+ if (typeof cleanValue === "number") {
2453
+ cleanValue = cleanValue.toString();
2454
+ }
2508
2455
  if (cleanValue.indexOf(":") >= 0) {
2509
2456
  cleanValue = cleanValue.split(":")[0];
2510
2457
  }
@@ -25,8 +25,7 @@ export var serializeAws_restJson1AddNotificationChannelsCommand = function (inpu
25
25
  else {
26
26
  throw new Error("No value provided for input HTTP label: profilingGroupName.");
27
27
  }
28
- body = JSON.stringify(__assign({}, (input.channels !== undefined &&
29
- input.channels !== null && { channels: serializeAws_restJson1Channels(input.channels, context) })));
28
+ body = JSON.stringify(__assign({}, (input.channels != null && { channels: serializeAws_restJson1Channels(input.channels, context) })));
30
29
  return [2, new __HttpRequest({
31
30
  protocol: protocol,
32
31
  hostname: hostname,
@@ -62,8 +61,9 @@ export var serializeAws_restJson1BatchGetFrameMetricDataCommand = function (inpu
62
61
  throw new Error("No value provided for input HTTP label: profilingGroupName.");
63
62
  }
64
63
  query = __assign(__assign(__assign(__assign({}, (input.startTime !== undefined && { startTime: (input.startTime.toISOString().split(".")[0] + "Z").toString() })), (input.endTime !== undefined && { endTime: (input.endTime.toISOString().split(".")[0] + "Z").toString() })), (input.period !== undefined && { period: input.period })), (input.targetResolution !== undefined && { targetResolution: input.targetResolution }));
65
- body = JSON.stringify(__assign({}, (input.frameMetrics !== undefined &&
66
- input.frameMetrics !== null && { frameMetrics: serializeAws_restJson1FrameMetrics(input.frameMetrics, context) })));
64
+ body = JSON.stringify(__assign({}, (input.frameMetrics != null && {
65
+ frameMetrics: serializeAws_restJson1FrameMetrics(input.frameMetrics, context),
66
+ })));
67
67
  return [2, new __HttpRequest({
68
68
  protocol: protocol,
69
69
  hostname: hostname,
@@ -99,9 +99,7 @@ export var serializeAws_restJson1ConfigureAgentCommand = function (input, contex
99
99
  else {
100
100
  throw new Error("No value provided for input HTTP label: profilingGroupName.");
101
101
  }
102
- body = JSON.stringify(__assign(__assign({}, (input.fleetInstanceId !== undefined &&
103
- input.fleetInstanceId !== null && { fleetInstanceId: input.fleetInstanceId })), (input.metadata !== undefined &&
104
- input.metadata !== null && { metadata: serializeAws_restJson1Metadata(input.metadata, context) })));
102
+ body = JSON.stringify(__assign(__assign({}, (input.fleetInstanceId != null && { fleetInstanceId: input.fleetInstanceId })), (input.metadata != null && { metadata: serializeAws_restJson1Metadata(input.metadata, context) })));
105
103
  return [2, new __HttpRequest({
106
104
  protocol: protocol,
107
105
  hostname: hostname,
@@ -126,13 +124,9 @@ export var serializeAws_restJson1CreateProfilingGroupCommand = function (input,
126
124
  };
127
125
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/profilingGroups";
128
126
  query = __assign({}, (input.clientToken !== undefined && { clientToken: input.clientToken }));
129
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.agentOrchestrationConfig !== undefined &&
130
- input.agentOrchestrationConfig !== null && {
127
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.agentOrchestrationConfig != null && {
131
128
  agentOrchestrationConfig: serializeAws_restJson1AgentOrchestrationConfig(input.agentOrchestrationConfig, context),
132
- })), (input.computePlatform !== undefined &&
133
- input.computePlatform !== null && { computePlatform: input.computePlatform })), (input.profilingGroupName !== undefined &&
134
- input.profilingGroupName !== null && { profilingGroupName: input.profilingGroupName })), (input.tags !== undefined &&
135
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
129
+ })), (input.computePlatform != null && { computePlatform: input.computePlatform })), (input.profilingGroupName != null && { profilingGroupName: input.profilingGroupName })), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
136
130
  return [2, new __HttpRequest({
137
131
  protocol: protocol,
138
132
  hostname: hostname,
@@ -554,8 +548,7 @@ export var serializeAws_restJson1PutPermissionCommand = function (input, context
554
548
  else {
555
549
  throw new Error("No value provided for input HTTP label: actionGroup.");
556
550
  }
557
- body = JSON.stringify(__assign(__assign({}, (input.principals !== undefined &&
558
- input.principals !== null && { principals: serializeAws_restJson1Principals(input.principals, context) })), (input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId })));
551
+ body = JSON.stringify(__assign(__assign({}, (input.principals != null && { principals: serializeAws_restJson1Principals(input.principals, context) })), (input.revisionId != null && { revisionId: input.revisionId })));
559
552
  return [2, new __HttpRequest({
560
553
  protocol: protocol,
561
554
  hostname: hostname,
@@ -686,7 +679,7 @@ export var serializeAws_restJson1SubmitFeedbackCommand = function (input, contex
686
679
  else {
687
680
  throw new Error("No value provided for input HTTP label: anomalyInstanceId.");
688
681
  }
689
- body = JSON.stringify(__assign(__assign({}, (input.comment !== undefined && input.comment !== null && { comment: input.comment })), (input.type !== undefined && input.type !== null && { type: input.type })));
682
+ body = JSON.stringify(__assign(__assign({}, (input.comment != null && { comment: input.comment })), (input.type != null && { type: input.type })));
690
683
  return [2, new __HttpRequest({
691
684
  protocol: protocol,
692
685
  hostname: hostname,
@@ -720,8 +713,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
720
713
  else {
721
714
  throw new Error("No value provided for input HTTP label: resourceArn.");
722
715
  }
723
- body = JSON.stringify(__assign({}, (input.tags !== undefined &&
724
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
716
+ body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
725
717
  return [2, new __HttpRequest({
726
718
  protocol: protocol,
727
719
  hostname: hostname,
@@ -788,8 +780,7 @@ export var serializeAws_restJson1UpdateProfilingGroupCommand = function (input,
788
780
  else {
789
781
  throw new Error("No value provided for input HTTP label: profilingGroupName.");
790
782
  }
791
- body = JSON.stringify(__assign({}, (input.agentOrchestrationConfig !== undefined &&
792
- input.agentOrchestrationConfig !== null && {
783
+ body = JSON.stringify(__assign({}, (input.agentOrchestrationConfig != null && {
793
784
  agentOrchestrationConfig: serializeAws_restJson1AgentOrchestrationConfig(input.agentOrchestrationConfig, context),
794
785
  })));
795
786
  return [2, new __HttpRequest({
@@ -2494,14 +2485,12 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
2494
2485
  });
2495
2486
  }); };
2496
2487
  var serializeAws_restJson1AgentOrchestrationConfig = function (input, context) {
2497
- return __assign({}, (input.profilingEnabled !== undefined &&
2498
- input.profilingEnabled !== null && { profilingEnabled: input.profilingEnabled }));
2488
+ return __assign({}, (input.profilingEnabled != null && { profilingEnabled: input.profilingEnabled }));
2499
2489
  };
2500
2490
  var serializeAws_restJson1Channel = function (input, context) {
2501
- return __assign(__assign(__assign({}, (input.eventPublishers !== undefined &&
2502
- input.eventPublishers !== null && {
2491
+ return __assign(__assign(__assign({}, (input.eventPublishers != null && {
2503
2492
  eventPublishers: serializeAws_restJson1EventPublishers(input.eventPublishers, context),
2504
- })), (input.id !== undefined && input.id !== null && { id: input.id })), (input.uri !== undefined && input.uri !== null && { uri: input.uri }));
2493
+ })), (input.id != null && { id: input.id })), (input.uri != null && { uri: input.uri }));
2505
2494
  };
2506
2495
  var serializeAws_restJson1Channels = function (input, context) {
2507
2496
  return input
@@ -2524,8 +2513,9 @@ var serializeAws_restJson1EventPublishers = function (input, context) {
2524
2513
  });
2525
2514
  };
2526
2515
  var serializeAws_restJson1FrameMetric = function (input, context) {
2527
- return __assign(__assign(__assign({}, (input.frameName !== undefined && input.frameName !== null && { frameName: input.frameName })), (input.threadStates !== undefined &&
2528
- input.threadStates !== null && { threadStates: serializeAws_restJson1ThreadStates(input.threadStates, context) })), (input.type !== undefined && input.type !== null && { type: input.type }));
2516
+ return __assign(__assign(__assign({}, (input.frameName != null && { frameName: input.frameName })), (input.threadStates != null && {
2517
+ threadStates: serializeAws_restJson1ThreadStates(input.threadStates, context),
2518
+ })), (input.type != null && { type: input.type }));
2529
2519
  };
2530
2520
  var serializeAws_restJson1FrameMetrics = function (input, context) {
2531
2521
  return input
@@ -2579,7 +2569,7 @@ var serializeAws_restJson1ThreadStates = function (input, context) {
2579
2569
  };
2580
2570
  var deserializeAws_restJson1AgentConfiguration = function (output, context) {
2581
2571
  return {
2582
- agentParameters: output.agentParameters !== undefined && output.agentParameters !== null
2572
+ agentParameters: output.agentParameters != null
2583
2573
  ? deserializeAws_restJson1AgentParameters(output.agentParameters, context)
2584
2574
  : undefined,
2585
2575
  periodInSeconds: __expectInt32(output.periodInSeconds),
@@ -2604,9 +2594,7 @@ var deserializeAws_restJson1AgentParameters = function (output, context) {
2604
2594
  var deserializeAws_restJson1AggregatedProfileTime = function (output, context) {
2605
2595
  return {
2606
2596
  period: __expectString(output.period),
2607
- start: output.start !== undefined && output.start !== null
2608
- ? __expectNonNull(__parseRfc3339DateTime(output.start))
2609
- : undefined,
2597
+ start: output.start != null ? __expectNonNull(__parseRfc3339DateTime(output.start)) : undefined,
2610
2598
  };
2611
2599
  };
2612
2600
  var deserializeAws_restJson1Anomalies = function (output, context) {
@@ -2622,27 +2610,17 @@ var deserializeAws_restJson1Anomalies = function (output, context) {
2622
2610
  };
2623
2611
  var deserializeAws_restJson1Anomaly = function (output, context) {
2624
2612
  return {
2625
- instances: output.instances !== undefined && output.instances !== null
2626
- ? deserializeAws_restJson1AnomalyInstances(output.instances, context)
2627
- : undefined,
2628
- metric: output.metric !== undefined && output.metric !== null
2629
- ? deserializeAws_restJson1Metric(output.metric, context)
2630
- : undefined,
2613
+ instances: output.instances != null ? deserializeAws_restJson1AnomalyInstances(output.instances, context) : undefined,
2614
+ metric: output.metric != null ? deserializeAws_restJson1Metric(output.metric, context) : undefined,
2631
2615
  reason: __expectString(output.reason),
2632
2616
  };
2633
2617
  };
2634
2618
  var deserializeAws_restJson1AnomalyInstance = function (output, context) {
2635
2619
  return {
2636
- endTime: output.endTime !== undefined && output.endTime !== null
2637
- ? __expectNonNull(__parseRfc3339DateTime(output.endTime))
2638
- : undefined,
2620
+ endTime: output.endTime != null ? __expectNonNull(__parseRfc3339DateTime(output.endTime)) : undefined,
2639
2621
  id: __expectString(output.id),
2640
- startTime: output.startTime !== undefined && output.startTime !== null
2641
- ? __expectNonNull(__parseRfc3339DateTime(output.startTime))
2642
- : undefined,
2643
- userFeedback: output.userFeedback !== undefined && output.userFeedback !== null
2644
- ? deserializeAws_restJson1UserFeedback(output.userFeedback, context)
2645
- : undefined,
2622
+ startTime: output.startTime != null ? __expectNonNull(__parseRfc3339DateTime(output.startTime)) : undefined,
2623
+ userFeedback: output.userFeedback != null ? deserializeAws_restJson1UserFeedback(output.userFeedback, context) : undefined,
2646
2624
  };
2647
2625
  };
2648
2626
  var deserializeAws_restJson1AnomalyInstances = function (output, context) {
@@ -2658,7 +2636,7 @@ var deserializeAws_restJson1AnomalyInstances = function (output, context) {
2658
2636
  };
2659
2637
  var deserializeAws_restJson1Channel = function (output, context) {
2660
2638
  return {
2661
- eventPublishers: output.eventPublishers !== undefined && output.eventPublishers !== null
2639
+ eventPublishers: output.eventPublishers != null
2662
2640
  ? deserializeAws_restJson1EventPublishers(output.eventPublishers, context)
2663
2641
  : undefined,
2664
2642
  id: __expectString(output.id),
@@ -2701,12 +2679,8 @@ var deserializeAws_restJson1FindingsReportSummaries = function (output, context)
2701
2679
  var deserializeAws_restJson1FindingsReportSummary = function (output, context) {
2702
2680
  return {
2703
2681
  id: __expectString(output.id),
2704
- profileEndTime: output.profileEndTime !== undefined && output.profileEndTime !== null
2705
- ? __expectNonNull(__parseRfc3339DateTime(output.profileEndTime))
2706
- : undefined,
2707
- profileStartTime: output.profileStartTime !== undefined && output.profileStartTime !== null
2708
- ? __expectNonNull(__parseRfc3339DateTime(output.profileStartTime))
2709
- : undefined,
2682
+ profileEndTime: output.profileEndTime != null ? __expectNonNull(__parseRfc3339DateTime(output.profileEndTime)) : undefined,
2683
+ profileStartTime: output.profileStartTime != null ? __expectNonNull(__parseRfc3339DateTime(output.profileStartTime)) : undefined,
2710
2684
  profilingGroupName: __expectString(output.profilingGroupName),
2711
2685
  totalNumberOfFindings: __expectInt32(output.totalNumberOfFindings),
2712
2686
  };
@@ -2714,9 +2688,7 @@ var deserializeAws_restJson1FindingsReportSummary = function (output, context) {
2714
2688
  var deserializeAws_restJson1FrameMetric = function (output, context) {
2715
2689
  return {
2716
2690
  frameName: __expectString(output.frameName),
2717
- threadStates: output.threadStates !== undefined && output.threadStates !== null
2718
- ? deserializeAws_restJson1ThreadStates(output.threadStates, context)
2719
- : undefined,
2691
+ threadStates: output.threadStates != null ? deserializeAws_restJson1ThreadStates(output.threadStates, context) : undefined,
2720
2692
  type: __expectString(output.type),
2721
2693
  };
2722
2694
  };
@@ -2733,12 +2705,8 @@ var deserializeAws_restJson1FrameMetricData = function (output, context) {
2733
2705
  };
2734
2706
  var deserializeAws_restJson1FrameMetricDatum = function (output, context) {
2735
2707
  return {
2736
- frameMetric: output.frameMetric !== undefined && output.frameMetric !== null
2737
- ? deserializeAws_restJson1FrameMetric(output.frameMetric, context)
2738
- : undefined,
2739
- values: output.values !== undefined && output.values !== null
2740
- ? deserializeAws_restJson1FrameMetricValues(output.values, context)
2741
- : undefined,
2708
+ frameMetric: output.frameMetric != null ? deserializeAws_restJson1FrameMetric(output.frameMetric, context) : undefined,
2709
+ values: output.values != null ? deserializeAws_restJson1FrameMetricValues(output.values, context) : undefined,
2742
2710
  };
2743
2711
  };
2744
2712
  var deserializeAws_restJson1FrameMetricValues = function (output, context) {
@@ -2784,39 +2752,31 @@ var deserializeAws_restJson1Matches = function (output, context) {
2784
2752
  var deserializeAws_restJson1Metric = function (output, context) {
2785
2753
  return {
2786
2754
  frameName: __expectString(output.frameName),
2787
- threadStates: output.threadStates !== undefined && output.threadStates !== null
2788
- ? deserializeAws_restJson1Strings(output.threadStates, context)
2789
- : undefined,
2755
+ threadStates: output.threadStates != null ? deserializeAws_restJson1Strings(output.threadStates, context) : undefined,
2790
2756
  type: __expectString(output.type),
2791
2757
  };
2792
2758
  };
2793
2759
  var deserializeAws_restJson1NotificationConfiguration = function (output, context) {
2794
2760
  return {
2795
- channels: output.channels !== undefined && output.channels !== null
2796
- ? deserializeAws_restJson1Channels(output.channels, context)
2797
- : undefined,
2761
+ channels: output.channels != null ? deserializeAws_restJson1Channels(output.channels, context) : undefined,
2798
2762
  };
2799
2763
  };
2800
2764
  var deserializeAws_restJson1Pattern = function (output, context) {
2801
2765
  return {
2802
- countersToAggregate: output.countersToAggregate !== undefined && output.countersToAggregate !== null
2766
+ countersToAggregate: output.countersToAggregate != null
2803
2767
  ? deserializeAws_restJson1Strings(output.countersToAggregate, context)
2804
2768
  : undefined,
2805
2769
  description: __expectString(output.description),
2806
2770
  id: __expectString(output.id),
2807
2771
  name: __expectString(output.name),
2808
2772
  resolutionSteps: __expectString(output.resolutionSteps),
2809
- targetFrames: output.targetFrames !== undefined && output.targetFrames !== null
2810
- ? deserializeAws_restJson1TargetFrames(output.targetFrames, context)
2811
- : undefined,
2773
+ targetFrames: output.targetFrames != null ? deserializeAws_restJson1TargetFrames(output.targetFrames, context) : undefined,
2812
2774
  thresholdPercent: __limitedParseDouble(output.thresholdPercent),
2813
2775
  };
2814
2776
  };
2815
2777
  var deserializeAws_restJson1ProfileTime = function (output, context) {
2816
2778
  return {
2817
- start: output.start !== undefined && output.start !== null
2818
- ? __expectNonNull(__parseRfc3339DateTime(output.start))
2819
- : undefined,
2779
+ start: output.start != null ? __expectNonNull(__parseRfc3339DateTime(output.start)) : undefined,
2820
2780
  };
2821
2781
  };
2822
2782
  var deserializeAws_restJson1ProfileTimes = function (output, context) {
@@ -2832,24 +2792,18 @@ var deserializeAws_restJson1ProfileTimes = function (output, context) {
2832
2792
  };
2833
2793
  var deserializeAws_restJson1ProfilingGroupDescription = function (output, context) {
2834
2794
  return {
2835
- agentOrchestrationConfig: output.agentOrchestrationConfig !== undefined && output.agentOrchestrationConfig !== null
2795
+ agentOrchestrationConfig: output.agentOrchestrationConfig != null
2836
2796
  ? deserializeAws_restJson1AgentOrchestrationConfig(output.agentOrchestrationConfig, context)
2837
2797
  : undefined,
2838
2798
  arn: __expectString(output.arn),
2839
2799
  computePlatform: __expectString(output.computePlatform),
2840
- createdAt: output.createdAt !== undefined && output.createdAt !== null
2841
- ? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
2842
- : undefined,
2800
+ createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
2843
2801
  name: __expectString(output.name),
2844
- profilingStatus: output.profilingStatus !== undefined && output.profilingStatus !== null
2802
+ profilingStatus: output.profilingStatus != null
2845
2803
  ? deserializeAws_restJson1ProfilingStatus(output.profilingStatus, context)
2846
2804
  : undefined,
2847
- tags: output.tags !== undefined && output.tags !== null
2848
- ? deserializeAws_restJson1TagsMap(output.tags, context)
2849
- : undefined,
2850
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
2851
- ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
2852
- : undefined,
2805
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
2806
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt)) : undefined,
2853
2807
  };
2854
2808
  };
2855
2809
  var deserializeAws_restJson1ProfilingGroupDescriptions = function (output, context) {
@@ -2876,13 +2830,13 @@ var deserializeAws_restJson1ProfilingGroupNames = function (output, context) {
2876
2830
  };
2877
2831
  var deserializeAws_restJson1ProfilingStatus = function (output, context) {
2878
2832
  return {
2879
- latestAgentOrchestratedAt: output.latestAgentOrchestratedAt !== undefined && output.latestAgentOrchestratedAt !== null
2833
+ latestAgentOrchestratedAt: output.latestAgentOrchestratedAt != null
2880
2834
  ? __expectNonNull(__parseRfc3339DateTime(output.latestAgentOrchestratedAt))
2881
2835
  : undefined,
2882
- latestAgentProfileReportedAt: output.latestAgentProfileReportedAt !== undefined && output.latestAgentProfileReportedAt !== null
2836
+ latestAgentProfileReportedAt: output.latestAgentProfileReportedAt != null
2883
2837
  ? __expectNonNull(__parseRfc3339DateTime(output.latestAgentProfileReportedAt))
2884
2838
  : undefined,
2885
- latestAggregatedProfile: output.latestAggregatedProfile !== undefined && output.latestAggregatedProfile !== null
2839
+ latestAggregatedProfile: output.latestAggregatedProfile != null
2886
2840
  ? deserializeAws_restJson1AggregatedProfileTime(output.latestAggregatedProfile, context)
2887
2841
  : undefined,
2888
2842
  };
@@ -2891,18 +2845,10 @@ var deserializeAws_restJson1Recommendation = function (output, context) {
2891
2845
  return {
2892
2846
  allMatchesCount: __expectInt32(output.allMatchesCount),
2893
2847
  allMatchesSum: __limitedParseDouble(output.allMatchesSum),
2894
- endTime: output.endTime !== undefined && output.endTime !== null
2895
- ? __expectNonNull(__parseRfc3339DateTime(output.endTime))
2896
- : undefined,
2897
- pattern: output.pattern !== undefined && output.pattern !== null
2898
- ? deserializeAws_restJson1Pattern(output.pattern, context)
2899
- : undefined,
2900
- startTime: output.startTime !== undefined && output.startTime !== null
2901
- ? __expectNonNull(__parseRfc3339DateTime(output.startTime))
2902
- : undefined,
2903
- topMatches: output.topMatches !== undefined && output.topMatches !== null
2904
- ? deserializeAws_restJson1Matches(output.topMatches, context)
2905
- : undefined,
2848
+ endTime: output.endTime != null ? __expectNonNull(__parseRfc3339DateTime(output.endTime)) : undefined,
2849
+ pattern: output.pattern != null ? deserializeAws_restJson1Pattern(output.pattern, context) : undefined,
2850
+ startTime: output.startTime != null ? __expectNonNull(__parseRfc3339DateTime(output.startTime)) : undefined,
2851
+ topMatches: output.topMatches != null ? deserializeAws_restJson1Matches(output.topMatches, context) : undefined,
2906
2852
  };
2907
2853
  };
2908
2854
  var deserializeAws_restJson1Recommendations = function (output, context) {
@@ -2972,9 +2918,7 @@ var deserializeAws_restJson1ThreadStates = function (output, context) {
2972
2918
  };
2973
2919
  var deserializeAws_restJson1TimestampStructure = function (output, context) {
2974
2920
  return {
2975
- value: output.value !== undefined && output.value !== null
2976
- ? __expectNonNull(__parseRfc3339DateTime(output.value))
2977
- : undefined,
2921
+ value: output.value != null ? __expectNonNull(__parseRfc3339DateTime(output.value)) : undefined,
2978
2922
  };
2979
2923
  };
2980
2924
  var deserializeAws_restJson1UnprocessedEndTimeMap = function (output, context) {
@@ -3030,6 +2974,9 @@ var loadRestJsonErrorCode = function (output, data) {
3030
2974
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
3031
2975
  var sanitizeErrorCode = function (rawValue) {
3032
2976
  var cleanValue = rawValue;
2977
+ if (typeof cleanValue === "number") {
2978
+ cleanValue = cleanValue.toString();
2979
+ }
3033
2980
  if (cleanValue.indexOf(":") >= 0) {
3034
2981
  cleanValue = cleanValue.split(":")[0];
3035
2982
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codeguruprofiler",
3
3
  "description": "AWS SDK for JavaScript Codeguruprofiler Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.130.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1",