@aws-sdk/client-cloudwatch-logs 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.
@@ -3115,81 +3115,70 @@ var deserializeAws_json1_1UnrecognizedClientExceptionResponse = function (parsed
3115
3115
  });
3116
3116
  }); };
3117
3117
  var serializeAws_json1_1AssociateKmsKeyRequest = function (input, context) {
3118
- return __assign(__assign({}, (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })), (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName }));
3118
+ return __assign(__assign({}, (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.logGroupName != null && { logGroupName: input.logGroupName }));
3119
3119
  };
3120
3120
  var serializeAws_json1_1CancelExportTaskRequest = function (input, context) {
3121
- return __assign({}, (input.taskId !== undefined && input.taskId !== null && { taskId: input.taskId }));
3121
+ return __assign({}, (input.taskId != null && { taskId: input.taskId }));
3122
3122
  };
3123
3123
  var serializeAws_json1_1CreateExportTaskRequest = function (input, context) {
3124
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.destination !== undefined && input.destination !== null && { destination: input.destination })), (input.destinationPrefix !== undefined &&
3125
- input.destinationPrefix !== null && { destinationPrefix: input.destinationPrefix })), (input.from !== undefined && input.from !== null && { from: input.from })), (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.logStreamNamePrefix !== undefined &&
3126
- input.logStreamNamePrefix !== null && { logStreamNamePrefix: input.logStreamNamePrefix })), (input.taskName !== undefined && input.taskName !== null && { taskName: input.taskName })), (input.to !== undefined && input.to !== null && { to: input.to }));
3124
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.destination != null && { destination: input.destination })), (input.destinationPrefix != null && { destinationPrefix: input.destinationPrefix })), (input.from != null && { from: input.from })), (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix })), (input.taskName != null && { taskName: input.taskName })), (input.to != null && { to: input.to }));
3127
3125
  };
3128
3126
  var serializeAws_json1_1CreateLogGroupRequest = function (input, context) {
3129
- return __assign(__assign(__assign({}, (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })), (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }));
3127
+ return __assign(__assign(__assign({}, (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }));
3130
3128
  };
3131
3129
  var serializeAws_json1_1CreateLogStreamRequest = function (input, context) {
3132
- return __assign(__assign({}, (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.logStreamName !== undefined && input.logStreamName !== null && { logStreamName: input.logStreamName }));
3130
+ return __assign(__assign({}, (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.logStreamName != null && { logStreamName: input.logStreamName }));
3133
3131
  };
3134
3132
  var serializeAws_json1_1DeleteDestinationRequest = function (input, context) {
3135
- return __assign({}, (input.destinationName !== undefined &&
3136
- input.destinationName !== null && { destinationName: input.destinationName }));
3133
+ return __assign({}, (input.destinationName != null && { destinationName: input.destinationName }));
3137
3134
  };
3138
3135
  var serializeAws_json1_1DeleteLogGroupRequest = function (input, context) {
3139
- return __assign({}, (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName }));
3136
+ return __assign({}, (input.logGroupName != null && { logGroupName: input.logGroupName }));
3140
3137
  };
3141
3138
  var serializeAws_json1_1DeleteLogStreamRequest = function (input, context) {
3142
- return __assign(__assign({}, (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.logStreamName !== undefined && input.logStreamName !== null && { logStreamName: input.logStreamName }));
3139
+ return __assign(__assign({}, (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.logStreamName != null && { logStreamName: input.logStreamName }));
3143
3140
  };
3144
3141
  var serializeAws_json1_1DeleteMetricFilterRequest = function (input, context) {
3145
- return __assign(__assign({}, (input.filterName !== undefined && input.filterName !== null && { filterName: input.filterName })), (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName }));
3142
+ return __assign(__assign({}, (input.filterName != null && { filterName: input.filterName })), (input.logGroupName != null && { logGroupName: input.logGroupName }));
3146
3143
  };
3147
3144
  var serializeAws_json1_1DeleteQueryDefinitionRequest = function (input, context) {
3148
- return __assign({}, (input.queryDefinitionId !== undefined &&
3149
- input.queryDefinitionId !== null && { queryDefinitionId: input.queryDefinitionId }));
3145
+ return __assign({}, (input.queryDefinitionId != null && { queryDefinitionId: input.queryDefinitionId }));
3150
3146
  };
3151
3147
  var serializeAws_json1_1DeleteResourcePolicyRequest = function (input, context) {
3152
- return __assign({}, (input.policyName !== undefined && input.policyName !== null && { policyName: input.policyName }));
3148
+ return __assign({}, (input.policyName != null && { policyName: input.policyName }));
3153
3149
  };
3154
3150
  var serializeAws_json1_1DeleteRetentionPolicyRequest = function (input, context) {
3155
- return __assign({}, (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName }));
3151
+ return __assign({}, (input.logGroupName != null && { logGroupName: input.logGroupName }));
3156
3152
  };
3157
3153
  var serializeAws_json1_1DeleteSubscriptionFilterRequest = function (input, context) {
3158
- return __assign(__assign({}, (input.filterName !== undefined && input.filterName !== null && { filterName: input.filterName })), (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName }));
3154
+ return __assign(__assign({}, (input.filterName != null && { filterName: input.filterName })), (input.logGroupName != null && { logGroupName: input.logGroupName }));
3159
3155
  };
3160
3156
  var serializeAws_json1_1DescribeDestinationsRequest = function (input, context) {
3161
- return __assign(__assign(__assign({}, (input.DestinationNamePrefix !== undefined &&
3162
- input.DestinationNamePrefix !== null && { DestinationNamePrefix: input.DestinationNamePrefix })), (input.limit !== undefined && input.limit !== null && { limit: input.limit })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
3157
+ return __assign(__assign(__assign({}, (input.DestinationNamePrefix != null && { DestinationNamePrefix: input.DestinationNamePrefix })), (input.limit != null && { limit: input.limit })), (input.nextToken != null && { nextToken: input.nextToken }));
3163
3158
  };
3164
3159
  var serializeAws_json1_1DescribeExportTasksRequest = function (input, context) {
3165
- return __assign(__assign(__assign(__assign({}, (input.limit !== undefined && input.limit !== null && { limit: input.limit })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.statusCode !== undefined && input.statusCode !== null && { statusCode: input.statusCode })), (input.taskId !== undefined && input.taskId !== null && { taskId: input.taskId }));
3160
+ return __assign(__assign(__assign(__assign({}, (input.limit != null && { limit: input.limit })), (input.nextToken != null && { nextToken: input.nextToken })), (input.statusCode != null && { statusCode: input.statusCode })), (input.taskId != null && { taskId: input.taskId }));
3166
3161
  };
3167
3162
  var serializeAws_json1_1DescribeLogGroupsRequest = function (input, context) {
3168
- return __assign(__assign(__assign({}, (input.limit !== undefined && input.limit !== null && { limit: input.limit })), (input.logGroupNamePrefix !== undefined &&
3169
- input.logGroupNamePrefix !== null && { logGroupNamePrefix: input.logGroupNamePrefix })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
3163
+ return __assign(__assign(__assign({}, (input.limit != null && { limit: input.limit })), (input.logGroupNamePrefix != null && { logGroupNamePrefix: input.logGroupNamePrefix })), (input.nextToken != null && { nextToken: input.nextToken }));
3170
3164
  };
3171
3165
  var serializeAws_json1_1DescribeLogStreamsRequest = function (input, context) {
3172
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.descending !== undefined && input.descending !== null && { descending: input.descending })), (input.limit !== undefined && input.limit !== null && { limit: input.limit })), (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.logStreamNamePrefix !== undefined &&
3173
- input.logStreamNamePrefix !== null && { logStreamNamePrefix: input.logStreamNamePrefix })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.orderBy !== undefined && input.orderBy !== null && { orderBy: input.orderBy }));
3166
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.descending != null && { descending: input.descending })), (input.limit != null && { limit: input.limit })), (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix })), (input.nextToken != null && { nextToken: input.nextToken })), (input.orderBy != null && { orderBy: input.orderBy }));
3174
3167
  };
3175
3168
  var serializeAws_json1_1DescribeMetricFiltersRequest = function (input, context) {
3176
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.filterNamePrefix !== undefined &&
3177
- input.filterNamePrefix !== null && { filterNamePrefix: input.filterNamePrefix })), (input.limit !== undefined && input.limit !== null && { limit: input.limit })), (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.metricName !== undefined && input.metricName !== null && { metricName: input.metricName })), (input.metricNamespace !== undefined &&
3178
- input.metricNamespace !== null && { metricNamespace: input.metricNamespace })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
3169
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.filterNamePrefix != null && { filterNamePrefix: input.filterNamePrefix })), (input.limit != null && { limit: input.limit })), (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.metricName != null && { metricName: input.metricName })), (input.metricNamespace != null && { metricNamespace: input.metricNamespace })), (input.nextToken != null && { nextToken: input.nextToken }));
3179
3170
  };
3180
3171
  var serializeAws_json1_1DescribeQueriesRequest = function (input, context) {
3181
- return __assign(__assign(__assign(__assign({}, (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.status !== undefined && input.status !== null && { status: input.status }));
3172
+ return __assign(__assign(__assign(__assign({}, (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.status != null && { status: input.status }));
3182
3173
  };
3183
3174
  var serializeAws_json1_1DescribeQueryDefinitionsRequest = function (input, context) {
3184
- return __assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.queryDefinitionNamePrefix !== undefined &&
3185
- input.queryDefinitionNamePrefix !== null && { queryDefinitionNamePrefix: input.queryDefinitionNamePrefix }));
3175
+ return __assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.queryDefinitionNamePrefix != null && { queryDefinitionNamePrefix: input.queryDefinitionNamePrefix }));
3186
3176
  };
3187
3177
  var serializeAws_json1_1DescribeResourcePoliciesRequest = function (input, context) {
3188
- return __assign(__assign({}, (input.limit !== undefined && input.limit !== null && { limit: input.limit })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
3178
+ return __assign(__assign({}, (input.limit != null && { limit: input.limit })), (input.nextToken != null && { nextToken: input.nextToken }));
3189
3179
  };
3190
3180
  var serializeAws_json1_1DescribeSubscriptionFiltersRequest = function (input, context) {
3191
- return __assign(__assign(__assign(__assign({}, (input.filterNamePrefix !== undefined &&
3192
- input.filterNamePrefix !== null && { filterNamePrefix: input.filterNamePrefix })), (input.limit !== undefined && input.limit !== null && { limit: input.limit })), (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
3181
+ return __assign(__assign(__assign(__assign({}, (input.filterNamePrefix != null && { filterNamePrefix: input.filterNamePrefix })), (input.limit != null && { limit: input.limit })), (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.nextToken != null && { nextToken: input.nextToken }));
3193
3182
  };
3194
3183
  var serializeAws_json1_1Dimensions = function (input, context) {
3195
3184
  return Object.entries(input).reduce(function (acc, _a) {
@@ -3202,30 +3191,27 @@ var serializeAws_json1_1Dimensions = function (input, context) {
3202
3191
  }, {});
3203
3192
  };
3204
3193
  var serializeAws_json1_1DisassociateKmsKeyRequest = function (input, context) {
3205
- return __assign({}, (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName }));
3194
+ return __assign({}, (input.logGroupName != null && { logGroupName: input.logGroupName }));
3206
3195
  };
3207
3196
  var serializeAws_json1_1FilterLogEventsRequest = function (input, context) {
3208
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.endTime !== undefined && input.endTime !== null && { endTime: input.endTime })), (input.filterPattern !== undefined && input.filterPattern !== null && { filterPattern: input.filterPattern })), (input.interleaved !== undefined && input.interleaved !== null && { interleaved: input.interleaved })), (input.limit !== undefined && input.limit !== null && { limit: input.limit })), (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.logStreamNamePrefix !== undefined &&
3209
- input.logStreamNamePrefix !== null && { logStreamNamePrefix: input.logStreamNamePrefix })), (input.logStreamNames !== undefined &&
3210
- input.logStreamNames !== null && {
3197
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.endTime != null && { endTime: input.endTime })), (input.filterPattern != null && { filterPattern: input.filterPattern })), (input.interleaved != null && { interleaved: input.interleaved })), (input.limit != null && { limit: input.limit })), (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix })), (input.logStreamNames != null && {
3211
3198
  logStreamNames: serializeAws_json1_1InputLogStreamNames(input.logStreamNames, context),
3212
- })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.startTime !== undefined && input.startTime !== null && { startTime: input.startTime }));
3199
+ })), (input.nextToken != null && { nextToken: input.nextToken })), (input.startTime != null && { startTime: input.startTime }));
3213
3200
  };
3214
3201
  var serializeAws_json1_1GetLogEventsRequest = function (input, context) {
3215
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.endTime !== undefined && input.endTime !== null && { endTime: input.endTime })), (input.limit !== undefined && input.limit !== null && { limit: input.limit })), (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.logStreamName !== undefined && input.logStreamName !== null && { logStreamName: input.logStreamName })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.startFromHead !== undefined && input.startFromHead !== null && { startFromHead: input.startFromHead })), (input.startTime !== undefined && input.startTime !== null && { startTime: input.startTime }));
3202
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.endTime != null && { endTime: input.endTime })), (input.limit != null && { limit: input.limit })), (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.logStreamName != null && { logStreamName: input.logStreamName })), (input.nextToken != null && { nextToken: input.nextToken })), (input.startFromHead != null && { startFromHead: input.startFromHead })), (input.startTime != null && { startTime: input.startTime }));
3216
3203
  };
3217
3204
  var serializeAws_json1_1GetLogGroupFieldsRequest = function (input, context) {
3218
- return __assign(__assign({}, (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.time !== undefined && input.time !== null && { time: input.time }));
3205
+ return __assign(__assign({}, (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.time != null && { time: input.time }));
3219
3206
  };
3220
3207
  var serializeAws_json1_1GetLogRecordRequest = function (input, context) {
3221
- return __assign({}, (input.logRecordPointer !== undefined &&
3222
- input.logRecordPointer !== null && { logRecordPointer: input.logRecordPointer }));
3208
+ return __assign({}, (input.logRecordPointer != null && { logRecordPointer: input.logRecordPointer }));
3223
3209
  };
3224
3210
  var serializeAws_json1_1GetQueryResultsRequest = function (input, context) {
3225
- return __assign({}, (input.queryId !== undefined && input.queryId !== null && { queryId: input.queryId }));
3211
+ return __assign({}, (input.queryId != null && { queryId: input.queryId }));
3226
3212
  };
3227
3213
  var serializeAws_json1_1InputLogEvent = function (input, context) {
3228
- return __assign(__assign({}, (input.message !== undefined && input.message !== null && { message: input.message })), (input.timestamp !== undefined && input.timestamp !== null && { timestamp: input.timestamp }));
3214
+ return __assign(__assign({}, (input.message != null && { message: input.message })), (input.timestamp != null && { timestamp: input.timestamp }));
3229
3215
  };
3230
3216
  var serializeAws_json1_1InputLogEvents = function (input, context) {
3231
3217
  return input
@@ -3248,7 +3234,7 @@ var serializeAws_json1_1InputLogStreamNames = function (input, context) {
3248
3234
  });
3249
3235
  };
3250
3236
  var serializeAws_json1_1ListTagsLogGroupRequest = function (input, context) {
3251
- return __assign({}, (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName }));
3237
+ return __assign({}, (input.logGroupName != null && { logGroupName: input.logGroupName }));
3252
3238
  };
3253
3239
  var serializeAws_json1_1LogGroupNames = function (input, context) {
3254
3240
  return input
@@ -3261,10 +3247,7 @@ var serializeAws_json1_1LogGroupNames = function (input, context) {
3261
3247
  });
3262
3248
  };
3263
3249
  var serializeAws_json1_1MetricTransformation = function (input, context) {
3264
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.defaultValue !== undefined &&
3265
- input.defaultValue !== null && { defaultValue: __serializeFloat(input.defaultValue) })), (input.dimensions !== undefined &&
3266
- input.dimensions !== null && { dimensions: serializeAws_json1_1Dimensions(input.dimensions, context) })), (input.metricName !== undefined && input.metricName !== null && { metricName: input.metricName })), (input.metricNamespace !== undefined &&
3267
- input.metricNamespace !== null && { metricNamespace: input.metricNamespace })), (input.metricValue !== undefined && input.metricValue !== null && { metricValue: input.metricValue })), (input.unit !== undefined && input.unit !== null && { unit: input.unit }));
3250
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.defaultValue != null && { defaultValue: __serializeFloat(input.defaultValue) })), (input.dimensions != null && { dimensions: serializeAws_json1_1Dimensions(input.dimensions, context) })), (input.metricName != null && { metricName: input.metricName })), (input.metricNamespace != null && { metricNamespace: input.metricNamespace })), (input.metricValue != null && { metricValue: input.metricValue })), (input.unit != null && { unit: input.unit }));
3268
3251
  };
3269
3252
  var serializeAws_json1_1MetricTransformations = function (input, context) {
3270
3253
  return input
@@ -3277,50 +3260,40 @@ var serializeAws_json1_1MetricTransformations = function (input, context) {
3277
3260
  });
3278
3261
  };
3279
3262
  var serializeAws_json1_1PutDestinationPolicyRequest = function (input, context) {
3280
- return __assign(__assign(__assign({}, (input.accessPolicy !== undefined && input.accessPolicy !== null && { accessPolicy: input.accessPolicy })), (input.destinationName !== undefined &&
3281
- input.destinationName !== null && { destinationName: input.destinationName })), (input.forceUpdate !== undefined && input.forceUpdate !== null && { forceUpdate: input.forceUpdate }));
3263
+ return __assign(__assign(__assign({}, (input.accessPolicy != null && { accessPolicy: input.accessPolicy })), (input.destinationName != null && { destinationName: input.destinationName })), (input.forceUpdate != null && { forceUpdate: input.forceUpdate }));
3282
3264
  };
3283
3265
  var serializeAws_json1_1PutDestinationRequest = function (input, context) {
3284
- return __assign(__assign(__assign({}, (input.destinationName !== undefined &&
3285
- input.destinationName !== null && { destinationName: input.destinationName })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.targetArn !== undefined && input.targetArn !== null && { targetArn: input.targetArn }));
3266
+ return __assign(__assign(__assign({}, (input.destinationName != null && { destinationName: input.destinationName })), (input.roleArn != null && { roleArn: input.roleArn })), (input.targetArn != null && { targetArn: input.targetArn }));
3286
3267
  };
3287
3268
  var serializeAws_json1_1PutLogEventsRequest = function (input, context) {
3288
- return __assign(__assign(__assign(__assign({}, (input.logEvents !== undefined &&
3289
- input.logEvents !== null && { logEvents: serializeAws_json1_1InputLogEvents(input.logEvents, context) })), (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.logStreamName !== undefined && input.logStreamName !== null && { logStreamName: input.logStreamName })), (input.sequenceToken !== undefined && input.sequenceToken !== null && { sequenceToken: input.sequenceToken }));
3269
+ return __assign(__assign(__assign(__assign({}, (input.logEvents != null && { logEvents: serializeAws_json1_1InputLogEvents(input.logEvents, context) })), (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.logStreamName != null && { logStreamName: input.logStreamName })), (input.sequenceToken != null && { sequenceToken: input.sequenceToken }));
3290
3270
  };
3291
3271
  var serializeAws_json1_1PutMetricFilterRequest = function (input, context) {
3292
- return __assign(__assign(__assign(__assign({}, (input.filterName !== undefined && input.filterName !== null && { filterName: input.filterName })), (input.filterPattern !== undefined && input.filterPattern !== null && { filterPattern: input.filterPattern })), (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.metricTransformations !== undefined &&
3293
- input.metricTransformations !== null && {
3272
+ return __assign(__assign(__assign(__assign({}, (input.filterName != null && { filterName: input.filterName })), (input.filterPattern != null && { filterPattern: input.filterPattern })), (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.metricTransformations != null && {
3294
3273
  metricTransformations: serializeAws_json1_1MetricTransformations(input.metricTransformations, context),
3295
3274
  }));
3296
3275
  };
3297
3276
  var serializeAws_json1_1PutQueryDefinitionRequest = function (input, context) {
3298
- return __assign(__assign(__assign(__assign({}, (input.logGroupNames !== undefined &&
3299
- input.logGroupNames !== null && {
3277
+ return __assign(__assign(__assign(__assign({}, (input.logGroupNames != null && {
3300
3278
  logGroupNames: serializeAws_json1_1LogGroupNames(input.logGroupNames, context),
3301
- })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.queryDefinitionId !== undefined &&
3302
- input.queryDefinitionId !== null && { queryDefinitionId: input.queryDefinitionId })), (input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString }));
3279
+ })), (input.name != null && { name: input.name })), (input.queryDefinitionId != null && { queryDefinitionId: input.queryDefinitionId })), (input.queryString != null && { queryString: input.queryString }));
3303
3280
  };
3304
3281
  var serializeAws_json1_1PutResourcePolicyRequest = function (input, context) {
3305
- return __assign(__assign({}, (input.policyDocument !== undefined &&
3306
- input.policyDocument !== null && { policyDocument: input.policyDocument })), (input.policyName !== undefined && input.policyName !== null && { policyName: input.policyName }));
3282
+ return __assign(__assign({}, (input.policyDocument != null && { policyDocument: input.policyDocument })), (input.policyName != null && { policyName: input.policyName }));
3307
3283
  };
3308
3284
  var serializeAws_json1_1PutRetentionPolicyRequest = function (input, context) {
3309
- return __assign(__assign({}, (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.retentionInDays !== undefined &&
3310
- input.retentionInDays !== null && { retentionInDays: input.retentionInDays }));
3285
+ return __assign(__assign({}, (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.retentionInDays != null && { retentionInDays: input.retentionInDays }));
3311
3286
  };
3312
3287
  var serializeAws_json1_1PutSubscriptionFilterRequest = function (input, context) {
3313
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.destinationArn !== undefined &&
3314
- input.destinationArn !== null && { destinationArn: input.destinationArn })), (input.distribution !== undefined && input.distribution !== null && { distribution: input.distribution })), (input.filterName !== undefined && input.filterName !== null && { filterName: input.filterName })), (input.filterPattern !== undefined && input.filterPattern !== null && { filterPattern: input.filterPattern })), (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }));
3288
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.destinationArn != null && { destinationArn: input.destinationArn })), (input.distribution != null && { distribution: input.distribution })), (input.filterName != null && { filterName: input.filterName })), (input.filterPattern != null && { filterPattern: input.filterPattern })), (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.roleArn != null && { roleArn: input.roleArn }));
3315
3289
  };
3316
3290
  var serializeAws_json1_1StartQueryRequest = function (input, context) {
3317
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.endTime !== undefined && input.endTime !== null && { endTime: input.endTime })), (input.limit !== undefined && input.limit !== null && { limit: input.limit })), (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.logGroupNames !== undefined &&
3318
- input.logGroupNames !== null && {
3291
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.endTime != null && { endTime: input.endTime })), (input.limit != null && { limit: input.limit })), (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.logGroupNames != null && {
3319
3292
  logGroupNames: serializeAws_json1_1LogGroupNames(input.logGroupNames, context),
3320
- })), (input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString })), (input.startTime !== undefined && input.startTime !== null && { startTime: input.startTime }));
3293
+ })), (input.queryString != null && { queryString: input.queryString })), (input.startTime != null && { startTime: input.startTime }));
3321
3294
  };
3322
3295
  var serializeAws_json1_1StopQueryRequest = function (input, context) {
3323
- return __assign({}, (input.queryId !== undefined && input.queryId !== null && { queryId: input.queryId }));
3296
+ return __assign({}, (input.queryId != null && { queryId: input.queryId }));
3324
3297
  };
3325
3298
  var serializeAws_json1_1TagList = function (input, context) {
3326
3299
  return input
@@ -3333,7 +3306,7 @@ var serializeAws_json1_1TagList = function (input, context) {
3333
3306
  });
3334
3307
  };
3335
3308
  var serializeAws_json1_1TagLogGroupRequest = function (input, context) {
3336
- return __assign(__assign({}, (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }));
3309
+ return __assign(__assign({}, (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }));
3337
3310
  };
3338
3311
  var serializeAws_json1_1Tags = function (input, context) {
3339
3312
  return Object.entries(input).reduce(function (acc, _a) {
@@ -3356,13 +3329,12 @@ var serializeAws_json1_1TestEventMessages = function (input, context) {
3356
3329
  });
3357
3330
  };
3358
3331
  var serializeAws_json1_1TestMetricFilterRequest = function (input, context) {
3359
- return __assign(__assign({}, (input.filterPattern !== undefined && input.filterPattern !== null && { filterPattern: input.filterPattern })), (input.logEventMessages !== undefined &&
3360
- input.logEventMessages !== null && {
3332
+ return __assign(__assign({}, (input.filterPattern != null && { filterPattern: input.filterPattern })), (input.logEventMessages != null && {
3361
3333
  logEventMessages: serializeAws_json1_1TestEventMessages(input.logEventMessages, context),
3362
3334
  }));
3363
3335
  };
3364
3336
  var serializeAws_json1_1UntagLogGroupRequest = function (input, context) {
3365
- return __assign(__assign({}, (input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
3337
+ return __assign(__assign({}, (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
3366
3338
  };
3367
3339
  var deserializeAws_json1_1CreateExportTaskResponse = function (output, context) {
3368
3340
  return {
@@ -3382,56 +3354,44 @@ var deserializeAws_json1_1DeleteQueryDefinitionResponse = function (output, cont
3382
3354
  };
3383
3355
  var deserializeAws_json1_1DescribeDestinationsResponse = function (output, context) {
3384
3356
  return {
3385
- destinations: output.destinations !== undefined && output.destinations !== null
3386
- ? deserializeAws_json1_1Destinations(output.destinations, context)
3387
- : undefined,
3357
+ destinations: output.destinations != null ? deserializeAws_json1_1Destinations(output.destinations, context) : undefined,
3388
3358
  nextToken: __expectString(output.nextToken),
3389
3359
  };
3390
3360
  };
3391
3361
  var deserializeAws_json1_1DescribeExportTasksResponse = function (output, context) {
3392
3362
  return {
3393
- exportTasks: output.exportTasks !== undefined && output.exportTasks !== null
3394
- ? deserializeAws_json1_1ExportTasks(output.exportTasks, context)
3395
- : undefined,
3363
+ exportTasks: output.exportTasks != null ? deserializeAws_json1_1ExportTasks(output.exportTasks, context) : undefined,
3396
3364
  nextToken: __expectString(output.nextToken),
3397
3365
  };
3398
3366
  };
3399
3367
  var deserializeAws_json1_1DescribeLogGroupsResponse = function (output, context) {
3400
3368
  return {
3401
- logGroups: output.logGroups !== undefined && output.logGroups !== null
3402
- ? deserializeAws_json1_1LogGroups(output.logGroups, context)
3403
- : undefined,
3369
+ logGroups: output.logGroups != null ? deserializeAws_json1_1LogGroups(output.logGroups, context) : undefined,
3404
3370
  nextToken: __expectString(output.nextToken),
3405
3371
  };
3406
3372
  };
3407
3373
  var deserializeAws_json1_1DescribeLogStreamsResponse = function (output, context) {
3408
3374
  return {
3409
- logStreams: output.logStreams !== undefined && output.logStreams !== null
3410
- ? deserializeAws_json1_1LogStreams(output.logStreams, context)
3411
- : undefined,
3375
+ logStreams: output.logStreams != null ? deserializeAws_json1_1LogStreams(output.logStreams, context) : undefined,
3412
3376
  nextToken: __expectString(output.nextToken),
3413
3377
  };
3414
3378
  };
3415
3379
  var deserializeAws_json1_1DescribeMetricFiltersResponse = function (output, context) {
3416
3380
  return {
3417
- metricFilters: output.metricFilters !== undefined && output.metricFilters !== null
3418
- ? deserializeAws_json1_1MetricFilters(output.metricFilters, context)
3419
- : undefined,
3381
+ metricFilters: output.metricFilters != null ? deserializeAws_json1_1MetricFilters(output.metricFilters, context) : undefined,
3420
3382
  nextToken: __expectString(output.nextToken),
3421
3383
  };
3422
3384
  };
3423
3385
  var deserializeAws_json1_1DescribeQueriesResponse = function (output, context) {
3424
3386
  return {
3425
3387
  nextToken: __expectString(output.nextToken),
3426
- queries: output.queries !== undefined && output.queries !== null
3427
- ? deserializeAws_json1_1QueryInfoList(output.queries, context)
3428
- : undefined,
3388
+ queries: output.queries != null ? deserializeAws_json1_1QueryInfoList(output.queries, context) : undefined,
3429
3389
  };
3430
3390
  };
3431
3391
  var deserializeAws_json1_1DescribeQueryDefinitionsResponse = function (output, context) {
3432
3392
  return {
3433
3393
  nextToken: __expectString(output.nextToken),
3434
- queryDefinitions: output.queryDefinitions !== undefined && output.queryDefinitions !== null
3394
+ queryDefinitions: output.queryDefinitions != null
3435
3395
  ? deserializeAws_json1_1QueryDefinitionList(output.queryDefinitions, context)
3436
3396
  : undefined,
3437
3397
  };
@@ -3439,7 +3399,7 @@ var deserializeAws_json1_1DescribeQueryDefinitionsResponse = function (output, c
3439
3399
  var deserializeAws_json1_1DescribeResourcePoliciesResponse = function (output, context) {
3440
3400
  return {
3441
3401
  nextToken: __expectString(output.nextToken),
3442
- resourcePolicies: output.resourcePolicies !== undefined && output.resourcePolicies !== null
3402
+ resourcePolicies: output.resourcePolicies != null
3443
3403
  ? deserializeAws_json1_1ResourcePolicies(output.resourcePolicies, context)
3444
3404
  : undefined,
3445
3405
  };
@@ -3447,7 +3407,7 @@ var deserializeAws_json1_1DescribeResourcePoliciesResponse = function (output, c
3447
3407
  var deserializeAws_json1_1DescribeSubscriptionFiltersResponse = function (output, context) {
3448
3408
  return {
3449
3409
  nextToken: __expectString(output.nextToken),
3450
- subscriptionFilters: output.subscriptionFilters !== undefined && output.subscriptionFilters !== null
3410
+ subscriptionFilters: output.subscriptionFilters != null
3451
3411
  ? deserializeAws_json1_1SubscriptionFilters(output.subscriptionFilters, context)
3452
3412
  : undefined,
3453
3413
  };
@@ -3487,14 +3447,12 @@ var deserializeAws_json1_1ExportTask = function (output, context) {
3487
3447
  return {
3488
3448
  destination: __expectString(output.destination),
3489
3449
  destinationPrefix: __expectString(output.destinationPrefix),
3490
- executionInfo: output.executionInfo !== undefined && output.executionInfo !== null
3450
+ executionInfo: output.executionInfo != null
3491
3451
  ? deserializeAws_json1_1ExportTaskExecutionInfo(output.executionInfo, context)
3492
3452
  : undefined,
3493
3453
  from: __expectLong(output.from),
3494
3454
  logGroupName: __expectString(output.logGroupName),
3495
- status: output.status !== undefined && output.status !== null
3496
- ? deserializeAws_json1_1ExportTaskStatus(output.status, context)
3497
- : undefined,
3455
+ status: output.status != null ? deserializeAws_json1_1ExportTaskStatus(output.status, context) : undefined,
3498
3456
  taskId: __expectString(output.taskId),
3499
3457
  taskName: __expectString(output.taskName),
3500
3458
  to: __expectLong(output.to),
@@ -3555,46 +3513,36 @@ var deserializeAws_json1_1FilteredLogEvents = function (output, context) {
3555
3513
  };
3556
3514
  var deserializeAws_json1_1FilterLogEventsResponse = function (output, context) {
3557
3515
  return {
3558
- events: output.events !== undefined && output.events !== null
3559
- ? deserializeAws_json1_1FilteredLogEvents(output.events, context)
3560
- : undefined,
3516
+ events: output.events != null ? deserializeAws_json1_1FilteredLogEvents(output.events, context) : undefined,
3561
3517
  nextToken: __expectString(output.nextToken),
3562
- searchedLogStreams: output.searchedLogStreams !== undefined && output.searchedLogStreams !== null
3518
+ searchedLogStreams: output.searchedLogStreams != null
3563
3519
  ? deserializeAws_json1_1SearchedLogStreams(output.searchedLogStreams, context)
3564
3520
  : undefined,
3565
3521
  };
3566
3522
  };
3567
3523
  var deserializeAws_json1_1GetLogEventsResponse = function (output, context) {
3568
3524
  return {
3569
- events: output.events !== undefined && output.events !== null
3570
- ? deserializeAws_json1_1OutputLogEvents(output.events, context)
3571
- : undefined,
3525
+ events: output.events != null ? deserializeAws_json1_1OutputLogEvents(output.events, context) : undefined,
3572
3526
  nextBackwardToken: __expectString(output.nextBackwardToken),
3573
3527
  nextForwardToken: __expectString(output.nextForwardToken),
3574
3528
  };
3575
3529
  };
3576
3530
  var deserializeAws_json1_1GetLogGroupFieldsResponse = function (output, context) {
3577
3531
  return {
3578
- logGroupFields: output.logGroupFields !== undefined && output.logGroupFields !== null
3532
+ logGroupFields: output.logGroupFields != null
3579
3533
  ? deserializeAws_json1_1LogGroupFieldList(output.logGroupFields, context)
3580
3534
  : undefined,
3581
3535
  };
3582
3536
  };
3583
3537
  var deserializeAws_json1_1GetLogRecordResponse = function (output, context) {
3584
3538
  return {
3585
- logRecord: output.logRecord !== undefined && output.logRecord !== null
3586
- ? deserializeAws_json1_1LogRecord(output.logRecord, context)
3587
- : undefined,
3539
+ logRecord: output.logRecord != null ? deserializeAws_json1_1LogRecord(output.logRecord, context) : undefined,
3588
3540
  };
3589
3541
  };
3590
3542
  var deserializeAws_json1_1GetQueryResultsResponse = function (output, context) {
3591
3543
  return {
3592
- results: output.results !== undefined && output.results !== null
3593
- ? deserializeAws_json1_1QueryResults(output.results, context)
3594
- : undefined,
3595
- statistics: output.statistics !== undefined && output.statistics !== null
3596
- ? deserializeAws_json1_1QueryStatistics(output.statistics, context)
3597
- : undefined,
3544
+ results: output.results != null ? deserializeAws_json1_1QueryResults(output.results, context) : undefined,
3545
+ statistics: output.statistics != null ? deserializeAws_json1_1QueryStatistics(output.statistics, context) : undefined,
3598
3546
  status: __expectString(output.status),
3599
3547
  };
3600
3548
  };
@@ -3621,7 +3569,7 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
3621
3569
  };
3622
3570
  var deserializeAws_json1_1ListTagsLogGroupResponse = function (output, context) {
3623
3571
  return {
3624
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
3572
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
3625
3573
  };
3626
3574
  };
3627
3575
  var deserializeAws_json1_1LogGroup = function (output, context) {
@@ -3710,7 +3658,7 @@ var deserializeAws_json1_1LogStreams = function (output, context) {
3710
3658
  var deserializeAws_json1_1MalformedQueryException = function (output, context) {
3711
3659
  return {
3712
3660
  message: __expectString(output.message),
3713
- queryCompileError: output.queryCompileError !== undefined && output.queryCompileError !== null
3661
+ queryCompileError: output.queryCompileError != null
3714
3662
  ? deserializeAws_json1_1QueryCompileError(output.queryCompileError, context)
3715
3663
  : undefined,
3716
3664
  };
@@ -3721,7 +3669,7 @@ var deserializeAws_json1_1MetricFilter = function (output, context) {
3721
3669
  filterName: __expectString(output.filterName),
3722
3670
  filterPattern: __expectString(output.filterPattern),
3723
3671
  logGroupName: __expectString(output.logGroupName),
3724
- metricTransformations: output.metricTransformations !== undefined && output.metricTransformations !== null
3672
+ metricTransformations: output.metricTransformations != null
3725
3673
  ? deserializeAws_json1_1MetricTransformations(output.metricTransformations, context)
3726
3674
  : undefined,
3727
3675
  };
@@ -3741,7 +3689,7 @@ var deserializeAws_json1_1MetricFilterMatchRecord = function (output, context) {
3741
3689
  return {
3742
3690
  eventMessage: __expectString(output.eventMessage),
3743
3691
  eventNumber: __expectLong(output.eventNumber),
3744
- extractedValues: output.extractedValues !== undefined && output.extractedValues !== null
3692
+ extractedValues: output.extractedValues != null
3745
3693
  ? deserializeAws_json1_1ExtractedValues(output.extractedValues, context)
3746
3694
  : undefined,
3747
3695
  };
@@ -3760,9 +3708,7 @@ var deserializeAws_json1_1MetricFilters = function (output, context) {
3760
3708
  var deserializeAws_json1_1MetricTransformation = function (output, context) {
3761
3709
  return {
3762
3710
  defaultValue: __limitedParseDouble(output.defaultValue),
3763
- dimensions: output.dimensions !== undefined && output.dimensions !== null
3764
- ? deserializeAws_json1_1Dimensions(output.dimensions, context)
3765
- : undefined,
3711
+ dimensions: output.dimensions != null ? deserializeAws_json1_1Dimensions(output.dimensions, context) : undefined,
3766
3712
  metricName: __expectString(output.metricName),
3767
3713
  metricNamespace: __expectString(output.metricNamespace),
3768
3714
  metricValue: __expectString(output.metricValue),
@@ -3805,15 +3751,13 @@ var deserializeAws_json1_1OutputLogEvents = function (output, context) {
3805
3751
  };
3806
3752
  var deserializeAws_json1_1PutDestinationResponse = function (output, context) {
3807
3753
  return {
3808
- destination: output.destination !== undefined && output.destination !== null
3809
- ? deserializeAws_json1_1Destination(output.destination, context)
3810
- : undefined,
3754
+ destination: output.destination != null ? deserializeAws_json1_1Destination(output.destination, context) : undefined,
3811
3755
  };
3812
3756
  };
3813
3757
  var deserializeAws_json1_1PutLogEventsResponse = function (output, context) {
3814
3758
  return {
3815
3759
  nextSequenceToken: __expectString(output.nextSequenceToken),
3816
- rejectedLogEventsInfo: output.rejectedLogEventsInfo !== undefined && output.rejectedLogEventsInfo !== null
3760
+ rejectedLogEventsInfo: output.rejectedLogEventsInfo != null
3817
3761
  ? deserializeAws_json1_1RejectedLogEventsInfo(output.rejectedLogEventsInfo, context)
3818
3762
  : undefined,
3819
3763
  };
@@ -3825,16 +3769,12 @@ var deserializeAws_json1_1PutQueryDefinitionResponse = function (output, context
3825
3769
  };
3826
3770
  var deserializeAws_json1_1PutResourcePolicyResponse = function (output, context) {
3827
3771
  return {
3828
- resourcePolicy: output.resourcePolicy !== undefined && output.resourcePolicy !== null
3829
- ? deserializeAws_json1_1ResourcePolicy(output.resourcePolicy, context)
3830
- : undefined,
3772
+ resourcePolicy: output.resourcePolicy != null ? deserializeAws_json1_1ResourcePolicy(output.resourcePolicy, context) : undefined,
3831
3773
  };
3832
3774
  };
3833
3775
  var deserializeAws_json1_1QueryCompileError = function (output, context) {
3834
3776
  return {
3835
- location: output.location !== undefined && output.location !== null
3836
- ? deserializeAws_json1_1QueryCompileErrorLocation(output.location, context)
3837
- : undefined,
3777
+ location: output.location != null ? deserializeAws_json1_1QueryCompileErrorLocation(output.location, context) : undefined,
3838
3778
  message: __expectString(output.message),
3839
3779
  };
3840
3780
  };
@@ -3847,9 +3787,7 @@ var deserializeAws_json1_1QueryCompileErrorLocation = function (output, context)
3847
3787
  var deserializeAws_json1_1QueryDefinition = function (output, context) {
3848
3788
  return {
3849
3789
  lastModified: __expectLong(output.lastModified),
3850
- logGroupNames: output.logGroupNames !== undefined && output.logGroupNames !== null
3851
- ? deserializeAws_json1_1LogGroupNames(output.logGroupNames, context)
3852
- : undefined,
3790
+ logGroupNames: output.logGroupNames != null ? deserializeAws_json1_1LogGroupNames(output.logGroupNames, context) : undefined,
3853
3791
  name: __expectString(output.name),
3854
3792
  queryDefinitionId: __expectString(output.queryDefinitionId),
3855
3793
  queryString: __expectString(output.queryString),
@@ -4022,9 +3960,7 @@ var deserializeAws_json1_1Tags = function (output, context) {
4022
3960
  };
4023
3961
  var deserializeAws_json1_1TestMetricFilterResponse = function (output, context) {
4024
3962
  return {
4025
- matches: output.matches !== undefined && output.matches !== null
4026
- ? deserializeAws_json1_1MetricFilterMatches(output.matches, context)
4027
- : undefined,
3963
+ matches: output.matches != null ? deserializeAws_json1_1MetricFilterMatches(output.matches, context) : undefined,
4028
3964
  };
4029
3965
  };
4030
3966
  var deserializeAws_json1_1UnrecognizedClientException = function (output, context) {
@@ -4088,6 +4024,9 @@ var loadRestJsonErrorCode = function (output, data) {
4088
4024
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
4089
4025
  var sanitizeErrorCode = function (rawValue) {
4090
4026
  var cleanValue = rawValue;
4027
+ if (typeof cleanValue === "number") {
4028
+ cleanValue = cleanValue.toString();
4029
+ }
4091
4030
  if (cleanValue.indexOf(":") >= 0) {
4092
4031
  cleanValue = cleanValue.split(":")[0];
4093
4032
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudwatch-logs",
3
3
  "description": "AWS SDK for JavaScript Cloudwatch Logs 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"