@aws-sdk/client-cloudwatch-logs 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 +8 -0
- package/dist-cjs/protocols/Aws_json1_1.js +161 -225
- package/dist-es/protocols/Aws_json1_1.js +76 -140
- package/package.json +26 -26
|
@@ -2333,162 +2333,151 @@ const deserializeAws_json1_1UnrecognizedClientExceptionResponse = async (parsedO
|
|
|
2333
2333
|
};
|
|
2334
2334
|
const serializeAws_json1_1AssociateKmsKeyRequest = (input, context) => {
|
|
2335
2335
|
return {
|
|
2336
|
-
...(input.kmsKeyId
|
|
2337
|
-
...(input.logGroupName
|
|
2336
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2337
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2338
2338
|
};
|
|
2339
2339
|
};
|
|
2340
2340
|
const serializeAws_json1_1CancelExportTaskRequest = (input, context) => {
|
|
2341
2341
|
return {
|
|
2342
|
-
...(input.taskId
|
|
2342
|
+
...(input.taskId != null && { taskId: input.taskId }),
|
|
2343
2343
|
};
|
|
2344
2344
|
};
|
|
2345
2345
|
const serializeAws_json1_1CreateExportTaskRequest = (input, context) => {
|
|
2346
2346
|
return {
|
|
2347
|
-
...(input.destination
|
|
2348
|
-
...(input.destinationPrefix
|
|
2349
|
-
|
|
2350
|
-
...(input.
|
|
2351
|
-
...(input.
|
|
2352
|
-
...(input.
|
|
2353
|
-
|
|
2354
|
-
...(input.taskName !== undefined && input.taskName !== null && { taskName: input.taskName }),
|
|
2355
|
-
...(input.to !== undefined && input.to !== null && { to: input.to }),
|
|
2347
|
+
...(input.destination != null && { destination: input.destination }),
|
|
2348
|
+
...(input.destinationPrefix != null && { destinationPrefix: input.destinationPrefix }),
|
|
2349
|
+
...(input.from != null && { from: input.from }),
|
|
2350
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2351
|
+
...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
|
|
2352
|
+
...(input.taskName != null && { taskName: input.taskName }),
|
|
2353
|
+
...(input.to != null && { to: input.to }),
|
|
2356
2354
|
};
|
|
2357
2355
|
};
|
|
2358
2356
|
const serializeAws_json1_1CreateLogGroupRequest = (input, context) => {
|
|
2359
2357
|
return {
|
|
2360
|
-
...(input.kmsKeyId
|
|
2361
|
-
...(input.logGroupName
|
|
2362
|
-
...(input.tags
|
|
2358
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2359
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2360
|
+
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
2363
2361
|
};
|
|
2364
2362
|
};
|
|
2365
2363
|
const serializeAws_json1_1CreateLogStreamRequest = (input, context) => {
|
|
2366
2364
|
return {
|
|
2367
|
-
...(input.logGroupName
|
|
2368
|
-
...(input.logStreamName
|
|
2365
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2366
|
+
...(input.logStreamName != null && { logStreamName: input.logStreamName }),
|
|
2369
2367
|
};
|
|
2370
2368
|
};
|
|
2371
2369
|
const serializeAws_json1_1DeleteDestinationRequest = (input, context) => {
|
|
2372
2370
|
return {
|
|
2373
|
-
...(input.destinationName
|
|
2374
|
-
input.destinationName !== null && { destinationName: input.destinationName }),
|
|
2371
|
+
...(input.destinationName != null && { destinationName: input.destinationName }),
|
|
2375
2372
|
};
|
|
2376
2373
|
};
|
|
2377
2374
|
const serializeAws_json1_1DeleteLogGroupRequest = (input, context) => {
|
|
2378
2375
|
return {
|
|
2379
|
-
...(input.logGroupName
|
|
2376
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2380
2377
|
};
|
|
2381
2378
|
};
|
|
2382
2379
|
const serializeAws_json1_1DeleteLogStreamRequest = (input, context) => {
|
|
2383
2380
|
return {
|
|
2384
|
-
...(input.logGroupName
|
|
2385
|
-
...(input.logStreamName
|
|
2381
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2382
|
+
...(input.logStreamName != null && { logStreamName: input.logStreamName }),
|
|
2386
2383
|
};
|
|
2387
2384
|
};
|
|
2388
2385
|
const serializeAws_json1_1DeleteMetricFilterRequest = (input, context) => {
|
|
2389
2386
|
return {
|
|
2390
|
-
...(input.filterName
|
|
2391
|
-
...(input.logGroupName
|
|
2387
|
+
...(input.filterName != null && { filterName: input.filterName }),
|
|
2388
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2392
2389
|
};
|
|
2393
2390
|
};
|
|
2394
2391
|
const serializeAws_json1_1DeleteQueryDefinitionRequest = (input, context) => {
|
|
2395
2392
|
return {
|
|
2396
|
-
...(input.queryDefinitionId
|
|
2397
|
-
input.queryDefinitionId !== null && { queryDefinitionId: input.queryDefinitionId }),
|
|
2393
|
+
...(input.queryDefinitionId != null && { queryDefinitionId: input.queryDefinitionId }),
|
|
2398
2394
|
};
|
|
2399
2395
|
};
|
|
2400
2396
|
const serializeAws_json1_1DeleteResourcePolicyRequest = (input, context) => {
|
|
2401
2397
|
return {
|
|
2402
|
-
...(input.policyName
|
|
2398
|
+
...(input.policyName != null && { policyName: input.policyName }),
|
|
2403
2399
|
};
|
|
2404
2400
|
};
|
|
2405
2401
|
const serializeAws_json1_1DeleteRetentionPolicyRequest = (input, context) => {
|
|
2406
2402
|
return {
|
|
2407
|
-
...(input.logGroupName
|
|
2403
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2408
2404
|
};
|
|
2409
2405
|
};
|
|
2410
2406
|
const serializeAws_json1_1DeleteSubscriptionFilterRequest = (input, context) => {
|
|
2411
2407
|
return {
|
|
2412
|
-
...(input.filterName
|
|
2413
|
-
...(input.logGroupName
|
|
2408
|
+
...(input.filterName != null && { filterName: input.filterName }),
|
|
2409
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2414
2410
|
};
|
|
2415
2411
|
};
|
|
2416
2412
|
const serializeAws_json1_1DescribeDestinationsRequest = (input, context) => {
|
|
2417
2413
|
return {
|
|
2418
|
-
...(input.DestinationNamePrefix
|
|
2419
|
-
|
|
2420
|
-
...(input.
|
|
2421
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2414
|
+
...(input.DestinationNamePrefix != null && { DestinationNamePrefix: input.DestinationNamePrefix }),
|
|
2415
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2416
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2422
2417
|
};
|
|
2423
2418
|
};
|
|
2424
2419
|
const serializeAws_json1_1DescribeExportTasksRequest = (input, context) => {
|
|
2425
2420
|
return {
|
|
2426
|
-
...(input.limit
|
|
2427
|
-
...(input.nextToken
|
|
2428
|
-
...(input.statusCode
|
|
2429
|
-
...(input.taskId
|
|
2421
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2422
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2423
|
+
...(input.statusCode != null && { statusCode: input.statusCode }),
|
|
2424
|
+
...(input.taskId != null && { taskId: input.taskId }),
|
|
2430
2425
|
};
|
|
2431
2426
|
};
|
|
2432
2427
|
const serializeAws_json1_1DescribeLogGroupsRequest = (input, context) => {
|
|
2433
2428
|
return {
|
|
2434
|
-
...(input.limit
|
|
2435
|
-
...(input.logGroupNamePrefix
|
|
2436
|
-
|
|
2437
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2429
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2430
|
+
...(input.logGroupNamePrefix != null && { logGroupNamePrefix: input.logGroupNamePrefix }),
|
|
2431
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2438
2432
|
};
|
|
2439
2433
|
};
|
|
2440
2434
|
const serializeAws_json1_1DescribeLogStreamsRequest = (input, context) => {
|
|
2441
2435
|
return {
|
|
2442
|
-
...(input.descending
|
|
2443
|
-
...(input.limit
|
|
2444
|
-
...(input.logGroupName
|
|
2445
|
-
...(input.logStreamNamePrefix
|
|
2446
|
-
|
|
2447
|
-
...(input.
|
|
2448
|
-
...(input.orderBy !== undefined && input.orderBy !== null && { orderBy: input.orderBy }),
|
|
2436
|
+
...(input.descending != null && { descending: input.descending }),
|
|
2437
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2438
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2439
|
+
...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
|
|
2440
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2441
|
+
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
2449
2442
|
};
|
|
2450
2443
|
};
|
|
2451
2444
|
const serializeAws_json1_1DescribeMetricFiltersRequest = (input, context) => {
|
|
2452
2445
|
return {
|
|
2453
|
-
...(input.filterNamePrefix
|
|
2454
|
-
|
|
2455
|
-
...(input.
|
|
2456
|
-
...(input.
|
|
2457
|
-
...(input.
|
|
2458
|
-
...(input.
|
|
2459
|
-
input.metricNamespace !== null && { metricNamespace: input.metricNamespace }),
|
|
2460
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2446
|
+
...(input.filterNamePrefix != null && { filterNamePrefix: input.filterNamePrefix }),
|
|
2447
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2448
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2449
|
+
...(input.metricName != null && { metricName: input.metricName }),
|
|
2450
|
+
...(input.metricNamespace != null && { metricNamespace: input.metricNamespace }),
|
|
2451
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2461
2452
|
};
|
|
2462
2453
|
};
|
|
2463
2454
|
const serializeAws_json1_1DescribeQueriesRequest = (input, context) => {
|
|
2464
2455
|
return {
|
|
2465
|
-
...(input.logGroupName
|
|
2466
|
-
...(input.maxResults
|
|
2467
|
-
...(input.nextToken
|
|
2468
|
-
...(input.status
|
|
2456
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2457
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2458
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2459
|
+
...(input.status != null && { status: input.status }),
|
|
2469
2460
|
};
|
|
2470
2461
|
};
|
|
2471
2462
|
const serializeAws_json1_1DescribeQueryDefinitionsRequest = (input, context) => {
|
|
2472
2463
|
return {
|
|
2473
|
-
...(input.maxResults
|
|
2474
|
-
...(input.nextToken
|
|
2475
|
-
...(input.queryDefinitionNamePrefix
|
|
2476
|
-
input.queryDefinitionNamePrefix !== null && { queryDefinitionNamePrefix: input.queryDefinitionNamePrefix }),
|
|
2464
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2465
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2466
|
+
...(input.queryDefinitionNamePrefix != null && { queryDefinitionNamePrefix: input.queryDefinitionNamePrefix }),
|
|
2477
2467
|
};
|
|
2478
2468
|
};
|
|
2479
2469
|
const serializeAws_json1_1DescribeResourcePoliciesRequest = (input, context) => {
|
|
2480
2470
|
return {
|
|
2481
|
-
...(input.limit
|
|
2482
|
-
...(input.nextToken
|
|
2471
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2472
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2483
2473
|
};
|
|
2484
2474
|
};
|
|
2485
2475
|
const serializeAws_json1_1DescribeSubscriptionFiltersRequest = (input, context) => {
|
|
2486
2476
|
return {
|
|
2487
|
-
...(input.filterNamePrefix
|
|
2488
|
-
|
|
2489
|
-
...(input.
|
|
2490
|
-
...(input.
|
|
2491
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2477
|
+
...(input.filterNamePrefix != null && { filterNamePrefix: input.filterNamePrefix }),
|
|
2478
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2479
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2480
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2492
2481
|
};
|
|
2493
2482
|
};
|
|
2494
2483
|
const serializeAws_json1_1Dimensions = (input, context) => {
|
|
@@ -2504,58 +2493,55 @@ const serializeAws_json1_1Dimensions = (input, context) => {
|
|
|
2504
2493
|
};
|
|
2505
2494
|
const serializeAws_json1_1DisassociateKmsKeyRequest = (input, context) => {
|
|
2506
2495
|
return {
|
|
2507
|
-
...(input.logGroupName
|
|
2496
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2508
2497
|
};
|
|
2509
2498
|
};
|
|
2510
2499
|
const serializeAws_json1_1FilterLogEventsRequest = (input, context) => {
|
|
2511
2500
|
return {
|
|
2512
|
-
...(input.endTime
|
|
2513
|
-
...(input.filterPattern
|
|
2514
|
-
...(input.interleaved
|
|
2515
|
-
...(input.limit
|
|
2516
|
-
...(input.logGroupName
|
|
2517
|
-
...(input.logStreamNamePrefix
|
|
2518
|
-
|
|
2519
|
-
...(input.logStreamNames !== undefined &&
|
|
2520
|
-
input.logStreamNames !== null && {
|
|
2501
|
+
...(input.endTime != null && { endTime: input.endTime }),
|
|
2502
|
+
...(input.filterPattern != null && { filterPattern: input.filterPattern }),
|
|
2503
|
+
...(input.interleaved != null && { interleaved: input.interleaved }),
|
|
2504
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2505
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2506
|
+
...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
|
|
2507
|
+
...(input.logStreamNames != null && {
|
|
2521
2508
|
logStreamNames: serializeAws_json1_1InputLogStreamNames(input.logStreamNames, context),
|
|
2522
2509
|
}),
|
|
2523
|
-
...(input.nextToken
|
|
2524
|
-
...(input.startTime
|
|
2510
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2511
|
+
...(input.startTime != null && { startTime: input.startTime }),
|
|
2525
2512
|
};
|
|
2526
2513
|
};
|
|
2527
2514
|
const serializeAws_json1_1GetLogEventsRequest = (input, context) => {
|
|
2528
2515
|
return {
|
|
2529
|
-
...(input.endTime
|
|
2530
|
-
...(input.limit
|
|
2531
|
-
...(input.logGroupName
|
|
2532
|
-
...(input.logStreamName
|
|
2533
|
-
...(input.nextToken
|
|
2534
|
-
...(input.startFromHead
|
|
2535
|
-
...(input.startTime
|
|
2516
|
+
...(input.endTime != null && { endTime: input.endTime }),
|
|
2517
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2518
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2519
|
+
...(input.logStreamName != null && { logStreamName: input.logStreamName }),
|
|
2520
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2521
|
+
...(input.startFromHead != null && { startFromHead: input.startFromHead }),
|
|
2522
|
+
...(input.startTime != null && { startTime: input.startTime }),
|
|
2536
2523
|
};
|
|
2537
2524
|
};
|
|
2538
2525
|
const serializeAws_json1_1GetLogGroupFieldsRequest = (input, context) => {
|
|
2539
2526
|
return {
|
|
2540
|
-
...(input.logGroupName
|
|
2541
|
-
...(input.time
|
|
2527
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2528
|
+
...(input.time != null && { time: input.time }),
|
|
2542
2529
|
};
|
|
2543
2530
|
};
|
|
2544
2531
|
const serializeAws_json1_1GetLogRecordRequest = (input, context) => {
|
|
2545
2532
|
return {
|
|
2546
|
-
...(input.logRecordPointer
|
|
2547
|
-
input.logRecordPointer !== null && { logRecordPointer: input.logRecordPointer }),
|
|
2533
|
+
...(input.logRecordPointer != null && { logRecordPointer: input.logRecordPointer }),
|
|
2548
2534
|
};
|
|
2549
2535
|
};
|
|
2550
2536
|
const serializeAws_json1_1GetQueryResultsRequest = (input, context) => {
|
|
2551
2537
|
return {
|
|
2552
|
-
...(input.queryId
|
|
2538
|
+
...(input.queryId != null && { queryId: input.queryId }),
|
|
2553
2539
|
};
|
|
2554
2540
|
};
|
|
2555
2541
|
const serializeAws_json1_1InputLogEvent = (input, context) => {
|
|
2556
2542
|
return {
|
|
2557
|
-
...(input.message
|
|
2558
|
-
...(input.timestamp
|
|
2543
|
+
...(input.message != null && { message: input.message }),
|
|
2544
|
+
...(input.timestamp != null && { timestamp: input.timestamp }),
|
|
2559
2545
|
};
|
|
2560
2546
|
};
|
|
2561
2547
|
const serializeAws_json1_1InputLogEvents = (input, context) => {
|
|
@@ -2580,7 +2566,7 @@ const serializeAws_json1_1InputLogStreamNames = (input, context) => {
|
|
|
2580
2566
|
};
|
|
2581
2567
|
const serializeAws_json1_1ListTagsLogGroupRequest = (input, context) => {
|
|
2582
2568
|
return {
|
|
2583
|
-
...(input.logGroupName
|
|
2569
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2584
2570
|
};
|
|
2585
2571
|
};
|
|
2586
2572
|
const serializeAws_json1_1LogGroupNames = (input, context) => {
|
|
@@ -2595,15 +2581,12 @@ const serializeAws_json1_1LogGroupNames = (input, context) => {
|
|
|
2595
2581
|
};
|
|
2596
2582
|
const serializeAws_json1_1MetricTransformation = (input, context) => {
|
|
2597
2583
|
return {
|
|
2598
|
-
...(input.defaultValue
|
|
2599
|
-
|
|
2600
|
-
...(input.
|
|
2601
|
-
|
|
2602
|
-
...(input.
|
|
2603
|
-
...(input.
|
|
2604
|
-
input.metricNamespace !== null && { metricNamespace: input.metricNamespace }),
|
|
2605
|
-
...(input.metricValue !== undefined && input.metricValue !== null && { metricValue: input.metricValue }),
|
|
2606
|
-
...(input.unit !== undefined && input.unit !== null && { unit: input.unit }),
|
|
2584
|
+
...(input.defaultValue != null && { defaultValue: (0, smithy_client_1.serializeFloat)(input.defaultValue) }),
|
|
2585
|
+
...(input.dimensions != null && { dimensions: serializeAws_json1_1Dimensions(input.dimensions, context) }),
|
|
2586
|
+
...(input.metricName != null && { metricName: input.metricName }),
|
|
2587
|
+
...(input.metricNamespace != null && { metricNamespace: input.metricNamespace }),
|
|
2588
|
+
...(input.metricValue != null && { metricValue: input.metricValue }),
|
|
2589
|
+
...(input.unit != null && { unit: input.unit }),
|
|
2607
2590
|
};
|
|
2608
2591
|
};
|
|
2609
2592
|
const serializeAws_json1_1MetricTransformations = (input, context) => {
|
|
@@ -2618,93 +2601,83 @@ const serializeAws_json1_1MetricTransformations = (input, context) => {
|
|
|
2618
2601
|
};
|
|
2619
2602
|
const serializeAws_json1_1PutDestinationPolicyRequest = (input, context) => {
|
|
2620
2603
|
return {
|
|
2621
|
-
...(input.accessPolicy
|
|
2622
|
-
...(input.destinationName
|
|
2623
|
-
|
|
2624
|
-
...(input.forceUpdate !== undefined && input.forceUpdate !== null && { forceUpdate: input.forceUpdate }),
|
|
2604
|
+
...(input.accessPolicy != null && { accessPolicy: input.accessPolicy }),
|
|
2605
|
+
...(input.destinationName != null && { destinationName: input.destinationName }),
|
|
2606
|
+
...(input.forceUpdate != null && { forceUpdate: input.forceUpdate }),
|
|
2625
2607
|
};
|
|
2626
2608
|
};
|
|
2627
2609
|
const serializeAws_json1_1PutDestinationRequest = (input, context) => {
|
|
2628
2610
|
return {
|
|
2629
|
-
...(input.destinationName
|
|
2630
|
-
|
|
2631
|
-
...(input.
|
|
2632
|
-
...(input.targetArn !== undefined && input.targetArn !== null && { targetArn: input.targetArn }),
|
|
2611
|
+
...(input.destinationName != null && { destinationName: input.destinationName }),
|
|
2612
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2613
|
+
...(input.targetArn != null && { targetArn: input.targetArn }),
|
|
2633
2614
|
};
|
|
2634
2615
|
};
|
|
2635
2616
|
const serializeAws_json1_1PutLogEventsRequest = (input, context) => {
|
|
2636
2617
|
return {
|
|
2637
|
-
...(input.logEvents
|
|
2638
|
-
|
|
2639
|
-
...(input.
|
|
2640
|
-
...(input.
|
|
2641
|
-
...(input.sequenceToken !== undefined && input.sequenceToken !== null && { sequenceToken: input.sequenceToken }),
|
|
2618
|
+
...(input.logEvents != null && { logEvents: serializeAws_json1_1InputLogEvents(input.logEvents, context) }),
|
|
2619
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2620
|
+
...(input.logStreamName != null && { logStreamName: input.logStreamName }),
|
|
2621
|
+
...(input.sequenceToken != null && { sequenceToken: input.sequenceToken }),
|
|
2642
2622
|
};
|
|
2643
2623
|
};
|
|
2644
2624
|
const serializeAws_json1_1PutMetricFilterRequest = (input, context) => {
|
|
2645
2625
|
return {
|
|
2646
|
-
...(input.filterName
|
|
2647
|
-
...(input.filterPattern
|
|
2648
|
-
...(input.logGroupName
|
|
2649
|
-
...(input.metricTransformations
|
|
2650
|
-
input.metricTransformations !== null && {
|
|
2626
|
+
...(input.filterName != null && { filterName: input.filterName }),
|
|
2627
|
+
...(input.filterPattern != null && { filterPattern: input.filterPattern }),
|
|
2628
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2629
|
+
...(input.metricTransformations != null && {
|
|
2651
2630
|
metricTransformations: serializeAws_json1_1MetricTransformations(input.metricTransformations, context),
|
|
2652
2631
|
}),
|
|
2653
2632
|
};
|
|
2654
2633
|
};
|
|
2655
2634
|
const serializeAws_json1_1PutQueryDefinitionRequest = (input, context) => {
|
|
2656
2635
|
return {
|
|
2657
|
-
...(input.logGroupNames
|
|
2658
|
-
input.logGroupNames !== null && {
|
|
2636
|
+
...(input.logGroupNames != null && {
|
|
2659
2637
|
logGroupNames: serializeAws_json1_1LogGroupNames(input.logGroupNames, context),
|
|
2660
2638
|
}),
|
|
2661
|
-
...(input.name
|
|
2662
|
-
...(input.queryDefinitionId
|
|
2663
|
-
|
|
2664
|
-
...(input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString }),
|
|
2639
|
+
...(input.name != null && { name: input.name }),
|
|
2640
|
+
...(input.queryDefinitionId != null && { queryDefinitionId: input.queryDefinitionId }),
|
|
2641
|
+
...(input.queryString != null && { queryString: input.queryString }),
|
|
2665
2642
|
};
|
|
2666
2643
|
};
|
|
2667
2644
|
const serializeAws_json1_1PutResourcePolicyRequest = (input, context) => {
|
|
2668
2645
|
return {
|
|
2669
|
-
...(input.policyDocument
|
|
2670
|
-
|
|
2671
|
-
...(input.policyName !== undefined && input.policyName !== null && { policyName: input.policyName }),
|
|
2646
|
+
...(input.policyDocument != null && { policyDocument: input.policyDocument }),
|
|
2647
|
+
...(input.policyName != null && { policyName: input.policyName }),
|
|
2672
2648
|
};
|
|
2673
2649
|
};
|
|
2674
2650
|
const serializeAws_json1_1PutRetentionPolicyRequest = (input, context) => {
|
|
2675
2651
|
return {
|
|
2676
|
-
...(input.logGroupName
|
|
2677
|
-
...(input.retentionInDays
|
|
2678
|
-
input.retentionInDays !== null && { retentionInDays: input.retentionInDays }),
|
|
2652
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2653
|
+
...(input.retentionInDays != null && { retentionInDays: input.retentionInDays }),
|
|
2679
2654
|
};
|
|
2680
2655
|
};
|
|
2681
2656
|
const serializeAws_json1_1PutSubscriptionFilterRequest = (input, context) => {
|
|
2682
2657
|
return {
|
|
2683
|
-
...(input.destinationArn
|
|
2684
|
-
|
|
2685
|
-
...(input.
|
|
2686
|
-
...(input.
|
|
2687
|
-
...(input.
|
|
2688
|
-
...(input.
|
|
2689
|
-
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
2658
|
+
...(input.destinationArn != null && { destinationArn: input.destinationArn }),
|
|
2659
|
+
...(input.distribution != null && { distribution: input.distribution }),
|
|
2660
|
+
...(input.filterName != null && { filterName: input.filterName }),
|
|
2661
|
+
...(input.filterPattern != null && { filterPattern: input.filterPattern }),
|
|
2662
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2663
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2690
2664
|
};
|
|
2691
2665
|
};
|
|
2692
2666
|
const serializeAws_json1_1StartQueryRequest = (input, context) => {
|
|
2693
2667
|
return {
|
|
2694
|
-
...(input.endTime
|
|
2695
|
-
...(input.limit
|
|
2696
|
-
...(input.logGroupName
|
|
2697
|
-
...(input.logGroupNames
|
|
2698
|
-
input.logGroupNames !== null && {
|
|
2668
|
+
...(input.endTime != null && { endTime: input.endTime }),
|
|
2669
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2670
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2671
|
+
...(input.logGroupNames != null && {
|
|
2699
2672
|
logGroupNames: serializeAws_json1_1LogGroupNames(input.logGroupNames, context),
|
|
2700
2673
|
}),
|
|
2701
|
-
...(input.queryString
|
|
2702
|
-
...(input.startTime
|
|
2674
|
+
...(input.queryString != null && { queryString: input.queryString }),
|
|
2675
|
+
...(input.startTime != null && { startTime: input.startTime }),
|
|
2703
2676
|
};
|
|
2704
2677
|
};
|
|
2705
2678
|
const serializeAws_json1_1StopQueryRequest = (input, context) => {
|
|
2706
2679
|
return {
|
|
2707
|
-
...(input.queryId
|
|
2680
|
+
...(input.queryId != null && { queryId: input.queryId }),
|
|
2708
2681
|
};
|
|
2709
2682
|
};
|
|
2710
2683
|
const serializeAws_json1_1TagList = (input, context) => {
|
|
@@ -2719,8 +2692,8 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
2719
2692
|
};
|
|
2720
2693
|
const serializeAws_json1_1TagLogGroupRequest = (input, context) => {
|
|
2721
2694
|
return {
|
|
2722
|
-
...(input.logGroupName
|
|
2723
|
-
...(input.tags
|
|
2695
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2696
|
+
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
2724
2697
|
};
|
|
2725
2698
|
};
|
|
2726
2699
|
const serializeAws_json1_1Tags = (input, context) => {
|
|
@@ -2746,17 +2719,16 @@ const serializeAws_json1_1TestEventMessages = (input, context) => {
|
|
|
2746
2719
|
};
|
|
2747
2720
|
const serializeAws_json1_1TestMetricFilterRequest = (input, context) => {
|
|
2748
2721
|
return {
|
|
2749
|
-
...(input.filterPattern
|
|
2750
|
-
...(input.logEventMessages
|
|
2751
|
-
input.logEventMessages !== null && {
|
|
2722
|
+
...(input.filterPattern != null && { filterPattern: input.filterPattern }),
|
|
2723
|
+
...(input.logEventMessages != null && {
|
|
2752
2724
|
logEventMessages: serializeAws_json1_1TestEventMessages(input.logEventMessages, context),
|
|
2753
2725
|
}),
|
|
2754
2726
|
};
|
|
2755
2727
|
};
|
|
2756
2728
|
const serializeAws_json1_1UntagLogGroupRequest = (input, context) => {
|
|
2757
2729
|
return {
|
|
2758
|
-
...(input.logGroupName
|
|
2759
|
-
...(input.tags
|
|
2730
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2731
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2760
2732
|
};
|
|
2761
2733
|
};
|
|
2762
2734
|
const deserializeAws_json1_1CreateExportTaskResponse = (output, context) => {
|
|
@@ -2777,56 +2749,44 @@ const deserializeAws_json1_1DeleteQueryDefinitionResponse = (output, context) =>
|
|
|
2777
2749
|
};
|
|
2778
2750
|
const deserializeAws_json1_1DescribeDestinationsResponse = (output, context) => {
|
|
2779
2751
|
return {
|
|
2780
|
-
destinations: output.destinations
|
|
2781
|
-
? deserializeAws_json1_1Destinations(output.destinations, context)
|
|
2782
|
-
: undefined,
|
|
2752
|
+
destinations: output.destinations != null ? deserializeAws_json1_1Destinations(output.destinations, context) : undefined,
|
|
2783
2753
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2784
2754
|
};
|
|
2785
2755
|
};
|
|
2786
2756
|
const deserializeAws_json1_1DescribeExportTasksResponse = (output, context) => {
|
|
2787
2757
|
return {
|
|
2788
|
-
exportTasks: output.exportTasks
|
|
2789
|
-
? deserializeAws_json1_1ExportTasks(output.exportTasks, context)
|
|
2790
|
-
: undefined,
|
|
2758
|
+
exportTasks: output.exportTasks != null ? deserializeAws_json1_1ExportTasks(output.exportTasks, context) : undefined,
|
|
2791
2759
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2792
2760
|
};
|
|
2793
2761
|
};
|
|
2794
2762
|
const deserializeAws_json1_1DescribeLogGroupsResponse = (output, context) => {
|
|
2795
2763
|
return {
|
|
2796
|
-
logGroups: output.logGroups
|
|
2797
|
-
? deserializeAws_json1_1LogGroups(output.logGroups, context)
|
|
2798
|
-
: undefined,
|
|
2764
|
+
logGroups: output.logGroups != null ? deserializeAws_json1_1LogGroups(output.logGroups, context) : undefined,
|
|
2799
2765
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2800
2766
|
};
|
|
2801
2767
|
};
|
|
2802
2768
|
const deserializeAws_json1_1DescribeLogStreamsResponse = (output, context) => {
|
|
2803
2769
|
return {
|
|
2804
|
-
logStreams: output.logStreams
|
|
2805
|
-
? deserializeAws_json1_1LogStreams(output.logStreams, context)
|
|
2806
|
-
: undefined,
|
|
2770
|
+
logStreams: output.logStreams != null ? deserializeAws_json1_1LogStreams(output.logStreams, context) : undefined,
|
|
2807
2771
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2808
2772
|
};
|
|
2809
2773
|
};
|
|
2810
2774
|
const deserializeAws_json1_1DescribeMetricFiltersResponse = (output, context) => {
|
|
2811
2775
|
return {
|
|
2812
|
-
metricFilters: output.metricFilters
|
|
2813
|
-
? deserializeAws_json1_1MetricFilters(output.metricFilters, context)
|
|
2814
|
-
: undefined,
|
|
2776
|
+
metricFilters: output.metricFilters != null ? deserializeAws_json1_1MetricFilters(output.metricFilters, context) : undefined,
|
|
2815
2777
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2816
2778
|
};
|
|
2817
2779
|
};
|
|
2818
2780
|
const deserializeAws_json1_1DescribeQueriesResponse = (output, context) => {
|
|
2819
2781
|
return {
|
|
2820
2782
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2821
|
-
queries: output.queries
|
|
2822
|
-
? deserializeAws_json1_1QueryInfoList(output.queries, context)
|
|
2823
|
-
: undefined,
|
|
2783
|
+
queries: output.queries != null ? deserializeAws_json1_1QueryInfoList(output.queries, context) : undefined,
|
|
2824
2784
|
};
|
|
2825
2785
|
};
|
|
2826
2786
|
const deserializeAws_json1_1DescribeQueryDefinitionsResponse = (output, context) => {
|
|
2827
2787
|
return {
|
|
2828
2788
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2829
|
-
queryDefinitions: output.queryDefinitions
|
|
2789
|
+
queryDefinitions: output.queryDefinitions != null
|
|
2830
2790
|
? deserializeAws_json1_1QueryDefinitionList(output.queryDefinitions, context)
|
|
2831
2791
|
: undefined,
|
|
2832
2792
|
};
|
|
@@ -2834,7 +2794,7 @@ const deserializeAws_json1_1DescribeQueryDefinitionsResponse = (output, context)
|
|
|
2834
2794
|
const deserializeAws_json1_1DescribeResourcePoliciesResponse = (output, context) => {
|
|
2835
2795
|
return {
|
|
2836
2796
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2837
|
-
resourcePolicies: output.resourcePolicies
|
|
2797
|
+
resourcePolicies: output.resourcePolicies != null
|
|
2838
2798
|
? deserializeAws_json1_1ResourcePolicies(output.resourcePolicies, context)
|
|
2839
2799
|
: undefined,
|
|
2840
2800
|
};
|
|
@@ -2842,7 +2802,7 @@ const deserializeAws_json1_1DescribeResourcePoliciesResponse = (output, context)
|
|
|
2842
2802
|
const deserializeAws_json1_1DescribeSubscriptionFiltersResponse = (output, context) => {
|
|
2843
2803
|
return {
|
|
2844
2804
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2845
|
-
subscriptionFilters: output.subscriptionFilters
|
|
2805
|
+
subscriptionFilters: output.subscriptionFilters != null
|
|
2846
2806
|
? deserializeAws_json1_1SubscriptionFilters(output.subscriptionFilters, context)
|
|
2847
2807
|
: undefined,
|
|
2848
2808
|
};
|
|
@@ -2883,14 +2843,12 @@ const deserializeAws_json1_1ExportTask = (output, context) => {
|
|
|
2883
2843
|
return {
|
|
2884
2844
|
destination: (0, smithy_client_1.expectString)(output.destination),
|
|
2885
2845
|
destinationPrefix: (0, smithy_client_1.expectString)(output.destinationPrefix),
|
|
2886
|
-
executionInfo: output.executionInfo
|
|
2846
|
+
executionInfo: output.executionInfo != null
|
|
2887
2847
|
? deserializeAws_json1_1ExportTaskExecutionInfo(output.executionInfo, context)
|
|
2888
2848
|
: undefined,
|
|
2889
2849
|
from: (0, smithy_client_1.expectLong)(output.from),
|
|
2890
2850
|
logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
|
|
2891
|
-
status: output.status
|
|
2892
|
-
? deserializeAws_json1_1ExportTaskStatus(output.status, context)
|
|
2893
|
-
: undefined,
|
|
2851
|
+
status: output.status != null ? deserializeAws_json1_1ExportTaskStatus(output.status, context) : undefined,
|
|
2894
2852
|
taskId: (0, smithy_client_1.expectString)(output.taskId),
|
|
2895
2853
|
taskName: (0, smithy_client_1.expectString)(output.taskName),
|
|
2896
2854
|
to: (0, smithy_client_1.expectLong)(output.to),
|
|
@@ -2952,46 +2910,36 @@ const deserializeAws_json1_1FilteredLogEvents = (output, context) => {
|
|
|
2952
2910
|
};
|
|
2953
2911
|
const deserializeAws_json1_1FilterLogEventsResponse = (output, context) => {
|
|
2954
2912
|
return {
|
|
2955
|
-
events: output.events
|
|
2956
|
-
? deserializeAws_json1_1FilteredLogEvents(output.events, context)
|
|
2957
|
-
: undefined,
|
|
2913
|
+
events: output.events != null ? deserializeAws_json1_1FilteredLogEvents(output.events, context) : undefined,
|
|
2958
2914
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2959
|
-
searchedLogStreams: output.searchedLogStreams
|
|
2915
|
+
searchedLogStreams: output.searchedLogStreams != null
|
|
2960
2916
|
? deserializeAws_json1_1SearchedLogStreams(output.searchedLogStreams, context)
|
|
2961
2917
|
: undefined,
|
|
2962
2918
|
};
|
|
2963
2919
|
};
|
|
2964
2920
|
const deserializeAws_json1_1GetLogEventsResponse = (output, context) => {
|
|
2965
2921
|
return {
|
|
2966
|
-
events: output.events
|
|
2967
|
-
? deserializeAws_json1_1OutputLogEvents(output.events, context)
|
|
2968
|
-
: undefined,
|
|
2922
|
+
events: output.events != null ? deserializeAws_json1_1OutputLogEvents(output.events, context) : undefined,
|
|
2969
2923
|
nextBackwardToken: (0, smithy_client_1.expectString)(output.nextBackwardToken),
|
|
2970
2924
|
nextForwardToken: (0, smithy_client_1.expectString)(output.nextForwardToken),
|
|
2971
2925
|
};
|
|
2972
2926
|
};
|
|
2973
2927
|
const deserializeAws_json1_1GetLogGroupFieldsResponse = (output, context) => {
|
|
2974
2928
|
return {
|
|
2975
|
-
logGroupFields: output.logGroupFields
|
|
2929
|
+
logGroupFields: output.logGroupFields != null
|
|
2976
2930
|
? deserializeAws_json1_1LogGroupFieldList(output.logGroupFields, context)
|
|
2977
2931
|
: undefined,
|
|
2978
2932
|
};
|
|
2979
2933
|
};
|
|
2980
2934
|
const deserializeAws_json1_1GetLogRecordResponse = (output, context) => {
|
|
2981
2935
|
return {
|
|
2982
|
-
logRecord: output.logRecord
|
|
2983
|
-
? deserializeAws_json1_1LogRecord(output.logRecord, context)
|
|
2984
|
-
: undefined,
|
|
2936
|
+
logRecord: output.logRecord != null ? deserializeAws_json1_1LogRecord(output.logRecord, context) : undefined,
|
|
2985
2937
|
};
|
|
2986
2938
|
};
|
|
2987
2939
|
const deserializeAws_json1_1GetQueryResultsResponse = (output, context) => {
|
|
2988
2940
|
return {
|
|
2989
|
-
results: output.results
|
|
2990
|
-
|
|
2991
|
-
: undefined,
|
|
2992
|
-
statistics: output.statistics !== undefined && output.statistics !== null
|
|
2993
|
-
? deserializeAws_json1_1QueryStatistics(output.statistics, context)
|
|
2994
|
-
: undefined,
|
|
2941
|
+
results: output.results != null ? deserializeAws_json1_1QueryResults(output.results, context) : undefined,
|
|
2942
|
+
statistics: output.statistics != null ? deserializeAws_json1_1QueryStatistics(output.statistics, context) : undefined,
|
|
2995
2943
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2996
2944
|
};
|
|
2997
2945
|
};
|
|
@@ -3018,7 +2966,7 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
3018
2966
|
};
|
|
3019
2967
|
const deserializeAws_json1_1ListTagsLogGroupResponse = (output, context) => {
|
|
3020
2968
|
return {
|
|
3021
|
-
tags: output.tags
|
|
2969
|
+
tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
3022
2970
|
};
|
|
3023
2971
|
};
|
|
3024
2972
|
const deserializeAws_json1_1LogGroup = (output, context) => {
|
|
@@ -3108,7 +3056,7 @@ const deserializeAws_json1_1LogStreams = (output, context) => {
|
|
|
3108
3056
|
const deserializeAws_json1_1MalformedQueryException = (output, context) => {
|
|
3109
3057
|
return {
|
|
3110
3058
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3111
|
-
queryCompileError: output.queryCompileError
|
|
3059
|
+
queryCompileError: output.queryCompileError != null
|
|
3112
3060
|
? deserializeAws_json1_1QueryCompileError(output.queryCompileError, context)
|
|
3113
3061
|
: undefined,
|
|
3114
3062
|
};
|
|
@@ -3119,7 +3067,7 @@ const deserializeAws_json1_1MetricFilter = (output, context) => {
|
|
|
3119
3067
|
filterName: (0, smithy_client_1.expectString)(output.filterName),
|
|
3120
3068
|
filterPattern: (0, smithy_client_1.expectString)(output.filterPattern),
|
|
3121
3069
|
logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
|
|
3122
|
-
metricTransformations: output.metricTransformations
|
|
3070
|
+
metricTransformations: output.metricTransformations != null
|
|
3123
3071
|
? deserializeAws_json1_1MetricTransformations(output.metricTransformations, context)
|
|
3124
3072
|
: undefined,
|
|
3125
3073
|
};
|
|
@@ -3139,7 +3087,7 @@ const deserializeAws_json1_1MetricFilterMatchRecord = (output, context) => {
|
|
|
3139
3087
|
return {
|
|
3140
3088
|
eventMessage: (0, smithy_client_1.expectString)(output.eventMessage),
|
|
3141
3089
|
eventNumber: (0, smithy_client_1.expectLong)(output.eventNumber),
|
|
3142
|
-
extractedValues: output.extractedValues
|
|
3090
|
+
extractedValues: output.extractedValues != null
|
|
3143
3091
|
? deserializeAws_json1_1ExtractedValues(output.extractedValues, context)
|
|
3144
3092
|
: undefined,
|
|
3145
3093
|
};
|
|
@@ -3158,9 +3106,7 @@ const deserializeAws_json1_1MetricFilters = (output, context) => {
|
|
|
3158
3106
|
const deserializeAws_json1_1MetricTransformation = (output, context) => {
|
|
3159
3107
|
return {
|
|
3160
3108
|
defaultValue: (0, smithy_client_1.limitedParseDouble)(output.defaultValue),
|
|
3161
|
-
dimensions: output.dimensions
|
|
3162
|
-
? deserializeAws_json1_1Dimensions(output.dimensions, context)
|
|
3163
|
-
: undefined,
|
|
3109
|
+
dimensions: output.dimensions != null ? deserializeAws_json1_1Dimensions(output.dimensions, context) : undefined,
|
|
3164
3110
|
metricName: (0, smithy_client_1.expectString)(output.metricName),
|
|
3165
3111
|
metricNamespace: (0, smithy_client_1.expectString)(output.metricNamespace),
|
|
3166
3112
|
metricValue: (0, smithy_client_1.expectString)(output.metricValue),
|
|
@@ -3203,15 +3149,13 @@ const deserializeAws_json1_1OutputLogEvents = (output, context) => {
|
|
|
3203
3149
|
};
|
|
3204
3150
|
const deserializeAws_json1_1PutDestinationResponse = (output, context) => {
|
|
3205
3151
|
return {
|
|
3206
|
-
destination: output.destination
|
|
3207
|
-
? deserializeAws_json1_1Destination(output.destination, context)
|
|
3208
|
-
: undefined,
|
|
3152
|
+
destination: output.destination != null ? deserializeAws_json1_1Destination(output.destination, context) : undefined,
|
|
3209
3153
|
};
|
|
3210
3154
|
};
|
|
3211
3155
|
const deserializeAws_json1_1PutLogEventsResponse = (output, context) => {
|
|
3212
3156
|
return {
|
|
3213
3157
|
nextSequenceToken: (0, smithy_client_1.expectString)(output.nextSequenceToken),
|
|
3214
|
-
rejectedLogEventsInfo: output.rejectedLogEventsInfo
|
|
3158
|
+
rejectedLogEventsInfo: output.rejectedLogEventsInfo != null
|
|
3215
3159
|
? deserializeAws_json1_1RejectedLogEventsInfo(output.rejectedLogEventsInfo, context)
|
|
3216
3160
|
: undefined,
|
|
3217
3161
|
};
|
|
@@ -3223,16 +3167,12 @@ const deserializeAws_json1_1PutQueryDefinitionResponse = (output, context) => {
|
|
|
3223
3167
|
};
|
|
3224
3168
|
const deserializeAws_json1_1PutResourcePolicyResponse = (output, context) => {
|
|
3225
3169
|
return {
|
|
3226
|
-
resourcePolicy: output.resourcePolicy
|
|
3227
|
-
? deserializeAws_json1_1ResourcePolicy(output.resourcePolicy, context)
|
|
3228
|
-
: undefined,
|
|
3170
|
+
resourcePolicy: output.resourcePolicy != null ? deserializeAws_json1_1ResourcePolicy(output.resourcePolicy, context) : undefined,
|
|
3229
3171
|
};
|
|
3230
3172
|
};
|
|
3231
3173
|
const deserializeAws_json1_1QueryCompileError = (output, context) => {
|
|
3232
3174
|
return {
|
|
3233
|
-
location: output.location
|
|
3234
|
-
? deserializeAws_json1_1QueryCompileErrorLocation(output.location, context)
|
|
3235
|
-
: undefined,
|
|
3175
|
+
location: output.location != null ? deserializeAws_json1_1QueryCompileErrorLocation(output.location, context) : undefined,
|
|
3236
3176
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3237
3177
|
};
|
|
3238
3178
|
};
|
|
@@ -3245,9 +3185,7 @@ const deserializeAws_json1_1QueryCompileErrorLocation = (output, context) => {
|
|
|
3245
3185
|
const deserializeAws_json1_1QueryDefinition = (output, context) => {
|
|
3246
3186
|
return {
|
|
3247
3187
|
lastModified: (0, smithy_client_1.expectLong)(output.lastModified),
|
|
3248
|
-
logGroupNames: output.logGroupNames
|
|
3249
|
-
? deserializeAws_json1_1LogGroupNames(output.logGroupNames, context)
|
|
3250
|
-
: undefined,
|
|
3188
|
+
logGroupNames: output.logGroupNames != null ? deserializeAws_json1_1LogGroupNames(output.logGroupNames, context) : undefined,
|
|
3251
3189
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3252
3190
|
queryDefinitionId: (0, smithy_client_1.expectString)(output.queryDefinitionId),
|
|
3253
3191
|
queryString: (0, smithy_client_1.expectString)(output.queryString),
|
|
@@ -3421,9 +3359,7 @@ const deserializeAws_json1_1Tags = (output, context) => {
|
|
|
3421
3359
|
};
|
|
3422
3360
|
const deserializeAws_json1_1TestMetricFilterResponse = (output, context) => {
|
|
3423
3361
|
return {
|
|
3424
|
-
matches: output.matches
|
|
3425
|
-
? deserializeAws_json1_1MetricFilterMatches(output.matches, context)
|
|
3426
|
-
: undefined,
|
|
3362
|
+
matches: output.matches != null ? deserializeAws_json1_1MetricFilterMatches(output.matches, context) : undefined,
|
|
3427
3363
|
};
|
|
3428
3364
|
};
|
|
3429
3365
|
const deserializeAws_json1_1UnrecognizedClientException = (output, context) => {
|