@aws-sdk/client-cloudwatch-logs 3.216.0 → 3.218.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -14
- package/dist-cjs/CloudWatchLogs.js +45 -0
- package/dist-cjs/commands/DeleteDataProtectionPolicyCommand.js +46 -0
- package/dist-cjs/commands/GetDataProtectionPolicyCommand.js +46 -0
- package/dist-cjs/commands/PutDataProtectionPolicyCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +5 -5
- package/dist-cjs/models/models_0.js +30 -3
- package/dist-cjs/protocols/Aws_json1_1.js +221 -2
- package/dist-es/CloudWatchLogs.js +45 -0
- package/dist-es/commands/DeleteDataProtectionPolicyCommand.js +42 -0
- package/dist-es/commands/GetDataProtectionPolicyCommand.js +42 -0
- package/dist-es/commands/PutDataProtectionPolicyCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +5 -5
- package/dist-es/models/models_0.js +22 -0
- package/dist-es/protocols/Aws_json1_1.js +213 -0
- package/dist-types/CloudWatchLogs.d.ts +184 -114
- package/dist-types/CloudWatchLogsClient.d.ts +20 -16
- package/dist-types/commands/AssociateKmsKeyCommand.d.ts +11 -10
- package/dist-types/commands/CreateExportTaskCommand.d.ts +11 -11
- package/dist-types/commands/CreateLogGroupCommand.d.ts +14 -12
- package/dist-types/commands/CreateLogStreamCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDataProtectionPolicyCommand.d.ts +38 -0
- package/dist-types/commands/DescribeLogGroupsCommand.d.ts +3 -0
- package/dist-types/commands/DescribeLogStreamsCommand.d.ts +3 -0
- package/dist-types/commands/DescribeQueriesCommand.d.ts +3 -3
- package/dist-types/commands/DisassociateKmsKeyCommand.d.ts +5 -3
- package/dist-types/commands/FilterLogEventsCommand.d.ts +8 -4
- package/dist-types/commands/GetDataProtectionPolicyCommand.d.ts +37 -0
- package/dist-types/commands/GetLogEventsCommand.d.ts +4 -0
- package/dist-types/commands/GetLogGroupFieldsCommand.d.ts +10 -6
- package/dist-types/commands/GetQueryResultsCommand.d.ts +4 -2
- package/dist-types/commands/PutDataProtectionPolicyCommand.d.ts +51 -0
- package/dist-types/commands/PutDestinationCommand.d.ts +3 -3
- package/dist-types/commands/PutLogEventsCommand.d.ts +11 -8
- package/dist-types/commands/PutMetricFilterCommand.d.ts +5 -5
- package/dist-types/commands/PutQueryDefinitionCommand.d.ts +7 -7
- package/dist-types/commands/PutRetentionPolicyCommand.d.ts +11 -10
- package/dist-types/commands/PutSubscriptionFilterCommand.d.ts +10 -11
- package/dist-types/commands/StartQueryCommand.d.ts +9 -4
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +369 -115
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/CloudWatchLogs.d.ts +51 -0
- package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DeleteDataProtectionPolicyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetDataProtectionPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PutDataProtectionPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +53 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -11,22 +11,23 @@ AWS SDK for JavaScript CloudWatchLogs Client for Node.js, Browser and React Nati
|
|
|
11
11
|
|
|
12
12
|
<p>You can use Amazon CloudWatch Logs to monitor, store, and access your log files from
|
|
13
13
|
EC2 instances, CloudTrail, and other sources. You can then retrieve the associated
|
|
14
|
-
log data from CloudWatch Logs using the CloudWatch console,
|
|
15
|
-
Amazon Web Services CLI, CloudWatch Logs API, or CloudWatch
|
|
14
|
+
log data from CloudWatch Logs using the CloudWatch console. Alternatively, you can use
|
|
15
|
+
CloudWatch Logs commands in the Amazon Web Services CLI, CloudWatch Logs API, or CloudWatch
|
|
16
|
+
Logs SDK.</p>
|
|
16
17
|
<p>You can use CloudWatch Logs to:</p>
|
|
17
18
|
<ul>
|
|
18
19
|
<li>
|
|
19
20
|
<p>
|
|
20
|
-
<b>Monitor logs from EC2 instances in real
|
|
21
|
+
<b>Monitor logs from EC2 instances in real time</b>: You
|
|
21
22
|
can use CloudWatch Logs to monitor applications and systems using log data. For example,
|
|
22
|
-
CloudWatch Logs can track the number of errors that occur in your application logs
|
|
23
|
-
send you a notification whenever the rate of errors exceeds a threshold that you
|
|
24
|
-
CloudWatch Logs uses your log data for monitoring so no code changes are
|
|
25
|
-
example, you can monitor application logs for specific literal terms (such
|
|
26
|
-
"NullReferenceException")
|
|
27
|
-
particular position in log data (such as "404" status codes in an Apache access
|
|
28
|
-
the term you are searching for is found, CloudWatch Logs reports the data to a
|
|
29
|
-
metric that you specify.</p>
|
|
23
|
+
CloudWatch Logs can track the number of errors that occur in your application logs. Then,
|
|
24
|
+
it can send you a notification whenever the rate of errors exceeds a threshold that you
|
|
25
|
+
specify. CloudWatch Logs uses your log data for monitoring so no code changes are
|
|
26
|
+
required. For example, you can monitor application logs for specific literal terms (such
|
|
27
|
+
as "NullReferenceException"). You can also count the number of occurrences of a literal
|
|
28
|
+
term at a particular position in log data (such as "404" status codes in an Apache access
|
|
29
|
+
log). When the term you are searching for is found, CloudWatch Logs reports the data to a
|
|
30
|
+
CloudWatch metric that you specify.</p>
|
|
30
31
|
</li>
|
|
31
32
|
<li>
|
|
32
33
|
<p>
|
|
@@ -38,9 +39,9 @@ captured by CloudTrail. You can use the notification to perform troubleshooting.
|
|
|
38
39
|
<p>
|
|
39
40
|
<b>Archive log data</b>: You can use CloudWatch Logs to
|
|
40
41
|
store your log data in highly durable storage. You can change the log retention setting so
|
|
41
|
-
that any log events
|
|
42
|
-
agent
|
|
43
|
-
|
|
42
|
+
that any log events earlier than this setting are automatically deleted. The CloudWatch
|
|
43
|
+
Logs agent helps to quickly send both rotated and non-rotated log data off of a host and
|
|
44
|
+
into the log service. You can then access the raw log data when you need it.</p>
|
|
44
45
|
</li>
|
|
45
46
|
</ul>
|
|
46
47
|
|
|
@@ -7,6 +7,7 @@ const CancelExportTaskCommand_1 = require("./commands/CancelExportTaskCommand");
|
|
|
7
7
|
const CreateExportTaskCommand_1 = require("./commands/CreateExportTaskCommand");
|
|
8
8
|
const CreateLogGroupCommand_1 = require("./commands/CreateLogGroupCommand");
|
|
9
9
|
const CreateLogStreamCommand_1 = require("./commands/CreateLogStreamCommand");
|
|
10
|
+
const DeleteDataProtectionPolicyCommand_1 = require("./commands/DeleteDataProtectionPolicyCommand");
|
|
10
11
|
const DeleteDestinationCommand_1 = require("./commands/DeleteDestinationCommand");
|
|
11
12
|
const DeleteLogGroupCommand_1 = require("./commands/DeleteLogGroupCommand");
|
|
12
13
|
const DeleteLogStreamCommand_1 = require("./commands/DeleteLogStreamCommand");
|
|
@@ -26,12 +27,14 @@ const DescribeResourcePoliciesCommand_1 = require("./commands/DescribeResourcePo
|
|
|
26
27
|
const DescribeSubscriptionFiltersCommand_1 = require("./commands/DescribeSubscriptionFiltersCommand");
|
|
27
28
|
const DisassociateKmsKeyCommand_1 = require("./commands/DisassociateKmsKeyCommand");
|
|
28
29
|
const FilterLogEventsCommand_1 = require("./commands/FilterLogEventsCommand");
|
|
30
|
+
const GetDataProtectionPolicyCommand_1 = require("./commands/GetDataProtectionPolicyCommand");
|
|
29
31
|
const GetLogEventsCommand_1 = require("./commands/GetLogEventsCommand");
|
|
30
32
|
const GetLogGroupFieldsCommand_1 = require("./commands/GetLogGroupFieldsCommand");
|
|
31
33
|
const GetLogRecordCommand_1 = require("./commands/GetLogRecordCommand");
|
|
32
34
|
const GetQueryResultsCommand_1 = require("./commands/GetQueryResultsCommand");
|
|
33
35
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
34
36
|
const ListTagsLogGroupCommand_1 = require("./commands/ListTagsLogGroupCommand");
|
|
37
|
+
const PutDataProtectionPolicyCommand_1 = require("./commands/PutDataProtectionPolicyCommand");
|
|
35
38
|
const PutDestinationCommand_1 = require("./commands/PutDestinationCommand");
|
|
36
39
|
const PutDestinationPolicyCommand_1 = require("./commands/PutDestinationPolicyCommand");
|
|
37
40
|
const PutLogEventsCommand_1 = require("./commands/PutLogEventsCommand");
|
|
@@ -118,6 +121,20 @@ class CloudWatchLogs extends CloudWatchLogsClient_1.CloudWatchLogsClient {
|
|
|
118
121
|
return this.send(command, optionsOrCb);
|
|
119
122
|
}
|
|
120
123
|
}
|
|
124
|
+
deleteDataProtectionPolicy(args, optionsOrCb, cb) {
|
|
125
|
+
const command = new DeleteDataProtectionPolicyCommand_1.DeleteDataProtectionPolicyCommand(args);
|
|
126
|
+
if (typeof optionsOrCb === "function") {
|
|
127
|
+
this.send(command, optionsOrCb);
|
|
128
|
+
}
|
|
129
|
+
else if (typeof cb === "function") {
|
|
130
|
+
if (typeof optionsOrCb !== "object")
|
|
131
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
132
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
return this.send(command, optionsOrCb);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
121
138
|
deleteDestination(args, optionsOrCb, cb) {
|
|
122
139
|
const command = new DeleteDestinationCommand_1.DeleteDestinationCommand(args);
|
|
123
140
|
if (typeof optionsOrCb === "function") {
|
|
@@ -384,6 +401,20 @@ class CloudWatchLogs extends CloudWatchLogsClient_1.CloudWatchLogsClient {
|
|
|
384
401
|
return this.send(command, optionsOrCb);
|
|
385
402
|
}
|
|
386
403
|
}
|
|
404
|
+
getDataProtectionPolicy(args, optionsOrCb, cb) {
|
|
405
|
+
const command = new GetDataProtectionPolicyCommand_1.GetDataProtectionPolicyCommand(args);
|
|
406
|
+
if (typeof optionsOrCb === "function") {
|
|
407
|
+
this.send(command, optionsOrCb);
|
|
408
|
+
}
|
|
409
|
+
else if (typeof cb === "function") {
|
|
410
|
+
if (typeof optionsOrCb !== "object")
|
|
411
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
412
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
413
|
+
}
|
|
414
|
+
else {
|
|
415
|
+
return this.send(command, optionsOrCb);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
387
418
|
getLogEvents(args, optionsOrCb, cb) {
|
|
388
419
|
const command = new GetLogEventsCommand_1.GetLogEventsCommand(args);
|
|
389
420
|
if (typeof optionsOrCb === "function") {
|
|
@@ -468,6 +499,20 @@ class CloudWatchLogs extends CloudWatchLogsClient_1.CloudWatchLogsClient {
|
|
|
468
499
|
return this.send(command, optionsOrCb);
|
|
469
500
|
}
|
|
470
501
|
}
|
|
502
|
+
putDataProtectionPolicy(args, optionsOrCb, cb) {
|
|
503
|
+
const command = new PutDataProtectionPolicyCommand_1.PutDataProtectionPolicyCommand(args);
|
|
504
|
+
if (typeof optionsOrCb === "function") {
|
|
505
|
+
this.send(command, optionsOrCb);
|
|
506
|
+
}
|
|
507
|
+
else if (typeof cb === "function") {
|
|
508
|
+
if (typeof optionsOrCb !== "object")
|
|
509
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
510
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
511
|
+
}
|
|
512
|
+
else {
|
|
513
|
+
return this.send(command, optionsOrCb);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
471
516
|
putDestination(args, optionsOrCb, cb) {
|
|
472
517
|
const command = new PutDestinationCommand_1.PutDestinationCommand(args);
|
|
473
518
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteDataProtectionPolicyCommand = 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 DeleteDataProtectionPolicyCommand 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, DeleteDataProtectionPolicyCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "CloudWatchLogsClient";
|
|
28
|
+
const commandName = "DeleteDataProtectionPolicyCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DeleteDataProtectionPolicyRequestFilterSensitiveLog,
|
|
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_1DeleteDataProtectionPolicyCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteDataProtectionPolicyCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteDataProtectionPolicyCommand = DeleteDataProtectionPolicyCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetDataProtectionPolicyCommand = 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 GetDataProtectionPolicyCommand 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, GetDataProtectionPolicyCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "CloudWatchLogsClient";
|
|
28
|
+
const commandName = "GetDataProtectionPolicyCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.GetDataProtectionPolicyRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.GetDataProtectionPolicyResponseFilterSensitiveLog,
|
|
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_1GetDataProtectionPolicyCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1GetDataProtectionPolicyCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.GetDataProtectionPolicyCommand = GetDataProtectionPolicyCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutDataProtectionPolicyCommand = 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 PutDataProtectionPolicyCommand 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, PutDataProtectionPolicyCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "CloudWatchLogsClient";
|
|
28
|
+
const commandName = "PutDataProtectionPolicyCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.PutDataProtectionPolicyRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.PutDataProtectionPolicyResponseFilterSensitiveLog,
|
|
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_1PutDataProtectionPolicyCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1PutDataProtectionPolicyCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.PutDataProtectionPolicyCommand = PutDataProtectionPolicyCommand;
|
|
@@ -6,6 +6,7 @@ tslib_1.__exportStar(require("./CancelExportTaskCommand"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./CreateExportTaskCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./CreateLogGroupCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./CreateLogStreamCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./DeleteDataProtectionPolicyCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./DeleteDestinationCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./DeleteLogGroupCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./DeleteLogStreamCommand"), exports);
|
|
@@ -25,12 +26,14 @@ tslib_1.__exportStar(require("./DescribeResourcePoliciesCommand"), exports);
|
|
|
25
26
|
tslib_1.__exportStar(require("./DescribeSubscriptionFiltersCommand"), exports);
|
|
26
27
|
tslib_1.__exportStar(require("./DisassociateKmsKeyCommand"), exports);
|
|
27
28
|
tslib_1.__exportStar(require("./FilterLogEventsCommand"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./GetDataProtectionPolicyCommand"), exports);
|
|
28
30
|
tslib_1.__exportStar(require("./GetLogEventsCommand"), exports);
|
|
29
31
|
tslib_1.__exportStar(require("./GetLogGroupFieldsCommand"), exports);
|
|
30
32
|
tslib_1.__exportStar(require("./GetLogRecordCommand"), exports);
|
|
31
33
|
tslib_1.__exportStar(require("./GetQueryResultsCommand"), exports);
|
|
32
34
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
33
35
|
tslib_1.__exportStar(require("./ListTagsLogGroupCommand"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./PutDataProtectionPolicyCommand"), exports);
|
|
34
37
|
tslib_1.__exportStar(require("./PutDestinationCommand"), exports);
|
|
35
38
|
tslib_1.__exportStar(require("./PutDestinationPolicyCommand"), exports);
|
|
36
39
|
tslib_1.__exportStar(require("./PutLogEventsCommand"), exports);
|
|
@@ -6,7 +6,7 @@ exports.ruleSet = {
|
|
|
6
6
|
parameters: {
|
|
7
7
|
Region: {
|
|
8
8
|
builtIn: "AWS::Region",
|
|
9
|
-
required:
|
|
9
|
+
required: true,
|
|
10
10
|
documentation: "The AWS region used to dispatch the request.",
|
|
11
11
|
type: "String",
|
|
12
12
|
},
|
|
@@ -239,12 +239,12 @@ exports.ruleSet = {
|
|
|
239
239
|
{
|
|
240
240
|
ref: "Region",
|
|
241
241
|
},
|
|
242
|
-
"us-gov-
|
|
242
|
+
"us-gov-east-1",
|
|
243
243
|
],
|
|
244
244
|
},
|
|
245
245
|
],
|
|
246
246
|
endpoint: {
|
|
247
|
-
url: "https://logs.us-gov-
|
|
247
|
+
url: "https://logs.us-gov-east-1.amazonaws.com",
|
|
248
248
|
properties: {},
|
|
249
249
|
headers: {},
|
|
250
250
|
},
|
|
@@ -258,12 +258,12 @@ exports.ruleSet = {
|
|
|
258
258
|
{
|
|
259
259
|
ref: "Region",
|
|
260
260
|
},
|
|
261
|
-
"us-gov-
|
|
261
|
+
"us-gov-west-1",
|
|
262
262
|
],
|
|
263
263
|
},
|
|
264
264
|
],
|
|
265
265
|
endpoint: {
|
|
266
|
-
url: "https://logs.us-gov-
|
|
266
|
+
url: "https://logs.us-gov-west-1.amazonaws.com",
|
|
267
267
|
properties: {},
|
|
268
268
|
headers: {},
|
|
269
269
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UntagResourceRequestFilterSensitiveLog = exports.UntagLogGroupRequestFilterSensitiveLog = exports.TestMetricFilterResponseFilterSensitiveLog = exports.MetricFilterMatchRecordFilterSensitiveLog = exports.TestMetricFilterRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.TagLogGroupRequestFilterSensitiveLog = exports.StopQueryResponseFilterSensitiveLog = exports.StopQueryRequestFilterSensitiveLog = exports.StartQueryResponseFilterSensitiveLog = void 0;
|
|
3
|
+
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.DeleteDataProtectionPolicyRequestFilterSensitiveLog = 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.DataProtectionStatus = exports.DataAlreadyAcceptedException = exports.ResourceAlreadyExistsException = exports.LimitExceededException = exports.InvalidOperationException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.OperationAbortedException = exports.InvalidParameterException = void 0;
|
|
4
|
+
exports.PutResourcePolicyRequestFilterSensitiveLog = exports.PutQueryDefinitionResponseFilterSensitiveLog = exports.PutQueryDefinitionRequestFilterSensitiveLog = exports.PutMetricFilterRequestFilterSensitiveLog = exports.PutLogEventsResponseFilterSensitiveLog = exports.RejectedLogEventsInfoFilterSensitiveLog = exports.PutLogEventsRequestFilterSensitiveLog = exports.PutDestinationPolicyRequestFilterSensitiveLog = exports.PutDestinationResponseFilterSensitiveLog = exports.PutDestinationRequestFilterSensitiveLog = exports.PutDataProtectionPolicyResponseFilterSensitiveLog = exports.PutDataProtectionPolicyRequestFilterSensitiveLog = 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.GetDataProtectionPolicyResponseFilterSensitiveLog = exports.GetDataProtectionPolicyRequestFilterSensitiveLog = 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 = exports.DescribeMetricFiltersResponseFilterSensitiveLog = exports.MetricFilterFilterSensitiveLog = void 0;
|
|
5
|
+
exports.UntagResourceRequestFilterSensitiveLog = exports.UntagLogGroupRequestFilterSensitiveLog = exports.TestMetricFilterResponseFilterSensitiveLog = exports.MetricFilterMatchRecordFilterSensitiveLog = exports.TestMetricFilterRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.TagLogGroupRequestFilterSensitiveLog = exports.StopQueryResponseFilterSensitiveLog = exports.StopQueryRequestFilterSensitiveLog = exports.StartQueryResponseFilterSensitiveLog = exports.StartQueryRequestFilterSensitiveLog = exports.QueryCompileErrorFilterSensitiveLog = exports.QueryCompileErrorLocationFilterSensitiveLog = exports.PutSubscriptionFilterRequestFilterSensitiveLog = exports.PutRetentionPolicyRequestFilterSensitiveLog = exports.PutResourcePolicyResponseFilterSensitiveLog = void 0;
|
|
6
6
|
const CloudWatchLogsServiceException_1 = require("./CloudWatchLogsServiceException");
|
|
7
7
|
class InvalidParameterException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
8
8
|
constructor(opts) {
|
|
@@ -109,6 +109,13 @@ class DataAlreadyAcceptedException extends CloudWatchLogsServiceException_1.Clou
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
exports.DataAlreadyAcceptedException = DataAlreadyAcceptedException;
|
|
112
|
+
var DataProtectionStatus;
|
|
113
|
+
(function (DataProtectionStatus) {
|
|
114
|
+
DataProtectionStatus["ACTIVATED"] = "ACTIVATED";
|
|
115
|
+
DataProtectionStatus["ARCHIVED"] = "ARCHIVED";
|
|
116
|
+
DataProtectionStatus["DELETED"] = "DELETED";
|
|
117
|
+
DataProtectionStatus["DISABLED"] = "DISABLED";
|
|
118
|
+
})(DataProtectionStatus = exports.DataProtectionStatus || (exports.DataProtectionStatus = {}));
|
|
112
119
|
var ExportTaskStatusCode;
|
|
113
120
|
(function (ExportTaskStatusCode) {
|
|
114
121
|
ExportTaskStatusCode["CANCELLED"] = "CANCELLED";
|
|
@@ -247,6 +254,10 @@ const CreateLogStreamRequestFilterSensitiveLog = (obj) => ({
|
|
|
247
254
|
...obj,
|
|
248
255
|
});
|
|
249
256
|
exports.CreateLogStreamRequestFilterSensitiveLog = CreateLogStreamRequestFilterSensitiveLog;
|
|
257
|
+
const DeleteDataProtectionPolicyRequestFilterSensitiveLog = (obj) => ({
|
|
258
|
+
...obj,
|
|
259
|
+
});
|
|
260
|
+
exports.DeleteDataProtectionPolicyRequestFilterSensitiveLog = DeleteDataProtectionPolicyRequestFilterSensitiveLog;
|
|
250
261
|
const DeleteDestinationRequestFilterSensitiveLog = (obj) => ({
|
|
251
262
|
...obj,
|
|
252
263
|
});
|
|
@@ -423,6 +434,14 @@ const FilterLogEventsResponseFilterSensitiveLog = (obj) => ({
|
|
|
423
434
|
...obj,
|
|
424
435
|
});
|
|
425
436
|
exports.FilterLogEventsResponseFilterSensitiveLog = FilterLogEventsResponseFilterSensitiveLog;
|
|
437
|
+
const GetDataProtectionPolicyRequestFilterSensitiveLog = (obj) => ({
|
|
438
|
+
...obj,
|
|
439
|
+
});
|
|
440
|
+
exports.GetDataProtectionPolicyRequestFilterSensitiveLog = GetDataProtectionPolicyRequestFilterSensitiveLog;
|
|
441
|
+
const GetDataProtectionPolicyResponseFilterSensitiveLog = (obj) => ({
|
|
442
|
+
...obj,
|
|
443
|
+
});
|
|
444
|
+
exports.GetDataProtectionPolicyResponseFilterSensitiveLog = GetDataProtectionPolicyResponseFilterSensitiveLog;
|
|
426
445
|
const GetLogEventsRequestFilterSensitiveLog = (obj) => ({
|
|
427
446
|
...obj,
|
|
428
447
|
});
|
|
@@ -491,6 +510,14 @@ const ListTagsLogGroupResponseFilterSensitiveLog = (obj) => ({
|
|
|
491
510
|
...obj,
|
|
492
511
|
});
|
|
493
512
|
exports.ListTagsLogGroupResponseFilterSensitiveLog = ListTagsLogGroupResponseFilterSensitiveLog;
|
|
513
|
+
const PutDataProtectionPolicyRequestFilterSensitiveLog = (obj) => ({
|
|
514
|
+
...obj,
|
|
515
|
+
});
|
|
516
|
+
exports.PutDataProtectionPolicyRequestFilterSensitiveLog = PutDataProtectionPolicyRequestFilterSensitiveLog;
|
|
517
|
+
const PutDataProtectionPolicyResponseFilterSensitiveLog = (obj) => ({
|
|
518
|
+
...obj,
|
|
519
|
+
});
|
|
520
|
+
exports.PutDataProtectionPolicyResponseFilterSensitiveLog = PutDataProtectionPolicyResponseFilterSensitiveLog;
|
|
494
521
|
const PutDestinationRequestFilterSensitiveLog = (obj) => ({
|
|
495
522
|
...obj,
|
|
496
523
|
});
|