@aws-sdk/client-cloudwatch-logs 3.888.0 → 3.891.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.
Files changed (96) hide show
  1. package/dist-cjs/index.js +4 -0
  2. package/dist-es/protocols/Aws_json1_1.js +4 -0
  3. package/dist-types/commands/AssociateKmsKeyCommand.d.ts +2 -0
  4. package/dist-types/commands/CancelExportTaskCommand.d.ts +2 -0
  5. package/dist-types/commands/CreateDeliveryCommand.d.ts +2 -0
  6. package/dist-types/commands/CreateExportTaskCommand.d.ts +2 -0
  7. package/dist-types/commands/CreateLogAnomalyDetectorCommand.d.ts +2 -0
  8. package/dist-types/commands/CreateLogGroupCommand.d.ts +2 -0
  9. package/dist-types/commands/CreateLogStreamCommand.d.ts +2 -0
  10. package/dist-types/commands/DeleteAccountPolicyCommand.d.ts +2 -0
  11. package/dist-types/commands/DeleteDataProtectionPolicyCommand.d.ts +2 -0
  12. package/dist-types/commands/DeleteDeliveryCommand.d.ts +2 -0
  13. package/dist-types/commands/DeleteDeliveryDestinationCommand.d.ts +2 -0
  14. package/dist-types/commands/DeleteDeliveryDestinationPolicyCommand.d.ts +2 -0
  15. package/dist-types/commands/DeleteDeliverySourceCommand.d.ts +2 -0
  16. package/dist-types/commands/DeleteDestinationCommand.d.ts +2 -0
  17. package/dist-types/commands/DeleteIndexPolicyCommand.d.ts +2 -0
  18. package/dist-types/commands/DeleteIntegrationCommand.d.ts +2 -0
  19. package/dist-types/commands/DeleteLogAnomalyDetectorCommand.d.ts +2 -0
  20. package/dist-types/commands/DeleteLogGroupCommand.d.ts +2 -0
  21. package/dist-types/commands/DeleteLogStreamCommand.d.ts +2 -0
  22. package/dist-types/commands/DeleteMetricFilterCommand.d.ts +2 -0
  23. package/dist-types/commands/DeleteQueryDefinitionCommand.d.ts +2 -0
  24. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +2 -0
  25. package/dist-types/commands/DeleteRetentionPolicyCommand.d.ts +2 -0
  26. package/dist-types/commands/DeleteSubscriptionFilterCommand.d.ts +2 -0
  27. package/dist-types/commands/DeleteTransformerCommand.d.ts +2 -0
  28. package/dist-types/commands/DescribeAccountPoliciesCommand.d.ts +2 -0
  29. package/dist-types/commands/DescribeConfigurationTemplatesCommand.d.ts +2 -0
  30. package/dist-types/commands/DescribeDeliveriesCommand.d.ts +4 -2
  31. package/dist-types/commands/DescribeDeliveryDestinationsCommand.d.ts +2 -0
  32. package/dist-types/commands/DescribeDeliverySourcesCommand.d.ts +2 -0
  33. package/dist-types/commands/DescribeDestinationsCommand.d.ts +2 -0
  34. package/dist-types/commands/DescribeExportTasksCommand.d.ts +2 -0
  35. package/dist-types/commands/DescribeFieldIndexesCommand.d.ts +4 -2
  36. package/dist-types/commands/DescribeIndexPoliciesCommand.d.ts +3 -1
  37. package/dist-types/commands/DescribeLogGroupsCommand.d.ts +2 -0
  38. package/dist-types/commands/DescribeLogStreamsCommand.d.ts +2 -0
  39. package/dist-types/commands/DescribeMetricFiltersCommand.d.ts +6 -0
  40. package/dist-types/commands/DescribeQueriesCommand.d.ts +2 -0
  41. package/dist-types/commands/DescribeQueryDefinitionsCommand.d.ts +2 -0
  42. package/dist-types/commands/DescribeResourcePoliciesCommand.d.ts +2 -0
  43. package/dist-types/commands/DescribeSubscriptionFiltersCommand.d.ts +6 -0
  44. package/dist-types/commands/DisassociateKmsKeyCommand.d.ts +2 -0
  45. package/dist-types/commands/FilterLogEventsCommand.d.ts +3 -1
  46. package/dist-types/commands/GetDataProtectionPolicyCommand.d.ts +2 -0
  47. package/dist-types/commands/GetDeliveryCommand.d.ts +2 -0
  48. package/dist-types/commands/GetDeliveryDestinationCommand.d.ts +2 -0
  49. package/dist-types/commands/GetDeliveryDestinationPolicyCommand.d.ts +2 -0
  50. package/dist-types/commands/GetDeliverySourceCommand.d.ts +2 -0
  51. package/dist-types/commands/GetIntegrationCommand.d.ts +2 -0
  52. package/dist-types/commands/GetLogAnomalyDetectorCommand.d.ts +2 -0
  53. package/dist-types/commands/GetLogEventsCommand.d.ts +2 -0
  54. package/dist-types/commands/GetLogGroupFieldsCommand.d.ts +2 -0
  55. package/dist-types/commands/GetLogObjectCommand.d.ts +13 -4
  56. package/dist-types/commands/GetLogRecordCommand.d.ts +2 -0
  57. package/dist-types/commands/GetQueryResultsCommand.d.ts +2 -0
  58. package/dist-types/commands/GetTransformerCommand.d.ts +2 -0
  59. package/dist-types/commands/ListAnomaliesCommand.d.ts +2 -0
  60. package/dist-types/commands/ListIntegrationsCommand.d.ts +2 -0
  61. package/dist-types/commands/ListLogAnomalyDetectorsCommand.d.ts +2 -0
  62. package/dist-types/commands/ListLogGroupsCommand.d.ts +2 -0
  63. package/dist-types/commands/ListLogGroupsForQueryCommand.d.ts +2 -0
  64. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
  65. package/dist-types/commands/ListTagsLogGroupCommand.d.ts +2 -0
  66. package/dist-types/commands/PutAccountPolicyCommand.d.ts +58 -23
  67. package/dist-types/commands/PutDataProtectionPolicyCommand.d.ts +2 -0
  68. package/dist-types/commands/PutDeliveryDestinationCommand.d.ts +4 -1
  69. package/dist-types/commands/PutDeliveryDestinationPolicyCommand.d.ts +2 -0
  70. package/dist-types/commands/PutDeliverySourceCommand.d.ts +2 -0
  71. package/dist-types/commands/PutDestinationCommand.d.ts +2 -0
  72. package/dist-types/commands/PutDestinationPolicyCommand.d.ts +2 -0
  73. package/dist-types/commands/PutIndexPolicyCommand.d.ts +28 -0
  74. package/dist-types/commands/PutIntegrationCommand.d.ts +2 -0
  75. package/dist-types/commands/PutLogEventsCommand.d.ts +2 -0
  76. package/dist-types/commands/PutMetricFilterCommand.d.ts +6 -0
  77. package/dist-types/commands/PutQueryDefinitionCommand.d.ts +2 -0
  78. package/dist-types/commands/PutResourcePolicyCommand.d.ts +2 -0
  79. package/dist-types/commands/PutRetentionPolicyCommand.d.ts +2 -0
  80. package/dist-types/commands/PutSubscriptionFilterCommand.d.ts +6 -0
  81. package/dist-types/commands/PutTransformerCommand.d.ts +2 -0
  82. package/dist-types/commands/StartLiveTailCommand.d.ts +2 -0
  83. package/dist-types/commands/StartQueryCommand.d.ts +2 -0
  84. package/dist-types/commands/StopQueryCommand.d.ts +2 -0
  85. package/dist-types/commands/TagLogGroupCommand.d.ts +2 -0
  86. package/dist-types/commands/TagResourceCommand.d.ts +2 -0
  87. package/dist-types/commands/TestMetricFilterCommand.d.ts +2 -0
  88. package/dist-types/commands/TestTransformerCommand.d.ts +2 -0
  89. package/dist-types/commands/UntagLogGroupCommand.d.ts +4 -2
  90. package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
  91. package/dist-types/commands/UpdateAnomalyCommand.d.ts +2 -0
  92. package/dist-types/commands/UpdateDeliveryConfigurationCommand.d.ts +2 -0
  93. package/dist-types/commands/UpdateLogAnomalyDetectorCommand.d.ts +2 -0
  94. package/dist-types/models/models_0.d.ts +100 -28
  95. package/dist-types/ts3.4/models/models_0.d.ts +8 -0
  96. package/package.json +19 -19
@@ -33,6 +33,8 @@ declare const GetIntegrationCommand_base: {
33
33
  * ```javascript
34
34
  * import { CloudWatchLogsClient, GetIntegrationCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
35
35
  * // const { CloudWatchLogsClient, GetIntegrationCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
36
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
37
+ * const config = {}; // type is CloudWatchLogsClientConfig
36
38
  * const client = new CloudWatchLogsClient(config);
37
39
  * const input = { // GetIntegrationRequest
38
40
  * integrationName: "STRING_VALUE", // required
@@ -33,6 +33,8 @@ declare const GetLogAnomalyDetectorCommand_base: {
33
33
  * ```javascript
34
34
  * import { CloudWatchLogsClient, GetLogAnomalyDetectorCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
35
35
  * // const { CloudWatchLogsClient, GetLogAnomalyDetectorCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
36
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
37
+ * const config = {}; // type is CloudWatchLogsClientConfig
36
38
  * const client = new CloudWatchLogsClient(config);
37
39
  * const input = { // GetLogAnomalyDetectorRequest
38
40
  * anomalyDetectorArn: "STRING_VALUE", // required
@@ -65,6 +65,8 @@ declare const GetLogEventsCommand_base: {
65
65
  * ```javascript
66
66
  * import { CloudWatchLogsClient, GetLogEventsCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
67
67
  * // const { CloudWatchLogsClient, GetLogEventsCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
68
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
69
+ * const config = {}; // type is CloudWatchLogsClientConfig
68
70
  * const client = new CloudWatchLogsClient(config);
69
71
  * const input = { // GetLogEventsRequest
70
72
  * logGroupName: "STRING_VALUE",
@@ -47,6 +47,8 @@ declare const GetLogGroupFieldsCommand_base: {
47
47
  * ```javascript
48
48
  * import { CloudWatchLogsClient, GetLogGroupFieldsCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
49
49
  * // const { CloudWatchLogsClient, GetLogGroupFieldsCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
50
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
51
+ * const config = {}; // type is CloudWatchLogsClientConfig
50
52
  * const client = new CloudWatchLogsClient(config);
51
53
  * const input = { // GetLogGroupFieldsRequest
52
54
  * logGroupName: "STRING_VALUE",
@@ -27,15 +27,24 @@ declare const GetLogObjectCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Retrieves a large logging object (LLO) and streams it back. This API is used to fetch the content of large portions of log events that have been ingested through the PutOpenTelemetryLogs API.
31
- * When log events contain fields that would cause the total event size to exceed 1MB, CloudWatch Logs automatically processes up to 10 fields, starting with the largest fields. Each field is truncated as needed to keep
32
- * the total event size as close to 1MB as possible. The excess portions are stored as Large Log Objects (LLOs) and these fields are processed separately and LLO reference system fields (in the format <code>@ptr.$[path.to.field]</code>) are
33
- * added. The path in the reference field reflects the original JSON structure where the large field was located. For example, this could be <code>@ptr.$['input']['message']</code>, <code>@ptr.$['AAA']['BBB']['CCC']['DDD']</code>, <code>@ptr.$['AAA']</code>, or any other path matching your log structure.</p>
30
+ * <p>Retrieves a large logging object (LLO) and streams it back. This API is used to fetch the
31
+ * content of large portions of log events that have been ingested through the
32
+ * PutOpenTelemetryLogs API. When log events contain fields that would cause the total event size
33
+ * to exceed 1MB, CloudWatch Logs automatically processes up to 10 fields, starting with the
34
+ * largest fields. Each field is truncated as needed to keep the total event size as close to 1MB
35
+ * as possible. The excess portions are stored as Large Log Objects (LLOs) and these fields are
36
+ * processed separately and LLO reference system fields (in the format
37
+ * <code>@ptr.$[path.to.field]</code>) are added. The path in the reference field reflects the
38
+ * original JSON structure where the large field was located. For example, this could be
39
+ * <code>@ptr.$['input']['message']</code>, <code>@ptr.$['AAA']['BBB']['CCC']['DDD']</code>,
40
+ * <code>@ptr.$['AAA']</code>, or any other path matching your log structure.</p>
34
41
  * @example
35
42
  * Use a bare-bones client and the command you need to make an API call.
36
43
  * ```javascript
37
44
  * import { CloudWatchLogsClient, GetLogObjectCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
38
45
  * // const { CloudWatchLogsClient, GetLogObjectCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
46
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
47
+ * const config = {}; // type is CloudWatchLogsClientConfig
39
48
  * const client = new CloudWatchLogsClient(config);
40
49
  * const input = { // GetLogObjectRequest
41
50
  * unmask: true || false,
@@ -36,6 +36,8 @@ declare const GetLogRecordCommand_base: {
36
36
  * ```javascript
37
37
  * import { CloudWatchLogsClient, GetLogRecordCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
38
38
  * // const { CloudWatchLogsClient, GetLogRecordCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
39
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
40
+ * const config = {}; // type is CloudWatchLogsClientConfig
39
41
  * const client = new CloudWatchLogsClient(config);
40
42
  * const input = { // GetLogRecordRequest
41
43
  * logRecordPointer: "STRING_VALUE", // required
@@ -48,6 +48,8 @@ declare const GetQueryResultsCommand_base: {
48
48
  * ```javascript
49
49
  * import { CloudWatchLogsClient, GetQueryResultsCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
50
50
  * // const { CloudWatchLogsClient, GetQueryResultsCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
51
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
52
+ * const config = {}; // type is CloudWatchLogsClientConfig
51
53
  * const client = new CloudWatchLogsClient(config);
52
54
  * const input = { // GetQueryResultsRequest
53
55
  * queryId: "STRING_VALUE", // required
@@ -35,6 +35,8 @@ declare const GetTransformerCommand_base: {
35
35
  * ```javascript
36
36
  * import { CloudWatchLogsClient, GetTransformerCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
37
37
  * // const { CloudWatchLogsClient, GetTransformerCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
38
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
39
+ * const config = {}; // type is CloudWatchLogsClientConfig
38
40
  * const client = new CloudWatchLogsClient(config);
39
41
  * const input = { // GetTransformerRequest
40
42
  * logGroupIdentifier: "STRING_VALUE", // required
@@ -35,6 +35,8 @@ declare const ListAnomaliesCommand_base: {
35
35
  * ```javascript
36
36
  * import { CloudWatchLogsClient, ListAnomaliesCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
37
37
  * // const { CloudWatchLogsClient, ListAnomaliesCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
38
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
39
+ * const config = {}; // type is CloudWatchLogsClientConfig
38
40
  * const client = new CloudWatchLogsClient(config);
39
41
  * const input = { // ListAnomaliesRequest
40
42
  * anomalyDetectorArn: "STRING_VALUE",
@@ -35,6 +35,8 @@ declare const ListIntegrationsCommand_base: {
35
35
  * ```javascript
36
36
  * import { CloudWatchLogsClient, ListIntegrationsCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
37
37
  * // const { CloudWatchLogsClient, ListIntegrationsCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
38
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
39
+ * const config = {}; // type is CloudWatchLogsClientConfig
38
40
  * const client = new CloudWatchLogsClient(config);
39
41
  * const input = { // ListIntegrationsRequest
40
42
  * integrationNamePrefix: "STRING_VALUE",
@@ -33,6 +33,8 @@ declare const ListLogAnomalyDetectorsCommand_base: {
33
33
  * ```javascript
34
34
  * import { CloudWatchLogsClient, ListLogAnomalyDetectorsCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
35
35
  * // const { CloudWatchLogsClient, ListLogAnomalyDetectorsCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
36
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
37
+ * const config = {}; // type is CloudWatchLogsClientConfig
36
38
  * const client = new CloudWatchLogsClient(config);
37
39
  * const input = { // ListLogAnomalyDetectorsRequest
38
40
  * filterLogGroupArn: "STRING_VALUE",
@@ -41,6 +41,8 @@ declare const ListLogGroupsCommand_base: {
41
41
  * ```javascript
42
42
  * import { CloudWatchLogsClient, ListLogGroupsCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
43
43
  * // const { CloudWatchLogsClient, ListLogGroupsCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
44
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
45
+ * const config = {}; // type is CloudWatchLogsClientConfig
44
46
  * const client = new CloudWatchLogsClient(config);
45
47
  * const input = { // ListLogGroupsRequest
46
48
  * logGroupNamePattern: "STRING_VALUE",
@@ -38,6 +38,8 @@ declare const ListLogGroupsForQueryCommand_base: {
38
38
  * ```javascript
39
39
  * import { CloudWatchLogsClient, ListLogGroupsForQueryCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
40
40
  * // const { CloudWatchLogsClient, ListLogGroupsForQueryCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
41
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
42
+ * const config = {}; // type is CloudWatchLogsClientConfig
41
43
  * const client = new CloudWatchLogsClient(config);
42
44
  * const input = { // ListLogGroupsForQueryRequest
43
45
  * queryId: "STRING_VALUE", // required
@@ -34,6 +34,8 @@ declare const ListTagsForResourceCommand_base: {
34
34
  * ```javascript
35
35
  * import { CloudWatchLogsClient, ListTagsForResourceCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
36
36
  * // const { CloudWatchLogsClient, ListTagsForResourceCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
37
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
38
+ * const config = {}; // type is CloudWatchLogsClientConfig
37
39
  * const client = new CloudWatchLogsClient(config);
38
40
  * const input = { // ListTagsForResourceRequest
39
41
  * resourceArn: "STRING_VALUE", // required
@@ -39,6 +39,8 @@ declare const ListTagsLogGroupCommand_base: {
39
39
  * ```javascript
40
40
  * import { CloudWatchLogsClient, ListTagsLogGroupCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
41
41
  * // const { CloudWatchLogsClient, ListTagsLogGroupCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
42
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
43
+ * const config = {}; // type is CloudWatchLogsClientConfig
42
44
  * const client = new CloudWatchLogsClient(config);
43
45
  * const input = { // ListTagsLogGroupRequest
44
46
  * logGroupName: "STRING_VALUE", // required
@@ -53,8 +53,8 @@ declare const PutAccountPolicyCommand_base: {
53
53
  * </li>
54
54
  * <li>
55
55
  * <p>To create a metric extraction policy, you must have the
56
- * <code>logs:PutMetricExtractionPolicy</code> and
57
- * <code>logs:PutAccountPolicy</code> permissions.</p>
56
+ * <code>logs:PutMetricExtractionPolicy</code> and <code>logs:PutAccountPolicy</code>
57
+ * permissions.</p>
58
58
  * </li>
59
59
  * </ul>
60
60
  * <p>
@@ -149,6 +149,32 @@ declare const PutAccountPolicyCommand_base: {
149
149
  * use the same or overlapping log group name prefixes. For example, if you have one policy
150
150
  * filtered to log groups that start with <code>my-log</code>, you can't have another field index
151
151
  * policy filtered to <code>my-logpprod</code> or <code>my-logging</code>.</p>
152
+ * <p>CloudWatch Logs provides default field indexes for all log groups in the Standard log
153
+ * class. Default field indexes are automatically available for the following fields: </p>
154
+ * <ul>
155
+ * <li>
156
+ * <p>
157
+ * <code>@aws.region</code>
158
+ * </p>
159
+ * </li>
160
+ * <li>
161
+ * <p>
162
+ * <code>@aws.account</code>
163
+ * </p>
164
+ * </li>
165
+ * <li>
166
+ * <p>
167
+ * <code>@source.log</code>
168
+ * </p>
169
+ * </li>
170
+ * <li>
171
+ * <p>
172
+ * <code>traceId</code>
173
+ * </p>
174
+ * </li>
175
+ * </ul>
176
+ * <p>Default field indexes are in addition to any custom field indexes you define within your
177
+ * policy. Default field indexes are not counted towards your field index quota. </p>
152
178
  * <p>You can also set up a transformer at the log-group level. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutTransformer.html">PutTransformer</a>. If there is both a log-group level transformer created with
153
179
  * <code>PutTransformer</code> and an account-level transformer that could apply to the same
154
180
  * log group, the log group uses only the log-group level transformer. It ignores the
@@ -200,15 +226,16 @@ declare const PutAccountPolicyCommand_base: {
200
226
  * <important>
201
227
  * <p>Creating a policy disables metrics for AWS features that use EMF to create metrics, such
202
228
  * as CloudWatch Container Insights and CloudWatch Application Signals. To prevent turning off
203
- * those features by accident, we recommend that you exclude the underlying log-groups through a
204
- * selection-criteria such as <code>LogGroupNamePrefix NOT IN ["/aws/containerinsights",
205
- * "/aws/ecs/containerinsights", "/aws/application-signals/data"]</code>.</p>
229
+ * those features by accident, we recommend that you exclude the underlying log-groups through
230
+ * a selection-criteria such as <code>LogGroupNamePrefix NOT IN ["/aws/containerinsights",
231
+ * "/aws/ecs/containerinsights", "/aws/application-signals/data"]</code>.</p>
206
232
  * </important>
207
233
  * <p>Each account can have either one account-level metric extraction policy that applies to
208
234
  * all log groups, or up to 5 policies that are each scoped to a subset of log groups with the
209
- * <code>selectionCriteria</code> parameter. The selection criteria supports filtering by <code>LogGroupName</code> and
210
- * <code>LogGroupNamePrefix</code> using the operators <code>IN</code> and <code>NOT IN</code>. You can specify up to 50 values in each
211
- * <code>IN</code> or <code>NOT IN</code> list.</p>
235
+ * <code>selectionCriteria</code> parameter. The selection criteria supports filtering by
236
+ * <code>LogGroupName</code> and <code>LogGroupNamePrefix</code> using the operators
237
+ * <code>IN</code> and <code>NOT IN</code>. You can specify up to 50 values in each
238
+ * <code>IN</code> or <code>NOT IN</code> list.</p>
212
239
  * <p>The selection criteria can be specified in these formats:</p>
213
240
  * <p>
214
241
  * <code>LogGroupName IN ["log-group-1", "log-group-2"]</code>
@@ -218,25 +245,31 @@ declare const PutAccountPolicyCommand_base: {
218
245
  * </p>
219
246
  * <p>If you have multiple account-level metric extraction policies with selection criteria, no
220
247
  * two of them can have overlapping criteria. For example, if you have one policy with selection
221
- * criteria <code>LogGroupNamePrefix IN ["my-log"]</code>, you can't have another metric extraction policy
222
- * with selection criteria <code>LogGroupNamePrefix IN ["/my-log-prod"]</code> or <code>LogGroupNamePrefix IN
223
- * ["/my-logging"]</code>, as the set of log groups matching these prefixes would be a subset of the log
224
- * groups matching the first policy's prefix, creating an overlap.</p>
225
- * <p>When using <code>NOT IN</code>, only one policy with this operator is allowed per account.</p>
226
- * <p>When combining policies with <code>IN</code> and <code>NOT IN</code> operators, the overlap check ensures that
227
- * policies don't have conflicting effects. Two policies with <code>IN</code> and <code>NOT IN</code> operators do not
228
- * overlap if and only if every value in the <code>IN </code>policy is completely contained within some value
229
- * in the <code>NOT IN</code> policy. For example:</p>
248
+ * criteria <code>LogGroupNamePrefix IN ["my-log"]</code>, you can't have another metric
249
+ * extraction policy with selection criteria <code>LogGroupNamePrefix IN ["/my-log-prod"]</code>
250
+ * or <code>LogGroupNamePrefix IN ["/my-logging"]</code>, as the set of log groups matching these
251
+ * prefixes would be a subset of the log groups matching the first policy's prefix, creating an
252
+ * overlap.</p>
253
+ * <p>When using <code>NOT IN</code>, only one policy with this operator is allowed per
254
+ * account.</p>
255
+ * <p>When combining policies with <code>IN</code> and <code>NOT IN</code> operators, the
256
+ * overlap check ensures that policies don't have conflicting effects. Two policies with
257
+ * <code>IN</code> and <code>NOT IN</code> operators do not overlap if and only if every value
258
+ * in the <code>IN </code>policy is completely contained within some value in the <code>NOT
259
+ * IN</code> policy. For example:</p>
230
260
  * <ul>
231
261
  * <li>
232
- * <p>If you have a <code>NOT IN</code> policy for prefix <code>"/aws/lambda"</code>, you can create an <code>IN</code> policy for
233
- * the exact log group name <code>"/aws/lambda/function1"</code> because the set of log groups matching
234
- * <code>"/aws/lambda/function1"</code> is a subset of the log groups matching <code>"/aws/lambda"</code>.</p>
262
+ * <p>If you have a <code>NOT IN</code> policy for prefix <code>"/aws/lambda"</code>, you
263
+ * can create an <code>IN</code> policy for the exact log group name
264
+ * <code>"/aws/lambda/function1"</code> because the set of log groups matching
265
+ * <code>"/aws/lambda/function1"</code> is a subset of the log groups matching
266
+ * <code>"/aws/lambda"</code>.</p>
235
267
  * </li>
236
268
  * <li>
237
- * <p>If you have a <code>NOT IN</code> policy for prefix <code>"/aws/lambda"</code>, you cannot create an <code>IN</code> policy
238
- * for prefix <code>"/aws"</code> because the set of log groups matching <code>"/aws"</code> is not a subset of the log
239
- * groups matching <code>"/aws/lambda"</code>.</p>
269
+ * <p>If you have a <code>NOT IN</code> policy for prefix <code>"/aws/lambda"</code>, you
270
+ * cannot create an <code>IN</code> policy for prefix <code>"/aws"</code> because the set of
271
+ * log groups matching <code>"/aws"</code> is not a subset of the log groups matching
272
+ * <code>"/aws/lambda"</code>.</p>
240
273
  * </li>
241
274
  * </ul>
242
275
  * @example
@@ -244,6 +277,8 @@ declare const PutAccountPolicyCommand_base: {
244
277
  * ```javascript
245
278
  * import { CloudWatchLogsClient, PutAccountPolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
246
279
  * // const { CloudWatchLogsClient, PutAccountPolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
280
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
281
+ * const config = {}; // type is CloudWatchLogsClientConfig
247
282
  * const client = new CloudWatchLogsClient(config);
248
283
  * const input = { // PutAccountPolicyRequest
249
284
  * policyName: "STRING_VALUE", // required
@@ -54,6 +54,8 @@ declare const PutDataProtectionPolicyCommand_base: {
54
54
  * ```javascript
55
55
  * import { CloudWatchLogsClient, PutDataProtectionPolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
56
56
  * // const { CloudWatchLogsClient, PutDataProtectionPolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
57
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
58
+ * const config = {}; // type is CloudWatchLogsClientConfig
57
59
  * const client = new CloudWatchLogsClient(config);
58
60
  * const input = { // PutDataProtectionPolicyRequest
59
61
  * logGroupIdentifier: "STRING_VALUE", // required
@@ -30,7 +30,8 @@ declare const PutDeliveryDestinationCommand_base: {
30
30
  * <p>Creates or updates a logical <i>delivery destination</i>. A delivery
31
31
  * destination is an Amazon Web Services resource that represents an Amazon Web Services service
32
32
  * that logs can be sent to. CloudWatch Logs, Amazon S3, and Firehose are
33
- * supported as logs delivery destinations and X-Ray as the trace delivery destination.</p>
33
+ * supported as logs delivery destinations and X-Ray as the trace delivery
34
+ * destination.</p>
34
35
  * <p>To configure logs delivery between a supported Amazon Web Services service and a
35
36
  * destination, you must do the following:</p>
36
37
  * <ul>
@@ -69,6 +70,8 @@ declare const PutDeliveryDestinationCommand_base: {
69
70
  * ```javascript
70
71
  * import { CloudWatchLogsClient, PutDeliveryDestinationCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
71
72
  * // const { CloudWatchLogsClient, PutDeliveryDestinationCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
73
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
74
+ * const config = {}; // type is CloudWatchLogsClientConfig
72
75
  * const client = new CloudWatchLogsClient(config);
73
76
  * const input = { // PutDeliveryDestinationRequest
74
77
  * name: "STRING_VALUE", // required
@@ -61,6 +61,8 @@ declare const PutDeliveryDestinationPolicyCommand_base: {
61
61
  * ```javascript
62
62
  * import { CloudWatchLogsClient, PutDeliveryDestinationPolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
63
63
  * // const { CloudWatchLogsClient, PutDeliveryDestinationPolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
64
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
65
+ * const config = {}; // type is CloudWatchLogsClientConfig
64
66
  * const client = new CloudWatchLogsClient(config);
65
67
  * const input = { // PutDeliveryDestinationPolicyRequest
66
68
  * deliveryDestinationName: "STRING_VALUE", // required
@@ -66,6 +66,8 @@ declare const PutDeliverySourceCommand_base: {
66
66
  * ```javascript
67
67
  * import { CloudWatchLogsClient, PutDeliverySourceCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
68
68
  * // const { CloudWatchLogsClient, PutDeliverySourceCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
69
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
70
+ * const config = {}; // type is CloudWatchLogsClientConfig
69
71
  * const client = new CloudWatchLogsClient(config);
70
72
  * const input = { // PutDeliverySourceRequest
71
73
  * name: "STRING_VALUE", // required
@@ -43,6 +43,8 @@ declare const PutDestinationCommand_base: {
43
43
  * ```javascript
44
44
  * import { CloudWatchLogsClient, PutDestinationCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
45
45
  * // const { CloudWatchLogsClient, PutDestinationCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
46
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
47
+ * const config = {}; // type is CloudWatchLogsClientConfig
46
48
  * const client = new CloudWatchLogsClient(config);
47
49
  * const input = { // PutDestinationRequest
48
50
  * destinationName: "STRING_VALUE", // required
@@ -36,6 +36,8 @@ declare const PutDestinationPolicyCommand_base: {
36
36
  * ```javascript
37
37
  * import { CloudWatchLogsClient, PutDestinationPolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
38
38
  * // const { CloudWatchLogsClient, PutDestinationPolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
39
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
40
+ * const config = {}; // type is CloudWatchLogsClientConfig
39
41
  * const client = new CloudWatchLogsClient(config);
40
42
  * const input = { // PutDestinationPolicyRequest
41
43
  * destinationName: "STRING_VALUE", // required
@@ -45,6 +45,32 @@ declare const PutIndexPolicyCommand_base: {
45
45
  * </code> or <code>requestId IN [<i>value</i>,
46
46
  * <i>value</i>, ...]</code> will process fewer log events to reduce costs, and
47
47
  * have improved performance.</p>
48
+ * <p>CloudWatch Logs provides default field indexes for all log groups in the Standard log
49
+ * class. Default field indexes are automatically available for the following fields: </p>
50
+ * <ul>
51
+ * <li>
52
+ * <p>
53
+ * <code>@aws.region</code>
54
+ * </p>
55
+ * </li>
56
+ * <li>
57
+ * <p>
58
+ * <code>@aws.account</code>
59
+ * </p>
60
+ * </li>
61
+ * <li>
62
+ * <p>
63
+ * <code>@source.log</code>
64
+ * </p>
65
+ * </li>
66
+ * <li>
67
+ * <p>
68
+ * <code>traceId</code>
69
+ * </p>
70
+ * </li>
71
+ * </ul>
72
+ * <p>Default field indexes are in addition to any custom field indexes you define within your
73
+ * policy. Default field indexes are not counted towards your field index quota. </p>
48
74
  * <p>Each index policy has the following quotas and restrictions:</p>
49
75
  * <ul>
50
76
  * <li>
@@ -66,6 +92,8 @@ declare const PutIndexPolicyCommand_base: {
66
92
  * ```javascript
67
93
  * import { CloudWatchLogsClient, PutIndexPolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
68
94
  * // const { CloudWatchLogsClient, PutIndexPolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
95
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
96
+ * const config = {}; // type is CloudWatchLogsClientConfig
69
97
  * const client = new CloudWatchLogsClient(config);
70
98
  * const input = { // PutIndexPolicyRequest
71
99
  * logGroupIdentifier: "STRING_VALUE", // required
@@ -40,6 +40,8 @@ declare const PutIntegrationCommand_base: {
40
40
  * ```javascript
41
41
  * import { CloudWatchLogsClient, PutIntegrationCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
42
42
  * // const { CloudWatchLogsClient, PutIntegrationCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
43
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
44
+ * const config = {}; // type is CloudWatchLogsClientConfig
43
45
  * const client = new CloudWatchLogsClient(config);
44
46
  * const input = { // PutIntegrationRequest
45
47
  * integrationName: "STRING_VALUE", // required
@@ -84,6 +84,8 @@ declare const PutLogEventsCommand_base: {
84
84
  * ```javascript
85
85
  * import { CloudWatchLogsClient, PutLogEventsCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
86
86
  * // const { CloudWatchLogsClient, PutLogEventsCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
87
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
88
+ * const config = {}; // type is CloudWatchLogsClientConfig
87
89
  * const client = new CloudWatchLogsClient(config);
88
90
  * const input = { // PutLogEventsRequest
89
91
  * logGroupName: "STRING_VALUE", // required
@@ -56,6 +56,8 @@ declare const PutMetricFilterCommand_base: {
56
56
  * ```javascript
57
57
  * import { CloudWatchLogsClient, PutMetricFilterCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
58
58
  * // const { CloudWatchLogsClient, PutMetricFilterCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
59
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
60
+ * const config = {}; // type is CloudWatchLogsClientConfig
59
61
  * const client = new CloudWatchLogsClient(config);
60
62
  * const input = { // PutMetricFilterRequest
61
63
  * logGroupName: "STRING_VALUE", // required
@@ -74,6 +76,10 @@ declare const PutMetricFilterCommand_base: {
74
76
  * },
75
77
  * ],
76
78
  * applyOnTransformedLogs: true || false,
79
+ * fieldSelectionCriteria: "STRING_VALUE",
80
+ * emitSystemFieldDimensions: [ // EmitSystemFields
81
+ * "STRING_VALUE",
82
+ * ],
77
83
  * };
78
84
  * const command = new PutMetricFilterCommand(input);
79
85
  * const response = await client.send(command);
@@ -43,6 +43,8 @@ declare const PutQueryDefinitionCommand_base: {
43
43
  * ```javascript
44
44
  * import { CloudWatchLogsClient, PutQueryDefinitionCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
45
45
  * // const { CloudWatchLogsClient, PutQueryDefinitionCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
46
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
47
+ * const config = {}; // type is CloudWatchLogsClientConfig
46
48
  * const client = new CloudWatchLogsClient(config);
47
49
  * const input = { // PutQueryDefinitionRequest
48
50
  * queryLanguage: "CWLI" || "SQL" || "PPL",
@@ -35,6 +35,8 @@ declare const PutResourcePolicyCommand_base: {
35
35
  * ```javascript
36
36
  * import { CloudWatchLogsClient, PutResourcePolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
37
37
  * // const { CloudWatchLogsClient, PutResourcePolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
38
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
39
+ * const config = {}; // type is CloudWatchLogsClientConfig
38
40
  * const client = new CloudWatchLogsClient(config);
39
41
  * const input = { // PutResourcePolicyRequest
40
42
  * policyName: "STRING_VALUE",
@@ -52,6 +52,8 @@ declare const PutRetentionPolicyCommand_base: {
52
52
  * ```javascript
53
53
  * import { CloudWatchLogsClient, PutRetentionPolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
54
54
  * // const { CloudWatchLogsClient, PutRetentionPolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
55
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
56
+ * const config = {}; // type is CloudWatchLogsClientConfig
55
57
  * const client = new CloudWatchLogsClient(config);
56
58
  * const input = { // PutRetentionPolicyRequest
57
59
  * logGroupName: "STRING_VALUE", // required
@@ -67,6 +67,8 @@ declare const PutSubscriptionFilterCommand_base: {
67
67
  * ```javascript
68
68
  * import { CloudWatchLogsClient, PutSubscriptionFilterCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
69
69
  * // const { CloudWatchLogsClient, PutSubscriptionFilterCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
70
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
71
+ * const config = {}; // type is CloudWatchLogsClientConfig
70
72
  * const client = new CloudWatchLogsClient(config);
71
73
  * const input = { // PutSubscriptionFilterRequest
72
74
  * logGroupName: "STRING_VALUE", // required
@@ -76,6 +78,10 @@ declare const PutSubscriptionFilterCommand_base: {
76
78
  * roleArn: "STRING_VALUE",
77
79
  * distribution: "Random" || "ByLogStream",
78
80
  * applyOnTransformedLogs: true || false,
81
+ * fieldSelectionCriteria: "STRING_VALUE",
82
+ * emitSystemFields: [ // EmitSystemFields
83
+ * "STRING_VALUE",
84
+ * ],
79
85
  * };
80
86
  * const command = new PutSubscriptionFilterCommand(input);
81
87
  * const response = await client.send(command);
@@ -57,6 +57,8 @@ declare const PutTransformerCommand_base: {
57
57
  * ```javascript
58
58
  * import { CloudWatchLogsClient, PutTransformerCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
59
59
  * // const { CloudWatchLogsClient, PutTransformerCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
60
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
61
+ * const config = {}; // type is CloudWatchLogsClientConfig
60
62
  * const client = new CloudWatchLogsClient(config);
61
63
  * const input = { // PutTransformerRequest
62
64
  * logGroupIdentifier: "STRING_VALUE", // required
@@ -76,6 +76,8 @@ declare const StartLiveTailCommand_base: {
76
76
  * ```javascript
77
77
  * import { CloudWatchLogsClient, StartLiveTailCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
78
78
  * // const { CloudWatchLogsClient, StartLiveTailCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
79
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
80
+ * const config = {}; // type is CloudWatchLogsClientConfig
79
81
  * const client = new CloudWatchLogsClient(config);
80
82
  * const input = { // StartLiveTailRequest
81
83
  * logGroupIdentifiers: [ // StartLiveTailLogGroupIdentifiers // required
@@ -70,6 +70,8 @@ declare const StartQueryCommand_base: {
70
70
  * ```javascript
71
71
  * import { CloudWatchLogsClient, StartQueryCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
72
72
  * // const { CloudWatchLogsClient, StartQueryCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
73
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
74
+ * const config = {}; // type is CloudWatchLogsClientConfig
73
75
  * const client = new CloudWatchLogsClient(config);
74
76
  * const input = { // StartQueryRequest
75
77
  * queryLanguage: "CWLI" || "SQL" || "PPL",
@@ -35,6 +35,8 @@ declare const StopQueryCommand_base: {
35
35
  * ```javascript
36
36
  * import { CloudWatchLogsClient, StopQueryCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
37
37
  * // const { CloudWatchLogsClient, StopQueryCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
38
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
39
+ * const config = {}; // type is CloudWatchLogsClientConfig
38
40
  * const client = new CloudWatchLogsClient(config);
39
41
  * const input = { // StopQueryRequest
40
42
  * queryId: "STRING_VALUE", // required
@@ -48,6 +48,8 @@ declare const TagLogGroupCommand_base: {
48
48
  * ```javascript
49
49
  * import { CloudWatchLogsClient, TagLogGroupCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
50
50
  * // const { CloudWatchLogsClient, TagLogGroupCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
51
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
52
+ * const config = {}; // type is CloudWatchLogsClientConfig
51
53
  * const client = new CloudWatchLogsClient(config);
52
54
  * const input = { // TagLogGroupRequest
53
55
  * logGroupName: "STRING_VALUE", // required
@@ -45,6 +45,8 @@ declare const TagResourceCommand_base: {
45
45
  * ```javascript
46
46
  * import { CloudWatchLogsClient, TagResourceCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
47
47
  * // const { CloudWatchLogsClient, TagResourceCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
48
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
49
+ * const config = {}; // type is CloudWatchLogsClientConfig
48
50
  * const client = new CloudWatchLogsClient(config);
49
51
  * const input = { // TagResourceRequest
50
52
  * resourceArn: "STRING_VALUE", // required
@@ -34,6 +34,8 @@ declare const TestMetricFilterCommand_base: {
34
34
  * ```javascript
35
35
  * import { CloudWatchLogsClient, TestMetricFilterCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
36
36
  * // const { CloudWatchLogsClient, TestMetricFilterCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
37
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
38
+ * const config = {}; // type is CloudWatchLogsClientConfig
37
39
  * const client = new CloudWatchLogsClient(config);
38
40
  * const input = { // TestMetricFilterRequest
39
41
  * filterPattern: "STRING_VALUE", // required
@@ -35,6 +35,8 @@ declare const TestTransformerCommand_base: {
35
35
  * ```javascript
36
36
  * import { CloudWatchLogsClient, TestTransformerCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
37
37
  * // const { CloudWatchLogsClient, TestTransformerCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
38
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
39
+ * const config = {}; // type is CloudWatchLogsClientConfig
38
40
  * const client = new CloudWatchLogsClient(config);
39
41
  * const input = { // TestTransformerRequest
40
42
  * transformerConfig: [ // Processors // required