@aws-sdk/client-cloudwatch-logs 3.451.0 → 3.458.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 +129 -73
- package/dist-cjs/CloudWatchLogs.js +14 -0
- package/dist-cjs/commands/CreateLogAnomalyDetectorCommand.js +51 -0
- package/dist-cjs/commands/DeleteLogAnomalyDetectorCommand.js +51 -0
- package/dist-cjs/commands/GetLogAnomalyDetectorCommand.js +51 -0
- package/dist-cjs/commands/ListAnomaliesCommand.js +51 -0
- package/dist-cjs/commands/ListLogAnomalyDetectorsCommand.js +51 -0
- package/dist-cjs/commands/UpdateAnomalyCommand.js +51 -0
- package/dist-cjs/commands/UpdateLogAnomalyDetectorCommand.js +51 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/models/models_0.js +39 -1
- package/dist-cjs/pagination/ListAnomaliesPaginator.js +29 -0
- package/dist-cjs/pagination/ListLogAnomalyDetectorsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_1.js +340 -3
- package/dist-es/CloudWatchLogs.js +14 -0
- package/dist-es/commands/CreateLogAnomalyDetectorCommand.js +47 -0
- package/dist-es/commands/DeleteLogAnomalyDetectorCommand.js +47 -0
- package/dist-es/commands/GetLogAnomalyDetectorCommand.js +47 -0
- package/dist-es/commands/ListAnomaliesCommand.js +47 -0
- package/dist-es/commands/ListLogAnomalyDetectorsCommand.js +47 -0
- package/dist-es/commands/UpdateAnomalyCommand.js +47 -0
- package/dist-es/commands/UpdateLogAnomalyDetectorCommand.js +47 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +38 -0
- package/dist-es/pagination/ListAnomaliesPaginator.js +25 -0
- package/dist-es/pagination/ListLogAnomalyDetectorsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +323 -0
- package/dist-types/CloudWatchLogs.d.ts +49 -0
- package/dist-types/CloudWatchLogsClient.d.ts +9 -2
- package/dist-types/commands/CreateDeliveryCommand.d.ts +1 -1
- package/dist-types/commands/CreateLogAnomalyDetectorCommand.d.ts +129 -0
- package/dist-types/commands/CreateLogGroupCommand.d.ts +1 -0
- package/dist-types/commands/DeleteLogAnomalyDetectorCommand.d.ts +83 -0
- package/dist-types/commands/DescribeLogGroupsCommand.d.ts +2 -0
- package/dist-types/commands/GetLogAnomalyDetectorCommand.d.ts +95 -0
- package/dist-types/commands/ListAnomaliesCommand.d.ts +127 -0
- package/dist-types/commands/ListLogAnomalyDetectorsCommand.d.ts +103 -0
- package/dist-types/commands/PutDeliveryDestinationCommand.d.ts +1 -1
- package/dist-types/commands/PutDeliveryDestinationPolicyCommand.d.ts +1 -1
- package/dist-types/commands/PutDeliverySourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAnomalyCommand.d.ts +98 -0
- package/dist-types/commands/UpdateLogAnomalyDetectorCommand.d.ts +87 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +686 -4
- package/dist-types/pagination/ListAnomaliesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListLogAnomalyDetectorsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +63 -0
- package/dist-types/ts3.4/CloudWatchLogs.d.ts +119 -0
- package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +44 -2
- package/dist-types/ts3.4/commands/CreateLogAnomalyDetectorCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteLogAnomalyDetectorCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetLogAnomalyDetectorCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListAnomaliesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListLogAnomalyDetectorsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateAnomalyCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/UpdateLogAnomalyDetectorCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +158 -0
- package/dist-types/ts3.4/pagination/ListAnomaliesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListLogAnomalyDetectorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +84 -0
- package/package.json +3 -3
|
@@ -27,6 +27,12 @@ export const se_CreateExportTaskCommand = async (input, context) => {
|
|
|
27
27
|
body = JSON.stringify(_json(input));
|
|
28
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
29
|
};
|
|
30
|
+
export const se_CreateLogAnomalyDetectorCommand = async (input, context) => {
|
|
31
|
+
const headers = sharedHeaders("CreateLogAnomalyDetector");
|
|
32
|
+
let body;
|
|
33
|
+
body = JSON.stringify(_json(input));
|
|
34
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
+
};
|
|
30
36
|
export const se_CreateLogGroupCommand = async (input, context) => {
|
|
31
37
|
const headers = sharedHeaders("CreateLogGroup");
|
|
32
38
|
let body;
|
|
@@ -81,6 +87,12 @@ export const se_DeleteDestinationCommand = async (input, context) => {
|
|
|
81
87
|
body = JSON.stringify(_json(input));
|
|
82
88
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
89
|
};
|
|
90
|
+
export const se_DeleteLogAnomalyDetectorCommand = async (input, context) => {
|
|
91
|
+
const headers = sharedHeaders("DeleteLogAnomalyDetector");
|
|
92
|
+
let body;
|
|
93
|
+
body = JSON.stringify(_json(input));
|
|
94
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
+
};
|
|
84
96
|
export const se_DeleteLogGroupCommand = async (input, context) => {
|
|
85
97
|
const headers = sharedHeaders("DeleteLogGroup");
|
|
86
98
|
let body;
|
|
@@ -243,6 +255,12 @@ export const se_GetDeliverySourceCommand = async (input, context) => {
|
|
|
243
255
|
body = JSON.stringify(_json(input));
|
|
244
256
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
257
|
};
|
|
258
|
+
export const se_GetLogAnomalyDetectorCommand = async (input, context) => {
|
|
259
|
+
const headers = sharedHeaders("GetLogAnomalyDetector");
|
|
260
|
+
let body;
|
|
261
|
+
body = JSON.stringify(_json(input));
|
|
262
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
263
|
+
};
|
|
246
264
|
export const se_GetLogEventsCommand = async (input, context) => {
|
|
247
265
|
const headers = sharedHeaders("GetLogEvents");
|
|
248
266
|
let body;
|
|
@@ -267,6 +285,18 @@ export const se_GetQueryResultsCommand = async (input, context) => {
|
|
|
267
285
|
body = JSON.stringify(_json(input));
|
|
268
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
287
|
};
|
|
288
|
+
export const se_ListAnomaliesCommand = async (input, context) => {
|
|
289
|
+
const headers = sharedHeaders("ListAnomalies");
|
|
290
|
+
let body;
|
|
291
|
+
body = JSON.stringify(_json(input));
|
|
292
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
293
|
+
};
|
|
294
|
+
export const se_ListLogAnomalyDetectorsCommand = async (input, context) => {
|
|
295
|
+
const headers = sharedHeaders("ListLogAnomalyDetectors");
|
|
296
|
+
let body;
|
|
297
|
+
body = JSON.stringify(_json(input));
|
|
298
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
299
|
+
};
|
|
270
300
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
271
301
|
const headers = sharedHeaders("ListTagsForResource");
|
|
272
302
|
let body;
|
|
@@ -399,6 +429,18 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
399
429
|
body = JSON.stringify(_json(input));
|
|
400
430
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
401
431
|
};
|
|
432
|
+
export const se_UpdateAnomalyCommand = async (input, context) => {
|
|
433
|
+
const headers = sharedHeaders("UpdateAnomaly");
|
|
434
|
+
let body;
|
|
435
|
+
body = JSON.stringify(_json(input));
|
|
436
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
437
|
+
};
|
|
438
|
+
export const se_UpdateLogAnomalyDetectorCommand = async (input, context) => {
|
|
439
|
+
const headers = sharedHeaders("UpdateLogAnomalyDetector");
|
|
440
|
+
let body;
|
|
441
|
+
body = JSON.stringify(_json(input));
|
|
442
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
443
|
+
};
|
|
402
444
|
export const de_AssociateKmsKeyCommand = async (output, context) => {
|
|
403
445
|
if (output.statusCode >= 300) {
|
|
404
446
|
return de_AssociateKmsKeyCommandError(output, context);
|
|
@@ -572,6 +614,50 @@ const de_CreateExportTaskCommandError = async (output, context) => {
|
|
|
572
614
|
});
|
|
573
615
|
}
|
|
574
616
|
};
|
|
617
|
+
export const de_CreateLogAnomalyDetectorCommand = async (output, context) => {
|
|
618
|
+
if (output.statusCode >= 300) {
|
|
619
|
+
return de_CreateLogAnomalyDetectorCommandError(output, context);
|
|
620
|
+
}
|
|
621
|
+
const data = await parseBody(output.body, context);
|
|
622
|
+
let contents = {};
|
|
623
|
+
contents = _json(data);
|
|
624
|
+
const response = {
|
|
625
|
+
$metadata: deserializeMetadata(output),
|
|
626
|
+
...contents,
|
|
627
|
+
};
|
|
628
|
+
return response;
|
|
629
|
+
};
|
|
630
|
+
const de_CreateLogAnomalyDetectorCommandError = async (output, context) => {
|
|
631
|
+
const parsedOutput = {
|
|
632
|
+
...output,
|
|
633
|
+
body: await parseErrorBody(output.body, context),
|
|
634
|
+
};
|
|
635
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
636
|
+
switch (errorCode) {
|
|
637
|
+
case "InvalidParameterException":
|
|
638
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
639
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
640
|
+
case "LimitExceededException":
|
|
641
|
+
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
642
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
643
|
+
case "OperationAbortedException":
|
|
644
|
+
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
645
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
646
|
+
case "ResourceNotFoundException":
|
|
647
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
648
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
649
|
+
case "ServiceUnavailableException":
|
|
650
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
651
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
652
|
+
default:
|
|
653
|
+
const parsedBody = parsedOutput.body;
|
|
654
|
+
return throwDefaultError({
|
|
655
|
+
output,
|
|
656
|
+
parsedBody,
|
|
657
|
+
errorCode,
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
};
|
|
575
661
|
export const de_CreateLogGroupCommand = async (output, context) => {
|
|
576
662
|
if (output.statusCode >= 300) {
|
|
577
663
|
return de_CreateLogGroupCommandError(output, context);
|
|
@@ -935,6 +1021,44 @@ const de_DeleteDestinationCommandError = async (output, context) => {
|
|
|
935
1021
|
});
|
|
936
1022
|
}
|
|
937
1023
|
};
|
|
1024
|
+
export const de_DeleteLogAnomalyDetectorCommand = async (output, context) => {
|
|
1025
|
+
if (output.statusCode >= 300) {
|
|
1026
|
+
return de_DeleteLogAnomalyDetectorCommandError(output, context);
|
|
1027
|
+
}
|
|
1028
|
+
await collectBody(output.body, context);
|
|
1029
|
+
const response = {
|
|
1030
|
+
$metadata: deserializeMetadata(output),
|
|
1031
|
+
};
|
|
1032
|
+
return response;
|
|
1033
|
+
};
|
|
1034
|
+
const de_DeleteLogAnomalyDetectorCommandError = async (output, context) => {
|
|
1035
|
+
const parsedOutput = {
|
|
1036
|
+
...output,
|
|
1037
|
+
body: await parseErrorBody(output.body, context),
|
|
1038
|
+
};
|
|
1039
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1040
|
+
switch (errorCode) {
|
|
1041
|
+
case "InvalidParameterException":
|
|
1042
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1043
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1044
|
+
case "OperationAbortedException":
|
|
1045
|
+
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1046
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1047
|
+
case "ResourceNotFoundException":
|
|
1048
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1049
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1050
|
+
case "ServiceUnavailableException":
|
|
1051
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1052
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1053
|
+
default:
|
|
1054
|
+
const parsedBody = parsedOutput.body;
|
|
1055
|
+
return throwDefaultError({
|
|
1056
|
+
output,
|
|
1057
|
+
parsedBody,
|
|
1058
|
+
errorCode,
|
|
1059
|
+
});
|
|
1060
|
+
}
|
|
1061
|
+
};
|
|
938
1062
|
export const de_DeleteLogGroupCommand = async (output, context) => {
|
|
939
1063
|
if (output.statusCode >= 300) {
|
|
940
1064
|
return de_DeleteLogGroupCommandError(output, context);
|
|
@@ -1976,6 +2100,47 @@ const de_GetDeliverySourceCommandError = async (output, context) => {
|
|
|
1976
2100
|
});
|
|
1977
2101
|
}
|
|
1978
2102
|
};
|
|
2103
|
+
export const de_GetLogAnomalyDetectorCommand = async (output, context) => {
|
|
2104
|
+
if (output.statusCode >= 300) {
|
|
2105
|
+
return de_GetLogAnomalyDetectorCommandError(output, context);
|
|
2106
|
+
}
|
|
2107
|
+
const data = await parseBody(output.body, context);
|
|
2108
|
+
let contents = {};
|
|
2109
|
+
contents = _json(data);
|
|
2110
|
+
const response = {
|
|
2111
|
+
$metadata: deserializeMetadata(output),
|
|
2112
|
+
...contents,
|
|
2113
|
+
};
|
|
2114
|
+
return response;
|
|
2115
|
+
};
|
|
2116
|
+
const de_GetLogAnomalyDetectorCommandError = async (output, context) => {
|
|
2117
|
+
const parsedOutput = {
|
|
2118
|
+
...output,
|
|
2119
|
+
body: await parseErrorBody(output.body, context),
|
|
2120
|
+
};
|
|
2121
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2122
|
+
switch (errorCode) {
|
|
2123
|
+
case "InvalidParameterException":
|
|
2124
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2125
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2126
|
+
case "OperationAbortedException":
|
|
2127
|
+
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2128
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2129
|
+
case "ResourceNotFoundException":
|
|
2130
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2131
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2132
|
+
case "ServiceUnavailableException":
|
|
2133
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2134
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2135
|
+
default:
|
|
2136
|
+
const parsedBody = parsedOutput.body;
|
|
2137
|
+
return throwDefaultError({
|
|
2138
|
+
output,
|
|
2139
|
+
parsedBody,
|
|
2140
|
+
errorCode,
|
|
2141
|
+
});
|
|
2142
|
+
}
|
|
2143
|
+
};
|
|
1979
2144
|
export const de_GetLogEventsCommand = async (output, context) => {
|
|
1980
2145
|
if (output.statusCode >= 300) {
|
|
1981
2146
|
return de_GetLogEventsCommandError(output, context);
|
|
@@ -2134,6 +2299,88 @@ const de_GetQueryResultsCommandError = async (output, context) => {
|
|
|
2134
2299
|
});
|
|
2135
2300
|
}
|
|
2136
2301
|
};
|
|
2302
|
+
export const de_ListAnomaliesCommand = async (output, context) => {
|
|
2303
|
+
if (output.statusCode >= 300) {
|
|
2304
|
+
return de_ListAnomaliesCommandError(output, context);
|
|
2305
|
+
}
|
|
2306
|
+
const data = await parseBody(output.body, context);
|
|
2307
|
+
let contents = {};
|
|
2308
|
+
contents = _json(data);
|
|
2309
|
+
const response = {
|
|
2310
|
+
$metadata: deserializeMetadata(output),
|
|
2311
|
+
...contents,
|
|
2312
|
+
};
|
|
2313
|
+
return response;
|
|
2314
|
+
};
|
|
2315
|
+
const de_ListAnomaliesCommandError = async (output, context) => {
|
|
2316
|
+
const parsedOutput = {
|
|
2317
|
+
...output,
|
|
2318
|
+
body: await parseErrorBody(output.body, context),
|
|
2319
|
+
};
|
|
2320
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2321
|
+
switch (errorCode) {
|
|
2322
|
+
case "InvalidParameterException":
|
|
2323
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2324
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2325
|
+
case "OperationAbortedException":
|
|
2326
|
+
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2327
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2328
|
+
case "ResourceNotFoundException":
|
|
2329
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2330
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2331
|
+
case "ServiceUnavailableException":
|
|
2332
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2333
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2334
|
+
default:
|
|
2335
|
+
const parsedBody = parsedOutput.body;
|
|
2336
|
+
return throwDefaultError({
|
|
2337
|
+
output,
|
|
2338
|
+
parsedBody,
|
|
2339
|
+
errorCode,
|
|
2340
|
+
});
|
|
2341
|
+
}
|
|
2342
|
+
};
|
|
2343
|
+
export const de_ListLogAnomalyDetectorsCommand = async (output, context) => {
|
|
2344
|
+
if (output.statusCode >= 300) {
|
|
2345
|
+
return de_ListLogAnomalyDetectorsCommandError(output, context);
|
|
2346
|
+
}
|
|
2347
|
+
const data = await parseBody(output.body, context);
|
|
2348
|
+
let contents = {};
|
|
2349
|
+
contents = _json(data);
|
|
2350
|
+
const response = {
|
|
2351
|
+
$metadata: deserializeMetadata(output),
|
|
2352
|
+
...contents,
|
|
2353
|
+
};
|
|
2354
|
+
return response;
|
|
2355
|
+
};
|
|
2356
|
+
const de_ListLogAnomalyDetectorsCommandError = async (output, context) => {
|
|
2357
|
+
const parsedOutput = {
|
|
2358
|
+
...output,
|
|
2359
|
+
body: await parseErrorBody(output.body, context),
|
|
2360
|
+
};
|
|
2361
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2362
|
+
switch (errorCode) {
|
|
2363
|
+
case "InvalidParameterException":
|
|
2364
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2365
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2366
|
+
case "OperationAbortedException":
|
|
2367
|
+
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2368
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2369
|
+
case "ResourceNotFoundException":
|
|
2370
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2371
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2372
|
+
case "ServiceUnavailableException":
|
|
2373
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2374
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2375
|
+
default:
|
|
2376
|
+
const parsedBody = parsedOutput.body;
|
|
2377
|
+
return throwDefaultError({
|
|
2378
|
+
output,
|
|
2379
|
+
parsedBody,
|
|
2380
|
+
errorCode,
|
|
2381
|
+
});
|
|
2382
|
+
}
|
|
2383
|
+
};
|
|
2137
2384
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2138
2385
|
if (output.statusCode >= 300) {
|
|
2139
2386
|
return de_ListTagsForResourceCommandError(output, context);
|
|
@@ -2997,6 +3244,82 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2997
3244
|
});
|
|
2998
3245
|
}
|
|
2999
3246
|
};
|
|
3247
|
+
export const de_UpdateAnomalyCommand = async (output, context) => {
|
|
3248
|
+
if (output.statusCode >= 300) {
|
|
3249
|
+
return de_UpdateAnomalyCommandError(output, context);
|
|
3250
|
+
}
|
|
3251
|
+
await collectBody(output.body, context);
|
|
3252
|
+
const response = {
|
|
3253
|
+
$metadata: deserializeMetadata(output),
|
|
3254
|
+
};
|
|
3255
|
+
return response;
|
|
3256
|
+
};
|
|
3257
|
+
const de_UpdateAnomalyCommandError = async (output, context) => {
|
|
3258
|
+
const parsedOutput = {
|
|
3259
|
+
...output,
|
|
3260
|
+
body: await parseErrorBody(output.body, context),
|
|
3261
|
+
};
|
|
3262
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3263
|
+
switch (errorCode) {
|
|
3264
|
+
case "InvalidParameterException":
|
|
3265
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3266
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3267
|
+
case "OperationAbortedException":
|
|
3268
|
+
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
3269
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
3270
|
+
case "ResourceNotFoundException":
|
|
3271
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3272
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3273
|
+
case "ServiceUnavailableException":
|
|
3274
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3275
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3276
|
+
default:
|
|
3277
|
+
const parsedBody = parsedOutput.body;
|
|
3278
|
+
return throwDefaultError({
|
|
3279
|
+
output,
|
|
3280
|
+
parsedBody,
|
|
3281
|
+
errorCode,
|
|
3282
|
+
});
|
|
3283
|
+
}
|
|
3284
|
+
};
|
|
3285
|
+
export const de_UpdateLogAnomalyDetectorCommand = async (output, context) => {
|
|
3286
|
+
if (output.statusCode >= 300) {
|
|
3287
|
+
return de_UpdateLogAnomalyDetectorCommandError(output, context);
|
|
3288
|
+
}
|
|
3289
|
+
await collectBody(output.body, context);
|
|
3290
|
+
const response = {
|
|
3291
|
+
$metadata: deserializeMetadata(output),
|
|
3292
|
+
};
|
|
3293
|
+
return response;
|
|
3294
|
+
};
|
|
3295
|
+
const de_UpdateLogAnomalyDetectorCommandError = async (output, context) => {
|
|
3296
|
+
const parsedOutput = {
|
|
3297
|
+
...output,
|
|
3298
|
+
body: await parseErrorBody(output.body, context),
|
|
3299
|
+
};
|
|
3300
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3301
|
+
switch (errorCode) {
|
|
3302
|
+
case "InvalidParameterException":
|
|
3303
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3304
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3305
|
+
case "OperationAbortedException":
|
|
3306
|
+
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
3307
|
+
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
3308
|
+
case "ResourceNotFoundException":
|
|
3309
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3310
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3311
|
+
case "ServiceUnavailableException":
|
|
3312
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3313
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3314
|
+
default:
|
|
3315
|
+
const parsedBody = parsedOutput.body;
|
|
3316
|
+
return throwDefaultError({
|
|
3317
|
+
output,
|
|
3318
|
+
parsedBody,
|
|
3319
|
+
errorCode,
|
|
3320
|
+
});
|
|
3321
|
+
}
|
|
3322
|
+
};
|
|
3000
3323
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3001
3324
|
const body = parsedOutput.body;
|
|
3002
3325
|
const deserialized = _json(body);
|
|
@@ -4,6 +4,7 @@ import { AssociateKmsKeyCommandInput, AssociateKmsKeyCommandOutput } from "./com
|
|
|
4
4
|
import { CancelExportTaskCommandInput, CancelExportTaskCommandOutput } from "./commands/CancelExportTaskCommand";
|
|
5
5
|
import { CreateDeliveryCommandInput, CreateDeliveryCommandOutput } from "./commands/CreateDeliveryCommand";
|
|
6
6
|
import { CreateExportTaskCommandInput, CreateExportTaskCommandOutput } from "./commands/CreateExportTaskCommand";
|
|
7
|
+
import { CreateLogAnomalyDetectorCommandInput, CreateLogAnomalyDetectorCommandOutput } from "./commands/CreateLogAnomalyDetectorCommand";
|
|
7
8
|
import { CreateLogGroupCommandInput, CreateLogGroupCommandOutput } from "./commands/CreateLogGroupCommand";
|
|
8
9
|
import { CreateLogStreamCommandInput, CreateLogStreamCommandOutput } from "./commands/CreateLogStreamCommand";
|
|
9
10
|
import { DeleteAccountPolicyCommandInput, DeleteAccountPolicyCommandOutput } from "./commands/DeleteAccountPolicyCommand";
|
|
@@ -13,6 +14,7 @@ import { DeleteDeliveryDestinationCommandInput, DeleteDeliveryDestinationCommand
|
|
|
13
14
|
import { DeleteDeliveryDestinationPolicyCommandInput, DeleteDeliveryDestinationPolicyCommandOutput } from "./commands/DeleteDeliveryDestinationPolicyCommand";
|
|
14
15
|
import { DeleteDeliverySourceCommandInput, DeleteDeliverySourceCommandOutput } from "./commands/DeleteDeliverySourceCommand";
|
|
15
16
|
import { DeleteDestinationCommandInput, DeleteDestinationCommandOutput } from "./commands/DeleteDestinationCommand";
|
|
17
|
+
import { DeleteLogAnomalyDetectorCommandInput, DeleteLogAnomalyDetectorCommandOutput } from "./commands/DeleteLogAnomalyDetectorCommand";
|
|
16
18
|
import { DeleteLogGroupCommandInput, DeleteLogGroupCommandOutput } from "./commands/DeleteLogGroupCommand";
|
|
17
19
|
import { DeleteLogStreamCommandInput, DeleteLogStreamCommandOutput } from "./commands/DeleteLogStreamCommand";
|
|
18
20
|
import { DeleteMetricFilterCommandInput, DeleteMetricFilterCommandOutput } from "./commands/DeleteMetricFilterCommand";
|
|
@@ -40,10 +42,13 @@ import { GetDeliveryCommandInput, GetDeliveryCommandOutput } from "./commands/Ge
|
|
|
40
42
|
import { GetDeliveryDestinationCommandInput, GetDeliveryDestinationCommandOutput } from "./commands/GetDeliveryDestinationCommand";
|
|
41
43
|
import { GetDeliveryDestinationPolicyCommandInput, GetDeliveryDestinationPolicyCommandOutput } from "./commands/GetDeliveryDestinationPolicyCommand";
|
|
42
44
|
import { GetDeliverySourceCommandInput, GetDeliverySourceCommandOutput } from "./commands/GetDeliverySourceCommand";
|
|
45
|
+
import { GetLogAnomalyDetectorCommandInput, GetLogAnomalyDetectorCommandOutput } from "./commands/GetLogAnomalyDetectorCommand";
|
|
43
46
|
import { GetLogEventsCommandInput, GetLogEventsCommandOutput } from "./commands/GetLogEventsCommand";
|
|
44
47
|
import { GetLogGroupFieldsCommandInput, GetLogGroupFieldsCommandOutput } from "./commands/GetLogGroupFieldsCommand";
|
|
45
48
|
import { GetLogRecordCommandInput, GetLogRecordCommandOutput } from "./commands/GetLogRecordCommand";
|
|
46
49
|
import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "./commands/GetQueryResultsCommand";
|
|
50
|
+
import { ListAnomaliesCommandInput, ListAnomaliesCommandOutput } from "./commands/ListAnomaliesCommand";
|
|
51
|
+
import { ListLogAnomalyDetectorsCommandInput, ListLogAnomalyDetectorsCommandOutput } from "./commands/ListLogAnomalyDetectorsCommand";
|
|
47
52
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
48
53
|
import { ListTagsLogGroupCommandInput, ListTagsLogGroupCommandOutput } from "./commands/ListTagsLogGroupCommand";
|
|
49
54
|
import { PutAccountPolicyCommandInput, PutAccountPolicyCommandOutput } from "./commands/PutAccountPolicyCommand";
|
|
@@ -66,6 +71,8 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
66
71
|
import { TestMetricFilterCommandInput, TestMetricFilterCommandOutput } from "./commands/TestMetricFilterCommand";
|
|
67
72
|
import { UntagLogGroupCommandInput, UntagLogGroupCommandOutput } from "./commands/UntagLogGroupCommand";
|
|
68
73
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
74
|
+
import { UpdateAnomalyCommandInput, UpdateAnomalyCommandOutput } from "./commands/UpdateAnomalyCommand";
|
|
75
|
+
import { UpdateLogAnomalyDetectorCommandInput, UpdateLogAnomalyDetectorCommandOutput } from "./commands/UpdateLogAnomalyDetectorCommand";
|
|
69
76
|
export interface CloudWatchLogs {
|
|
70
77
|
/**
|
|
71
78
|
* @see {@link AssociateKmsKeyCommand}
|
|
@@ -91,6 +98,12 @@ export interface CloudWatchLogs {
|
|
|
91
98
|
createExportTask(args: CreateExportTaskCommandInput, options?: __HttpHandlerOptions): Promise<CreateExportTaskCommandOutput>;
|
|
92
99
|
createExportTask(args: CreateExportTaskCommandInput, cb: (err: any, data?: CreateExportTaskCommandOutput) => void): void;
|
|
93
100
|
createExportTask(args: CreateExportTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateExportTaskCommandOutput) => void): void;
|
|
101
|
+
/**
|
|
102
|
+
* @see {@link CreateLogAnomalyDetectorCommand}
|
|
103
|
+
*/
|
|
104
|
+
createLogAnomalyDetector(args: CreateLogAnomalyDetectorCommandInput, options?: __HttpHandlerOptions): Promise<CreateLogAnomalyDetectorCommandOutput>;
|
|
105
|
+
createLogAnomalyDetector(args: CreateLogAnomalyDetectorCommandInput, cb: (err: any, data?: CreateLogAnomalyDetectorCommandOutput) => void): void;
|
|
106
|
+
createLogAnomalyDetector(args: CreateLogAnomalyDetectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLogAnomalyDetectorCommandOutput) => void): void;
|
|
94
107
|
/**
|
|
95
108
|
* @see {@link CreateLogGroupCommand}
|
|
96
109
|
*/
|
|
@@ -145,6 +158,12 @@ export interface CloudWatchLogs {
|
|
|
145
158
|
deleteDestination(args: DeleteDestinationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDestinationCommandOutput>;
|
|
146
159
|
deleteDestination(args: DeleteDestinationCommandInput, cb: (err: any, data?: DeleteDestinationCommandOutput) => void): void;
|
|
147
160
|
deleteDestination(args: DeleteDestinationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDestinationCommandOutput) => void): void;
|
|
161
|
+
/**
|
|
162
|
+
* @see {@link DeleteLogAnomalyDetectorCommand}
|
|
163
|
+
*/
|
|
164
|
+
deleteLogAnomalyDetector(args: DeleteLogAnomalyDetectorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLogAnomalyDetectorCommandOutput>;
|
|
165
|
+
deleteLogAnomalyDetector(args: DeleteLogAnomalyDetectorCommandInput, cb: (err: any, data?: DeleteLogAnomalyDetectorCommandOutput) => void): void;
|
|
166
|
+
deleteLogAnomalyDetector(args: DeleteLogAnomalyDetectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLogAnomalyDetectorCommandOutput) => void): void;
|
|
148
167
|
/**
|
|
149
168
|
* @see {@link DeleteLogGroupCommand}
|
|
150
169
|
*/
|
|
@@ -307,6 +326,12 @@ export interface CloudWatchLogs {
|
|
|
307
326
|
getDeliverySource(args: GetDeliverySourceCommandInput, options?: __HttpHandlerOptions): Promise<GetDeliverySourceCommandOutput>;
|
|
308
327
|
getDeliverySource(args: GetDeliverySourceCommandInput, cb: (err: any, data?: GetDeliverySourceCommandOutput) => void): void;
|
|
309
328
|
getDeliverySource(args: GetDeliverySourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDeliverySourceCommandOutput) => void): void;
|
|
329
|
+
/**
|
|
330
|
+
* @see {@link GetLogAnomalyDetectorCommand}
|
|
331
|
+
*/
|
|
332
|
+
getLogAnomalyDetector(args: GetLogAnomalyDetectorCommandInput, options?: __HttpHandlerOptions): Promise<GetLogAnomalyDetectorCommandOutput>;
|
|
333
|
+
getLogAnomalyDetector(args: GetLogAnomalyDetectorCommandInput, cb: (err: any, data?: GetLogAnomalyDetectorCommandOutput) => void): void;
|
|
334
|
+
getLogAnomalyDetector(args: GetLogAnomalyDetectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLogAnomalyDetectorCommandOutput) => void): void;
|
|
310
335
|
/**
|
|
311
336
|
* @see {@link GetLogEventsCommand}
|
|
312
337
|
*/
|
|
@@ -331,6 +356,18 @@ export interface CloudWatchLogs {
|
|
|
331
356
|
getQueryResults(args: GetQueryResultsCommandInput, options?: __HttpHandlerOptions): Promise<GetQueryResultsCommandOutput>;
|
|
332
357
|
getQueryResults(args: GetQueryResultsCommandInput, cb: (err: any, data?: GetQueryResultsCommandOutput) => void): void;
|
|
333
358
|
getQueryResults(args: GetQueryResultsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetQueryResultsCommandOutput) => void): void;
|
|
359
|
+
/**
|
|
360
|
+
* @see {@link ListAnomaliesCommand}
|
|
361
|
+
*/
|
|
362
|
+
listAnomalies(args: ListAnomaliesCommandInput, options?: __HttpHandlerOptions): Promise<ListAnomaliesCommandOutput>;
|
|
363
|
+
listAnomalies(args: ListAnomaliesCommandInput, cb: (err: any, data?: ListAnomaliesCommandOutput) => void): void;
|
|
364
|
+
listAnomalies(args: ListAnomaliesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAnomaliesCommandOutput) => void): void;
|
|
365
|
+
/**
|
|
366
|
+
* @see {@link ListLogAnomalyDetectorsCommand}
|
|
367
|
+
*/
|
|
368
|
+
listLogAnomalyDetectors(args: ListLogAnomalyDetectorsCommandInput, options?: __HttpHandlerOptions): Promise<ListLogAnomalyDetectorsCommandOutput>;
|
|
369
|
+
listLogAnomalyDetectors(args: ListLogAnomalyDetectorsCommandInput, cb: (err: any, data?: ListLogAnomalyDetectorsCommandOutput) => void): void;
|
|
370
|
+
listLogAnomalyDetectors(args: ListLogAnomalyDetectorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLogAnomalyDetectorsCommandOutput) => void): void;
|
|
334
371
|
/**
|
|
335
372
|
* @see {@link ListTagsForResourceCommand}
|
|
336
373
|
*/
|
|
@@ -463,6 +500,18 @@ export interface CloudWatchLogs {
|
|
|
463
500
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
464
501
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
465
502
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
503
|
+
/**
|
|
504
|
+
* @see {@link UpdateAnomalyCommand}
|
|
505
|
+
*/
|
|
506
|
+
updateAnomaly(args: UpdateAnomalyCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAnomalyCommandOutput>;
|
|
507
|
+
updateAnomaly(args: UpdateAnomalyCommandInput, cb: (err: any, data?: UpdateAnomalyCommandOutput) => void): void;
|
|
508
|
+
updateAnomaly(args: UpdateAnomalyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAnomalyCommandOutput) => void): void;
|
|
509
|
+
/**
|
|
510
|
+
* @see {@link UpdateLogAnomalyDetectorCommand}
|
|
511
|
+
*/
|
|
512
|
+
updateLogAnomalyDetector(args: UpdateLogAnomalyDetectorCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLogAnomalyDetectorCommandOutput>;
|
|
513
|
+
updateLogAnomalyDetector(args: UpdateLogAnomalyDetectorCommandInput, cb: (err: any, data?: UpdateLogAnomalyDetectorCommandOutput) => void): void;
|
|
514
|
+
updateLogAnomalyDetector(args: UpdateLogAnomalyDetectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLogAnomalyDetectorCommandOutput) => void): void;
|
|
466
515
|
}
|
|
467
516
|
/**
|
|
468
517
|
* @public
|
|
@@ -12,6 +12,7 @@ import { AssociateKmsKeyCommandInput, AssociateKmsKeyCommandOutput } from "./com
|
|
|
12
12
|
import { CancelExportTaskCommandInput, CancelExportTaskCommandOutput } from "./commands/CancelExportTaskCommand";
|
|
13
13
|
import { CreateDeliveryCommandInput, CreateDeliveryCommandOutput } from "./commands/CreateDeliveryCommand";
|
|
14
14
|
import { CreateExportTaskCommandInput, CreateExportTaskCommandOutput } from "./commands/CreateExportTaskCommand";
|
|
15
|
+
import { CreateLogAnomalyDetectorCommandInput, CreateLogAnomalyDetectorCommandOutput } from "./commands/CreateLogAnomalyDetectorCommand";
|
|
15
16
|
import { CreateLogGroupCommandInput, CreateLogGroupCommandOutput } from "./commands/CreateLogGroupCommand";
|
|
16
17
|
import { CreateLogStreamCommandInput, CreateLogStreamCommandOutput } from "./commands/CreateLogStreamCommand";
|
|
17
18
|
import { DeleteAccountPolicyCommandInput, DeleteAccountPolicyCommandOutput } from "./commands/DeleteAccountPolicyCommand";
|
|
@@ -21,6 +22,7 @@ import { DeleteDeliveryDestinationCommandInput, DeleteDeliveryDestinationCommand
|
|
|
21
22
|
import { DeleteDeliveryDestinationPolicyCommandInput, DeleteDeliveryDestinationPolicyCommandOutput } from "./commands/DeleteDeliveryDestinationPolicyCommand";
|
|
22
23
|
import { DeleteDeliverySourceCommandInput, DeleteDeliverySourceCommandOutput } from "./commands/DeleteDeliverySourceCommand";
|
|
23
24
|
import { DeleteDestinationCommandInput, DeleteDestinationCommandOutput } from "./commands/DeleteDestinationCommand";
|
|
25
|
+
import { DeleteLogAnomalyDetectorCommandInput, DeleteLogAnomalyDetectorCommandOutput } from "./commands/DeleteLogAnomalyDetectorCommand";
|
|
24
26
|
import { DeleteLogGroupCommandInput, DeleteLogGroupCommandOutput } from "./commands/DeleteLogGroupCommand";
|
|
25
27
|
import { DeleteLogStreamCommandInput, DeleteLogStreamCommandOutput } from "./commands/DeleteLogStreamCommand";
|
|
26
28
|
import { DeleteMetricFilterCommandInput, DeleteMetricFilterCommandOutput } from "./commands/DeleteMetricFilterCommand";
|
|
@@ -48,10 +50,13 @@ import { GetDeliveryCommandInput, GetDeliveryCommandOutput } from "./commands/Ge
|
|
|
48
50
|
import { GetDeliveryDestinationCommandInput, GetDeliveryDestinationCommandOutput } from "./commands/GetDeliveryDestinationCommand";
|
|
49
51
|
import { GetDeliveryDestinationPolicyCommandInput, GetDeliveryDestinationPolicyCommandOutput } from "./commands/GetDeliveryDestinationPolicyCommand";
|
|
50
52
|
import { GetDeliverySourceCommandInput, GetDeliverySourceCommandOutput } from "./commands/GetDeliverySourceCommand";
|
|
53
|
+
import { GetLogAnomalyDetectorCommandInput, GetLogAnomalyDetectorCommandOutput } from "./commands/GetLogAnomalyDetectorCommand";
|
|
51
54
|
import { GetLogEventsCommandInput, GetLogEventsCommandOutput } from "./commands/GetLogEventsCommand";
|
|
52
55
|
import { GetLogGroupFieldsCommandInput, GetLogGroupFieldsCommandOutput } from "./commands/GetLogGroupFieldsCommand";
|
|
53
56
|
import { GetLogRecordCommandInput, GetLogRecordCommandOutput } from "./commands/GetLogRecordCommand";
|
|
54
57
|
import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "./commands/GetQueryResultsCommand";
|
|
58
|
+
import { ListAnomaliesCommandInput, ListAnomaliesCommandOutput } from "./commands/ListAnomaliesCommand";
|
|
59
|
+
import { ListLogAnomalyDetectorsCommandInput, ListLogAnomalyDetectorsCommandOutput } from "./commands/ListLogAnomalyDetectorsCommand";
|
|
55
60
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
56
61
|
import { ListTagsLogGroupCommandInput, ListTagsLogGroupCommandOutput } from "./commands/ListTagsLogGroupCommand";
|
|
57
62
|
import { PutAccountPolicyCommandInput, PutAccountPolicyCommandOutput } from "./commands/PutAccountPolicyCommand";
|
|
@@ -74,17 +79,19 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
74
79
|
import { TestMetricFilterCommandInput, TestMetricFilterCommandOutput } from "./commands/TestMetricFilterCommand";
|
|
75
80
|
import { UntagLogGroupCommandInput, UntagLogGroupCommandOutput } from "./commands/UntagLogGroupCommand";
|
|
76
81
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
82
|
+
import { UpdateAnomalyCommandInput, UpdateAnomalyCommandOutput } from "./commands/UpdateAnomalyCommand";
|
|
83
|
+
import { UpdateLogAnomalyDetectorCommandInput, UpdateLogAnomalyDetectorCommandOutput } from "./commands/UpdateLogAnomalyDetectorCommand";
|
|
77
84
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
78
85
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
79
86
|
export { __Client };
|
|
80
87
|
/**
|
|
81
88
|
* @public
|
|
82
89
|
*/
|
|
83
|
-
export type ServiceInputTypes = AssociateKmsKeyCommandInput | CancelExportTaskCommandInput | CreateDeliveryCommandInput | CreateExportTaskCommandInput | CreateLogGroupCommandInput | CreateLogStreamCommandInput | DeleteAccountPolicyCommandInput | DeleteDataProtectionPolicyCommandInput | DeleteDeliveryCommandInput | DeleteDeliveryDestinationCommandInput | DeleteDeliveryDestinationPolicyCommandInput | DeleteDeliverySourceCommandInput | DeleteDestinationCommandInput | DeleteLogGroupCommandInput | DeleteLogStreamCommandInput | DeleteMetricFilterCommandInput | DeleteQueryDefinitionCommandInput | DeleteResourcePolicyCommandInput | DeleteRetentionPolicyCommandInput | DeleteSubscriptionFilterCommandInput | DescribeAccountPoliciesCommandInput | DescribeDeliveriesCommandInput | DescribeDeliveryDestinationsCommandInput | DescribeDeliverySourcesCommandInput | DescribeDestinationsCommandInput | DescribeExportTasksCommandInput | DescribeLogGroupsCommandInput | DescribeLogStreamsCommandInput | DescribeMetricFiltersCommandInput | DescribeQueriesCommandInput | DescribeQueryDefinitionsCommandInput | DescribeResourcePoliciesCommandInput | DescribeSubscriptionFiltersCommandInput | DisassociateKmsKeyCommandInput | FilterLogEventsCommandInput | GetDataProtectionPolicyCommandInput | GetDeliveryCommandInput | GetDeliveryDestinationCommandInput | GetDeliveryDestinationPolicyCommandInput | GetDeliverySourceCommandInput | GetLogEventsCommandInput | GetLogGroupFieldsCommandInput | GetLogRecordCommandInput | GetQueryResultsCommandInput | ListTagsForResourceCommandInput | ListTagsLogGroupCommandInput | PutAccountPolicyCommandInput | PutDataProtectionPolicyCommandInput | PutDeliveryDestinationCommandInput | PutDeliveryDestinationPolicyCommandInput | PutDeliverySourceCommandInput | PutDestinationCommandInput | PutDestinationPolicyCommandInput | PutLogEventsCommandInput | PutMetricFilterCommandInput | PutQueryDefinitionCommandInput | PutResourcePolicyCommandInput | PutRetentionPolicyCommandInput | PutSubscriptionFilterCommandInput | StartQueryCommandInput | StopQueryCommandInput | TagLogGroupCommandInput | TagResourceCommandInput | TestMetricFilterCommandInput | UntagLogGroupCommandInput | UntagResourceCommandInput;
|
|
90
|
+
export type ServiceInputTypes = AssociateKmsKeyCommandInput | CancelExportTaskCommandInput | CreateDeliveryCommandInput | CreateExportTaskCommandInput | CreateLogAnomalyDetectorCommandInput | CreateLogGroupCommandInput | CreateLogStreamCommandInput | DeleteAccountPolicyCommandInput | DeleteDataProtectionPolicyCommandInput | DeleteDeliveryCommandInput | DeleteDeliveryDestinationCommandInput | DeleteDeliveryDestinationPolicyCommandInput | DeleteDeliverySourceCommandInput | DeleteDestinationCommandInput | DeleteLogAnomalyDetectorCommandInput | DeleteLogGroupCommandInput | DeleteLogStreamCommandInput | DeleteMetricFilterCommandInput | DeleteQueryDefinitionCommandInput | DeleteResourcePolicyCommandInput | DeleteRetentionPolicyCommandInput | DeleteSubscriptionFilterCommandInput | DescribeAccountPoliciesCommandInput | DescribeDeliveriesCommandInput | DescribeDeliveryDestinationsCommandInput | DescribeDeliverySourcesCommandInput | DescribeDestinationsCommandInput | DescribeExportTasksCommandInput | DescribeLogGroupsCommandInput | DescribeLogStreamsCommandInput | DescribeMetricFiltersCommandInput | DescribeQueriesCommandInput | DescribeQueryDefinitionsCommandInput | DescribeResourcePoliciesCommandInput | DescribeSubscriptionFiltersCommandInput | DisassociateKmsKeyCommandInput | FilterLogEventsCommandInput | GetDataProtectionPolicyCommandInput | GetDeliveryCommandInput | GetDeliveryDestinationCommandInput | GetDeliveryDestinationPolicyCommandInput | GetDeliverySourceCommandInput | GetLogAnomalyDetectorCommandInput | GetLogEventsCommandInput | GetLogGroupFieldsCommandInput | GetLogRecordCommandInput | GetQueryResultsCommandInput | ListAnomaliesCommandInput | ListLogAnomalyDetectorsCommandInput | ListTagsForResourceCommandInput | ListTagsLogGroupCommandInput | PutAccountPolicyCommandInput | PutDataProtectionPolicyCommandInput | PutDeliveryDestinationCommandInput | PutDeliveryDestinationPolicyCommandInput | PutDeliverySourceCommandInput | PutDestinationCommandInput | PutDestinationPolicyCommandInput | PutLogEventsCommandInput | PutMetricFilterCommandInput | PutQueryDefinitionCommandInput | PutResourcePolicyCommandInput | PutRetentionPolicyCommandInput | PutSubscriptionFilterCommandInput | StartQueryCommandInput | StopQueryCommandInput | TagLogGroupCommandInput | TagResourceCommandInput | TestMetricFilterCommandInput | UntagLogGroupCommandInput | UntagResourceCommandInput | UpdateAnomalyCommandInput | UpdateLogAnomalyDetectorCommandInput;
|
|
84
91
|
/**
|
|
85
92
|
* @public
|
|
86
93
|
*/
|
|
87
|
-
export type ServiceOutputTypes = AssociateKmsKeyCommandOutput | CancelExportTaskCommandOutput | CreateDeliveryCommandOutput | CreateExportTaskCommandOutput | CreateLogGroupCommandOutput | CreateLogStreamCommandOutput | DeleteAccountPolicyCommandOutput | DeleteDataProtectionPolicyCommandOutput | DeleteDeliveryCommandOutput | DeleteDeliveryDestinationCommandOutput | DeleteDeliveryDestinationPolicyCommandOutput | DeleteDeliverySourceCommandOutput | DeleteDestinationCommandOutput | DeleteLogGroupCommandOutput | DeleteLogStreamCommandOutput | DeleteMetricFilterCommandOutput | DeleteQueryDefinitionCommandOutput | DeleteResourcePolicyCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteSubscriptionFilterCommandOutput | DescribeAccountPoliciesCommandOutput | DescribeDeliveriesCommandOutput | DescribeDeliveryDestinationsCommandOutput | DescribeDeliverySourcesCommandOutput | DescribeDestinationsCommandOutput | DescribeExportTasksCommandOutput | DescribeLogGroupsCommandOutput | DescribeLogStreamsCommandOutput | DescribeMetricFiltersCommandOutput | DescribeQueriesCommandOutput | DescribeQueryDefinitionsCommandOutput | DescribeResourcePoliciesCommandOutput | DescribeSubscriptionFiltersCommandOutput | DisassociateKmsKeyCommandOutput | FilterLogEventsCommandOutput | GetDataProtectionPolicyCommandOutput | GetDeliveryCommandOutput | GetDeliveryDestinationCommandOutput | GetDeliveryDestinationPolicyCommandOutput | GetDeliverySourceCommandOutput | GetLogEventsCommandOutput | GetLogGroupFieldsCommandOutput | GetLogRecordCommandOutput | GetQueryResultsCommandOutput | ListTagsForResourceCommandOutput | ListTagsLogGroupCommandOutput | PutAccountPolicyCommandOutput | PutDataProtectionPolicyCommandOutput | PutDeliveryDestinationCommandOutput | PutDeliveryDestinationPolicyCommandOutput | PutDeliverySourceCommandOutput | PutDestinationCommandOutput | PutDestinationPolicyCommandOutput | PutLogEventsCommandOutput | PutMetricFilterCommandOutput | PutQueryDefinitionCommandOutput | PutResourcePolicyCommandOutput | PutRetentionPolicyCommandOutput | PutSubscriptionFilterCommandOutput | StartQueryCommandOutput | StopQueryCommandOutput | TagLogGroupCommandOutput | TagResourceCommandOutput | TestMetricFilterCommandOutput | UntagLogGroupCommandOutput | UntagResourceCommandOutput;
|
|
94
|
+
export type ServiceOutputTypes = AssociateKmsKeyCommandOutput | CancelExportTaskCommandOutput | CreateDeliveryCommandOutput | CreateExportTaskCommandOutput | CreateLogAnomalyDetectorCommandOutput | CreateLogGroupCommandOutput | CreateLogStreamCommandOutput | DeleteAccountPolicyCommandOutput | DeleteDataProtectionPolicyCommandOutput | DeleteDeliveryCommandOutput | DeleteDeliveryDestinationCommandOutput | DeleteDeliveryDestinationPolicyCommandOutput | DeleteDeliverySourceCommandOutput | DeleteDestinationCommandOutput | DeleteLogAnomalyDetectorCommandOutput | DeleteLogGroupCommandOutput | DeleteLogStreamCommandOutput | DeleteMetricFilterCommandOutput | DeleteQueryDefinitionCommandOutput | DeleteResourcePolicyCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteSubscriptionFilterCommandOutput | DescribeAccountPoliciesCommandOutput | DescribeDeliveriesCommandOutput | DescribeDeliveryDestinationsCommandOutput | DescribeDeliverySourcesCommandOutput | DescribeDestinationsCommandOutput | DescribeExportTasksCommandOutput | DescribeLogGroupsCommandOutput | DescribeLogStreamsCommandOutput | DescribeMetricFiltersCommandOutput | DescribeQueriesCommandOutput | DescribeQueryDefinitionsCommandOutput | DescribeResourcePoliciesCommandOutput | DescribeSubscriptionFiltersCommandOutput | DisassociateKmsKeyCommandOutput | FilterLogEventsCommandOutput | GetDataProtectionPolicyCommandOutput | GetDeliveryCommandOutput | GetDeliveryDestinationCommandOutput | GetDeliveryDestinationPolicyCommandOutput | GetDeliverySourceCommandOutput | GetLogAnomalyDetectorCommandOutput | GetLogEventsCommandOutput | GetLogGroupFieldsCommandOutput | GetLogRecordCommandOutput | GetQueryResultsCommandOutput | ListAnomaliesCommandOutput | ListLogAnomalyDetectorsCommandOutput | ListTagsForResourceCommandOutput | ListTagsLogGroupCommandOutput | PutAccountPolicyCommandOutput | PutDataProtectionPolicyCommandOutput | PutDeliveryDestinationCommandOutput | PutDeliveryDestinationPolicyCommandOutput | PutDeliverySourceCommandOutput | PutDestinationCommandOutput | PutDestinationPolicyCommandOutput | PutLogEventsCommandOutput | PutMetricFilterCommandOutput | PutQueryDefinitionCommandOutput | PutResourcePolicyCommandOutput | PutRetentionPolicyCommandOutput | PutSubscriptionFilterCommandOutput | StartQueryCommandOutput | StopQueryCommandOutput | TagLogGroupCommandOutput | TagResourceCommandOutput | TestMetricFilterCommandOutput | UntagLogGroupCommandOutput | UntagResourceCommandOutput | UpdateAnomalyCommandOutput | UpdateLogAnomalyDetectorCommandOutput;
|
|
88
95
|
/**
|
|
89
96
|
* @public
|
|
90
97
|
*/
|
|
@@ -28,7 +28,7 @@ export interface CreateDeliveryCommandOutput extends CreateDeliveryResponse, __M
|
|
|
28
28
|
* that you have already created.</p>
|
|
29
29
|
* <p>Only some Amazon Web Services services support being configured as a delivery source using this operation. These services are listed
|
|
30
30
|
* as <b>Supported [V2 Permissions]</b> in the table at
|
|
31
|
-
* <a href="https://docs.aws.amazon.com/
|
|
31
|
+
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html">Enabling
|
|
32
32
|
* logging from Amazon Web Services services.</a>
|
|
33
33
|
* </p>
|
|
34
34
|
* <p>A delivery destination can represent a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Kinesis Data Firehose.</p>
|