@aws-sdk/client-cloudwatch-logs 3.36.0 → 3.39.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 +42 -0
- package/dist-cjs/CloudWatchLogs.js +0 -36
- package/dist-cjs/CloudWatchLogsClient.js +0 -41
- package/dist-cjs/commands/AssociateKmsKeyCommand.js +0 -36
- package/dist-cjs/commands/CancelExportTaskCommand.js +0 -25
- package/dist-cjs/commands/CreateExportTaskCommand.js +0 -37
- package/dist-cjs/commands/CreateLogGroupCommand.js +0 -50
- package/dist-cjs/commands/CreateLogStreamCommand.js +0 -40
- package/dist-cjs/commands/DeleteDestinationCommand.js +0 -26
- package/dist-cjs/commands/DeleteLogGroupCommand.js +0 -25
- package/dist-cjs/commands/DeleteLogStreamCommand.js +0 -25
- package/dist-cjs/commands/DeleteMetricFilterCommand.js +0 -24
- package/dist-cjs/commands/DeleteQueryDefinitionCommand.js +0 -28
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +0 -25
- package/dist-cjs/commands/DeleteRetentionPolicyCommand.js +0 -25
- package/dist-cjs/commands/DeleteSubscriptionFilterCommand.js +0 -24
- package/dist-cjs/commands/DescribeDestinationsCommand.js +0 -24
- package/dist-cjs/commands/DescribeExportTasksCommand.js +0 -25
- package/dist-cjs/commands/DescribeLogGroupsCommand.js +0 -32
- package/dist-cjs/commands/DescribeLogStreamsCommand.js +0 -27
- package/dist-cjs/commands/DescribeMetricFiltersCommand.js +0 -26
- package/dist-cjs/commands/DescribeQueriesCommand.js +0 -26
- package/dist-cjs/commands/DescribeQueryDefinitionsCommand.js +0 -26
- package/dist-cjs/commands/DescribeResourcePoliciesCommand.js +0 -24
- package/dist-cjs/commands/DescribeSubscriptionFiltersCommand.js +0 -25
- package/dist-cjs/commands/DisassociateKmsKeyCommand.js +0 -27
- package/dist-cjs/commands/FilterLogEventsCommand.js +0 -32
- package/dist-cjs/commands/GetLogEventsCommand.js +0 -29
- package/dist-cjs/commands/GetLogGroupFieldsCommand.js +0 -31
- package/dist-cjs/commands/GetLogRecordCommand.js +0 -27
- package/dist-cjs/commands/GetQueryResultsCommand.js +0 -34
- package/dist-cjs/commands/ListTagsLogGroupCommand.js +0 -24
- package/dist-cjs/commands/PutDestinationCommand.js +0 -33
- package/dist-cjs/commands/PutDestinationPolicyCommand.js +0 -29
- package/dist-cjs/commands/PutLogEventsCommand.js +0 -61
- package/dist-cjs/commands/PutMetricFilterCommand.js +0 -46
- package/dist-cjs/commands/PutQueryDefinitionCommand.js +0 -35
- package/dist-cjs/commands/PutResourcePolicyCommand.js +0 -26
- package/dist-cjs/commands/PutRetentionPolicyCommand.js +0 -26
- package/dist-cjs/commands/PutSubscriptionFilterCommand.js +0 -52
- package/dist-cjs/commands/StartQueryCommand.js +0 -29
- package/dist-cjs/commands/StopQueryCommand.js +0 -25
- package/dist-cjs/commands/TagLogGroupCommand.js +0 -33
- package/dist-cjs/commands/TestMetricFilterCommand.js +0 -25
- package/dist-cjs/commands/UntagLogGroupCommand.js +0 -30
- package/dist-cjs/commands/index.js +45 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +4 -52
- package/dist-cjs/models/models_0.js +0 -300
- package/dist-cjs/pagination/DescribeDestinationsPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeLogGroupsPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeLogStreamsPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeMetricFiltersPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeSubscriptionFiltersPaginator.js +0 -10
- package/dist-cjs/pagination/FilterLogEventsPaginator.js +0 -10
- package/dist-cjs/pagination/GetLogEventsPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-es/commands/index.js +42 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +4 -52
- package/dist-es/pagination/index.js +8 -0
- package/dist-types/commands/index.d.ts +42 -0
- package/dist-types/index.d.ts +4 -52
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/CloudWatchLogs.d.ts +43 -433
- package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +24 -122
- package/dist-types/ts3.4/commands/AssociateKmsKeyCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/CancelExportTaskCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/CreateExportTaskCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/CreateLogGroupCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/CreateLogStreamCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/DeleteDestinationCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteLogGroupCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteLogStreamCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteMetricFilterCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteQueryDefinitionCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteRetentionPolicyCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteSubscriptionFilterCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeDestinationsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeExportTasksCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeLogGroupsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/DescribeLogStreamsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DescribeMetricFiltersCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeQueriesCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeQueryDefinitionsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeResourcePoliciesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeSubscriptionFiltersCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DisassociateKmsKeyCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/FilterLogEventsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/GetLogEventsCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/GetLogGroupFieldsCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/GetLogRecordCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/ListTagsLogGroupCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutDestinationCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/PutDestinationPolicyCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/PutLogEventsCommand.d.ts +2 -57
- package/dist-types/ts3.4/commands/PutMetricFilterCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/PutQueryDefinitionCommand.d.ts +2 -31
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/PutRetentionPolicyCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/PutSubscriptionFilterCommand.d.ts +2 -48
- package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/StopQueryCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/TagLogGroupCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/TestMetricFilterCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/UntagLogGroupCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/index.d.ts +42 -0
- package/dist-types/ts3.4/index.d.ts +4 -52
- package/dist-types/ts3.4/models/models_0.d.ts +392 -1434
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +32 -32
|
@@ -6,29 +6,11 @@ export interface ListTagsLogGroupCommandInput extends ListTagsLogGroupRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface ListTagsLogGroupCommandOutput extends ListTagsLogGroupResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Lists the tags for the specified log group.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { CloudWatchLogsClient, ListTagsLogGroupCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
15
|
-
* // const { CloudWatchLogsClient, ListTagsLogGroupCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
16
|
-
* const client = new CloudWatchLogsClient(config);
|
|
17
|
-
* const command = new ListTagsLogGroupCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link ListTagsLogGroupCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link ListTagsLogGroupCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class ListTagsLogGroupCommand extends $Command<ListTagsLogGroupCommandInput, ListTagsLogGroupCommandOutput, CloudWatchLogsClientResolvedConfig> {
|
|
27
11
|
readonly input: ListTagsLogGroupCommandInput;
|
|
28
12
|
constructor(input: ListTagsLogGroupCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsLogGroupCommandInput, ListTagsLogGroupCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|
|
@@ -6,38 +6,11 @@ export interface PutDestinationCommandInput extends PutDestinationRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface PutDestinationCommandOutput extends PutDestinationResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Creates or updates a destination. This operation is used only to create destinations for cross-account subscriptions.</p>
|
|
11
|
-
* <p>A destination encapsulates a physical resource (such
|
|
12
|
-
* as an Amazon Kinesis stream) and enables you to subscribe to a real-time stream of log events
|
|
13
|
-
* for a different account, ingested using <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html">PutLogEvents</a>.</p>
|
|
14
|
-
* <p>Through an access policy, a destination controls what is written to it.
|
|
15
|
-
* By default, <code>PutDestination</code> does not set any access policy with the destination,
|
|
16
|
-
* which means a cross-account user cannot call <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutSubscriptionFilter.html">PutSubscriptionFilter</a> against
|
|
17
|
-
* this destination. To enable this, the destination owner must call <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestinationPolicy.html">PutDestinationPolicy</a> after <code>PutDestination</code>.</p>
|
|
18
|
-
* <p>To perform a <code>PutDestination</code> operation, you must also have the
|
|
19
|
-
* <code>iam:PassRole</code> permission.</p>
|
|
20
|
-
* @example
|
|
21
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
22
|
-
* ```javascript
|
|
23
|
-
* import { CloudWatchLogsClient, PutDestinationCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
24
|
-
* // const { CloudWatchLogsClient, PutDestinationCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
25
|
-
* const client = new CloudWatchLogsClient(config);
|
|
26
|
-
* const command = new PutDestinationCommand(input);
|
|
27
|
-
* const response = await client.send(command);
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @see {@link PutDestinationCommandInput} for command's `input` shape.
|
|
31
|
-
* @see {@link PutDestinationCommandOutput} for command's `response` shape.
|
|
32
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
9
|
+
|
|
35
10
|
export declare class PutDestinationCommand extends $Command<PutDestinationCommandInput, PutDestinationCommandOutput, CloudWatchLogsClientResolvedConfig> {
|
|
36
11
|
readonly input: PutDestinationCommandInput;
|
|
37
12
|
constructor(input: PutDestinationCommandInput);
|
|
38
|
-
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
13
|
+
|
|
41
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutDestinationCommandInput, PutDestinationCommandOutput>;
|
|
42
15
|
private serialize;
|
|
43
16
|
private deserialize;
|
|
@@ -6,34 +6,11 @@ export interface PutDestinationPolicyCommandInput extends PutDestinationPolicyRe
|
|
|
6
6
|
}
|
|
7
7
|
export interface PutDestinationPolicyCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Creates or updates an access policy associated with an existing
|
|
11
|
-
* destination. An access policy is an <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html">IAM policy document</a> that is used
|
|
12
|
-
* to authorize claims to register a subscription filter against a given destination.</p>
|
|
13
|
-
* <p>If multiple Amazon Web Services accounts are sending logs to this destination, each sender account must be
|
|
14
|
-
* listed separately in the policy. The policy does not support specifying <code>*</code>
|
|
15
|
-
* as the Principal or the use of the <code>aws:PrincipalOrgId</code> global key.</p>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { CloudWatchLogsClient, PutDestinationPolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
20
|
-
* // const { CloudWatchLogsClient, PutDestinationPolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
21
|
-
* const client = new CloudWatchLogsClient(config);
|
|
22
|
-
* const command = new PutDestinationPolicyCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link PutDestinationPolicyCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link PutDestinationPolicyCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
9
|
+
|
|
31
10
|
export declare class PutDestinationPolicyCommand extends $Command<PutDestinationPolicyCommandInput, PutDestinationPolicyCommandOutput, CloudWatchLogsClientResolvedConfig> {
|
|
32
11
|
readonly input: PutDestinationPolicyCommandInput;
|
|
33
12
|
constructor(input: PutDestinationPolicyCommandInput);
|
|
34
|
-
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
13
|
+
|
|
37
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutDestinationPolicyCommandInput, PutDestinationPolicyCommandOutput>;
|
|
38
15
|
private serialize;
|
|
39
16
|
private deserialize;
|
|
@@ -6,66 +6,11 @@ export interface PutLogEventsCommandInput extends PutLogEventsRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface PutLogEventsCommandOutput extends PutLogEventsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Uploads a batch of log events to the specified log stream.</p>
|
|
11
|
-
* <p>You must include the sequence token obtained from the response of the previous call. An
|
|
12
|
-
* upload in a newly created log stream does not require a sequence token. You can also get the
|
|
13
|
-
* sequence token in the <code>expectedSequenceToken</code> field from
|
|
14
|
-
* <code>InvalidSequenceTokenException</code>. If you call <code>PutLogEvents</code> twice
|
|
15
|
-
* within a narrow time period using the same value for <code>sequenceToken</code>, both calls
|
|
16
|
-
* might be successful or one might be rejected.</p>
|
|
17
|
-
* <p>The batch of events must satisfy the following constraints:</p>
|
|
18
|
-
* <ul>
|
|
19
|
-
* <li>
|
|
20
|
-
* <p>The maximum batch size is 1,048,576 bytes. This size is calculated as the sum of
|
|
21
|
-
* all event messages in UTF-8, plus 26 bytes for each log event.</p>
|
|
22
|
-
* </li>
|
|
23
|
-
* <li>
|
|
24
|
-
* <p>None of the log events in the batch can be more than 2 hours in the future.</p>
|
|
25
|
-
* </li>
|
|
26
|
-
* <li>
|
|
27
|
-
* <p>None of the log events in the batch can be older than 14 days or older than the retention
|
|
28
|
-
* period of the log group.</p>
|
|
29
|
-
* </li>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>The log events in the batch must be in chronological order by their timestamp. The
|
|
32
|
-
* timestamp is the time the event occurred, expressed as the number of milliseconds after
|
|
33
|
-
* Jan 1, 1970 00:00:00 UTC. (In Amazon Web Services Tools for PowerShell and the Amazon Web Services SDK for .NET, the
|
|
34
|
-
* timestamp is specified in .NET format: yyyy-mm-ddThh:mm:ss. For example,
|
|
35
|
-
* 2017-09-15T13:45:30.) </p>
|
|
36
|
-
* </li>
|
|
37
|
-
* <li>
|
|
38
|
-
* <p>A batch of log events in a single request cannot span more than 24 hours. Otherwise, the operation fails.</p>
|
|
39
|
-
* </li>
|
|
40
|
-
* <li>
|
|
41
|
-
* <p>The maximum number of log events in a batch is 10,000.</p>
|
|
42
|
-
* </li>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>There is a quota of 5 requests per second per log stream. Additional requests are throttled. This quota can't be changed.</p>
|
|
45
|
-
* </li>
|
|
46
|
-
* </ul>
|
|
47
|
-
* <p>If a call to <code>PutLogEvents</code> returns "UnrecognizedClientException" the most likely cause is an invalid Amazon Web Services access key ID or secret key. </p>
|
|
48
|
-
* @example
|
|
49
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
50
|
-
* ```javascript
|
|
51
|
-
* import { CloudWatchLogsClient, PutLogEventsCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
52
|
-
* // const { CloudWatchLogsClient, PutLogEventsCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
53
|
-
* const client = new CloudWatchLogsClient(config);
|
|
54
|
-
* const command = new PutLogEventsCommand(input);
|
|
55
|
-
* const response = await client.send(command);
|
|
56
|
-
* ```
|
|
57
|
-
*
|
|
58
|
-
* @see {@link PutLogEventsCommandInput} for command's `input` shape.
|
|
59
|
-
* @see {@link PutLogEventsCommandOutput} for command's `response` shape.
|
|
60
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
61
|
-
*
|
|
62
|
-
*/
|
|
9
|
+
|
|
63
10
|
export declare class PutLogEventsCommand extends $Command<PutLogEventsCommandInput, PutLogEventsCommandOutput, CloudWatchLogsClientResolvedConfig> {
|
|
64
11
|
readonly input: PutLogEventsCommandInput;
|
|
65
12
|
constructor(input: PutLogEventsCommandInput);
|
|
66
|
-
|
|
67
|
-
* @internal
|
|
68
|
-
*/
|
|
13
|
+
|
|
69
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutLogEventsCommandInput, PutLogEventsCommandOutput>;
|
|
70
15
|
private serialize;
|
|
71
16
|
private deserialize;
|
|
@@ -6,51 +6,11 @@ export interface PutMetricFilterCommandInput extends PutMetricFilterRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface PutMetricFilterCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Creates or updates a metric filter and associates it with the specified log group.
|
|
11
|
-
* Metric filters allow you to configure rules to extract metric data from log events ingested
|
|
12
|
-
* through <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html">PutLogEvents</a>.</p>
|
|
13
|
-
* <p>The maximum number of metric filters that can be associated with a log group is
|
|
14
|
-
* 100.</p>
|
|
15
|
-
* <p>When you create a metric filter, you can also optionally assign a unit and dimensions
|
|
16
|
-
* to the metric that is created.</p>
|
|
17
|
-
* <important>
|
|
18
|
-
* <p>Metrics extracted from log events are charged as custom metrics.
|
|
19
|
-
* To prevent unexpected high charges, do not specify high-cardinality fields such as
|
|
20
|
-
* <code>IPAddress</code> or <code>requestID</code> as dimensions. Each different value
|
|
21
|
-
* found for
|
|
22
|
-
* a dimension is treated as a separate metric and accrues charges as a separate custom metric.
|
|
23
|
-
* </p>
|
|
24
|
-
* <p>To help prevent accidental high charges, Amazon disables a metric filter
|
|
25
|
-
* if it generates 1000 different name/value pairs for the dimensions that you
|
|
26
|
-
* have specified within a certain amount of time.</p>
|
|
27
|
-
* <p>You can also set up a billing alarm to alert you if your charges are higher than
|
|
28
|
-
* expected. For more information,
|
|
29
|
-
* see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html">
|
|
30
|
-
* Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges</a>.
|
|
31
|
-
* </p>
|
|
32
|
-
* </important>
|
|
33
|
-
* @example
|
|
34
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
-
* ```javascript
|
|
36
|
-
* import { CloudWatchLogsClient, PutMetricFilterCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
37
|
-
* // const { CloudWatchLogsClient, PutMetricFilterCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
38
|
-
* const client = new CloudWatchLogsClient(config);
|
|
39
|
-
* const command = new PutMetricFilterCommand(input);
|
|
40
|
-
* const response = await client.send(command);
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @see {@link PutMetricFilterCommandInput} for command's `input` shape.
|
|
44
|
-
* @see {@link PutMetricFilterCommandOutput} for command's `response` shape.
|
|
45
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
9
|
+
|
|
48
10
|
export declare class PutMetricFilterCommand extends $Command<PutMetricFilterCommandInput, PutMetricFilterCommandOutput, CloudWatchLogsClientResolvedConfig> {
|
|
49
11
|
readonly input: PutMetricFilterCommandInput;
|
|
50
12
|
constructor(input: PutMetricFilterCommandInput);
|
|
51
|
-
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
13
|
+
|
|
54
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutMetricFilterCommandInput, PutMetricFilterCommandOutput>;
|
|
55
15
|
private serialize;
|
|
56
16
|
private deserialize;
|
|
@@ -6,40 +6,11 @@ export interface PutQueryDefinitionCommandInput extends PutQueryDefinitionReques
|
|
|
6
6
|
}
|
|
7
7
|
export interface PutQueryDefinitionCommandOutput extends PutQueryDefinitionResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Creates or updates a query definition for CloudWatch Logs Insights. For
|
|
11
|
-
* more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html">Analyzing Log Data with CloudWatch Logs Insights</a>.</p>
|
|
12
|
-
*
|
|
13
|
-
* <p>To update a query definition, specify its
|
|
14
|
-
* <code>queryDefinitionId</code> in your request. The values of <code>name</code>, <code>queryString</code>,
|
|
15
|
-
* and <code>logGroupNames</code> are changed to the values that you specify in your update
|
|
16
|
-
* operation. No current values are retained from the current query definition. For example, if
|
|
17
|
-
* you update a current query definition that includes log groups, and you don't specify the
|
|
18
|
-
* <code>logGroupNames</code> parameter in your update operation, the query definition changes
|
|
19
|
-
* to contain no log groups.</p>
|
|
20
|
-
* <p>You must have the <code>logs:PutQueryDefinition</code> permission to be able to perform
|
|
21
|
-
* this operation.</p>
|
|
22
|
-
* @example
|
|
23
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
24
|
-
* ```javascript
|
|
25
|
-
* import { CloudWatchLogsClient, PutQueryDefinitionCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
26
|
-
* // const { CloudWatchLogsClient, PutQueryDefinitionCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
27
|
-
* const client = new CloudWatchLogsClient(config);
|
|
28
|
-
* const command = new PutQueryDefinitionCommand(input);
|
|
29
|
-
* const response = await client.send(command);
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* @see {@link PutQueryDefinitionCommandInput} for command's `input` shape.
|
|
33
|
-
* @see {@link PutQueryDefinitionCommandOutput} for command's `response` shape.
|
|
34
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
9
|
+
|
|
37
10
|
export declare class PutQueryDefinitionCommand extends $Command<PutQueryDefinitionCommandInput, PutQueryDefinitionCommandOutput, CloudWatchLogsClientResolvedConfig> {
|
|
38
11
|
readonly input: PutQueryDefinitionCommandInput;
|
|
39
12
|
constructor(input: PutQueryDefinitionCommandInput);
|
|
40
|
-
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
13
|
+
|
|
43
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutQueryDefinitionCommandInput, PutQueryDefinitionCommandOutput>;
|
|
44
15
|
private serialize;
|
|
45
16
|
private deserialize;
|
|
@@ -6,31 +6,11 @@ export interface PutResourcePolicyCommandInput extends PutResourcePolicyRequest
|
|
|
6
6
|
}
|
|
7
7
|
export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Creates or updates a resource policy allowing other Amazon Web Services services to put log events to
|
|
11
|
-
* this account, such as Amazon Route 53. An account can have up to 10 resource policies per Amazon Web Services
|
|
12
|
-
* Region.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { CloudWatchLogsClient, PutResourcePolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
17
|
-
* // const { CloudWatchLogsClient, PutResourcePolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
18
|
-
* const client = new CloudWatchLogsClient(config);
|
|
19
|
-
* const command = new PutResourcePolicyCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
9
|
+
|
|
28
10
|
export declare class PutResourcePolicyCommand extends $Command<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, CloudWatchLogsClientResolvedConfig> {
|
|
29
11
|
readonly input: PutResourcePolicyCommandInput;
|
|
30
12
|
constructor(input: PutResourcePolicyCommandInput);
|
|
31
|
-
|
|
32
|
-
* @internal
|
|
33
|
-
*/
|
|
13
|
+
|
|
34
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput>;
|
|
35
15
|
private serialize;
|
|
36
16
|
private deserialize;
|
|
@@ -6,31 +6,11 @@ export interface PutRetentionPolicyCommandInput extends PutRetentionPolicyReques
|
|
|
6
6
|
}
|
|
7
7
|
export interface PutRetentionPolicyCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Sets the retention of the specified log group. A retention policy allows you to
|
|
11
|
-
* configure the number of days for which to retain log events in the specified log
|
|
12
|
-
* group.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { CloudWatchLogsClient, PutRetentionPolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
17
|
-
* // const { CloudWatchLogsClient, PutRetentionPolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
18
|
-
* const client = new CloudWatchLogsClient(config);
|
|
19
|
-
* const command = new PutRetentionPolicyCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link PutRetentionPolicyCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link PutRetentionPolicyCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
9
|
+
|
|
28
10
|
export declare class PutRetentionPolicyCommand extends $Command<PutRetentionPolicyCommandInput, PutRetentionPolicyCommandOutput, CloudWatchLogsClientResolvedConfig> {
|
|
29
11
|
readonly input: PutRetentionPolicyCommandInput;
|
|
30
12
|
constructor(input: PutRetentionPolicyCommandInput);
|
|
31
|
-
|
|
32
|
-
* @internal
|
|
33
|
-
*/
|
|
13
|
+
|
|
34
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutRetentionPolicyCommandInput, PutRetentionPolicyCommandOutput>;
|
|
35
15
|
private serialize;
|
|
36
16
|
private deserialize;
|
|
@@ -6,57 +6,11 @@ export interface PutSubscriptionFilterCommandInput extends PutSubscriptionFilter
|
|
|
6
6
|
}
|
|
7
7
|
export interface PutSubscriptionFilterCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Creates or updates a subscription filter and associates it with the specified log
|
|
11
|
-
* group. Subscription filters allow you to subscribe to a real-time stream of log events
|
|
12
|
-
* ingested through <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html">PutLogEvents</a> and have them delivered to a specific
|
|
13
|
-
* destination. When log events are sent to the
|
|
14
|
-
* receiving service, they are Base64 encoded
|
|
15
|
-
* and compressed with the gzip format.</p>
|
|
16
|
-
* <p>The following destinations are supported for subscription filters:</p>
|
|
17
|
-
* <ul>
|
|
18
|
-
* <li>
|
|
19
|
-
* <p>An Amazon Kinesis stream belonging to the same account as the subscription filter,
|
|
20
|
-
* for same-account delivery.</p>
|
|
21
|
-
* </li>
|
|
22
|
-
* <li>
|
|
23
|
-
* <p>A logical destination that belongs to a different account, for cross-account delivery.</p>
|
|
24
|
-
* </li>
|
|
25
|
-
* <li>
|
|
26
|
-
* <p>An Amazon Kinesis Firehose delivery stream that belongs to the same account as the
|
|
27
|
-
* subscription filter, for same-account delivery.</p>
|
|
28
|
-
* </li>
|
|
29
|
-
* <li>
|
|
30
|
-
* <p>An Lambda function that belongs to the same account as the subscription filter,
|
|
31
|
-
* for same-account delivery.</p>
|
|
32
|
-
* </li>
|
|
33
|
-
* </ul>
|
|
34
|
-
* <p>Each log group can have up to two subscription filters associated with it. If you are
|
|
35
|
-
* updating an existing filter, you must specify the correct name in <code>filterName</code>.
|
|
36
|
-
* </p>
|
|
37
|
-
* <p>To perform a <code>PutSubscriptionFilter</code> operation, you must also have the
|
|
38
|
-
* <code>iam:PassRole</code> permission.</p>
|
|
39
|
-
* @example
|
|
40
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
41
|
-
* ```javascript
|
|
42
|
-
* import { CloudWatchLogsClient, PutSubscriptionFilterCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
43
|
-
* // const { CloudWatchLogsClient, PutSubscriptionFilterCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
44
|
-
* const client = new CloudWatchLogsClient(config);
|
|
45
|
-
* const command = new PutSubscriptionFilterCommand(input);
|
|
46
|
-
* const response = await client.send(command);
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* @see {@link PutSubscriptionFilterCommandInput} for command's `input` shape.
|
|
50
|
-
* @see {@link PutSubscriptionFilterCommandOutput} for command's `response` shape.
|
|
51
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
9
|
+
|
|
54
10
|
export declare class PutSubscriptionFilterCommand extends $Command<PutSubscriptionFilterCommandInput, PutSubscriptionFilterCommandOutput, CloudWatchLogsClientResolvedConfig> {
|
|
55
11
|
readonly input: PutSubscriptionFilterCommandInput;
|
|
56
12
|
constructor(input: PutSubscriptionFilterCommandInput);
|
|
57
|
-
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
13
|
+
|
|
60
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutSubscriptionFilterCommandInput, PutSubscriptionFilterCommandOutput>;
|
|
61
15
|
private serialize;
|
|
62
16
|
private deserialize;
|
|
@@ -6,34 +6,11 @@ export interface StartQueryCommandInput extends StartQueryRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface StartQueryCommandOutput extends StartQueryResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Schedules a query of a log group using CloudWatch Logs Insights. You specify the log group
|
|
11
|
-
* and time range to query and the query string to use.</p>
|
|
12
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html">CloudWatch Logs Insights Query Syntax</a>.</p>
|
|
13
|
-
*
|
|
14
|
-
* <p>Queries time out after 15 minutes of execution. If your queries are timing out, reduce the
|
|
15
|
-
* time range being searched or partition your query into a number of queries.</p>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { CloudWatchLogsClient, StartQueryCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
20
|
-
* // const { CloudWatchLogsClient, StartQueryCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
21
|
-
* const client = new CloudWatchLogsClient(config);
|
|
22
|
-
* const command = new StartQueryCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link StartQueryCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link StartQueryCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
9
|
+
|
|
31
10
|
export declare class StartQueryCommand extends $Command<StartQueryCommandInput, StartQueryCommandOutput, CloudWatchLogsClientResolvedConfig> {
|
|
32
11
|
readonly input: StartQueryCommandInput;
|
|
33
12
|
constructor(input: StartQueryCommandInput);
|
|
34
|
-
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
13
|
+
|
|
37
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartQueryCommandInput, StartQueryCommandOutput>;
|
|
38
15
|
private serialize;
|
|
39
16
|
private deserialize;
|
|
@@ -6,30 +6,11 @@ export interface StopQueryCommandInput extends StopQueryRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface StopQueryCommandOutput extends StopQueryResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Stops a CloudWatch Logs Insights query that is in progress. If the query has already ended, the operation
|
|
11
|
-
* returns an error indicating that the specified query is not running.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { CloudWatchLogsClient, StopQueryCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
16
|
-
* // const { CloudWatchLogsClient, StopQueryCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
17
|
-
* const client = new CloudWatchLogsClient(config);
|
|
18
|
-
* const command = new StopQueryCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link StopQueryCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link StopQueryCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
9
|
+
|
|
27
10
|
export declare class StopQueryCommand extends $Command<StopQueryCommandInput, StopQueryCommandOutput, CloudWatchLogsClientResolvedConfig> {
|
|
28
11
|
readonly input: StopQueryCommandInput;
|
|
29
12
|
constructor(input: StopQueryCommandInput);
|
|
30
|
-
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
13
|
+
|
|
33
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StopQueryCommandInput, StopQueryCommandOutput>;
|
|
34
15
|
private serialize;
|
|
35
16
|
private deserialize;
|
|
@@ -6,38 +6,11 @@ export interface TagLogGroupCommandInput extends TagLogGroupRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface TagLogGroupCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Adds or updates the specified tags for the specified log group.</p>
|
|
11
|
-
* <p>To list the tags for a log group, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsLogGroup.html">ListTagsLogGroup</a>.
|
|
12
|
-
* To remove tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagLogGroup.html">UntagLogGroup</a>.</p>
|
|
13
|
-
* <p>For more information about tags, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html#log-group-tagging">Tag Log Groups in Amazon CloudWatch Logs</a>
|
|
14
|
-
* in the <i>Amazon CloudWatch Logs User Guide</i>.</p>
|
|
15
|
-
* <p>CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to
|
|
16
|
-
* log groups using the <code>aws:Resource/<i>key-name</i>
|
|
17
|
-
* </code> or <code>aws:TagKeys</code> condition keys.
|
|
18
|
-
* For more information about using tags to control access, see
|
|
19
|
-
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html">Controlling access to Amazon Web Services resources using tags</a>.</p>
|
|
20
|
-
* @example
|
|
21
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
22
|
-
* ```javascript
|
|
23
|
-
* import { CloudWatchLogsClient, TagLogGroupCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
24
|
-
* // const { CloudWatchLogsClient, TagLogGroupCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
25
|
-
* const client = new CloudWatchLogsClient(config);
|
|
26
|
-
* const command = new TagLogGroupCommand(input);
|
|
27
|
-
* const response = await client.send(command);
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @see {@link TagLogGroupCommandInput} for command's `input` shape.
|
|
31
|
-
* @see {@link TagLogGroupCommandOutput} for command's `response` shape.
|
|
32
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
9
|
+
|
|
35
10
|
export declare class TagLogGroupCommand extends $Command<TagLogGroupCommandInput, TagLogGroupCommandOutput, CloudWatchLogsClientResolvedConfig> {
|
|
36
11
|
readonly input: TagLogGroupCommandInput;
|
|
37
12
|
constructor(input: TagLogGroupCommandInput);
|
|
38
|
-
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
13
|
+
|
|
41
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagLogGroupCommandInput, TagLogGroupCommandOutput>;
|
|
42
15
|
private serialize;
|
|
43
16
|
private deserialize;
|
|
@@ -6,30 +6,11 @@ export interface TestMetricFilterCommandInput extends TestMetricFilterRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface TestMetricFilterCommandOutput extends TestMetricFilterResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Tests the filter pattern of a metric filter against a sample of log event messages. You
|
|
11
|
-
* can use this operation to validate the correctness of a metric filter pattern.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { CloudWatchLogsClient, TestMetricFilterCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
16
|
-
* // const { CloudWatchLogsClient, TestMetricFilterCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
17
|
-
* const client = new CloudWatchLogsClient(config);
|
|
18
|
-
* const command = new TestMetricFilterCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link TestMetricFilterCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link TestMetricFilterCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
9
|
+
|
|
27
10
|
export declare class TestMetricFilterCommand extends $Command<TestMetricFilterCommandInput, TestMetricFilterCommandOutput, CloudWatchLogsClientResolvedConfig> {
|
|
28
11
|
readonly input: TestMetricFilterCommandInput;
|
|
29
12
|
constructor(input: TestMetricFilterCommandInput);
|
|
30
|
-
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
13
|
+
|
|
33
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TestMetricFilterCommandInput, TestMetricFilterCommandOutput>;
|
|
34
15
|
private serialize;
|
|
35
16
|
private deserialize;
|
|
@@ -6,35 +6,11 @@ export interface UntagLogGroupCommandInput extends UntagLogGroupRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface UntagLogGroupCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Removes the specified tags from the specified log group.</p>
|
|
11
|
-
* <p>To list the tags for a log group, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsLogGroup.html">ListTagsLogGroup</a>.
|
|
12
|
-
* To add tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagLogGroup.html">TagLogGroup</a>.</p>
|
|
13
|
-
* <p>CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to
|
|
14
|
-
* log groups using the <code>aws:Resource/<i>key-name</i>
|
|
15
|
-
* </code> or <code>aws:TagKeys</code> condition keys.
|
|
16
|
-
* </p>
|
|
17
|
-
* @example
|
|
18
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
19
|
-
* ```javascript
|
|
20
|
-
* import { CloudWatchLogsClient, UntagLogGroupCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
21
|
-
* // const { CloudWatchLogsClient, UntagLogGroupCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
22
|
-
* const client = new CloudWatchLogsClient(config);
|
|
23
|
-
* const command = new UntagLogGroupCommand(input);
|
|
24
|
-
* const response = await client.send(command);
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @see {@link UntagLogGroupCommandInput} for command's `input` shape.
|
|
28
|
-
* @see {@link UntagLogGroupCommandOutput} for command's `response` shape.
|
|
29
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
9
|
+
|
|
32
10
|
export declare class UntagLogGroupCommand extends $Command<UntagLogGroupCommandInput, UntagLogGroupCommandOutput, CloudWatchLogsClientResolvedConfig> {
|
|
33
11
|
readonly input: UntagLogGroupCommandInput;
|
|
34
12
|
constructor(input: UntagLogGroupCommandInput);
|
|
35
|
-
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
13
|
+
|
|
38
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UntagLogGroupCommandInput, UntagLogGroupCommandOutput>;
|
|
39
15
|
private serialize;
|
|
40
16
|
private deserialize;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export * from "./AssociateKmsKeyCommand";
|
|
2
|
+
export * from "./CancelExportTaskCommand";
|
|
3
|
+
export * from "./CreateExportTaskCommand";
|
|
4
|
+
export * from "./CreateLogGroupCommand";
|
|
5
|
+
export * from "./CreateLogStreamCommand";
|
|
6
|
+
export * from "./DeleteDestinationCommand";
|
|
7
|
+
export * from "./DeleteLogGroupCommand";
|
|
8
|
+
export * from "./DeleteLogStreamCommand";
|
|
9
|
+
export * from "./DeleteMetricFilterCommand";
|
|
10
|
+
export * from "./DeleteQueryDefinitionCommand";
|
|
11
|
+
export * from "./DeleteResourcePolicyCommand";
|
|
12
|
+
export * from "./DeleteRetentionPolicyCommand";
|
|
13
|
+
export * from "./DeleteSubscriptionFilterCommand";
|
|
14
|
+
export * from "./DescribeDestinationsCommand";
|
|
15
|
+
export * from "./DescribeExportTasksCommand";
|
|
16
|
+
export * from "./DescribeLogGroupsCommand";
|
|
17
|
+
export * from "./DescribeLogStreamsCommand";
|
|
18
|
+
export * from "./DescribeMetricFiltersCommand";
|
|
19
|
+
export * from "./DescribeQueriesCommand";
|
|
20
|
+
export * from "./DescribeQueryDefinitionsCommand";
|
|
21
|
+
export * from "./DescribeResourcePoliciesCommand";
|
|
22
|
+
export * from "./DescribeSubscriptionFiltersCommand";
|
|
23
|
+
export * from "./DisassociateKmsKeyCommand";
|
|
24
|
+
export * from "./FilterLogEventsCommand";
|
|
25
|
+
export * from "./GetLogEventsCommand";
|
|
26
|
+
export * from "./GetLogGroupFieldsCommand";
|
|
27
|
+
export * from "./GetLogRecordCommand";
|
|
28
|
+
export * from "./GetQueryResultsCommand";
|
|
29
|
+
export * from "./ListTagsLogGroupCommand";
|
|
30
|
+
export * from "./PutDestinationCommand";
|
|
31
|
+
export * from "./PutDestinationPolicyCommand";
|
|
32
|
+
export * from "./PutLogEventsCommand";
|
|
33
|
+
export * from "./PutMetricFilterCommand";
|
|
34
|
+
export * from "./PutQueryDefinitionCommand";
|
|
35
|
+
export * from "./PutResourcePolicyCommand";
|
|
36
|
+
export * from "./PutRetentionPolicyCommand";
|
|
37
|
+
export * from "./PutSubscriptionFilterCommand";
|
|
38
|
+
export * from "./StartQueryCommand";
|
|
39
|
+
export * from "./StopQueryCommand";
|
|
40
|
+
export * from "./TagLogGroupCommand";
|
|
41
|
+
export * from "./TestMetricFilterCommand";
|
|
42
|
+
export * from "./UntagLogGroupCommand";
|