@aws-sdk/client-cloudwatch-logs 3.199.0 → 3.200.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 +11 -0
- package/dist-cjs/CloudWatchLogs.js +45 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +33 -3
- package/dist-cjs/protocols/Aws_json1_1.js +194 -2
- package/dist-es/CloudWatchLogs.js +45 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +25 -0
- package/dist-es/protocols/Aws_json1_1.js +187 -1
- package/dist-types/CloudWatchLogs.d.ts +60 -18
- package/dist-types/CloudWatchLogsClient.d.ts +5 -2
- package/dist-types/commands/CreateExportTaskCommand.d.ts +2 -11
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/commands/ListTagsLogGroupCommand.d.ts +7 -1
- package/dist-types/commands/TagLogGroupCommand.d.ts +9 -3
- package/dist-types/commands/TagResourceCommand.d.ts +48 -0
- package/dist-types/commands/UntagLogGroupCommand.d.ts +9 -3
- package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +102 -2
- 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 +20 -2
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +35 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +28 -28
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-cloudwatch-logs:** SDK release to support tagging for destinations and log groups with TagResource. Also supports tag on create with PutDestination. ([c97217f](https://github.com/aws/aws-sdk-js-v3/commit/c97217fa2fc1f789550a7f8042a3a4bc3ace46e0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.199.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.198.0...v3.199.0) (2022-10-28)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-cloudwatch-logs
|
|
@@ -30,6 +30,7 @@ const GetLogEventsCommand_1 = require("./commands/GetLogEventsCommand");
|
|
|
30
30
|
const GetLogGroupFieldsCommand_1 = require("./commands/GetLogGroupFieldsCommand");
|
|
31
31
|
const GetLogRecordCommand_1 = require("./commands/GetLogRecordCommand");
|
|
32
32
|
const GetQueryResultsCommand_1 = require("./commands/GetQueryResultsCommand");
|
|
33
|
+
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
33
34
|
const ListTagsLogGroupCommand_1 = require("./commands/ListTagsLogGroupCommand");
|
|
34
35
|
const PutDestinationCommand_1 = require("./commands/PutDestinationCommand");
|
|
35
36
|
const PutDestinationPolicyCommand_1 = require("./commands/PutDestinationPolicyCommand");
|
|
@@ -42,8 +43,10 @@ const PutSubscriptionFilterCommand_1 = require("./commands/PutSubscriptionFilter
|
|
|
42
43
|
const StartQueryCommand_1 = require("./commands/StartQueryCommand");
|
|
43
44
|
const StopQueryCommand_1 = require("./commands/StopQueryCommand");
|
|
44
45
|
const TagLogGroupCommand_1 = require("./commands/TagLogGroupCommand");
|
|
46
|
+
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
45
47
|
const TestMetricFilterCommand_1 = require("./commands/TestMetricFilterCommand");
|
|
46
48
|
const UntagLogGroupCommand_1 = require("./commands/UntagLogGroupCommand");
|
|
49
|
+
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
47
50
|
class CloudWatchLogs extends CloudWatchLogsClient_1.CloudWatchLogsClient {
|
|
48
51
|
associateKmsKey(args, optionsOrCb, cb) {
|
|
49
52
|
const command = new AssociateKmsKeyCommand_1.AssociateKmsKeyCommand(args);
|
|
@@ -437,6 +440,20 @@ class CloudWatchLogs extends CloudWatchLogsClient_1.CloudWatchLogsClient {
|
|
|
437
440
|
return this.send(command, optionsOrCb);
|
|
438
441
|
}
|
|
439
442
|
}
|
|
443
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
444
|
+
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
445
|
+
if (typeof optionsOrCb === "function") {
|
|
446
|
+
this.send(command, optionsOrCb);
|
|
447
|
+
}
|
|
448
|
+
else if (typeof cb === "function") {
|
|
449
|
+
if (typeof optionsOrCb !== "object")
|
|
450
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
451
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
452
|
+
}
|
|
453
|
+
else {
|
|
454
|
+
return this.send(command, optionsOrCb);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
440
457
|
listTagsLogGroup(args, optionsOrCb, cb) {
|
|
441
458
|
const command = new ListTagsLogGroupCommand_1.ListTagsLogGroupCommand(args);
|
|
442
459
|
if (typeof optionsOrCb === "function") {
|
|
@@ -605,6 +622,20 @@ class CloudWatchLogs extends CloudWatchLogsClient_1.CloudWatchLogsClient {
|
|
|
605
622
|
return this.send(command, optionsOrCb);
|
|
606
623
|
}
|
|
607
624
|
}
|
|
625
|
+
tagResource(args, optionsOrCb, cb) {
|
|
626
|
+
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
627
|
+
if (typeof optionsOrCb === "function") {
|
|
628
|
+
this.send(command, optionsOrCb);
|
|
629
|
+
}
|
|
630
|
+
else if (typeof cb === "function") {
|
|
631
|
+
if (typeof optionsOrCb !== "object")
|
|
632
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
633
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
634
|
+
}
|
|
635
|
+
else {
|
|
636
|
+
return this.send(command, optionsOrCb);
|
|
637
|
+
}
|
|
638
|
+
}
|
|
608
639
|
testMetricFilter(args, optionsOrCb, cb) {
|
|
609
640
|
const command = new TestMetricFilterCommand_1.TestMetricFilterCommand(args);
|
|
610
641
|
if (typeof optionsOrCb === "function") {
|
|
@@ -633,5 +664,19 @@ class CloudWatchLogs extends CloudWatchLogsClient_1.CloudWatchLogsClient {
|
|
|
633
664
|
return this.send(command, optionsOrCb);
|
|
634
665
|
}
|
|
635
666
|
}
|
|
667
|
+
untagResource(args, optionsOrCb, cb) {
|
|
668
|
+
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
669
|
+
if (typeof optionsOrCb === "function") {
|
|
670
|
+
this.send(command, optionsOrCb);
|
|
671
|
+
}
|
|
672
|
+
else if (typeof cb === "function") {
|
|
673
|
+
if (typeof optionsOrCb !== "object")
|
|
674
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
675
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
676
|
+
}
|
|
677
|
+
else {
|
|
678
|
+
return this.send(command, optionsOrCb);
|
|
679
|
+
}
|
|
680
|
+
}
|
|
636
681
|
}
|
|
637
682
|
exports.CloudWatchLogs = CloudWatchLogs;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListTagsForResourceCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class ListTagsForResourceCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "CloudWatchLogsClient";
|
|
28
|
+
const commandName = "ListTagsForResourceCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ListTagsForResourceRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListTagsForResourceResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1ListTagsForResourceCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1ListTagsForResourceCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TagResourceCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class TagResourceCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, TagResourceCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "CloudWatchLogsClient";
|
|
28
|
+
const commandName = "TagResourceCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.TagResourceRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: (output) => output,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1TagResourceCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1TagResourceCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UntagResourceCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class UntagResourceCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "CloudWatchLogsClient";
|
|
28
|
+
const commandName = "UntagResourceCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.UntagResourceRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: (output) => output,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1UntagResourceCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1UntagResourceCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
@@ -29,6 +29,7 @@ tslib_1.__exportStar(require("./GetLogEventsCommand"), exports);
|
|
|
29
29
|
tslib_1.__exportStar(require("./GetLogGroupFieldsCommand"), exports);
|
|
30
30
|
tslib_1.__exportStar(require("./GetLogRecordCommand"), exports);
|
|
31
31
|
tslib_1.__exportStar(require("./GetQueryResultsCommand"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
32
33
|
tslib_1.__exportStar(require("./ListTagsLogGroupCommand"), exports);
|
|
33
34
|
tslib_1.__exportStar(require("./PutDestinationCommand"), exports);
|
|
34
35
|
tslib_1.__exportStar(require("./PutDestinationPolicyCommand"), exports);
|
|
@@ -41,5 +42,7 @@ tslib_1.__exportStar(require("./PutSubscriptionFilterCommand"), exports);
|
|
|
41
42
|
tslib_1.__exportStar(require("./StartQueryCommand"), exports);
|
|
42
43
|
tslib_1.__exportStar(require("./StopQueryCommand"), exports);
|
|
43
44
|
tslib_1.__exportStar(require("./TagLogGroupCommand"), exports);
|
|
45
|
+
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
44
46
|
tslib_1.__exportStar(require("./TestMetricFilterCommand"), exports);
|
|
45
47
|
tslib_1.__exportStar(require("./UntagLogGroupCommand"), exports);
|
|
48
|
+
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UntagLogGroupRequestFilterSensitiveLog = exports.TestMetricFilterResponseFilterSensitiveLog = exports.MetricFilterMatchRecordFilterSensitiveLog = exports.TestMetricFilterRequestFilterSensitiveLog = exports.TagLogGroupRequestFilterSensitiveLog = void 0;
|
|
3
|
+
exports.DescribeMetricFiltersResponseFilterSensitiveLog = exports.MetricFilterFilterSensitiveLog = exports.MetricTransformationFilterSensitiveLog = exports.DescribeMetricFiltersRequestFilterSensitiveLog = exports.DescribeLogStreamsResponseFilterSensitiveLog = exports.LogStreamFilterSensitiveLog = exports.DescribeLogStreamsRequestFilterSensitiveLog = exports.DescribeLogGroupsResponseFilterSensitiveLog = exports.LogGroupFilterSensitiveLog = exports.DescribeLogGroupsRequestFilterSensitiveLog = exports.DescribeExportTasksResponseFilterSensitiveLog = exports.ExportTaskFilterSensitiveLog = exports.ExportTaskStatusFilterSensitiveLog = exports.ExportTaskExecutionInfoFilterSensitiveLog = exports.DescribeExportTasksRequestFilterSensitiveLog = exports.DescribeDestinationsResponseFilterSensitiveLog = exports.DestinationFilterSensitiveLog = exports.DescribeDestinationsRequestFilterSensitiveLog = exports.DeleteSubscriptionFilterRequestFilterSensitiveLog = exports.DeleteRetentionPolicyRequestFilterSensitiveLog = exports.DeleteResourcePolicyRequestFilterSensitiveLog = exports.DeleteQueryDefinitionResponseFilterSensitiveLog = exports.DeleteQueryDefinitionRequestFilterSensitiveLog = exports.DeleteMetricFilterRequestFilterSensitiveLog = exports.DeleteLogStreamRequestFilterSensitiveLog = exports.DeleteLogGroupRequestFilterSensitiveLog = exports.DeleteDestinationRequestFilterSensitiveLog = exports.CreateLogStreamRequestFilterSensitiveLog = exports.CreateLogGroupRequestFilterSensitiveLog = exports.CreateExportTaskResponseFilterSensitiveLog = exports.CreateExportTaskRequestFilterSensitiveLog = exports.CancelExportTaskRequestFilterSensitiveLog = exports.AssociateKmsKeyRequestFilterSensitiveLog = exports.TooManyTagsException = exports.MalformedQueryException = exports.UnrecognizedClientException = exports.InvalidSequenceTokenException = exports.Distribution = exports.QueryStatus = exports.StandardUnit = exports.OrderBy = exports.ExportTaskStatusCode = exports.DataAlreadyAcceptedException = exports.ResourceAlreadyExistsException = exports.LimitExceededException = exports.InvalidOperationException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.OperationAbortedException = exports.InvalidParameterException = void 0;
|
|
4
|
+
exports.StartQueryRequestFilterSensitiveLog = exports.QueryCompileErrorFilterSensitiveLog = exports.QueryCompileErrorLocationFilterSensitiveLog = exports.PutSubscriptionFilterRequestFilterSensitiveLog = exports.PutRetentionPolicyRequestFilterSensitiveLog = exports.PutResourcePolicyResponseFilterSensitiveLog = exports.PutResourcePolicyRequestFilterSensitiveLog = exports.PutQueryDefinitionResponseFilterSensitiveLog = exports.PutQueryDefinitionRequestFilterSensitiveLog = exports.PutMetricFilterRequestFilterSensitiveLog = exports.PutLogEventsResponseFilterSensitiveLog = exports.RejectedLogEventsInfoFilterSensitiveLog = exports.PutLogEventsRequestFilterSensitiveLog = exports.PutDestinationPolicyRequestFilterSensitiveLog = exports.PutDestinationResponseFilterSensitiveLog = exports.PutDestinationRequestFilterSensitiveLog = exports.ListTagsLogGroupResponseFilterSensitiveLog = exports.ListTagsLogGroupRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.InputLogEventFilterSensitiveLog = exports.GetQueryResultsResponseFilterSensitiveLog = exports.QueryStatisticsFilterSensitiveLog = exports.ResultFieldFilterSensitiveLog = exports.GetQueryResultsRequestFilterSensitiveLog = exports.GetLogRecordResponseFilterSensitiveLog = exports.GetLogRecordRequestFilterSensitiveLog = exports.GetLogGroupFieldsResponseFilterSensitiveLog = exports.LogGroupFieldFilterSensitiveLog = exports.GetLogGroupFieldsRequestFilterSensitiveLog = exports.GetLogEventsResponseFilterSensitiveLog = exports.OutputLogEventFilterSensitiveLog = exports.GetLogEventsRequestFilterSensitiveLog = exports.FilterLogEventsResponseFilterSensitiveLog = exports.SearchedLogStreamFilterSensitiveLog = exports.FilterLogEventsRequestFilterSensitiveLog = exports.FilteredLogEventFilterSensitiveLog = exports.DisassociateKmsKeyRequestFilterSensitiveLog = exports.DescribeSubscriptionFiltersResponseFilterSensitiveLog = exports.SubscriptionFilterFilterSensitiveLog = exports.DescribeSubscriptionFiltersRequestFilterSensitiveLog = exports.DescribeResourcePoliciesResponseFilterSensitiveLog = exports.ResourcePolicyFilterSensitiveLog = exports.DescribeResourcePoliciesRequestFilterSensitiveLog = exports.DescribeQueryDefinitionsResponseFilterSensitiveLog = exports.QueryDefinitionFilterSensitiveLog = exports.DescribeQueryDefinitionsRequestFilterSensitiveLog = exports.DescribeQueriesResponseFilterSensitiveLog = exports.QueryInfoFilterSensitiveLog = exports.DescribeQueriesRequestFilterSensitiveLog = void 0;
|
|
5
|
+
exports.UntagResourceRequestFilterSensitiveLog = exports.UntagLogGroupRequestFilterSensitiveLog = exports.TestMetricFilterResponseFilterSensitiveLog = exports.MetricFilterMatchRecordFilterSensitiveLog = exports.TestMetricFilterRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.TagLogGroupRequestFilterSensitiveLog = exports.StopQueryResponseFilterSensitiveLog = exports.StopQueryRequestFilterSensitiveLog = exports.StartQueryResponseFilterSensitiveLog = void 0;
|
|
6
6
|
const CloudWatchLogsServiceException_1 = require("./CloudWatchLogsServiceException");
|
|
7
7
|
class InvalidParameterException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
8
8
|
constructor(opts) {
|
|
@@ -209,6 +209,20 @@ class MalformedQueryException extends CloudWatchLogsServiceException_1.CloudWatc
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
exports.MalformedQueryException = MalformedQueryException;
|
|
212
|
+
class TooManyTagsException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
213
|
+
constructor(opts) {
|
|
214
|
+
super({
|
|
215
|
+
name: "TooManyTagsException",
|
|
216
|
+
$fault: "client",
|
|
217
|
+
...opts,
|
|
218
|
+
});
|
|
219
|
+
this.name = "TooManyTagsException";
|
|
220
|
+
this.$fault = "client";
|
|
221
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
222
|
+
this.resourceName = opts.resourceName;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
exports.TooManyTagsException = TooManyTagsException;
|
|
212
226
|
const AssociateKmsKeyRequestFilterSensitiveLog = (obj) => ({
|
|
213
227
|
...obj,
|
|
214
228
|
});
|
|
@@ -461,6 +475,14 @@ const InputLogEventFilterSensitiveLog = (obj) => ({
|
|
|
461
475
|
...obj,
|
|
462
476
|
});
|
|
463
477
|
exports.InputLogEventFilterSensitiveLog = InputLogEventFilterSensitiveLog;
|
|
478
|
+
const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
|
|
479
|
+
...obj,
|
|
480
|
+
});
|
|
481
|
+
exports.ListTagsForResourceRequestFilterSensitiveLog = ListTagsForResourceRequestFilterSensitiveLog;
|
|
482
|
+
const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
|
|
483
|
+
...obj,
|
|
484
|
+
});
|
|
485
|
+
exports.ListTagsForResourceResponseFilterSensitiveLog = ListTagsForResourceResponseFilterSensitiveLog;
|
|
464
486
|
const ListTagsLogGroupRequestFilterSensitiveLog = (obj) => ({
|
|
465
487
|
...obj,
|
|
466
488
|
});
|
|
@@ -549,6 +571,10 @@ const TagLogGroupRequestFilterSensitiveLog = (obj) => ({
|
|
|
549
571
|
...obj,
|
|
550
572
|
});
|
|
551
573
|
exports.TagLogGroupRequestFilterSensitiveLog = TagLogGroupRequestFilterSensitiveLog;
|
|
574
|
+
const TagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
575
|
+
...obj,
|
|
576
|
+
});
|
|
577
|
+
exports.TagResourceRequestFilterSensitiveLog = TagResourceRequestFilterSensitiveLog;
|
|
552
578
|
const TestMetricFilterRequestFilterSensitiveLog = (obj) => ({
|
|
553
579
|
...obj,
|
|
554
580
|
});
|
|
@@ -565,3 +591,7 @@ const UntagLogGroupRequestFilterSensitiveLog = (obj) => ({
|
|
|
565
591
|
...obj,
|
|
566
592
|
});
|
|
567
593
|
exports.UntagLogGroupRequestFilterSensitiveLog = UntagLogGroupRequestFilterSensitiveLog;
|
|
594
|
+
const UntagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
595
|
+
...obj,
|
|
596
|
+
});
|
|
597
|
+
exports.UntagResourceRequestFilterSensitiveLog = UntagResourceRequestFilterSensitiveLog;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_json1_1UntagLogGroupCommand = exports.deserializeAws_json1_1TestMetricFilterCommand = exports.deserializeAws_json1_1TagLogGroupCommand = exports.deserializeAws_json1_1StopQueryCommand = exports.deserializeAws_json1_1StartQueryCommand = exports.deserializeAws_json1_1PutSubscriptionFilterCommand = exports.deserializeAws_json1_1PutRetentionPolicyCommand = exports.deserializeAws_json1_1PutResourcePolicyCommand = exports.deserializeAws_json1_1PutQueryDefinitionCommand = exports.deserializeAws_json1_1PutMetricFilterCommand = exports.deserializeAws_json1_1PutLogEventsCommand = exports.deserializeAws_json1_1PutDestinationPolicyCommand = exports.deserializeAws_json1_1PutDestinationCommand = exports.deserializeAws_json1_1ListTagsLogGroupCommand = exports.deserializeAws_json1_1GetQueryResultsCommand = exports.deserializeAws_json1_1GetLogRecordCommand = exports.deserializeAws_json1_1GetLogGroupFieldsCommand = exports.deserializeAws_json1_1GetLogEventsCommand = exports.deserializeAws_json1_1FilterLogEventsCommand = exports.deserializeAws_json1_1DisassociateKmsKeyCommand = exports.deserializeAws_json1_1DescribeSubscriptionFiltersCommand = exports.deserializeAws_json1_1DescribeResourcePoliciesCommand = exports.deserializeAws_json1_1DescribeQueryDefinitionsCommand = exports.deserializeAws_json1_1DescribeQueriesCommand = exports.deserializeAws_json1_1DescribeMetricFiltersCommand = exports.deserializeAws_json1_1DescribeLogStreamsCommand = exports.deserializeAws_json1_1DescribeLogGroupsCommand = exports.deserializeAws_json1_1DescribeExportTasksCommand = exports.deserializeAws_json1_1DescribeDestinationsCommand = exports.deserializeAws_json1_1DeleteSubscriptionFilterCommand = exports.deserializeAws_json1_1DeleteRetentionPolicyCommand = exports.deserializeAws_json1_1DeleteResourcePolicyCommand = exports.deserializeAws_json1_1DeleteQueryDefinitionCommand = exports.deserializeAws_json1_1DeleteMetricFilterCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1CreateLogStreamCommand = exports.deserializeAws_json1_1CreateLogGroupCommand = exports.deserializeAws_json1_1CreateExportTaskCommand = exports.deserializeAws_json1_1CancelExportTaskCommand = exports.deserializeAws_json1_1AssociateKmsKeyCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1UntagLogGroupCommand = exports.serializeAws_json1_1TestMetricFilterCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1TagLogGroupCommand = exports.serializeAws_json1_1StopQueryCommand = exports.serializeAws_json1_1StartQueryCommand = exports.serializeAws_json1_1PutSubscriptionFilterCommand = exports.serializeAws_json1_1PutRetentionPolicyCommand = exports.serializeAws_json1_1PutResourcePolicyCommand = exports.serializeAws_json1_1PutQueryDefinitionCommand = exports.serializeAws_json1_1PutMetricFilterCommand = exports.serializeAws_json1_1PutLogEventsCommand = exports.serializeAws_json1_1PutDestinationPolicyCommand = exports.serializeAws_json1_1PutDestinationCommand = exports.serializeAws_json1_1ListTagsLogGroupCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1GetQueryResultsCommand = exports.serializeAws_json1_1GetLogRecordCommand = exports.serializeAws_json1_1GetLogGroupFieldsCommand = exports.serializeAws_json1_1GetLogEventsCommand = exports.serializeAws_json1_1FilterLogEventsCommand = exports.serializeAws_json1_1DisassociateKmsKeyCommand = exports.serializeAws_json1_1DescribeSubscriptionFiltersCommand = exports.serializeAws_json1_1DescribeResourcePoliciesCommand = exports.serializeAws_json1_1DescribeQueryDefinitionsCommand = exports.serializeAws_json1_1DescribeQueriesCommand = exports.serializeAws_json1_1DescribeMetricFiltersCommand = exports.serializeAws_json1_1DescribeLogStreamsCommand = exports.serializeAws_json1_1DescribeLogGroupsCommand = exports.serializeAws_json1_1DescribeExportTasksCommand = exports.serializeAws_json1_1DescribeDestinationsCommand = exports.serializeAws_json1_1DeleteSubscriptionFilterCommand = exports.serializeAws_json1_1DeleteRetentionPolicyCommand = exports.serializeAws_json1_1DeleteResourcePolicyCommand = exports.serializeAws_json1_1DeleteQueryDefinitionCommand = exports.serializeAws_json1_1DeleteMetricFilterCommand = exports.serializeAws_json1_1DeleteLogStreamCommand = exports.serializeAws_json1_1DeleteLogGroupCommand = exports.serializeAws_json1_1DeleteDestinationCommand = exports.serializeAws_json1_1CreateLogStreamCommand = exports.serializeAws_json1_1CreateLogGroupCommand = exports.serializeAws_json1_1CreateExportTaskCommand = exports.serializeAws_json1_1CancelExportTaskCommand = exports.serializeAws_json1_1AssociateKmsKeyCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1UntagLogGroupCommand = exports.deserializeAws_json1_1TestMetricFilterCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1TagLogGroupCommand = exports.deserializeAws_json1_1StopQueryCommand = exports.deserializeAws_json1_1StartQueryCommand = exports.deserializeAws_json1_1PutSubscriptionFilterCommand = exports.deserializeAws_json1_1PutRetentionPolicyCommand = exports.deserializeAws_json1_1PutResourcePolicyCommand = exports.deserializeAws_json1_1PutQueryDefinitionCommand = exports.deserializeAws_json1_1PutMetricFilterCommand = exports.deserializeAws_json1_1PutLogEventsCommand = exports.deserializeAws_json1_1PutDestinationPolicyCommand = exports.deserializeAws_json1_1PutDestinationCommand = exports.deserializeAws_json1_1ListTagsLogGroupCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1GetQueryResultsCommand = exports.deserializeAws_json1_1GetLogRecordCommand = exports.deserializeAws_json1_1GetLogGroupFieldsCommand = exports.deserializeAws_json1_1GetLogEventsCommand = exports.deserializeAws_json1_1FilterLogEventsCommand = exports.deserializeAws_json1_1DisassociateKmsKeyCommand = exports.deserializeAws_json1_1DescribeSubscriptionFiltersCommand = exports.deserializeAws_json1_1DescribeResourcePoliciesCommand = exports.deserializeAws_json1_1DescribeQueryDefinitionsCommand = exports.deserializeAws_json1_1DescribeQueriesCommand = exports.deserializeAws_json1_1DescribeMetricFiltersCommand = exports.deserializeAws_json1_1DescribeLogStreamsCommand = exports.deserializeAws_json1_1DescribeLogGroupsCommand = exports.deserializeAws_json1_1DescribeExportTasksCommand = exports.deserializeAws_json1_1DescribeDestinationsCommand = exports.deserializeAws_json1_1DeleteSubscriptionFilterCommand = exports.deserializeAws_json1_1DeleteRetentionPolicyCommand = exports.deserializeAws_json1_1DeleteResourcePolicyCommand = exports.deserializeAws_json1_1DeleteQueryDefinitionCommand = exports.deserializeAws_json1_1DeleteMetricFilterCommand = exports.deserializeAws_json1_1DeleteLogStreamCommand = exports.deserializeAws_json1_1DeleteLogGroupCommand = exports.deserializeAws_json1_1DeleteDestinationCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const CloudWatchLogsServiceException_1 = require("../models/CloudWatchLogsServiceException");
|
|
@@ -286,6 +286,16 @@ const serializeAws_json1_1GetQueryResultsCommand = async (input, context) => {
|
|
|
286
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
287
|
};
|
|
288
288
|
exports.serializeAws_json1_1GetQueryResultsCommand = serializeAws_json1_1GetQueryResultsCommand;
|
|
289
|
+
const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
|
|
290
|
+
const headers = {
|
|
291
|
+
"content-type": "application/x-amz-json-1.1",
|
|
292
|
+
"x-amz-target": "Logs_20140328.ListTagsForResource",
|
|
293
|
+
};
|
|
294
|
+
let body;
|
|
295
|
+
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
296
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
|
+
};
|
|
298
|
+
exports.serializeAws_json1_1ListTagsForResourceCommand = serializeAws_json1_1ListTagsForResourceCommand;
|
|
289
299
|
const serializeAws_json1_1ListTagsLogGroupCommand = async (input, context) => {
|
|
290
300
|
const headers = {
|
|
291
301
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -406,6 +416,16 @@ const serializeAws_json1_1TagLogGroupCommand = async (input, context) => {
|
|
|
406
416
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
407
417
|
};
|
|
408
418
|
exports.serializeAws_json1_1TagLogGroupCommand = serializeAws_json1_1TagLogGroupCommand;
|
|
419
|
+
const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
420
|
+
const headers = {
|
|
421
|
+
"content-type": "application/x-amz-json-1.1",
|
|
422
|
+
"x-amz-target": "Logs_20140328.TagResource",
|
|
423
|
+
};
|
|
424
|
+
let body;
|
|
425
|
+
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
426
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
427
|
+
};
|
|
428
|
+
exports.serializeAws_json1_1TagResourceCommand = serializeAws_json1_1TagResourceCommand;
|
|
409
429
|
const serializeAws_json1_1TestMetricFilterCommand = async (input, context) => {
|
|
410
430
|
const headers = {
|
|
411
431
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -426,6 +446,16 @@ const serializeAws_json1_1UntagLogGroupCommand = async (input, context) => {
|
|
|
426
446
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
427
447
|
};
|
|
428
448
|
exports.serializeAws_json1_1UntagLogGroupCommand = serializeAws_json1_1UntagLogGroupCommand;
|
|
449
|
+
const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
450
|
+
const headers = {
|
|
451
|
+
"content-type": "application/x-amz-json-1.1",
|
|
452
|
+
"x-amz-target": "Logs_20140328.UntagResource",
|
|
453
|
+
};
|
|
454
|
+
let body;
|
|
455
|
+
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
456
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
457
|
+
};
|
|
458
|
+
exports.serializeAws_json1_1UntagResourceCommand = serializeAws_json1_1UntagResourceCommand;
|
|
429
459
|
const deserializeAws_json1_1AssociateKmsKeyCommand = async (output, context) => {
|
|
430
460
|
if (output.statusCode >= 300) {
|
|
431
461
|
return deserializeAws_json1_1AssociateKmsKeyCommandError(output, context);
|
|
@@ -1546,6 +1576,46 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
1546
1576
|
});
|
|
1547
1577
|
}
|
|
1548
1578
|
};
|
|
1579
|
+
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1580
|
+
if (output.statusCode >= 300) {
|
|
1581
|
+
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
1582
|
+
}
|
|
1583
|
+
const data = await parseBody(output.body, context);
|
|
1584
|
+
let contents = {};
|
|
1585
|
+
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
1586
|
+
const response = {
|
|
1587
|
+
$metadata: deserializeMetadata(output),
|
|
1588
|
+
...contents,
|
|
1589
|
+
};
|
|
1590
|
+
return Promise.resolve(response);
|
|
1591
|
+
};
|
|
1592
|
+
exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_1ListTagsForResourceCommand;
|
|
1593
|
+
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1594
|
+
const parsedOutput = {
|
|
1595
|
+
...output,
|
|
1596
|
+
body: await parseErrorBody(output.body, context),
|
|
1597
|
+
};
|
|
1598
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1599
|
+
switch (errorCode) {
|
|
1600
|
+
case "InvalidParameterException":
|
|
1601
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1602
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1603
|
+
case "ResourceNotFoundException":
|
|
1604
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1605
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1606
|
+
case "ServiceUnavailableException":
|
|
1607
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1608
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1609
|
+
default:
|
|
1610
|
+
const parsedBody = parsedOutput.body;
|
|
1611
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1612
|
+
output,
|
|
1613
|
+
parsedBody,
|
|
1614
|
+
exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
|
|
1615
|
+
errorCode,
|
|
1616
|
+
});
|
|
1617
|
+
}
|
|
1618
|
+
};
|
|
1549
1619
|
const deserializeAws_json1_1ListTagsLogGroupCommand = async (output, context) => {
|
|
1550
1620
|
if (output.statusCode >= 300) {
|
|
1551
1621
|
return deserializeAws_json1_1ListTagsLogGroupCommandError(output, context);
|
|
@@ -2038,6 +2108,46 @@ const deserializeAws_json1_1TagLogGroupCommandError = async (output, context) =>
|
|
|
2038
2108
|
});
|
|
2039
2109
|
}
|
|
2040
2110
|
};
|
|
2111
|
+
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
2112
|
+
if (output.statusCode >= 300) {
|
|
2113
|
+
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
2114
|
+
}
|
|
2115
|
+
await collectBody(output.body, context);
|
|
2116
|
+
const response = {
|
|
2117
|
+
$metadata: deserializeMetadata(output),
|
|
2118
|
+
};
|
|
2119
|
+
return Promise.resolve(response);
|
|
2120
|
+
};
|
|
2121
|
+
exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagResourceCommand;
|
|
2122
|
+
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
2123
|
+
const parsedOutput = {
|
|
2124
|
+
...output,
|
|
2125
|
+
body: await parseErrorBody(output.body, context),
|
|
2126
|
+
};
|
|
2127
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2128
|
+
switch (errorCode) {
|
|
2129
|
+
case "InvalidParameterException":
|
|
2130
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2131
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2132
|
+
case "ResourceNotFoundException":
|
|
2133
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2134
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2135
|
+
case "ServiceUnavailableException":
|
|
2136
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2137
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2138
|
+
case "TooManyTagsException":
|
|
2139
|
+
case "com.amazonaws.cloudwatchlogs#TooManyTagsException":
|
|
2140
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
2141
|
+
default:
|
|
2142
|
+
const parsedBody = parsedOutput.body;
|
|
2143
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2144
|
+
output,
|
|
2145
|
+
parsedBody,
|
|
2146
|
+
exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
|
|
2147
|
+
errorCode,
|
|
2148
|
+
});
|
|
2149
|
+
}
|
|
2150
|
+
};
|
|
2041
2151
|
const deserializeAws_json1_1TestMetricFilterCommand = async (output, context) => {
|
|
2042
2152
|
if (output.statusCode >= 300) {
|
|
2043
2153
|
return deserializeAws_json1_1TestMetricFilterCommandError(output, context);
|
|
@@ -2106,6 +2216,43 @@ const deserializeAws_json1_1UntagLogGroupCommandError = async (output, context)
|
|
|
2106
2216
|
});
|
|
2107
2217
|
}
|
|
2108
2218
|
};
|
|
2219
|
+
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
2220
|
+
if (output.statusCode >= 300) {
|
|
2221
|
+
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
2222
|
+
}
|
|
2223
|
+
await collectBody(output.body, context);
|
|
2224
|
+
const response = {
|
|
2225
|
+
$metadata: deserializeMetadata(output),
|
|
2226
|
+
};
|
|
2227
|
+
return Promise.resolve(response);
|
|
2228
|
+
};
|
|
2229
|
+
exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1UntagResourceCommand;
|
|
2230
|
+
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
2231
|
+
const parsedOutput = {
|
|
2232
|
+
...output,
|
|
2233
|
+
body: await parseErrorBody(output.body, context),
|
|
2234
|
+
};
|
|
2235
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2236
|
+
switch (errorCode) {
|
|
2237
|
+
case "InvalidParameterException":
|
|
2238
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2239
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2240
|
+
case "ResourceNotFoundException":
|
|
2241
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2242
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2243
|
+
case "ServiceUnavailableException":
|
|
2244
|
+
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2245
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2246
|
+
default:
|
|
2247
|
+
const parsedBody = parsedOutput.body;
|
|
2248
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2249
|
+
output,
|
|
2250
|
+
parsedBody,
|
|
2251
|
+
exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
|
|
2252
|
+
errorCode,
|
|
2253
|
+
});
|
|
2254
|
+
}
|
|
2255
|
+
};
|
|
2109
2256
|
const deserializeAws_json1_1DataAlreadyAcceptedExceptionResponse = async (parsedOutput, context) => {
|
|
2110
2257
|
const body = parsedOutput.body;
|
|
2111
2258
|
const deserialized = deserializeAws_json1_1DataAlreadyAcceptedException(body, context);
|
|
@@ -2196,6 +2343,15 @@ const deserializeAws_json1_1ServiceUnavailableExceptionResponse = async (parsedO
|
|
|
2196
2343
|
});
|
|
2197
2344
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2198
2345
|
};
|
|
2346
|
+
const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
2347
|
+
const body = parsedOutput.body;
|
|
2348
|
+
const deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
2349
|
+
const exception = new models_0_1.TooManyTagsException({
|
|
2350
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2351
|
+
...deserialized,
|
|
2352
|
+
});
|
|
2353
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2354
|
+
};
|
|
2199
2355
|
const deserializeAws_json1_1UnrecognizedClientExceptionResponse = async (parsedOutput, context) => {
|
|
2200
2356
|
const body = parsedOutput.body;
|
|
2201
2357
|
const deserialized = deserializeAws_json1_1UnrecognizedClientException(body, context);
|
|
@@ -2432,6 +2588,11 @@ const serializeAws_json1_1InputLogStreamNames = (input, context) => {
|
|
|
2432
2588
|
return entry;
|
|
2433
2589
|
});
|
|
2434
2590
|
};
|
|
2591
|
+
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
2592
|
+
return {
|
|
2593
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2594
|
+
};
|
|
2595
|
+
};
|
|
2435
2596
|
const serializeAws_json1_1ListTagsLogGroupRequest = (input, context) => {
|
|
2436
2597
|
return {
|
|
2437
2598
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
@@ -2472,6 +2633,7 @@ const serializeAws_json1_1PutDestinationRequest = (input, context) => {
|
|
|
2472
2633
|
return {
|
|
2473
2634
|
...(input.destinationName != null && { destinationName: input.destinationName }),
|
|
2474
2635
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2636
|
+
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
2475
2637
|
...(input.targetArn != null && { targetArn: input.targetArn }),
|
|
2476
2638
|
};
|
|
2477
2639
|
};
|
|
@@ -2542,6 +2704,13 @@ const serializeAws_json1_1StopQueryRequest = (input, context) => {
|
|
|
2542
2704
|
...(input.queryId != null && { queryId: input.queryId }),
|
|
2543
2705
|
};
|
|
2544
2706
|
};
|
|
2707
|
+
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
2708
|
+
return input
|
|
2709
|
+
.filter((e) => e != null)
|
|
2710
|
+
.map((entry) => {
|
|
2711
|
+
return entry;
|
|
2712
|
+
});
|
|
2713
|
+
};
|
|
2545
2714
|
const serializeAws_json1_1TagList = (input, context) => {
|
|
2546
2715
|
return input
|
|
2547
2716
|
.filter((e) => e != null)
|
|
@@ -2555,6 +2724,12 @@ const serializeAws_json1_1TagLogGroupRequest = (input, context) => {
|
|
|
2555
2724
|
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
2556
2725
|
};
|
|
2557
2726
|
};
|
|
2727
|
+
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
2728
|
+
return {
|
|
2729
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2730
|
+
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
2731
|
+
};
|
|
2732
|
+
};
|
|
2558
2733
|
const serializeAws_json1_1Tags = (input, context) => {
|
|
2559
2734
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2560
2735
|
if (value === null) {
|
|
@@ -2587,6 +2762,12 @@ const serializeAws_json1_1UntagLogGroupRequest = (input, context) => {
|
|
|
2587
2762
|
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2588
2763
|
};
|
|
2589
2764
|
};
|
|
2765
|
+
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
2766
|
+
return {
|
|
2767
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2768
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
2769
|
+
};
|
|
2770
|
+
};
|
|
2590
2771
|
const deserializeAws_json1_1CreateExportTaskResponse = (output, context) => {
|
|
2591
2772
|
return {
|
|
2592
2773
|
taskId: (0, smithy_client_1.expectString)(output.taskId),
|
|
@@ -2820,6 +3001,11 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
2820
3001
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2821
3002
|
};
|
|
2822
3003
|
};
|
|
3004
|
+
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
3005
|
+
return {
|
|
3006
|
+
tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
3007
|
+
};
|
|
3008
|
+
};
|
|
2823
3009
|
const deserializeAws_json1_1ListTagsLogGroupResponse = (output, context) => {
|
|
2824
3010
|
return {
|
|
2825
3011
|
tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
@@ -3218,6 +3404,12 @@ const deserializeAws_json1_1TestMetricFilterResponse = (output, context) => {
|
|
|
3218
3404
|
matches: output.matches != null ? deserializeAws_json1_1MetricFilterMatches(output.matches, context) : undefined,
|
|
3219
3405
|
};
|
|
3220
3406
|
};
|
|
3407
|
+
const deserializeAws_json1_1TooManyTagsException = (output, context) => {
|
|
3408
|
+
return {
|
|
3409
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
3410
|
+
resourceName: (0, smithy_client_1.expectString)(output.resourceName),
|
|
3411
|
+
};
|
|
3412
|
+
};
|
|
3221
3413
|
const deserializeAws_json1_1UnrecognizedClientException = (output, context) => {
|
|
3222
3414
|
return {
|
|
3223
3415
|
message: (0, smithy_client_1.expectString)(output.message),
|