@aws-sdk/client-cloudwatch-logs 3.30.0 → 3.34.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 +35 -0
- package/dist/cjs/CloudWatchLogsClient.js +13 -13
- package/dist/cjs/CloudWatchLogsClient.js.map +1 -1
- package/dist/cjs/commands/AssociateKmsKeyCommand.js +3 -3
- package/dist/cjs/commands/AssociateKmsKeyCommand.js.map +1 -1
- package/dist/cjs/commands/CancelExportTaskCommand.js +3 -3
- package/dist/cjs/commands/CancelExportTaskCommand.js.map +1 -1
- package/dist/cjs/commands/CreateExportTaskCommand.js +3 -3
- package/dist/cjs/commands/CreateExportTaskCommand.js.map +1 -1
- package/dist/cjs/commands/CreateLogGroupCommand.js +3 -3
- package/dist/cjs/commands/CreateLogGroupCommand.js.map +1 -1
- package/dist/cjs/commands/CreateLogStreamCommand.js +3 -3
- package/dist/cjs/commands/CreateLogStreamCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteDestinationCommand.js +3 -3
- package/dist/cjs/commands/DeleteDestinationCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteLogGroupCommand.js +3 -3
- package/dist/cjs/commands/DeleteLogGroupCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteLogStreamCommand.js +3 -3
- package/dist/cjs/commands/DeleteLogStreamCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteMetricFilterCommand.js +3 -3
- package/dist/cjs/commands/DeleteMetricFilterCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteQueryDefinitionCommand.js +3 -3
- package/dist/cjs/commands/DeleteQueryDefinitionCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteResourcePolicyCommand.js +3 -3
- package/dist/cjs/commands/DeleteResourcePolicyCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteRetentionPolicyCommand.js +3 -3
- package/dist/cjs/commands/DeleteRetentionPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteSubscriptionFilterCommand.js +3 -3
- package/dist/cjs/commands/DeleteSubscriptionFilterCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeDestinationsCommand.js +3 -3
- package/dist/cjs/commands/DescribeDestinationsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeExportTasksCommand.js +3 -3
- package/dist/cjs/commands/DescribeExportTasksCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeLogGroupsCommand.js +3 -3
- package/dist/cjs/commands/DescribeLogGroupsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeLogStreamsCommand.js +3 -3
- package/dist/cjs/commands/DescribeLogStreamsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeMetricFiltersCommand.js +3 -3
- package/dist/cjs/commands/DescribeMetricFiltersCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeQueriesCommand.js +3 -3
- package/dist/cjs/commands/DescribeQueriesCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeQueryDefinitionsCommand.js +3 -3
- package/dist/cjs/commands/DescribeQueryDefinitionsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeResourcePoliciesCommand.js +3 -3
- package/dist/cjs/commands/DescribeResourcePoliciesCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeSubscriptionFiltersCommand.js +3 -3
- package/dist/cjs/commands/DescribeSubscriptionFiltersCommand.js.map +1 -1
- package/dist/cjs/commands/DisassociateKmsKeyCommand.js +3 -3
- package/dist/cjs/commands/DisassociateKmsKeyCommand.js.map +1 -1
- package/dist/cjs/commands/FilterLogEventsCommand.js +3 -3
- package/dist/cjs/commands/FilterLogEventsCommand.js.map +1 -1
- package/dist/cjs/commands/GetLogEventsCommand.js +3 -3
- package/dist/cjs/commands/GetLogEventsCommand.js.map +1 -1
- package/dist/cjs/commands/GetLogGroupFieldsCommand.js +3 -3
- package/dist/cjs/commands/GetLogGroupFieldsCommand.js.map +1 -1
- package/dist/cjs/commands/GetLogRecordCommand.js +3 -3
- package/dist/cjs/commands/GetLogRecordCommand.js.map +1 -1
- package/dist/cjs/commands/GetQueryResultsCommand.js +3 -3
- package/dist/cjs/commands/GetQueryResultsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsLogGroupCommand.js +3 -3
- package/dist/cjs/commands/ListTagsLogGroupCommand.js.map +1 -1
- package/dist/cjs/commands/PutDestinationCommand.js +3 -3
- package/dist/cjs/commands/PutDestinationCommand.js.map +1 -1
- package/dist/cjs/commands/PutDestinationPolicyCommand.js +3 -3
- package/dist/cjs/commands/PutDestinationPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/PutLogEventsCommand.js +3 -3
- package/dist/cjs/commands/PutLogEventsCommand.js.map +1 -1
- package/dist/cjs/commands/PutMetricFilterCommand.js +3 -3
- package/dist/cjs/commands/PutMetricFilterCommand.js.map +1 -1
- package/dist/cjs/commands/PutQueryDefinitionCommand.js +3 -3
- package/dist/cjs/commands/PutQueryDefinitionCommand.js.map +1 -1
- package/dist/cjs/commands/PutResourcePolicyCommand.js +3 -3
- package/dist/cjs/commands/PutResourcePolicyCommand.js.map +1 -1
- package/dist/cjs/commands/PutRetentionPolicyCommand.js +3 -3
- package/dist/cjs/commands/PutRetentionPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/PutSubscriptionFilterCommand.js +3 -3
- package/dist/cjs/commands/PutSubscriptionFilterCommand.js.map +1 -1
- package/dist/cjs/commands/StartQueryCommand.js +3 -3
- package/dist/cjs/commands/StartQueryCommand.js.map +1 -1
- package/dist/cjs/commands/StopQueryCommand.js +3 -3
- package/dist/cjs/commands/StopQueryCommand.js.map +1 -1
- package/dist/cjs/commands/TagLogGroupCommand.js +3 -3
- package/dist/cjs/commands/TagLogGroupCommand.js.map +1 -1
- package/dist/cjs/commands/TestMetricFilterCommand.js +3 -3
- package/dist/cjs/commands/TestMetricFilterCommand.js.map +1 -1
- package/dist/cjs/commands/UntagLogGroupCommand.js +3 -3
- package/dist/cjs/commands/UntagLogGroupCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +53 -53
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_json1_1.js +123 -123
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/CloudWatchLogs.js +1 -37
- package/dist/es/CloudWatchLogs.js.map +1 -1
- package/dist/es/CloudWatchLogsClient.js +1 -42
- package/dist/es/CloudWatchLogsClient.js.map +1 -1
- package/dist/es/commands/AssociateKmsKeyCommand.js +2 -39
- package/dist/es/commands/AssociateKmsKeyCommand.js.map +1 -1
- package/dist/es/commands/CancelExportTaskCommand.js +2 -28
- package/dist/es/commands/CancelExportTaskCommand.js.map +1 -1
- package/dist/es/commands/CreateExportTaskCommand.js +2 -40
- package/dist/es/commands/CreateExportTaskCommand.js.map +1 -1
- package/dist/es/commands/CreateLogGroupCommand.js +2 -53
- package/dist/es/commands/CreateLogGroupCommand.js.map +1 -1
- package/dist/es/commands/CreateLogStreamCommand.js +2 -43
- package/dist/es/commands/CreateLogStreamCommand.js.map +1 -1
- package/dist/es/commands/DeleteDestinationCommand.js +2 -29
- package/dist/es/commands/DeleteDestinationCommand.js.map +1 -1
- package/dist/es/commands/DeleteLogGroupCommand.js +2 -28
- package/dist/es/commands/DeleteLogGroupCommand.js.map +1 -1
- package/dist/es/commands/DeleteLogStreamCommand.js +2 -28
- package/dist/es/commands/DeleteLogStreamCommand.js.map +1 -1
- package/dist/es/commands/DeleteMetricFilterCommand.js +2 -27
- package/dist/es/commands/DeleteMetricFilterCommand.js.map +1 -1
- package/dist/es/commands/DeleteQueryDefinitionCommand.js +2 -31
- package/dist/es/commands/DeleteQueryDefinitionCommand.js.map +1 -1
- package/dist/es/commands/DeleteResourcePolicyCommand.js +2 -28
- package/dist/es/commands/DeleteResourcePolicyCommand.js.map +1 -1
- package/dist/es/commands/DeleteRetentionPolicyCommand.js +2 -28
- package/dist/es/commands/DeleteRetentionPolicyCommand.js.map +1 -1
- package/dist/es/commands/DeleteSubscriptionFilterCommand.js +2 -27
- package/dist/es/commands/DeleteSubscriptionFilterCommand.js.map +1 -1
- package/dist/es/commands/DescribeDestinationsCommand.js +2 -27
- package/dist/es/commands/DescribeDestinationsCommand.js.map +1 -1
- package/dist/es/commands/DescribeExportTasksCommand.js +2 -28
- package/dist/es/commands/DescribeExportTasksCommand.js.map +1 -1
- package/dist/es/commands/DescribeLogGroupsCommand.js +2 -35
- package/dist/es/commands/DescribeLogGroupsCommand.js.map +1 -1
- package/dist/es/commands/DescribeLogStreamsCommand.js +2 -30
- package/dist/es/commands/DescribeLogStreamsCommand.js.map +1 -1
- package/dist/es/commands/DescribeMetricFiltersCommand.js +2 -29
- package/dist/es/commands/DescribeMetricFiltersCommand.js.map +1 -1
- package/dist/es/commands/DescribeQueriesCommand.js +2 -29
- package/dist/es/commands/DescribeQueriesCommand.js.map +1 -1
- package/dist/es/commands/DescribeQueryDefinitionsCommand.js +2 -29
- package/dist/es/commands/DescribeQueryDefinitionsCommand.js.map +1 -1
- package/dist/es/commands/DescribeResourcePoliciesCommand.js +2 -27
- package/dist/es/commands/DescribeResourcePoliciesCommand.js.map +1 -1
- package/dist/es/commands/DescribeSubscriptionFiltersCommand.js +2 -28
- package/dist/es/commands/DescribeSubscriptionFiltersCommand.js.map +1 -1
- package/dist/es/commands/DisassociateKmsKeyCommand.js +2 -30
- package/dist/es/commands/DisassociateKmsKeyCommand.js.map +1 -1
- package/dist/es/commands/FilterLogEventsCommand.js +2 -35
- package/dist/es/commands/FilterLogEventsCommand.js.map +1 -1
- package/dist/es/commands/GetLogEventsCommand.js +2 -32
- package/dist/es/commands/GetLogEventsCommand.js.map +1 -1
- package/dist/es/commands/GetLogGroupFieldsCommand.js +2 -34
- package/dist/es/commands/GetLogGroupFieldsCommand.js.map +1 -1
- package/dist/es/commands/GetLogRecordCommand.js +2 -30
- package/dist/es/commands/GetLogRecordCommand.js.map +1 -1
- package/dist/es/commands/GetQueryResultsCommand.js +2 -37
- package/dist/es/commands/GetQueryResultsCommand.js.map +1 -1
- package/dist/es/commands/ListTagsLogGroupCommand.js +2 -27
- package/dist/es/commands/ListTagsLogGroupCommand.js.map +1 -1
- package/dist/es/commands/PutDestinationCommand.js +2 -36
- package/dist/es/commands/PutDestinationCommand.js.map +1 -1
- package/dist/es/commands/PutDestinationPolicyCommand.js +2 -32
- package/dist/es/commands/PutDestinationPolicyCommand.js.map +1 -1
- package/dist/es/commands/PutLogEventsCommand.js +2 -64
- package/dist/es/commands/PutLogEventsCommand.js.map +1 -1
- package/dist/es/commands/PutMetricFilterCommand.js +2 -49
- package/dist/es/commands/PutMetricFilterCommand.js.map +1 -1
- package/dist/es/commands/PutQueryDefinitionCommand.js +2 -38
- package/dist/es/commands/PutQueryDefinitionCommand.js.map +1 -1
- package/dist/es/commands/PutResourcePolicyCommand.js +2 -29
- package/dist/es/commands/PutResourcePolicyCommand.js.map +1 -1
- package/dist/es/commands/PutRetentionPolicyCommand.js +2 -29
- package/dist/es/commands/PutRetentionPolicyCommand.js.map +1 -1
- package/dist/es/commands/PutSubscriptionFilterCommand.js +2 -55
- package/dist/es/commands/PutSubscriptionFilterCommand.js.map +1 -1
- package/dist/es/commands/StartQueryCommand.js +2 -32
- package/dist/es/commands/StartQueryCommand.js.map +1 -1
- package/dist/es/commands/StopQueryCommand.js +2 -28
- package/dist/es/commands/StopQueryCommand.js.map +1 -1
- package/dist/es/commands/TagLogGroupCommand.js +2 -36
- package/dist/es/commands/TagLogGroupCommand.js.map +1 -1
- package/dist/es/commands/TestMetricFilterCommand.js +2 -28
- package/dist/es/commands/TestMetricFilterCommand.js.map +1 -1
- package/dist/es/commands/UntagLogGroupCommand.js +2 -33
- package/dist/es/commands/UntagLogGroupCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -300
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/pagination/DescribeDestinationsPaginator.js +16 -28
- package/dist/es/pagination/DescribeDestinationsPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeLogGroupsPaginator.js +16 -28
- package/dist/es/pagination/DescribeLogGroupsPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeLogStreamsPaginator.js +16 -28
- package/dist/es/pagination/DescribeLogStreamsPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeMetricFiltersPaginator.js +16 -28
- package/dist/es/pagination/DescribeMetricFiltersPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeSubscriptionFiltersPaginator.js +16 -28
- package/dist/es/pagination/DescribeSubscriptionFiltersPaginator.js.map +1 -1
- package/dist/es/pagination/FilterLogEventsPaginator.js +16 -28
- package/dist/es/pagination/FilterLogEventsPaginator.js.map +1 -1
- package/dist/es/pagination/GetLogEventsPaginator.js +16 -28
- package/dist/es/pagination/GetLogEventsPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_1.js +879 -884
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -39
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -3,41 +3,13 @@ import { GetLogRecordRequest, GetLogRecordResponse } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_1GetLogRecordCommand, serializeAws_json1_1GetLogRecordCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Retrieves all of the fields and values of a single log event. All fields are retrieved,
|
|
8
|
-
* even if the original query that produced the <code>logRecordPointer</code> retrieved only a
|
|
9
|
-
* subset of fields. Fields are returned as field name/field value pairs.</p>
|
|
10
|
-
* <p>The full unparsed log event is returned within <code>@message</code>.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { CloudWatchLogsClient, GetLogRecordCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
15
|
-
* // const { CloudWatchLogsClient, GetLogRecordCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
16
|
-
* const client = new CloudWatchLogsClient(config);
|
|
17
|
-
* const command = new GetLogRecordCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link GetLogRecordCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link GetLogRecordCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
var GetLogRecordCommand = /** @class */ (function (_super) {
|
|
6
|
+
var GetLogRecordCommand = (function (_super) {
|
|
27
7
|
__extends(GetLogRecordCommand, _super);
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
8
|
function GetLogRecordCommand(input) {
|
|
31
|
-
var _this =
|
|
32
|
-
// Start section: command_constructor
|
|
33
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
34
10
|
_this.input = input;
|
|
35
11
|
return _this;
|
|
36
|
-
// End section: command_constructor
|
|
37
12
|
}
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
13
|
GetLogRecordCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
42
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
43
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetLogRecordCommand.js","sourceRoot":"","sources":["../../../commands/GetLogRecordCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EACL,yCAAyC,EACzC,uCAAuC,GACxC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"GetLogRecordCommand.js","sourceRoot":"","sources":["../../../commands/GetLogRecordCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EACL,yCAAyC,EACzC,uCAAuC,GACxC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,I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AQ,GAsDhD"}
|
|
@@ -3,48 +3,13 @@ import { GetQueryResultsRequest, GetQueryResultsResponse } from "../models/model
|
|
|
3
3
|
import { deserializeAws_json1_1GetQueryResultsCommand, serializeAws_json1_1GetQueryResultsCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Returns the results from the specified query.</p>
|
|
8
|
-
* <p>Only the fields requested in the query are returned, along with a <code>@ptr</code>
|
|
9
|
-
* field, which is the identifier for the log record. You can use the value of <code>@ptr</code>
|
|
10
|
-
* in a <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogRecord.html">GetLogRecord</a>
|
|
11
|
-
* operation to get the full log record.</p>
|
|
12
|
-
* <p>
|
|
13
|
-
* <code>GetQueryResults</code>
|
|
14
|
-
* does not start a query execution. To run a query, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html">StartQuery</a>.</p>
|
|
15
|
-
* <p>If the value of the <code>Status</code> field in the output is <code>Running</code>, this operation
|
|
16
|
-
* returns only partial results. If you see a value of <code>Scheduled</code> or <code>Running</code> for the status,
|
|
17
|
-
* you can retry the operation later to see the final results. </p>
|
|
18
|
-
* @example
|
|
19
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
-
* ```javascript
|
|
21
|
-
* import { CloudWatchLogsClient, GetQueryResultsCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
22
|
-
* // const { CloudWatchLogsClient, GetQueryResultsCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
23
|
-
* const client = new CloudWatchLogsClient(config);
|
|
24
|
-
* const command = new GetQueryResultsCommand(input);
|
|
25
|
-
* const response = await client.send(command);
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @see {@link GetQueryResultsCommandInput} for command's `input` shape.
|
|
29
|
-
* @see {@link GetQueryResultsCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
var GetQueryResultsCommand = /** @class */ (function (_super) {
|
|
6
|
+
var GetQueryResultsCommand = (function (_super) {
|
|
34
7
|
__extends(GetQueryResultsCommand, _super);
|
|
35
|
-
// Start section: command_properties
|
|
36
|
-
// End section: command_properties
|
|
37
8
|
function GetQueryResultsCommand(input) {
|
|
38
|
-
var _this =
|
|
39
|
-
// Start section: command_constructor
|
|
40
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
41
10
|
_this.input = input;
|
|
42
11
|
return _this;
|
|
43
|
-
// End section: command_constructor
|
|
44
12
|
}
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
13
|
GetQueryResultsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
49
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
50
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetQueryResultsCommand.js","sourceRoot":"","sources":["../../../commands/GetQueryResultsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EACL,4CAA4C,EAC5C,0CAA0C,GAC3C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"GetQueryResultsCommand.js","sourceRoot":"","sources":["../../../commands/GetQueryResultsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,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AAC,CAAC;IACpE,CAAC;IAEO,4CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,4CAA4C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAIH,6BAAC;AAAD,CAAC,AAtDD,CAA4C,QAAQ,GAsDnD"}
|
|
@@ -3,38 +3,13 @@ import { ListTagsLogGroupRequest, ListTagsLogGroupResponse } from "../models/mod
|
|
|
3
3
|
import { deserializeAws_json1_1ListTagsLogGroupCommand, serializeAws_json1_1ListTagsLogGroupCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Lists the tags for the specified log group.</p>
|
|
8
|
-
* @example
|
|
9
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
10
|
-
* ```javascript
|
|
11
|
-
* import { CloudWatchLogsClient, ListTagsLogGroupCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
12
|
-
* // const { CloudWatchLogsClient, ListTagsLogGroupCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
13
|
-
* const client = new CloudWatchLogsClient(config);
|
|
14
|
-
* const command = new ListTagsLogGroupCommand(input);
|
|
15
|
-
* const response = await client.send(command);
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @see {@link ListTagsLogGroupCommandInput} for command's `input` shape.
|
|
19
|
-
* @see {@link ListTagsLogGroupCommandOutput} for command's `response` shape.
|
|
20
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var ListTagsLogGroupCommand = /** @class */ (function (_super) {
|
|
6
|
+
var ListTagsLogGroupCommand = (function (_super) {
|
|
24
7
|
__extends(ListTagsLogGroupCommand, _super);
|
|
25
|
-
// Start section: command_properties
|
|
26
|
-
// End section: command_properties
|
|
27
8
|
function ListTagsLogGroupCommand(input) {
|
|
28
|
-
var _this =
|
|
29
|
-
// Start section: command_constructor
|
|
30
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
31
10
|
_this.input = input;
|
|
32
11
|
return _this;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
ListTagsLogGroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListTagsLogGroupCommand.js","sourceRoot":"","sources":["../../../commands/ListTagsLogGroupCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACvF,OAAO,EACL,6CAA6C,EAC7C,2CAA2C,GAC5C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"ListTagsLogGroupCommand.js","sourceRoot":"","sources":["../../../commands/ListTagsLogGroupCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACvF,OAAO,EACL,6CAA6C,EAC7C,2CAA2C,GAC5C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA+B7D;IAA6C,2CAI5C;IAIC,iCAAqB,KAAmC;QAAxD,YAEE,iBAAO,SAER;QAJ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ationCommand, serializeAws_json1_1PutDestinationCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Creates or updates a destination. This operation is used only to create destinations for cross-account subscriptions.</p>
|
|
8
|
-
* <p>A destination encapsulates a physical resource (such
|
|
9
|
-
* as an Amazon Kinesis stream) and enables you to subscribe to a real-time stream of log events
|
|
10
|
-
* for a different account, ingested using <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html">PutLogEvents</a>.</p>
|
|
11
|
-
* <p>Through an access policy, a destination controls what is written to it.
|
|
12
|
-
* By default, <code>PutDestination</code> does not set any access policy with the destination,
|
|
13
|
-
* which means a cross-account user cannot call <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutSubscriptionFilter.html">PutSubscriptionFilter</a> against
|
|
14
|
-
* 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>
|
|
15
|
-
* <p>To perform a <code>PutDestination</code> operation, you must also have the
|
|
16
|
-
* <code>iam:PassRole</code> permission.</p>
|
|
17
|
-
* @example
|
|
18
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
19
|
-
* ```javascript
|
|
20
|
-
* import { CloudWatchLogsClient, PutDestinationCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
21
|
-
* // const { CloudWatchLogsClient, PutDestinationCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
22
|
-
* const client = new CloudWatchLogsClient(config);
|
|
23
|
-
* const command = new PutDestinationCommand(input);
|
|
24
|
-
* const response = await client.send(command);
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @see {@link PutDestinationCommandInput} for command's `input` shape.
|
|
28
|
-
* @see {@link PutDestinationCommandOutput} for command's `response` shape.
|
|
29
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
var PutDestinationCommand = /** @class */ (function (_super) {
|
|
6
|
+
var PutDestinationCommand = (function (_super) {
|
|
33
7
|
__extends(PutDestinationCommand, _super);
|
|
34
|
-
// Start section: command_properties
|
|
35
|
-
// End section: command_properties
|
|
36
8
|
function PutDestinationCommand(input) {
|
|
37
|
-
var _this =
|
|
38
|
-
// Start section: command_constructor
|
|
39
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
40
10
|
_this.input = input;
|
|
41
11
|
return _this;
|
|
42
|
-
// End section: command_constructor
|
|
43
12
|
}
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
*/
|
|
47
13
|
PutDestinationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
48
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
49
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PutDestinationCommand.js","sourceRoot":"","sources":["../../../commands/PutDestinationCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EACL,2CAA2C,EAC3C,yCAAyC,GAC1C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"PutDestinationCommand.js","sourceRoot":"","sources":["../../../commands/PutDestinationCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACn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nB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,2CAA2C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAIH,4BAAC;AAAD,CAAC,AAtDD,CAA2C,QAAQ,GAsDlD"}
|
|
@@ -3,43 +3,13 @@ import { PutDestinationPolicyRequest } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_1PutDestinationPolicyCommand, serializeAws_json1_1PutDestinationPolicyCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Creates or updates an access policy associated with an existing
|
|
8
|
-
* 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
|
|
9
|
-
* to authorize claims to register a subscription filter against a given destination.</p>
|
|
10
|
-
* <p>If multiple Amazon Web Services accounts are sending logs to this destination, each sender account must be
|
|
11
|
-
* listed separately in the policy. The policy does not support specifying <code>*</code>
|
|
12
|
-
* as the Principal or the use of the <code>aws:PrincipalOrgId</code> global key.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { CloudWatchLogsClient, PutDestinationPolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
17
|
-
* // const { CloudWatchLogsClient, PutDestinationPolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
18
|
-
* const client = new CloudWatchLogsClient(config);
|
|
19
|
-
* const command = new PutDestinationPolicyCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link PutDestinationPolicyCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link PutDestinationPolicyCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
var PutDestinationPolicyCommand = /** @class */ (function (_super) {
|
|
6
|
+
var PutDestinationPolicyCommand = (function (_super) {
|
|
29
7
|
__extends(PutDestinationPolicyCommand, _super);
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
8
|
function PutDestinationPolicyCommand(input) {
|
|
33
|
-
var _this =
|
|
34
|
-
// Start section: command_constructor
|
|
35
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
36
10
|
_this.input = input;
|
|
37
11
|
return _this;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
PutDestinationPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PutDestinationPolicyCommand.js","sourceRoot":"","sources":["../../../commands/PutDestinationPolicyCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EACL,iDAAiD,EACjD,+CAA+C,GAChD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"PutDestinationPolicyCommand.js","sourceRoot":"","sources":["../../../commands/PutDestinationPolicyCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EACL,iDAAiD,EACjD,+CAA+C,GAChD,MAAM,0BAA0B,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O,iDAAiD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAIH,kCAAC;AAAD,CAAC,AAtDD,CAAiD,QAAQ,GAsDxD"}
|
|
@@ -3,75 +3,13 @@ import { PutLogEventsRequest, PutLogEventsResponse } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_1PutLogEventsCommand, serializeAws_json1_1PutLogEventsCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Uploads a batch of log events to the specified log stream.</p>
|
|
8
|
-
* <p>You must include the sequence token obtained from the response of the previous call. An
|
|
9
|
-
* upload in a newly created log stream does not require a sequence token. You can also get the
|
|
10
|
-
* sequence token in the <code>expectedSequenceToken</code> field from
|
|
11
|
-
* <code>InvalidSequenceTokenException</code>. If you call <code>PutLogEvents</code> twice
|
|
12
|
-
* within a narrow time period using the same value for <code>sequenceToken</code>, both calls
|
|
13
|
-
* might be successful or one might be rejected.</p>
|
|
14
|
-
* <p>The batch of events must satisfy the following constraints:</p>
|
|
15
|
-
* <ul>
|
|
16
|
-
* <li>
|
|
17
|
-
* <p>The maximum batch size is 1,048,576 bytes. This size is calculated as the sum of
|
|
18
|
-
* all event messages in UTF-8, plus 26 bytes for each log event.</p>
|
|
19
|
-
* </li>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>None of the log events in the batch can be more than 2 hours in the future.</p>
|
|
22
|
-
* </li>
|
|
23
|
-
* <li>
|
|
24
|
-
* <p>None of the log events in the batch can be older than 14 days or older than the retention
|
|
25
|
-
* period of the log group.</p>
|
|
26
|
-
* </li>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>The log events in the batch must be in chronological order by their timestamp. The
|
|
29
|
-
* timestamp is the time the event occurred, expressed as the number of milliseconds after
|
|
30
|
-
* Jan 1, 1970 00:00:00 UTC. (In Amazon Web Services Tools for PowerShell and the Amazon Web Services SDK for .NET, the
|
|
31
|
-
* timestamp is specified in .NET format: yyyy-mm-ddThh:mm:ss. For example,
|
|
32
|
-
* 2017-09-15T13:45:30.) </p>
|
|
33
|
-
* </li>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>A batch of log events in a single request cannot span more than 24 hours. Otherwise, the operation fails.</p>
|
|
36
|
-
* </li>
|
|
37
|
-
* <li>
|
|
38
|
-
* <p>The maximum number of log events in a batch is 10,000.</p>
|
|
39
|
-
* </li>
|
|
40
|
-
* <li>
|
|
41
|
-
* <p>There is a quota of 5 requests per second per log stream. Additional requests are throttled. This quota can't be changed.</p>
|
|
42
|
-
* </li>
|
|
43
|
-
* </ul>
|
|
44
|
-
* <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>
|
|
45
|
-
* @example
|
|
46
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
47
|
-
* ```javascript
|
|
48
|
-
* import { CloudWatchLogsClient, PutLogEventsCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
49
|
-
* // const { CloudWatchLogsClient, PutLogEventsCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
50
|
-
* const client = new CloudWatchLogsClient(config);
|
|
51
|
-
* const command = new PutLogEventsCommand(input);
|
|
52
|
-
* const response = await client.send(command);
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* @see {@link PutLogEventsCommandInput} for command's `input` shape.
|
|
56
|
-
* @see {@link PutLogEventsCommandOutput} for command's `response` shape.
|
|
57
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
|
-
var PutLogEventsCommand = /** @class */ (function (_super) {
|
|
6
|
+
var PutLogEventsCommand = (function (_super) {
|
|
61
7
|
__extends(PutLogEventsCommand, _super);
|
|
62
|
-
// Start section: command_properties
|
|
63
|
-
// End section: command_properties
|
|
64
8
|
function PutLogEventsCommand(input) {
|
|
65
|
-
var _this =
|
|
66
|
-
// Start section: command_constructor
|
|
67
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
68
10
|
_this.input = input;
|
|
69
11
|
return _this;
|
|
70
|
-
// End section: command_constructor
|
|
71
12
|
}
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
*/
|
|
75
13
|
PutLogEventsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
76
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
77
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PutLogEventsCommand.js","sourceRoot":"","sources":["../../../commands/PutLogEventsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EACL,yCAAyC,EACzC,uCAAuC,GACxC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"PutLogEventsCommand.js","sourceRoot":"","sources":["../../../commands/PutLogEventsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EACL,yCAAyC,EACzC,uCAAuC,GACxC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAoE7D;IAAyC,uCAIxC;IAIC,6BAAqB,KAA+B;QAApD,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAA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FilterCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Creates or updates a metric filter and associates it with the specified log group.
|
|
8
|
-
* Metric filters allow you to configure rules to extract metric data from log events ingested
|
|
9
|
-
* through <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html">PutLogEvents</a>.</p>
|
|
10
|
-
* <p>The maximum number of metric filters that can be associated with a log group is
|
|
11
|
-
* 100.</p>
|
|
12
|
-
* <p>When you create a metric filter, you can also optionally assign a unit and dimensions
|
|
13
|
-
* to the metric that is created.</p>
|
|
14
|
-
* <important>
|
|
15
|
-
* <p>Metrics extracted from log events are charged as custom metrics.
|
|
16
|
-
* To prevent unexpected high charges, do not specify high-cardinality fields such as
|
|
17
|
-
* <code>IPAddress</code> or <code>requestID</code> as dimensions. Each different value
|
|
18
|
-
* found for
|
|
19
|
-
* a dimension is treated as a separate metric and accrues charges as a separate custom metric.
|
|
20
|
-
* </p>
|
|
21
|
-
* <p>To help prevent accidental high charges, Amazon disables a metric filter
|
|
22
|
-
* if it generates 1000 different name/value pairs for the dimensions that you
|
|
23
|
-
* have specified within a certain amount of time.</p>
|
|
24
|
-
* <p>You can also set up a billing alarm to alert you if your charges are higher than
|
|
25
|
-
* expected. For more information,
|
|
26
|
-
* see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html">
|
|
27
|
-
* Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges</a>.
|
|
28
|
-
* </p>
|
|
29
|
-
* </important>
|
|
30
|
-
* @example
|
|
31
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
-
* ```javascript
|
|
33
|
-
* import { CloudWatchLogsClient, PutMetricFilterCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
34
|
-
* // const { CloudWatchLogsClient, PutMetricFilterCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
35
|
-
* const client = new CloudWatchLogsClient(config);
|
|
36
|
-
* const command = new PutMetricFilterCommand(input);
|
|
37
|
-
* const response = await client.send(command);
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @see {@link PutMetricFilterCommandInput} for command's `input` shape.
|
|
41
|
-
* @see {@link PutMetricFilterCommandOutput} for command's `response` shape.
|
|
42
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
var PutMetricFilterCommand = /** @class */ (function (_super) {
|
|
6
|
+
var PutMetricFilterCommand = (function (_super) {
|
|
46
7
|
__extends(PutMetricFilterCommand, _super);
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
8
|
function PutMetricFilterCommand(input) {
|
|
50
|
-
var _this =
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
53
10
|
_this.input = input;
|
|
54
11
|
return _this;
|
|
55
|
-
// End section: command_constructor
|
|
56
12
|
}
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
13
|
PutMetricFilterCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
61
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
62
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PutMetricFilterCommand.js","sourceRoot":"","sources":["../../../commands/PutMetricFilterCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EACL,4CAA4C,EAC5C,0CAA0C,GAC3C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAA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,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,0CAAS,GAAjB,UAAkB,KAAkC,EAAE,OAAuB;QAC3E,OAAO,0CAA0C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAEO,4CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,4CAA4C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAIH,6BAAC;AAAD,CAAC,AAtDD,CAA4C,QAAQ,GAsDnD"}
|
|
@@ -3,49 +3,13 @@ import { PutQueryDefinitionRequest, PutQueryDefinitionResponse } from "../models
|
|
|
3
3
|
import { deserializeAws_json1_1PutQueryDefinitionCommand, serializeAws_json1_1PutQueryDefinitionCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Creates or updates a query definition for CloudWatch Logs Insights. For
|
|
8
|
-
* more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html">Analyzing Log Data with CloudWatch Logs Insights</a>.</p>
|
|
9
|
-
*
|
|
10
|
-
* <p>To update a query definition, specify its
|
|
11
|
-
* <code>queryDefinitionId</code> in your request. The values of <code>name</code>, <code>queryString</code>,
|
|
12
|
-
* and <code>logGroupNames</code> are changed to the values that you specify in your update
|
|
13
|
-
* operation. No current values are retained from the current query definition. For example, if
|
|
14
|
-
* you update a current query definition that includes log groups, and you don't specify the
|
|
15
|
-
* <code>logGroupNames</code> parameter in your update operation, the query definition changes
|
|
16
|
-
* to contain no log groups.</p>
|
|
17
|
-
* <p>You must have the <code>logs:PutQueryDefinition</code> permission to be able to perform
|
|
18
|
-
* this operation.</p>
|
|
19
|
-
* @example
|
|
20
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
21
|
-
* ```javascript
|
|
22
|
-
* import { CloudWatchLogsClient, PutQueryDefinitionCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
23
|
-
* // const { CloudWatchLogsClient, PutQueryDefinitionCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
24
|
-
* const client = new CloudWatchLogsClient(config);
|
|
25
|
-
* const command = new PutQueryDefinitionCommand(input);
|
|
26
|
-
* const response = await client.send(command);
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* @see {@link PutQueryDefinitionCommandInput} for command's `input` shape.
|
|
30
|
-
* @see {@link PutQueryDefinitionCommandOutput} for command's `response` shape.
|
|
31
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
var PutQueryDefinitionCommand = /** @class */ (function (_super) {
|
|
6
|
+
var PutQueryDefinitionCommand = (function (_super) {
|
|
35
7
|
__extends(PutQueryDefinitionCommand, _super);
|
|
36
|
-
// Start section: command_properties
|
|
37
|
-
// End section: command_properties
|
|
38
8
|
function PutQueryDefinitionCommand(input) {
|
|
39
|
-
var _this =
|
|
40
|
-
// Start section: command_constructor
|
|
41
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
42
10
|
_this.input = input;
|
|
43
11
|
return _this;
|
|
44
|
-
// End section: command_constructor
|
|
45
12
|
}
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
13
|
PutQueryDefinitionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
50
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
51
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PutQueryDefinitionCommand.js","sourceRoot":"","sources":["../../../commands/PutQueryDefinitionCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EACL,+CAA+C,EAC/C,6CAA6C,GAC9C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"PutQueryDefinitionCommand.js","sourceRoot":"","sources":["../../../commands/PutQueryDefinitionCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EACL,+CAA+C,EAC/C,6CAA6C,GAC9C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA0C7D;IAA+C,6CAI9C;IAIC,mCAAqB,KAAqC;QAA1D,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAgC;;IAI1D,CAAC;IAKD,qDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAiD,EACjD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,sBAAsB,CAAC;QAC1C,IAAM,WAAW,GAAG,2BAA2B,CAAC;QAChD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,yBAAyB,CAAC,kBAAkB;YACrE,wBAAwB,EAAE,0BAA0B,CAAC,kBAAkB;SACxE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,6CAAS,GAAjB,UAAkB,KAAqC,EAAE,OAAuB;QAC9E,OAAO,6CAA6C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAEO,+CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,+CAA+C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAIH,gCAAC;AAAD,CAAC,AAtDD,CAA+C,QAAQ,GAsDtD"}
|
|
@@ -3,40 +3,13 @@ import { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/m
|
|
|
3
3
|
import { deserializeAws_json1_1PutResourcePolicyCommand, serializeAws_json1_1PutResourcePolicyCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Creates or updates a resource policy allowing other Amazon Web Services services to put log events to
|
|
8
|
-
* this account, such as Amazon Route 53. An account can have up to 10 resource policies per Amazon Web Services
|
|
9
|
-
* Region.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { CloudWatchLogsClient, PutResourcePolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
14
|
-
* // const { CloudWatchLogsClient, PutResourcePolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
15
|
-
* const client = new CloudWatchLogsClient(config);
|
|
16
|
-
* const command = new PutResourcePolicyCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
var PutResourcePolicyCommand = /** @class */ (function (_super) {
|
|
6
|
+
var PutResourcePolicyCommand = (function (_super) {
|
|
26
7
|
__extends(PutResourcePolicyCommand, _super);
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
8
|
function PutResourcePolicyCommand(input) {
|
|
30
|
-
var _this =
|
|
31
|
-
// Start section: command_constructor
|
|
32
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
33
10
|
_this.input = input;
|
|
34
11
|
return _this;
|
|
35
|
-
// End section: command_constructor
|
|
36
12
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
13
|
PutResourcePolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
41
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PutResourcePolicyCommand.js","sourceRoot":"","sources":["../../../commands/PutResourcePolicyCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EACL,8CAA8C,EAC9C,4CAA4C,GAC7C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,M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CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,4CAAS,GAAjB,UAAkB,KAAoC,EAAE,OAAuB;QAC7E,OAAO,4CAA4C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAEO,8CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,8CAA8C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAIH,+BAAC;AAAD,CAAC,AAtDD,CAA8C,QAAQ,GAsDrD"}
|
|
@@ -3,40 +3,13 @@ import { PutRetentionPolicyRequest } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_1PutRetentionPolicyCommand, serializeAws_json1_1PutRetentionPolicyCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Sets the retention of the specified log group. A retention policy allows you to
|
|
8
|
-
* configure the number of days for which to retain log events in the specified log
|
|
9
|
-
* group.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { CloudWatchLogsClient, PutRetentionPolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
14
|
-
* // const { CloudWatchLogsClient, PutRetentionPolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
15
|
-
* const client = new CloudWatchLogsClient(config);
|
|
16
|
-
* const command = new PutRetentionPolicyCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link PutRetentionPolicyCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link PutRetentionPolicyCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
var PutRetentionPolicyCommand = /** @class */ (function (_super) {
|
|
6
|
+
var PutRetentionPolicyCommand = (function (_super) {
|
|
26
7
|
__extends(PutRetentionPolicyCommand, _super);
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
8
|
function PutRetentionPolicyCommand(input) {
|
|
30
|
-
var _this =
|
|
31
|
-
// Start section: command_constructor
|
|
32
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
33
10
|
_this.input = input;
|
|
34
11
|
return _this;
|
|
35
|
-
// End section: command_constructor
|
|
36
12
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
13
|
PutRetentionPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
41
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PutRetentionPolicyCommand.js","sourceRoot":"","sources":["../../../commands/PutRetentionPolicyCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EACL,+CAA+C,EAC/C,6CAA6C,GAC9C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"PutRetentionPolicyCommand.js","sourceRoot":"","sources":["../../../commands/PutRetentionPolicyCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EACL,+CA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