@aws-sdk/client-rum 3.121.0 → 3.127.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,14 @@
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.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-rum
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
15
 
8
16
 
@@ -13,14 +13,13 @@ const serializeAws_restJson1CreateAppMonitorCommand = async (input, context) =>
13
13
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/appmonitor";
14
14
  let body;
15
15
  body = JSON.stringify({
16
- ...(input.AppMonitorConfiguration !== undefined &&
17
- input.AppMonitorConfiguration !== null && {
16
+ ...(input.AppMonitorConfiguration != null && {
18
17
  AppMonitorConfiguration: serializeAws_restJson1AppMonitorConfiguration(input.AppMonitorConfiguration, context),
19
18
  }),
20
- ...(input.CwLogEnabled !== undefined && input.CwLogEnabled !== null && { CwLogEnabled: input.CwLogEnabled }),
21
- ...(input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain }),
22
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
23
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
19
+ ...(input.CwLogEnabled != null && { CwLogEnabled: input.CwLogEnabled }),
20
+ ...(input.Domain != null && { Domain: input.Domain }),
21
+ ...(input.Name != null && { Name: input.Name }),
22
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
24
23
  });
25
24
  return new protocol_http_1.HttpRequest({
26
25
  protocol,
@@ -103,12 +102,10 @@ const serializeAws_restJson1GetAppMonitorDataCommand = async (input, context) =>
103
102
  }
104
103
  let body;
105
104
  body = JSON.stringify({
106
- ...(input.Filters !== undefined &&
107
- input.Filters !== null && { Filters: serializeAws_restJson1QueryFilters(input.Filters, context) }),
108
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
109
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
110
- ...(input.TimeRange !== undefined &&
111
- input.TimeRange !== null && { TimeRange: serializeAws_restJson1TimeRange(input.TimeRange, context) }),
105
+ ...(input.Filters != null && { Filters: serializeAws_restJson1QueryFilters(input.Filters, context) }),
106
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
107
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
108
+ ...(input.TimeRange != null && { TimeRange: serializeAws_restJson1TimeRange(input.TimeRange, context) }),
112
109
  });
113
110
  return new protocol_http_1.HttpRequest({
114
111
  protocol,
@@ -186,15 +183,12 @@ const serializeAws_restJson1PutRumEventsCommand = async (input, context) => {
186
183
  }
187
184
  let body;
188
185
  body = JSON.stringify({
189
- ...(input.AppMonitorDetails !== undefined &&
190
- input.AppMonitorDetails !== null && {
186
+ ...(input.AppMonitorDetails != null && {
191
187
  AppMonitorDetails: serializeAws_restJson1AppMonitorDetails(input.AppMonitorDetails, context),
192
188
  }),
193
- ...(input.BatchId !== undefined && input.BatchId !== null && { BatchId: input.BatchId }),
194
- ...(input.RumEvents !== undefined &&
195
- input.RumEvents !== null && { RumEvents: serializeAws_restJson1RumEventList(input.RumEvents, context) }),
196
- ...(input.UserDetails !== undefined &&
197
- input.UserDetails !== null && { UserDetails: serializeAws_restJson1UserDetails(input.UserDetails, context) }),
189
+ ...(input.BatchId != null && { BatchId: input.BatchId }),
190
+ ...(input.RumEvents != null && { RumEvents: serializeAws_restJson1RumEventList(input.RumEvents, context) }),
191
+ ...(input.UserDetails != null && { UserDetails: serializeAws_restJson1UserDetails(input.UserDetails, context) }),
198
192
  });
199
193
  let { hostname: resolvedHostname } = await context.endpoint();
200
194
  if (context.disableHostPrefix !== true) {
@@ -232,7 +226,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
232
226
  }
233
227
  let body;
234
228
  body = JSON.stringify({
235
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
229
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
236
230
  });
237
231
  return new protocol_http_1.HttpRequest({
238
232
  protocol,
@@ -293,12 +287,11 @@ const serializeAws_restJson1UpdateAppMonitorCommand = async (input, context) =>
293
287
  }
294
288
  let body;
295
289
  body = JSON.stringify({
296
- ...(input.AppMonitorConfiguration !== undefined &&
297
- input.AppMonitorConfiguration !== null && {
290
+ ...(input.AppMonitorConfiguration != null && {
298
291
  AppMonitorConfiguration: serializeAws_restJson1AppMonitorConfiguration(input.AppMonitorConfiguration, context),
299
292
  }),
300
- ...(input.CwLogEnabled !== undefined && input.CwLogEnabled !== null && { CwLogEnabled: input.CwLogEnabled }),
301
- ...(input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain }),
293
+ ...(input.CwLogEnabled != null && { CwLogEnabled: input.CwLogEnabled }),
294
+ ...(input.Domain != null && { Domain: input.Domain }),
302
295
  });
303
296
  return new protocol_http_1.HttpRequest({
304
297
  protocol,
@@ -901,30 +894,24 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
901
894
  };
902
895
  const serializeAws_restJson1AppMonitorConfiguration = (input, context) => {
903
896
  return {
904
- ...(input.AllowCookies !== undefined && input.AllowCookies !== null && { AllowCookies: input.AllowCookies }),
905
- ...(input.EnableXRay !== undefined && input.EnableXRay !== null && { EnableXRay: input.EnableXRay }),
906
- ...(input.ExcludedPages !== undefined &&
907
- input.ExcludedPages !== null && { ExcludedPages: serializeAws_restJson1Pages(input.ExcludedPages, context) }),
908
- ...(input.FavoritePages !== undefined &&
909
- input.FavoritePages !== null && {
897
+ ...(input.AllowCookies != null && { AllowCookies: input.AllowCookies }),
898
+ ...(input.EnableXRay != null && { EnableXRay: input.EnableXRay }),
899
+ ...(input.ExcludedPages != null && { ExcludedPages: serializeAws_restJson1Pages(input.ExcludedPages, context) }),
900
+ ...(input.FavoritePages != null && {
910
901
  FavoritePages: serializeAws_restJson1FavoritePages(input.FavoritePages, context),
911
902
  }),
912
- ...(input.GuestRoleArn !== undefined && input.GuestRoleArn !== null && { GuestRoleArn: input.GuestRoleArn }),
913
- ...(input.IdentityPoolId !== undefined &&
914
- input.IdentityPoolId !== null && { IdentityPoolId: input.IdentityPoolId }),
915
- ...(input.IncludedPages !== undefined &&
916
- input.IncludedPages !== null && { IncludedPages: serializeAws_restJson1Pages(input.IncludedPages, context) }),
917
- ...(input.SessionSampleRate !== undefined &&
918
- input.SessionSampleRate !== null && { SessionSampleRate: (0, smithy_client_1.serializeFloat)(input.SessionSampleRate) }),
919
- ...(input.Telemetries !== undefined &&
920
- input.Telemetries !== null && { Telemetries: serializeAws_restJson1Telemetries(input.Telemetries, context) }),
903
+ ...(input.GuestRoleArn != null && { GuestRoleArn: input.GuestRoleArn }),
904
+ ...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
905
+ ...(input.IncludedPages != null && { IncludedPages: serializeAws_restJson1Pages(input.IncludedPages, context) }),
906
+ ...(input.SessionSampleRate != null && { SessionSampleRate: (0, smithy_client_1.serializeFloat)(input.SessionSampleRate) }),
907
+ ...(input.Telemetries != null && { Telemetries: serializeAws_restJson1Telemetries(input.Telemetries, context) }),
921
908
  };
922
909
  };
923
910
  const serializeAws_restJson1AppMonitorDetails = (input, context) => {
924
911
  return {
925
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
926
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
927
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
912
+ ...(input.id != null && { id: input.id }),
913
+ ...(input.name != null && { name: input.name }),
914
+ ...(input.version != null && { version: input.version }),
928
915
  };
929
916
  };
930
917
  const serializeAws_restJson1FavoritePages = (input, context) => {
@@ -949,9 +936,8 @@ const serializeAws_restJson1Pages = (input, context) => {
949
936
  };
950
937
  const serializeAws_restJson1QueryFilter = (input, context) => {
951
938
  return {
952
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
953
- ...(input.Values !== undefined &&
954
- input.Values !== null && { Values: serializeAws_restJson1QueryFilterValueList(input.Values, context) }),
939
+ ...(input.Name != null && { Name: input.Name }),
940
+ ...(input.Values != null && { Values: serializeAws_restJson1QueryFilterValueList(input.Values, context) }),
955
941
  };
956
942
  };
957
943
  const serializeAws_restJson1QueryFilters = (input, context) => {
@@ -976,14 +962,11 @@ const serializeAws_restJson1QueryFilterValueList = (input, context) => {
976
962
  };
977
963
  const serializeAws_restJson1RumEvent = (input, context) => {
978
964
  return {
979
- ...(input.details !== undefined &&
980
- input.details !== null && { details: smithy_client_1.LazyJsonString.fromObject(input.details) }),
981
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
982
- ...(input.metadata !== undefined &&
983
- input.metadata !== null && { metadata: smithy_client_1.LazyJsonString.fromObject(input.metadata) }),
984
- ...(input.timestamp !== undefined &&
985
- input.timestamp !== null && { timestamp: Math.round(input.timestamp.getTime() / 1000) }),
986
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
965
+ ...(input.details != null && { details: smithy_client_1.LazyJsonString.fromObject(input.details) }),
966
+ ...(input.id != null && { id: input.id }),
967
+ ...(input.metadata != null && { metadata: smithy_client_1.LazyJsonString.fromObject(input.metadata) }),
968
+ ...(input.timestamp != null && { timestamp: Math.round(input.timestamp.getTime() / 1000) }),
969
+ ...(input.type != null && { type: input.type }),
987
970
  };
988
971
  };
989
972
  const serializeAws_restJson1RumEventList = (input, context) => {
@@ -1019,54 +1002,42 @@ const serializeAws_restJson1Telemetries = (input, context) => {
1019
1002
  };
1020
1003
  const serializeAws_restJson1TimeRange = (input, context) => {
1021
1004
  return {
1022
- ...(input.After !== undefined && input.After !== null && { After: input.After }),
1023
- ...(input.Before !== undefined && input.Before !== null && { Before: input.Before }),
1005
+ ...(input.After != null && { After: input.After }),
1006
+ ...(input.Before != null && { Before: input.Before }),
1024
1007
  };
1025
1008
  };
1026
1009
  const serializeAws_restJson1UserDetails = (input, context) => {
1027
1010
  return {
1028
- ...(input.sessionId !== undefined && input.sessionId !== null && { sessionId: input.sessionId }),
1029
- ...(input.userId !== undefined && input.userId !== null && { userId: input.userId }),
1011
+ ...(input.sessionId != null && { sessionId: input.sessionId }),
1012
+ ...(input.userId != null && { userId: input.userId }),
1030
1013
  };
1031
1014
  };
1032
1015
  const deserializeAws_restJson1AppMonitor = (output, context) => {
1033
1016
  return {
1034
- AppMonitorConfiguration: output.AppMonitorConfiguration !== undefined && output.AppMonitorConfiguration !== null
1017
+ AppMonitorConfiguration: output.AppMonitorConfiguration != null
1035
1018
  ? deserializeAws_restJson1AppMonitorConfiguration(output.AppMonitorConfiguration, context)
1036
1019
  : undefined,
1037
1020
  Created: (0, smithy_client_1.expectString)(output.Created),
1038
- DataStorage: output.DataStorage !== undefined && output.DataStorage !== null
1039
- ? deserializeAws_restJson1DataStorage(output.DataStorage, context)
1040
- : undefined,
1021
+ DataStorage: output.DataStorage != null ? deserializeAws_restJson1DataStorage(output.DataStorage, context) : undefined,
1041
1022
  Domain: (0, smithy_client_1.expectString)(output.Domain),
1042
1023
  Id: (0, smithy_client_1.expectString)(output.Id),
1043
1024
  LastModified: (0, smithy_client_1.expectString)(output.LastModified),
1044
1025
  Name: (0, smithy_client_1.expectString)(output.Name),
1045
1026
  State: (0, smithy_client_1.expectString)(output.State),
1046
- Tags: output.Tags !== undefined && output.Tags !== null
1047
- ? deserializeAws_restJson1TagMap(output.Tags, context)
1048
- : undefined,
1027
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
1049
1028
  };
1050
1029
  };
1051
1030
  const deserializeAws_restJson1AppMonitorConfiguration = (output, context) => {
1052
1031
  return {
1053
1032
  AllowCookies: (0, smithy_client_1.expectBoolean)(output.AllowCookies),
1054
1033
  EnableXRay: (0, smithy_client_1.expectBoolean)(output.EnableXRay),
1055
- ExcludedPages: output.ExcludedPages !== undefined && output.ExcludedPages !== null
1056
- ? deserializeAws_restJson1Pages(output.ExcludedPages, context)
1057
- : undefined,
1058
- FavoritePages: output.FavoritePages !== undefined && output.FavoritePages !== null
1059
- ? deserializeAws_restJson1FavoritePages(output.FavoritePages, context)
1060
- : undefined,
1034
+ ExcludedPages: output.ExcludedPages != null ? deserializeAws_restJson1Pages(output.ExcludedPages, context) : undefined,
1035
+ FavoritePages: output.FavoritePages != null ? deserializeAws_restJson1FavoritePages(output.FavoritePages, context) : undefined,
1061
1036
  GuestRoleArn: (0, smithy_client_1.expectString)(output.GuestRoleArn),
1062
1037
  IdentityPoolId: (0, smithy_client_1.expectString)(output.IdentityPoolId),
1063
- IncludedPages: output.IncludedPages !== undefined && output.IncludedPages !== null
1064
- ? deserializeAws_restJson1Pages(output.IncludedPages, context)
1065
- : undefined,
1038
+ IncludedPages: output.IncludedPages != null ? deserializeAws_restJson1Pages(output.IncludedPages, context) : undefined,
1066
1039
  SessionSampleRate: (0, smithy_client_1.limitedParseDouble)(output.SessionSampleRate),
1067
- Telemetries: output.Telemetries !== undefined && output.Telemetries !== null
1068
- ? deserializeAws_restJson1Telemetries(output.Telemetries, context)
1069
- : undefined,
1040
+ Telemetries: output.Telemetries != null ? deserializeAws_restJson1Telemetries(output.Telemetries, context) : undefined,
1070
1041
  };
1071
1042
  };
1072
1043
  const deserializeAws_restJson1AppMonitorSummary = (output, context) => {
@@ -1097,9 +1068,7 @@ const deserializeAws_restJson1CwLog = (output, context) => {
1097
1068
  };
1098
1069
  const deserializeAws_restJson1DataStorage = (output, context) => {
1099
1070
  return {
1100
- CwLog: output.CwLog !== undefined && output.CwLog !== null
1101
- ? deserializeAws_restJson1CwLog(output.CwLog, context)
1102
- : undefined,
1071
+ CwLog: output.CwLog != null ? deserializeAws_restJson1CwLog(output.CwLog, context) : undefined,
1103
1072
  };
1104
1073
  };
1105
1074
  const deserializeAws_restJson1EventDataList = (output, context) => {
@@ -14,10 +14,9 @@ export var serializeAws_restJson1CreateAppMonitorCommand = function (input, cont
14
14
  "content-type": "application/json",
15
15
  };
16
16
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/appmonitor";
17
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AppMonitorConfiguration !== undefined &&
18
- input.AppMonitorConfiguration !== null && {
17
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AppMonitorConfiguration != null && {
19
18
  AppMonitorConfiguration: serializeAws_restJson1AppMonitorConfiguration(input.AppMonitorConfiguration, context),
20
- })), (input.CwLogEnabled !== undefined && input.CwLogEnabled !== null && { CwLogEnabled: input.CwLogEnabled })), (input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
19
+ })), (input.CwLogEnabled != null && { CwLogEnabled: input.CwLogEnabled })), (input.Domain != null && { Domain: input.Domain })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
21
20
  return [2, new __HttpRequest({
22
21
  protocol: protocol,
23
22
  hostname: hostname,
@@ -113,9 +112,7 @@ export var serializeAws_restJson1GetAppMonitorDataCommand = function (input, con
113
112
  else {
114
113
  throw new Error("No value provided for input HTTP label: Name.");
115
114
  }
116
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Filters !== undefined &&
117
- input.Filters !== null && { Filters: serializeAws_restJson1QueryFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.TimeRange !== undefined &&
118
- input.TimeRange !== null && { TimeRange: serializeAws_restJson1TimeRange(input.TimeRange, context) })));
115
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_restJson1QueryFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.TimeRange != null && { TimeRange: serializeAws_restJson1TimeRange(input.TimeRange, context) })));
119
116
  return [2, new __HttpRequest({
120
117
  protocol: protocol,
121
118
  hostname: hostname,
@@ -203,12 +200,9 @@ export var serializeAws_restJson1PutRumEventsCommand = function (input, context)
203
200
  else {
204
201
  throw new Error("No value provided for input HTTP label: Id.");
205
202
  }
206
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AppMonitorDetails !== undefined &&
207
- input.AppMonitorDetails !== null && {
203
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AppMonitorDetails != null && {
208
204
  AppMonitorDetails: serializeAws_restJson1AppMonitorDetails(input.AppMonitorDetails, context),
209
- })), (input.BatchId !== undefined && input.BatchId !== null && { BatchId: input.BatchId })), (input.RumEvents !== undefined &&
210
- input.RumEvents !== null && { RumEvents: serializeAws_restJson1RumEventList(input.RumEvents, context) })), (input.UserDetails !== undefined &&
211
- input.UserDetails !== null && { UserDetails: serializeAws_restJson1UserDetails(input.UserDetails, context) })));
205
+ })), (input.BatchId != null && { BatchId: input.BatchId })), (input.RumEvents != null && { RumEvents: serializeAws_restJson1RumEventList(input.RumEvents, context) })), (input.UserDetails != null && { UserDetails: serializeAws_restJson1UserDetails(input.UserDetails, context) })));
212
206
  return [4, context.endpoint()];
213
207
  case 2:
214
208
  resolvedHostname = (_c.sent()).hostname;
@@ -251,7 +245,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
251
245
  else {
252
246
  throw new Error("No value provided for input HTTP label: ResourceArn.");
253
247
  }
254
- body = JSON.stringify(__assign({}, (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
248
+ body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
255
249
  return [2, new __HttpRequest({
256
250
  protocol: protocol,
257
251
  hostname: hostname,
@@ -318,10 +312,9 @@ export var serializeAws_restJson1UpdateAppMonitorCommand = function (input, cont
318
312
  else {
319
313
  throw new Error("No value provided for input HTTP label: Name.");
320
314
  }
321
- body = JSON.stringify(__assign(__assign(__assign({}, (input.AppMonitorConfiguration !== undefined &&
322
- input.AppMonitorConfiguration !== null && {
315
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.AppMonitorConfiguration != null && {
323
316
  AppMonitorConfiguration: serializeAws_restJson1AppMonitorConfiguration(input.AppMonitorConfiguration, context),
324
- })), (input.CwLogEnabled !== undefined && input.CwLogEnabled !== null && { CwLogEnabled: input.CwLogEnabled })), (input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain })));
317
+ })), (input.CwLogEnabled != null && { CwLogEnabled: input.CwLogEnabled })), (input.Domain != null && { Domain: input.Domain })));
325
318
  return [2, new __HttpRequest({
326
319
  protocol: protocol,
327
320
  hostname: hostname,
@@ -1139,18 +1132,12 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
1139
1132
  });
1140
1133
  }); };
1141
1134
  var serializeAws_restJson1AppMonitorConfiguration = function (input, context) {
1142
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowCookies !== undefined && input.AllowCookies !== null && { AllowCookies: input.AllowCookies })), (input.EnableXRay !== undefined && input.EnableXRay !== null && { EnableXRay: input.EnableXRay })), (input.ExcludedPages !== undefined &&
1143
- input.ExcludedPages !== null && { ExcludedPages: serializeAws_restJson1Pages(input.ExcludedPages, context) })), (input.FavoritePages !== undefined &&
1144
- input.FavoritePages !== null && {
1135
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowCookies != null && { AllowCookies: input.AllowCookies })), (input.EnableXRay != null && { EnableXRay: input.EnableXRay })), (input.ExcludedPages != null && { ExcludedPages: serializeAws_restJson1Pages(input.ExcludedPages, context) })), (input.FavoritePages != null && {
1145
1136
  FavoritePages: serializeAws_restJson1FavoritePages(input.FavoritePages, context),
1146
- })), (input.GuestRoleArn !== undefined && input.GuestRoleArn !== null && { GuestRoleArn: input.GuestRoleArn })), (input.IdentityPoolId !== undefined &&
1147
- input.IdentityPoolId !== null && { IdentityPoolId: input.IdentityPoolId })), (input.IncludedPages !== undefined &&
1148
- input.IncludedPages !== null && { IncludedPages: serializeAws_restJson1Pages(input.IncludedPages, context) })), (input.SessionSampleRate !== undefined &&
1149
- input.SessionSampleRate !== null && { SessionSampleRate: __serializeFloat(input.SessionSampleRate) })), (input.Telemetries !== undefined &&
1150
- input.Telemetries !== null && { Telemetries: serializeAws_restJson1Telemetries(input.Telemetries, context) }));
1137
+ })), (input.GuestRoleArn != null && { GuestRoleArn: input.GuestRoleArn })), (input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId })), (input.IncludedPages != null && { IncludedPages: serializeAws_restJson1Pages(input.IncludedPages, context) })), (input.SessionSampleRate != null && { SessionSampleRate: __serializeFloat(input.SessionSampleRate) })), (input.Telemetries != null && { Telemetries: serializeAws_restJson1Telemetries(input.Telemetries, context) }));
1151
1138
  };
1152
1139
  var serializeAws_restJson1AppMonitorDetails = function (input, context) {
1153
- return __assign(__assign(__assign({}, (input.id !== undefined && input.id !== null && { id: input.id })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.version !== undefined && input.version !== null && { version: input.version }));
1140
+ return __assign(__assign(__assign({}, (input.id != null && { id: input.id })), (input.name != null && { name: input.name })), (input.version != null && { version: input.version }));
1154
1141
  };
1155
1142
  var serializeAws_restJson1FavoritePages = function (input, context) {
1156
1143
  return input
@@ -1173,8 +1160,7 @@ var serializeAws_restJson1Pages = function (input, context) {
1173
1160
  });
1174
1161
  };
1175
1162
  var serializeAws_restJson1QueryFilter = function (input, context) {
1176
- return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Values !== undefined &&
1177
- input.Values !== null && { Values: serializeAws_restJson1QueryFilterValueList(input.Values, context) }));
1163
+ return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Values != null && { Values: serializeAws_restJson1QueryFilterValueList(input.Values, context) }));
1178
1164
  };
1179
1165
  var serializeAws_restJson1QueryFilters = function (input, context) {
1180
1166
  return input
@@ -1197,10 +1183,7 @@ var serializeAws_restJson1QueryFilterValueList = function (input, context) {
1197
1183
  });
1198
1184
  };
1199
1185
  var serializeAws_restJson1RumEvent = function (input, context) {
1200
- return __assign(__assign(__assign(__assign(__assign({}, (input.details !== undefined &&
1201
- input.details !== null && { details: __LazyJsonString.fromObject(input.details) })), (input.id !== undefined && input.id !== null && { id: input.id })), (input.metadata !== undefined &&
1202
- input.metadata !== null && { metadata: __LazyJsonString.fromObject(input.metadata) })), (input.timestamp !== undefined &&
1203
- input.timestamp !== null && { timestamp: Math.round(input.timestamp.getTime() / 1000) })), (input.type !== undefined && input.type !== null && { type: input.type }));
1186
+ return __assign(__assign(__assign(__assign(__assign({}, (input.details != null && { details: __LazyJsonString.fromObject(input.details) })), (input.id != null && { id: input.id })), (input.metadata != null && { metadata: __LazyJsonString.fromObject(input.metadata) })), (input.timestamp != null && { timestamp: Math.round(input.timestamp.getTime() / 1000) })), (input.type != null && { type: input.type }));
1204
1187
  };
1205
1188
  var serializeAws_restJson1RumEventList = function (input, context) {
1206
1189
  return input
@@ -1233,49 +1216,37 @@ var serializeAws_restJson1Telemetries = function (input, context) {
1233
1216
  });
1234
1217
  };
1235
1218
  var serializeAws_restJson1TimeRange = function (input, context) {
1236
- return __assign(__assign({}, (input.After !== undefined && input.After !== null && { After: input.After })), (input.Before !== undefined && input.Before !== null && { Before: input.Before }));
1219
+ return __assign(__assign({}, (input.After != null && { After: input.After })), (input.Before != null && { Before: input.Before }));
1237
1220
  };
1238
1221
  var serializeAws_restJson1UserDetails = function (input, context) {
1239
- return __assign(__assign({}, (input.sessionId !== undefined && input.sessionId !== null && { sessionId: input.sessionId })), (input.userId !== undefined && input.userId !== null && { userId: input.userId }));
1222
+ return __assign(__assign({}, (input.sessionId != null && { sessionId: input.sessionId })), (input.userId != null && { userId: input.userId }));
1240
1223
  };
1241
1224
  var deserializeAws_restJson1AppMonitor = function (output, context) {
1242
1225
  return {
1243
- AppMonitorConfiguration: output.AppMonitorConfiguration !== undefined && output.AppMonitorConfiguration !== null
1226
+ AppMonitorConfiguration: output.AppMonitorConfiguration != null
1244
1227
  ? deserializeAws_restJson1AppMonitorConfiguration(output.AppMonitorConfiguration, context)
1245
1228
  : undefined,
1246
1229
  Created: __expectString(output.Created),
1247
- DataStorage: output.DataStorage !== undefined && output.DataStorage !== null
1248
- ? deserializeAws_restJson1DataStorage(output.DataStorage, context)
1249
- : undefined,
1230
+ DataStorage: output.DataStorage != null ? deserializeAws_restJson1DataStorage(output.DataStorage, context) : undefined,
1250
1231
  Domain: __expectString(output.Domain),
1251
1232
  Id: __expectString(output.Id),
1252
1233
  LastModified: __expectString(output.LastModified),
1253
1234
  Name: __expectString(output.Name),
1254
1235
  State: __expectString(output.State),
1255
- Tags: output.Tags !== undefined && output.Tags !== null
1256
- ? deserializeAws_restJson1TagMap(output.Tags, context)
1257
- : undefined,
1236
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
1258
1237
  };
1259
1238
  };
1260
1239
  var deserializeAws_restJson1AppMonitorConfiguration = function (output, context) {
1261
1240
  return {
1262
1241
  AllowCookies: __expectBoolean(output.AllowCookies),
1263
1242
  EnableXRay: __expectBoolean(output.EnableXRay),
1264
- ExcludedPages: output.ExcludedPages !== undefined && output.ExcludedPages !== null
1265
- ? deserializeAws_restJson1Pages(output.ExcludedPages, context)
1266
- : undefined,
1267
- FavoritePages: output.FavoritePages !== undefined && output.FavoritePages !== null
1268
- ? deserializeAws_restJson1FavoritePages(output.FavoritePages, context)
1269
- : undefined,
1243
+ ExcludedPages: output.ExcludedPages != null ? deserializeAws_restJson1Pages(output.ExcludedPages, context) : undefined,
1244
+ FavoritePages: output.FavoritePages != null ? deserializeAws_restJson1FavoritePages(output.FavoritePages, context) : undefined,
1270
1245
  GuestRoleArn: __expectString(output.GuestRoleArn),
1271
1246
  IdentityPoolId: __expectString(output.IdentityPoolId),
1272
- IncludedPages: output.IncludedPages !== undefined && output.IncludedPages !== null
1273
- ? deserializeAws_restJson1Pages(output.IncludedPages, context)
1274
- : undefined,
1247
+ IncludedPages: output.IncludedPages != null ? deserializeAws_restJson1Pages(output.IncludedPages, context) : undefined,
1275
1248
  SessionSampleRate: __limitedParseDouble(output.SessionSampleRate),
1276
- Telemetries: output.Telemetries !== undefined && output.Telemetries !== null
1277
- ? deserializeAws_restJson1Telemetries(output.Telemetries, context)
1278
- : undefined,
1249
+ Telemetries: output.Telemetries != null ? deserializeAws_restJson1Telemetries(output.Telemetries, context) : undefined,
1279
1250
  };
1280
1251
  };
1281
1252
  var deserializeAws_restJson1AppMonitorSummary = function (output, context) {
@@ -1306,9 +1277,7 @@ var deserializeAws_restJson1CwLog = function (output, context) {
1306
1277
  };
1307
1278
  var deserializeAws_restJson1DataStorage = function (output, context) {
1308
1279
  return {
1309
- CwLog: output.CwLog !== undefined && output.CwLog !== null
1310
- ? deserializeAws_restJson1CwLog(output.CwLog, context)
1311
- : undefined,
1280
+ CwLog: output.CwLog != null ? deserializeAws_restJson1CwLog(output.CwLog, context) : undefined,
1312
1281
  };
1313
1282
  };
1314
1283
  var deserializeAws_restJson1EventDataList = function (output, context) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rum",
3
3
  "description": "AWS SDK for JavaScript Rum Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.127.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.127.0",
22
+ "@aws-sdk/config-resolver": "3.127.0",
23
+ "@aws-sdk/credential-provider-node": "3.127.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.127.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.127.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"