@aws-sdk/client-cloudwatch-logs 3.216.0 → 3.218.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/README.md +15 -14
- package/dist-cjs/CloudWatchLogs.js +45 -0
- package/dist-cjs/commands/DeleteDataProtectionPolicyCommand.js +46 -0
- package/dist-cjs/commands/GetDataProtectionPolicyCommand.js +46 -0
- package/dist-cjs/commands/PutDataProtectionPolicyCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +5 -5
- package/dist-cjs/models/models_0.js +30 -3
- package/dist-cjs/protocols/Aws_json1_1.js +221 -2
- package/dist-es/CloudWatchLogs.js +45 -0
- package/dist-es/commands/DeleteDataProtectionPolicyCommand.js +42 -0
- package/dist-es/commands/GetDataProtectionPolicyCommand.js +42 -0
- package/dist-es/commands/PutDataProtectionPolicyCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +5 -5
- package/dist-es/models/models_0.js +22 -0
- package/dist-es/protocols/Aws_json1_1.js +213 -0
- package/dist-types/CloudWatchLogs.d.ts +184 -114
- package/dist-types/CloudWatchLogsClient.d.ts +20 -16
- package/dist-types/commands/AssociateKmsKeyCommand.d.ts +11 -10
- package/dist-types/commands/CreateExportTaskCommand.d.ts +11 -11
- package/dist-types/commands/CreateLogGroupCommand.d.ts +14 -12
- package/dist-types/commands/CreateLogStreamCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDataProtectionPolicyCommand.d.ts +38 -0
- package/dist-types/commands/DescribeLogGroupsCommand.d.ts +3 -0
- package/dist-types/commands/DescribeLogStreamsCommand.d.ts +3 -0
- package/dist-types/commands/DescribeQueriesCommand.d.ts +3 -3
- package/dist-types/commands/DisassociateKmsKeyCommand.d.ts +5 -3
- package/dist-types/commands/FilterLogEventsCommand.d.ts +8 -4
- package/dist-types/commands/GetDataProtectionPolicyCommand.d.ts +37 -0
- package/dist-types/commands/GetLogEventsCommand.d.ts +4 -0
- package/dist-types/commands/GetLogGroupFieldsCommand.d.ts +10 -6
- package/dist-types/commands/GetQueryResultsCommand.d.ts +4 -2
- package/dist-types/commands/PutDataProtectionPolicyCommand.d.ts +51 -0
- package/dist-types/commands/PutDestinationCommand.d.ts +3 -3
- package/dist-types/commands/PutLogEventsCommand.d.ts +11 -8
- package/dist-types/commands/PutMetricFilterCommand.d.ts +5 -5
- package/dist-types/commands/PutQueryDefinitionCommand.d.ts +7 -7
- package/dist-types/commands/PutRetentionPolicyCommand.d.ts +11 -10
- package/dist-types/commands/PutSubscriptionFilterCommand.d.ts +10 -11
- package/dist-types/commands/StartQueryCommand.d.ts +9 -4
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +369 -115
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/CloudWatchLogs.d.ts +51 -0
- package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DeleteDataProtectionPolicyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetDataProtectionPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PutDataProtectionPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +53 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +3 -3
|
@@ -3,7 +3,7 @@ export const ruleSet = {
|
|
|
3
3
|
parameters: {
|
|
4
4
|
Region: {
|
|
5
5
|
builtIn: "AWS::Region",
|
|
6
|
-
required:
|
|
6
|
+
required: true,
|
|
7
7
|
documentation: "The AWS region used to dispatch the request.",
|
|
8
8
|
type: "String",
|
|
9
9
|
},
|
|
@@ -236,12 +236,12 @@ export const ruleSet = {
|
|
|
236
236
|
{
|
|
237
237
|
ref: "Region",
|
|
238
238
|
},
|
|
239
|
-
"us-gov-
|
|
239
|
+
"us-gov-east-1",
|
|
240
240
|
],
|
|
241
241
|
},
|
|
242
242
|
],
|
|
243
243
|
endpoint: {
|
|
244
|
-
url: "https://logs.us-gov-
|
|
244
|
+
url: "https://logs.us-gov-east-1.amazonaws.com",
|
|
245
245
|
properties: {},
|
|
246
246
|
headers: {},
|
|
247
247
|
},
|
|
@@ -255,12 +255,12 @@ export const ruleSet = {
|
|
|
255
255
|
{
|
|
256
256
|
ref: "Region",
|
|
257
257
|
},
|
|
258
|
-
"us-gov-
|
|
258
|
+
"us-gov-west-1",
|
|
259
259
|
],
|
|
260
260
|
},
|
|
261
261
|
],
|
|
262
262
|
endpoint: {
|
|
263
|
-
url: "https://logs.us-gov-
|
|
263
|
+
url: "https://logs.us-gov-west-1.amazonaws.com",
|
|
264
264
|
properties: {},
|
|
265
265
|
headers: {},
|
|
266
266
|
},
|
|
@@ -96,6 +96,13 @@ export class DataAlreadyAcceptedException extends __BaseException {
|
|
|
96
96
|
this.expectedSequenceToken = opts.expectedSequenceToken;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
+
export var DataProtectionStatus;
|
|
100
|
+
(function (DataProtectionStatus) {
|
|
101
|
+
DataProtectionStatus["ACTIVATED"] = "ACTIVATED";
|
|
102
|
+
DataProtectionStatus["ARCHIVED"] = "ARCHIVED";
|
|
103
|
+
DataProtectionStatus["DELETED"] = "DELETED";
|
|
104
|
+
DataProtectionStatus["DISABLED"] = "DISABLED";
|
|
105
|
+
})(DataProtectionStatus || (DataProtectionStatus = {}));
|
|
99
106
|
export var ExportTaskStatusCode;
|
|
100
107
|
(function (ExportTaskStatusCode) {
|
|
101
108
|
ExportTaskStatusCode["CANCELLED"] = "CANCELLED";
|
|
@@ -224,6 +231,9 @@ export const CreateLogGroupRequestFilterSensitiveLog = (obj) => ({
|
|
|
224
231
|
export const CreateLogStreamRequestFilterSensitiveLog = (obj) => ({
|
|
225
232
|
...obj,
|
|
226
233
|
});
|
|
234
|
+
export const DeleteDataProtectionPolicyRequestFilterSensitiveLog = (obj) => ({
|
|
235
|
+
...obj,
|
|
236
|
+
});
|
|
227
237
|
export const DeleteDestinationRequestFilterSensitiveLog = (obj) => ({
|
|
228
238
|
...obj,
|
|
229
239
|
});
|
|
@@ -356,6 +366,12 @@ export const SearchedLogStreamFilterSensitiveLog = (obj) => ({
|
|
|
356
366
|
export const FilterLogEventsResponseFilterSensitiveLog = (obj) => ({
|
|
357
367
|
...obj,
|
|
358
368
|
});
|
|
369
|
+
export const GetDataProtectionPolicyRequestFilterSensitiveLog = (obj) => ({
|
|
370
|
+
...obj,
|
|
371
|
+
});
|
|
372
|
+
export const GetDataProtectionPolicyResponseFilterSensitiveLog = (obj) => ({
|
|
373
|
+
...obj,
|
|
374
|
+
});
|
|
359
375
|
export const GetLogEventsRequestFilterSensitiveLog = (obj) => ({
|
|
360
376
|
...obj,
|
|
361
377
|
});
|
|
@@ -407,6 +423,12 @@ export const ListTagsLogGroupRequestFilterSensitiveLog = (obj) => ({
|
|
|
407
423
|
export const ListTagsLogGroupResponseFilterSensitiveLog = (obj) => ({
|
|
408
424
|
...obj,
|
|
409
425
|
});
|
|
426
|
+
export const PutDataProtectionPolicyRequestFilterSensitiveLog = (obj) => ({
|
|
427
|
+
...obj,
|
|
428
|
+
});
|
|
429
|
+
export const PutDataProtectionPolicyResponseFilterSensitiveLog = (obj) => ({
|
|
430
|
+
...obj,
|
|
431
|
+
});
|
|
410
432
|
export const PutDestinationRequestFilterSensitiveLog = (obj) => ({
|
|
411
433
|
...obj,
|
|
412
434
|
});
|
|
@@ -47,6 +47,15 @@ export const serializeAws_json1_1CreateLogStreamCommand = async (input, context)
|
|
|
47
47
|
body = JSON.stringify(serializeAws_json1_1CreateLogStreamRequest(input, context));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
|
+
export const serializeAws_json1_1DeleteDataProtectionPolicyCommand = async (input, context) => {
|
|
51
|
+
const headers = {
|
|
52
|
+
"content-type": "application/x-amz-json-1.1",
|
|
53
|
+
"x-amz-target": "Logs_20140328.DeleteDataProtectionPolicy",
|
|
54
|
+
};
|
|
55
|
+
let body;
|
|
56
|
+
body = JSON.stringify(serializeAws_json1_1DeleteDataProtectionPolicyRequest(input, context));
|
|
57
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
+
};
|
|
50
59
|
export const serializeAws_json1_1DeleteDestinationCommand = async (input, context) => {
|
|
51
60
|
const headers = {
|
|
52
61
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -218,6 +227,15 @@ export const serializeAws_json1_1FilterLogEventsCommand = async (input, context)
|
|
|
218
227
|
body = JSON.stringify(serializeAws_json1_1FilterLogEventsRequest(input, context));
|
|
219
228
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
229
|
};
|
|
230
|
+
export const serializeAws_json1_1GetDataProtectionPolicyCommand = async (input, context) => {
|
|
231
|
+
const headers = {
|
|
232
|
+
"content-type": "application/x-amz-json-1.1",
|
|
233
|
+
"x-amz-target": "Logs_20140328.GetDataProtectionPolicy",
|
|
234
|
+
};
|
|
235
|
+
let body;
|
|
236
|
+
body = JSON.stringify(serializeAws_json1_1GetDataProtectionPolicyRequest(input, context));
|
|
237
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
|
+
};
|
|
221
239
|
export const serializeAws_json1_1GetLogEventsCommand = async (input, context) => {
|
|
222
240
|
const headers = {
|
|
223
241
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -272,6 +290,15 @@ export const serializeAws_json1_1ListTagsLogGroupCommand = async (input, context
|
|
|
272
290
|
body = JSON.stringify(serializeAws_json1_1ListTagsLogGroupRequest(input, context));
|
|
273
291
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
292
|
};
|
|
293
|
+
export const serializeAws_json1_1PutDataProtectionPolicyCommand = async (input, context) => {
|
|
294
|
+
const headers = {
|
|
295
|
+
"content-type": "application/x-amz-json-1.1",
|
|
296
|
+
"x-amz-target": "Logs_20140328.PutDataProtectionPolicy",
|
|
297
|
+
};
|
|
298
|
+
let body;
|
|
299
|
+
body = JSON.stringify(serializeAws_json1_1PutDataProtectionPolicyRequest(input, context));
|
|
300
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
|
+
};
|
|
275
302
|
export const serializeAws_json1_1PutDestinationCommand = async (input, context) => {
|
|
276
303
|
const headers = {
|
|
277
304
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -614,6 +641,45 @@ const deserializeAws_json1_1CreateLogStreamCommandError = async (output, context
|
|
|
614
641
|
});
|
|
615
642
|
}
|
|
616
643
|
};
|
|
644
|
+
export const deserializeAws_json1_1DeleteDataProtectionPolicyCommand = async (output, context) => {
|
|
645
|
+
if (output.statusCode >= 300) {
|
|
646
|
+
return deserializeAws_json1_1DeleteDataProtectionPolicyCommandError(output, context);
|
|
647
|
+
}
|
|
648
|
+
await collectBody(output.body, context);
|
|
649
|
+
const response = {
|
|
650
|
+
$metadata: deserializeMetadata(output),
|
|
651
|
+
};
|
|
652
|
+
return Promise.resolve(response);
|
|
653
|
+
};
|
|
654
|
+
const deserializeAws_json1_1DeleteDataProtectionPolicyCommandError = async (output, context) => {
|
|
655
|
+
const parsedOutput = {
|
|
656
|
+
...output,
|
|
657
|
+
body: await parseErrorBody(output.body, context),
|
|
658
|
+
};
|
|
659
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
660
|
+
switch (errorCode) {
|
|
661
|
+
case "InvalidParameterException":
|
|
662
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
663
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
664
|
+
case "OperationAbortedException":
|
|
665
|
+
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
666
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
667
|
+
case "ResourceNotFoundException":
|
|
668
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
669
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
670
|
+
case "ServiceUnavailableException":
|
|
671
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
672
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
673
|
+
default:
|
|
674
|
+
const parsedBody = parsedOutput.body;
|
|
675
|
+
throwDefaultError({
|
|
676
|
+
output,
|
|
677
|
+
parsedBody,
|
|
678
|
+
exceptionCtor: __BaseException,
|
|
679
|
+
errorCode,
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
};
|
|
617
683
|
export const deserializeAws_json1_1DeleteDestinationCommand = async (output, context) => {
|
|
618
684
|
if (output.statusCode >= 300) {
|
|
619
685
|
return deserializeAws_json1_1DeleteDestinationCommandError(output, context);
|
|
@@ -1337,6 +1403,48 @@ const deserializeAws_json1_1FilterLogEventsCommandError = async (output, context
|
|
|
1337
1403
|
});
|
|
1338
1404
|
}
|
|
1339
1405
|
};
|
|
1406
|
+
export const deserializeAws_json1_1GetDataProtectionPolicyCommand = async (output, context) => {
|
|
1407
|
+
if (output.statusCode >= 300) {
|
|
1408
|
+
return deserializeAws_json1_1GetDataProtectionPolicyCommandError(output, context);
|
|
1409
|
+
}
|
|
1410
|
+
const data = await parseBody(output.body, context);
|
|
1411
|
+
let contents = {};
|
|
1412
|
+
contents = deserializeAws_json1_1GetDataProtectionPolicyResponse(data, context);
|
|
1413
|
+
const response = {
|
|
1414
|
+
$metadata: deserializeMetadata(output),
|
|
1415
|
+
...contents,
|
|
1416
|
+
};
|
|
1417
|
+
return Promise.resolve(response);
|
|
1418
|
+
};
|
|
1419
|
+
const deserializeAws_json1_1GetDataProtectionPolicyCommandError = async (output, context) => {
|
|
1420
|
+
const parsedOutput = {
|
|
1421
|
+
...output,
|
|
1422
|
+
body: await parseErrorBody(output.body, context),
|
|
1423
|
+
};
|
|
1424
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1425
|
+
switch (errorCode) {
|
|
1426
|
+
case "InvalidParameterException":
|
|
1427
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1428
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1429
|
+
case "OperationAbortedException":
|
|
1430
|
+
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1431
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
1432
|
+
case "ResourceNotFoundException":
|
|
1433
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1434
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1435
|
+
case "ServiceUnavailableException":
|
|
1436
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1437
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1438
|
+
default:
|
|
1439
|
+
const parsedBody = parsedOutput.body;
|
|
1440
|
+
throwDefaultError({
|
|
1441
|
+
output,
|
|
1442
|
+
parsedBody,
|
|
1443
|
+
exceptionCtor: __BaseException,
|
|
1444
|
+
errorCode,
|
|
1445
|
+
});
|
|
1446
|
+
}
|
|
1447
|
+
};
|
|
1340
1448
|
export const deserializeAws_json1_1GetLogEventsCommand = async (output, context) => {
|
|
1341
1449
|
if (output.statusCode >= 300) {
|
|
1342
1450
|
return deserializeAws_json1_1GetLogEventsCommandError(output, context);
|
|
@@ -1574,6 +1682,51 @@ const deserializeAws_json1_1ListTagsLogGroupCommandError = async (output, contex
|
|
|
1574
1682
|
});
|
|
1575
1683
|
}
|
|
1576
1684
|
};
|
|
1685
|
+
export const deserializeAws_json1_1PutDataProtectionPolicyCommand = async (output, context) => {
|
|
1686
|
+
if (output.statusCode >= 300) {
|
|
1687
|
+
return deserializeAws_json1_1PutDataProtectionPolicyCommandError(output, context);
|
|
1688
|
+
}
|
|
1689
|
+
const data = await parseBody(output.body, context);
|
|
1690
|
+
let contents = {};
|
|
1691
|
+
contents = deserializeAws_json1_1PutDataProtectionPolicyResponse(data, context);
|
|
1692
|
+
const response = {
|
|
1693
|
+
$metadata: deserializeMetadata(output),
|
|
1694
|
+
...contents,
|
|
1695
|
+
};
|
|
1696
|
+
return Promise.resolve(response);
|
|
1697
|
+
};
|
|
1698
|
+
const deserializeAws_json1_1PutDataProtectionPolicyCommandError = async (output, context) => {
|
|
1699
|
+
const parsedOutput = {
|
|
1700
|
+
...output,
|
|
1701
|
+
body: await parseErrorBody(output.body, context),
|
|
1702
|
+
};
|
|
1703
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1704
|
+
switch (errorCode) {
|
|
1705
|
+
case "InvalidParameterException":
|
|
1706
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1707
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1708
|
+
case "LimitExceededException":
|
|
1709
|
+
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
1710
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1711
|
+
case "OperationAbortedException":
|
|
1712
|
+
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1713
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
1714
|
+
case "ResourceNotFoundException":
|
|
1715
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1716
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1717
|
+
case "ServiceUnavailableException":
|
|
1718
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1719
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1720
|
+
default:
|
|
1721
|
+
const parsedBody = parsedOutput.body;
|
|
1722
|
+
throwDefaultError({
|
|
1723
|
+
output,
|
|
1724
|
+
parsedBody,
|
|
1725
|
+
exceptionCtor: __BaseException,
|
|
1726
|
+
errorCode,
|
|
1727
|
+
});
|
|
1728
|
+
}
|
|
1729
|
+
};
|
|
1577
1730
|
export const deserializeAws_json1_1PutDestinationCommand = async (output, context) => {
|
|
1578
1731
|
if (output.statusCode >= 300) {
|
|
1579
1732
|
return deserializeAws_json1_1PutDestinationCommandError(output, context);
|
|
@@ -2267,6 +2420,13 @@ const deserializeAws_json1_1UnrecognizedClientExceptionResponse = async (parsedO
|
|
|
2267
2420
|
});
|
|
2268
2421
|
return __decorateServiceException(exception, body);
|
|
2269
2422
|
};
|
|
2423
|
+
const serializeAws_json1_1AccountIds = (input, context) => {
|
|
2424
|
+
return input
|
|
2425
|
+
.filter((e) => e != null)
|
|
2426
|
+
.map((entry) => {
|
|
2427
|
+
return entry;
|
|
2428
|
+
});
|
|
2429
|
+
};
|
|
2270
2430
|
const serializeAws_json1_1AssociateKmsKeyRequest = (input, context) => {
|
|
2271
2431
|
return {
|
|
2272
2432
|
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
@@ -2302,6 +2462,11 @@ const serializeAws_json1_1CreateLogStreamRequest = (input, context) => {
|
|
|
2302
2462
|
...(input.logStreamName != null && { logStreamName: input.logStreamName }),
|
|
2303
2463
|
};
|
|
2304
2464
|
};
|
|
2465
|
+
const serializeAws_json1_1DeleteDataProtectionPolicyRequest = (input, context) => {
|
|
2466
|
+
return {
|
|
2467
|
+
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2468
|
+
};
|
|
2469
|
+
};
|
|
2305
2470
|
const serializeAws_json1_1DeleteDestinationRequest = (input, context) => {
|
|
2306
2471
|
return {
|
|
2307
2472
|
...(input.destinationName != null && { destinationName: input.destinationName }),
|
|
@@ -2362,7 +2527,12 @@ const serializeAws_json1_1DescribeExportTasksRequest = (input, context) => {
|
|
|
2362
2527
|
};
|
|
2363
2528
|
const serializeAws_json1_1DescribeLogGroupsRequest = (input, context) => {
|
|
2364
2529
|
return {
|
|
2530
|
+
...(input.accountIdentifiers != null && {
|
|
2531
|
+
accountIdentifiers: serializeAws_json1_1AccountIds(input.accountIdentifiers, context),
|
|
2532
|
+
}),
|
|
2533
|
+
...(input.includeLinkedAccounts != null && { includeLinkedAccounts: input.includeLinkedAccounts }),
|
|
2365
2534
|
...(input.limit != null && { limit: input.limit }),
|
|
2535
|
+
...(input.logGroupNamePattern != null && { logGroupNamePattern: input.logGroupNamePattern }),
|
|
2366
2536
|
...(input.logGroupNamePrefix != null && { logGroupNamePrefix: input.logGroupNamePrefix }),
|
|
2367
2537
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2368
2538
|
};
|
|
@@ -2371,6 +2541,7 @@ const serializeAws_json1_1DescribeLogStreamsRequest = (input, context) => {
|
|
|
2371
2541
|
return {
|
|
2372
2542
|
...(input.descending != null && { descending: input.descending }),
|
|
2373
2543
|
...(input.limit != null && { limit: input.limit }),
|
|
2544
|
+
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2374
2545
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2375
2546
|
...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
|
|
2376
2547
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
@@ -2436,6 +2607,7 @@ const serializeAws_json1_1FilterLogEventsRequest = (input, context) => {
|
|
|
2436
2607
|
...(input.filterPattern != null && { filterPattern: input.filterPattern }),
|
|
2437
2608
|
...(input.interleaved != null && { interleaved: input.interleaved }),
|
|
2438
2609
|
...(input.limit != null && { limit: input.limit }),
|
|
2610
|
+
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2439
2611
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2440
2612
|
...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
|
|
2441
2613
|
...(input.logStreamNames != null && {
|
|
@@ -2443,21 +2615,30 @@ const serializeAws_json1_1FilterLogEventsRequest = (input, context) => {
|
|
|
2443
2615
|
}),
|
|
2444
2616
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2445
2617
|
...(input.startTime != null && { startTime: input.startTime }),
|
|
2618
|
+
...(input.unmask != null && { unmask: input.unmask }),
|
|
2619
|
+
};
|
|
2620
|
+
};
|
|
2621
|
+
const serializeAws_json1_1GetDataProtectionPolicyRequest = (input, context) => {
|
|
2622
|
+
return {
|
|
2623
|
+
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2446
2624
|
};
|
|
2447
2625
|
};
|
|
2448
2626
|
const serializeAws_json1_1GetLogEventsRequest = (input, context) => {
|
|
2449
2627
|
return {
|
|
2450
2628
|
...(input.endTime != null && { endTime: input.endTime }),
|
|
2451
2629
|
...(input.limit != null && { limit: input.limit }),
|
|
2630
|
+
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2452
2631
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2453
2632
|
...(input.logStreamName != null && { logStreamName: input.logStreamName }),
|
|
2454
2633
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2455
2634
|
...(input.startFromHead != null && { startFromHead: input.startFromHead }),
|
|
2456
2635
|
...(input.startTime != null && { startTime: input.startTime }),
|
|
2636
|
+
...(input.unmask != null && { unmask: input.unmask }),
|
|
2457
2637
|
};
|
|
2458
2638
|
};
|
|
2459
2639
|
const serializeAws_json1_1GetLogGroupFieldsRequest = (input, context) => {
|
|
2460
2640
|
return {
|
|
2641
|
+
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2461
2642
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2462
2643
|
...(input.time != null && { time: input.time }),
|
|
2463
2644
|
};
|
|
@@ -2465,6 +2646,7 @@ const serializeAws_json1_1GetLogGroupFieldsRequest = (input, context) => {
|
|
|
2465
2646
|
const serializeAws_json1_1GetLogRecordRequest = (input, context) => {
|
|
2466
2647
|
return {
|
|
2467
2648
|
...(input.logRecordPointer != null && { logRecordPointer: input.logRecordPointer }),
|
|
2649
|
+
...(input.unmask != null && { unmask: input.unmask }),
|
|
2468
2650
|
};
|
|
2469
2651
|
};
|
|
2470
2652
|
const serializeAws_json1_1GetQueryResultsRequest = (input, context) => {
|
|
@@ -2502,6 +2684,13 @@ const serializeAws_json1_1ListTagsLogGroupRequest = (input, context) => {
|
|
|
2502
2684
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2503
2685
|
};
|
|
2504
2686
|
};
|
|
2687
|
+
const serializeAws_json1_1LogGroupIdentifiers = (input, context) => {
|
|
2688
|
+
return input
|
|
2689
|
+
.filter((e) => e != null)
|
|
2690
|
+
.map((entry) => {
|
|
2691
|
+
return entry;
|
|
2692
|
+
});
|
|
2693
|
+
};
|
|
2505
2694
|
const serializeAws_json1_1LogGroupNames = (input, context) => {
|
|
2506
2695
|
return input
|
|
2507
2696
|
.filter((e) => e != null)
|
|
@@ -2526,6 +2715,12 @@ const serializeAws_json1_1MetricTransformations = (input, context) => {
|
|
|
2526
2715
|
return serializeAws_json1_1MetricTransformation(entry, context);
|
|
2527
2716
|
});
|
|
2528
2717
|
};
|
|
2718
|
+
const serializeAws_json1_1PutDataProtectionPolicyRequest = (input, context) => {
|
|
2719
|
+
return {
|
|
2720
|
+
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2721
|
+
...(input.policyDocument != null && { policyDocument: input.policyDocument }),
|
|
2722
|
+
};
|
|
2723
|
+
};
|
|
2529
2724
|
const serializeAws_json1_1PutDestinationPolicyRequest = (input, context) => {
|
|
2530
2725
|
return {
|
|
2531
2726
|
...(input.accessPolicy != null && { accessPolicy: input.accessPolicy }),
|
|
@@ -2595,6 +2790,9 @@ const serializeAws_json1_1StartQueryRequest = (input, context) => {
|
|
|
2595
2790
|
return {
|
|
2596
2791
|
...(input.endTime != null && { endTime: input.endTime }),
|
|
2597
2792
|
...(input.limit != null && { limit: input.limit }),
|
|
2793
|
+
...(input.logGroupIdentifiers != null && {
|
|
2794
|
+
logGroupIdentifiers: serializeAws_json1_1LogGroupIdentifiers(input.logGroupIdentifiers, context),
|
|
2795
|
+
}),
|
|
2598
2796
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2599
2797
|
...(input.logGroupNames != null && {
|
|
2600
2798
|
logGroupNames: serializeAws_json1_1LogGroupNames(input.logGroupNames, context),
|
|
@@ -2852,6 +3050,13 @@ const deserializeAws_json1_1FilterLogEventsResponse = (output, context) => {
|
|
|
2852
3050
|
: undefined,
|
|
2853
3051
|
};
|
|
2854
3052
|
};
|
|
3053
|
+
const deserializeAws_json1_1GetDataProtectionPolicyResponse = (output, context) => {
|
|
3054
|
+
return {
|
|
3055
|
+
lastUpdatedTime: __expectLong(output.lastUpdatedTime),
|
|
3056
|
+
logGroupIdentifier: __expectString(output.logGroupIdentifier),
|
|
3057
|
+
policyDocument: __expectString(output.policyDocument),
|
|
3058
|
+
};
|
|
3059
|
+
};
|
|
2855
3060
|
const deserializeAws_json1_1GetLogEventsResponse = (output, context) => {
|
|
2856
3061
|
return {
|
|
2857
3062
|
events: output.events != null ? deserializeAws_json1_1OutputLogEvents(output.events, context) : undefined,
|
|
@@ -2913,6 +3118,7 @@ const deserializeAws_json1_1LogGroup = (output, context) => {
|
|
|
2913
3118
|
return {
|
|
2914
3119
|
arn: __expectString(output.arn),
|
|
2915
3120
|
creationTime: __expectLong(output.creationTime),
|
|
3121
|
+
dataProtectionStatus: __expectString(output.dataProtectionStatus),
|
|
2916
3122
|
kmsKeyId: __expectString(output.kmsKeyId),
|
|
2917
3123
|
logGroupName: __expectString(output.logGroupName),
|
|
2918
3124
|
metricFilterCount: __expectInt32(output.metricFilterCount),
|
|
@@ -3085,6 +3291,13 @@ const deserializeAws_json1_1OutputLogEvents = (output, context) => {
|
|
|
3085
3291
|
});
|
|
3086
3292
|
return retVal;
|
|
3087
3293
|
};
|
|
3294
|
+
const deserializeAws_json1_1PutDataProtectionPolicyResponse = (output, context) => {
|
|
3295
|
+
return {
|
|
3296
|
+
lastUpdatedTime: __expectLong(output.lastUpdatedTime),
|
|
3297
|
+
logGroupIdentifier: __expectString(output.logGroupIdentifier),
|
|
3298
|
+
policyDocument: __expectString(output.policyDocument),
|
|
3299
|
+
};
|
|
3300
|
+
};
|
|
3088
3301
|
const deserializeAws_json1_1PutDestinationResponse = (output, context) => {
|
|
3089
3302
|
return {
|
|
3090
3303
|
destination: output.destination != null ? deserializeAws_json1_1Destination(output.destination, context) : undefined,
|