@aws-sdk/client-cloudwatch-logs 3.52.0 → 3.54.1
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 +30 -0
- package/dist-cjs/endpoints.js +3 -5
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/CloudWatchLogsServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +150 -2
- package/dist-cjs/protocols/Aws_json1_1.js +383 -1357
- package/dist-es/endpoints.js +3 -5
- package/dist-es/index.js +1 -0
- package/dist-es/models/CloudWatchLogsServiceException.js +12 -0
- package/dist-es/models/models_0.js +137 -1
- package/dist-es/protocols/Aws_json1_1.js +864 -1504
- package/dist-types/CloudWatchLogsClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/CloudWatchLogsServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +79 -45
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/CloudWatchLogsServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +57 -45
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
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.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudwatch-logs
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **clients:** update clients as of 2022/03/10 ([#3411](https://github.com/aws/aws-sdk-js-v3/issues/3411)) ([8fa517a](https://github.com/aws/aws-sdk-js-v3/commit/8fa517a2c56d2f98a2e4a9c4ea6fd99b6ce61a71))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
37
|
|
|
8
38
|
**Note:** Version bump only for package @aws-sdk/client-cloudwatch-logs
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -23,19 +23,17 @@ const regionHash = {
|
|
|
23
23
|
variants: [
|
|
24
24
|
{
|
|
25
25
|
hostname: "logs.us-gov-east-1.amazonaws.com",
|
|
26
|
-
tags: [],
|
|
26
|
+
tags: ["fips"],
|
|
27
27
|
},
|
|
28
28
|
],
|
|
29
|
-
signingRegion: "us-gov-east-1",
|
|
30
29
|
},
|
|
31
30
|
"us-gov-west-1": {
|
|
32
31
|
variants: [
|
|
33
32
|
{
|
|
34
33
|
hostname: "logs.us-gov-west-1.amazonaws.com",
|
|
35
|
-
tags: [],
|
|
34
|
+
tags: ["fips"],
|
|
36
35
|
},
|
|
37
36
|
],
|
|
38
|
-
signingRegion: "us-gov-west-1",
|
|
39
37
|
},
|
|
40
38
|
"us-west-1": {
|
|
41
39
|
variants: [
|
|
@@ -155,7 +153,7 @@ const partitionHash = {
|
|
|
155
153
|
],
|
|
156
154
|
},
|
|
157
155
|
"aws-us-gov": {
|
|
158
|
-
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
156
|
+
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
|
|
159
157
|
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
160
158
|
variants: [
|
|
161
159
|
{
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloudWatchLogsServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./CloudWatchLogs"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./CloudWatchLogsClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./pagination"), exports);
|
|
10
|
+
var CloudWatchLogsServiceException_1 = require("./models/CloudWatchLogsServiceException");
|
|
11
|
+
Object.defineProperty(exports, "CloudWatchLogsServiceException", { enumerable: true, get: function () { return CloudWatchLogsServiceException_1.CloudWatchLogsServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloudWatchLogsServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class CloudWatchLogsServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, CloudWatchLogsServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.CloudWatchLogsServiceException = CloudWatchLogsServiceException;
|
|
@@ -1,19 +1,86 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.QueryDefinition = exports.DescribeQueryDefinitionsRequest = exports.DescribeQueriesResponse = exports.QueryInfo = exports.DescribeQueriesRequest = exports.QueryStatus = exports.DescribeMetricFiltersResponse = exports.MetricFilter = exports.MetricTransformation = exports.StandardUnit = exports.DescribeMetricFiltersRequest = exports.DescribeLogStreamsResponse = exports.LogStream = exports.DescribeLogStreamsRequest = exports.OrderBy = exports.DescribeLogGroupsResponse = exports.LogGroup = exports.DescribeLogGroupsRequest = exports.DescribeExportTasksResponse = exports.ExportTask = exports.ExportTaskStatus = exports.ExportTaskExecutionInfo = exports.DescribeExportTasksRequest = exports.ExportTaskStatusCode = exports.DescribeDestinationsResponse = exports.Destination = exports.DescribeDestinationsRequest = exports.DeleteSubscriptionFilterRequest = exports.DeleteRetentionPolicyRequest = exports.DeleteResourcePolicyRequest = exports.DeleteQueryDefinitionResponse = exports.DeleteQueryDefinitionRequest = exports.DeleteMetricFilterRequest = exports.DeleteLogStreamRequest = exports.DeleteLogGroupRequest = exports.DeleteDestinationRequest = exports.DataAlreadyAcceptedException = exports.CreateLogStreamRequest = exports.CreateLogGroupRequest = exports.ResourceAlreadyExistsException = exports.LimitExceededException = exports.CreateExportTaskResponse = exports.CreateExportTaskRequest = exports.InvalidOperationException = exports.CancelExportTaskRequest = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.OperationAbortedException = exports.InvalidParameterException = exports.AssociateKmsKeyRequest = void 0;
|
|
4
|
+
exports.StopQueryResponse = exports.StopQueryRequest = exports.StartQueryResponse = exports.StartQueryRequest = exports.MalformedQueryException = exports.QueryCompileError = exports.QueryCompileErrorLocation = exports.PutSubscriptionFilterRequest = exports.PutRetentionPolicyRequest = exports.PutResourcePolicyResponse = exports.PutResourcePolicyRequest = exports.PutQueryDefinitionResponse = exports.PutQueryDefinitionRequest = exports.PutMetricFilterRequest = exports.UnrecognizedClientException = exports.PutLogEventsResponse = exports.RejectedLogEventsInfo = exports.PutLogEventsRequest = exports.PutDestinationPolicyRequest = exports.PutDestinationResponse = exports.PutDestinationRequest = exports.ListTagsLogGroupResponse = exports.ListTagsLogGroupRequest = exports.InvalidSequenceTokenException = exports.InputLogEvent = exports.GetQueryResultsResponse = exports.QueryStatistics = exports.ResultField = exports.GetQueryResultsRequest = exports.GetLogRecordResponse = exports.GetLogRecordRequest = exports.GetLogGroupFieldsResponse = exports.LogGroupField = exports.GetLogGroupFieldsRequest = exports.GetLogEventsResponse = exports.OutputLogEvent = exports.GetLogEventsRequest = exports.FilterLogEventsResponse = exports.SearchedLogStream = exports.FilterLogEventsRequest = exports.FilteredLogEvent = exports.DisassociateKmsKeyRequest = exports.DescribeSubscriptionFiltersResponse = exports.SubscriptionFilter = exports.Distribution = exports.DescribeSubscriptionFiltersRequest = exports.DescribeResourcePoliciesResponse = exports.ResourcePolicy = exports.DescribeResourcePoliciesRequest = exports.DescribeQueryDefinitionsResponse = void 0;
|
|
5
|
+
exports.UntagLogGroupRequest = exports.TestMetricFilterResponse = exports.MetricFilterMatchRecord = exports.TestMetricFilterRequest = exports.TagLogGroupRequest = void 0;
|
|
6
|
+
const CloudWatchLogsServiceException_1 = require("./CloudWatchLogsServiceException");
|
|
5
7
|
var AssociateKmsKeyRequest;
|
|
6
8
|
(function (AssociateKmsKeyRequest) {
|
|
7
9
|
AssociateKmsKeyRequest.filterSensitiveLog = (obj) => ({
|
|
8
10
|
...obj,
|
|
9
11
|
});
|
|
10
12
|
})(AssociateKmsKeyRequest = exports.AssociateKmsKeyRequest || (exports.AssociateKmsKeyRequest = {}));
|
|
13
|
+
class InvalidParameterException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
14
|
+
constructor(opts) {
|
|
15
|
+
super({
|
|
16
|
+
name: "InvalidParameterException",
|
|
17
|
+
$fault: "client",
|
|
18
|
+
...opts,
|
|
19
|
+
});
|
|
20
|
+
this.name = "InvalidParameterException";
|
|
21
|
+
this.$fault = "client";
|
|
22
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
26
|
+
class OperationAbortedException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
27
|
+
constructor(opts) {
|
|
28
|
+
super({
|
|
29
|
+
name: "OperationAbortedException",
|
|
30
|
+
$fault: "client",
|
|
31
|
+
...opts,
|
|
32
|
+
});
|
|
33
|
+
this.name = "OperationAbortedException";
|
|
34
|
+
this.$fault = "client";
|
|
35
|
+
Object.setPrototypeOf(this, OperationAbortedException.prototype);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.OperationAbortedException = OperationAbortedException;
|
|
39
|
+
class ResourceNotFoundException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
40
|
+
constructor(opts) {
|
|
41
|
+
super({
|
|
42
|
+
name: "ResourceNotFoundException",
|
|
43
|
+
$fault: "client",
|
|
44
|
+
...opts,
|
|
45
|
+
});
|
|
46
|
+
this.name = "ResourceNotFoundException";
|
|
47
|
+
this.$fault = "client";
|
|
48
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
52
|
+
class ServiceUnavailableException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
53
|
+
constructor(opts) {
|
|
54
|
+
super({
|
|
55
|
+
name: "ServiceUnavailableException",
|
|
56
|
+
$fault: "server",
|
|
57
|
+
...opts,
|
|
58
|
+
});
|
|
59
|
+
this.name = "ServiceUnavailableException";
|
|
60
|
+
this.$fault = "server";
|
|
61
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
11
65
|
var CancelExportTaskRequest;
|
|
12
66
|
(function (CancelExportTaskRequest) {
|
|
13
67
|
CancelExportTaskRequest.filterSensitiveLog = (obj) => ({
|
|
14
68
|
...obj,
|
|
15
69
|
});
|
|
16
70
|
})(CancelExportTaskRequest = exports.CancelExportTaskRequest || (exports.CancelExportTaskRequest = {}));
|
|
71
|
+
class InvalidOperationException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
72
|
+
constructor(opts) {
|
|
73
|
+
super({
|
|
74
|
+
name: "InvalidOperationException",
|
|
75
|
+
$fault: "client",
|
|
76
|
+
...opts,
|
|
77
|
+
});
|
|
78
|
+
this.name = "InvalidOperationException";
|
|
79
|
+
this.$fault = "client";
|
|
80
|
+
Object.setPrototypeOf(this, InvalidOperationException.prototype);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.InvalidOperationException = InvalidOperationException;
|
|
17
84
|
var CreateExportTaskRequest;
|
|
18
85
|
(function (CreateExportTaskRequest) {
|
|
19
86
|
CreateExportTaskRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -26,6 +93,32 @@ var CreateExportTaskResponse;
|
|
|
26
93
|
...obj,
|
|
27
94
|
});
|
|
28
95
|
})(CreateExportTaskResponse = exports.CreateExportTaskResponse || (exports.CreateExportTaskResponse = {}));
|
|
96
|
+
class LimitExceededException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
97
|
+
constructor(opts) {
|
|
98
|
+
super({
|
|
99
|
+
name: "LimitExceededException",
|
|
100
|
+
$fault: "client",
|
|
101
|
+
...opts,
|
|
102
|
+
});
|
|
103
|
+
this.name = "LimitExceededException";
|
|
104
|
+
this.$fault = "client";
|
|
105
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.LimitExceededException = LimitExceededException;
|
|
109
|
+
class ResourceAlreadyExistsException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
110
|
+
constructor(opts) {
|
|
111
|
+
super({
|
|
112
|
+
name: "ResourceAlreadyExistsException",
|
|
113
|
+
$fault: "client",
|
|
114
|
+
...opts,
|
|
115
|
+
});
|
|
116
|
+
this.name = "ResourceAlreadyExistsException";
|
|
117
|
+
this.$fault = "client";
|
|
118
|
+
Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
|
|
29
122
|
var CreateLogGroupRequest;
|
|
30
123
|
(function (CreateLogGroupRequest) {
|
|
31
124
|
CreateLogGroupRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -38,6 +131,20 @@ var CreateLogStreamRequest;
|
|
|
38
131
|
...obj,
|
|
39
132
|
});
|
|
40
133
|
})(CreateLogStreamRequest = exports.CreateLogStreamRequest || (exports.CreateLogStreamRequest = {}));
|
|
134
|
+
class DataAlreadyAcceptedException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
135
|
+
constructor(opts) {
|
|
136
|
+
super({
|
|
137
|
+
name: "DataAlreadyAcceptedException",
|
|
138
|
+
$fault: "client",
|
|
139
|
+
...opts,
|
|
140
|
+
});
|
|
141
|
+
this.name = "DataAlreadyAcceptedException";
|
|
142
|
+
this.$fault = "client";
|
|
143
|
+
Object.setPrototypeOf(this, DataAlreadyAcceptedException.prototype);
|
|
144
|
+
this.expectedSequenceToken = opts.expectedSequenceToken;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.DataAlreadyAcceptedException = DataAlreadyAcceptedException;
|
|
41
148
|
var DeleteDestinationRequest;
|
|
42
149
|
(function (DeleteDestinationRequest) {
|
|
43
150
|
DeleteDestinationRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -439,6 +546,20 @@ var InputLogEvent;
|
|
|
439
546
|
...obj,
|
|
440
547
|
});
|
|
441
548
|
})(InputLogEvent = exports.InputLogEvent || (exports.InputLogEvent = {}));
|
|
549
|
+
class InvalidSequenceTokenException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
550
|
+
constructor(opts) {
|
|
551
|
+
super({
|
|
552
|
+
name: "InvalidSequenceTokenException",
|
|
553
|
+
$fault: "client",
|
|
554
|
+
...opts,
|
|
555
|
+
});
|
|
556
|
+
this.name = "InvalidSequenceTokenException";
|
|
557
|
+
this.$fault = "client";
|
|
558
|
+
Object.setPrototypeOf(this, InvalidSequenceTokenException.prototype);
|
|
559
|
+
this.expectedSequenceToken = opts.expectedSequenceToken;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
exports.InvalidSequenceTokenException = InvalidSequenceTokenException;
|
|
442
563
|
var ListTagsLogGroupRequest;
|
|
443
564
|
(function (ListTagsLogGroupRequest) {
|
|
444
565
|
ListTagsLogGroupRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -487,6 +608,19 @@ var PutLogEventsResponse;
|
|
|
487
608
|
...obj,
|
|
488
609
|
});
|
|
489
610
|
})(PutLogEventsResponse = exports.PutLogEventsResponse || (exports.PutLogEventsResponse = {}));
|
|
611
|
+
class UnrecognizedClientException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
612
|
+
constructor(opts) {
|
|
613
|
+
super({
|
|
614
|
+
name: "UnrecognizedClientException",
|
|
615
|
+
$fault: "client",
|
|
616
|
+
...opts,
|
|
617
|
+
});
|
|
618
|
+
this.name = "UnrecognizedClientException";
|
|
619
|
+
this.$fault = "client";
|
|
620
|
+
Object.setPrototypeOf(this, UnrecognizedClientException.prototype);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
exports.UnrecognizedClientException = UnrecognizedClientException;
|
|
490
624
|
var PutMetricFilterRequest;
|
|
491
625
|
(function (PutMetricFilterRequest) {
|
|
492
626
|
PutMetricFilterRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -541,6 +675,20 @@ var QueryCompileError;
|
|
|
541
675
|
...obj,
|
|
542
676
|
});
|
|
543
677
|
})(QueryCompileError = exports.QueryCompileError || (exports.QueryCompileError = {}));
|
|
678
|
+
class MalformedQueryException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
679
|
+
constructor(opts) {
|
|
680
|
+
super({
|
|
681
|
+
name: "MalformedQueryException",
|
|
682
|
+
$fault: "client",
|
|
683
|
+
...opts,
|
|
684
|
+
});
|
|
685
|
+
this.name = "MalformedQueryException";
|
|
686
|
+
this.$fault = "client";
|
|
687
|
+
Object.setPrototypeOf(this, MalformedQueryException.prototype);
|
|
688
|
+
this.queryCompileError = opts.queryCompileError;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
exports.MalformedQueryException = MalformedQueryException;
|
|
544
692
|
var StartQueryRequest;
|
|
545
693
|
(function (StartQueryRequest) {
|
|
546
694
|
StartQueryRequest.filterSensitiveLog = (obj) => ({
|