@aws-sdk/client-cloudwatch-logs 3.808.0 → 3.812.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -700,6 +700,14 @@ ListLogAnomalyDetectors
700
700
 
701
701
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/ListLogAnomalyDetectorsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/ListLogAnomalyDetectorsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/ListLogAnomalyDetectorsCommandOutput/)
702
702
 
703
+ </details>
704
+ <details>
705
+ <summary>
706
+ ListLogGroups
707
+ </summary>
708
+
709
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/ListLogGroupsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/ListLogGroupsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/ListLogGroupsCommandOutput/)
710
+
703
711
  </details>
704
712
  <details>
705
713
  <summary>
package/dist-cjs/index.js CHANGED
@@ -102,6 +102,7 @@ __export(index_exports, {
102
102
  ListAnomaliesCommand: () => ListAnomaliesCommand,
103
103
  ListIntegrationsCommand: () => ListIntegrationsCommand,
104
104
  ListLogAnomalyDetectorsCommand: () => ListLogAnomalyDetectorsCommand,
105
+ ListLogGroupsCommand: () => ListLogGroupsCommand,
105
106
  ListLogGroupsForQueryCommand: () => ListLogGroupsForQueryCommand,
106
107
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
107
108
  ListTagsLogGroupCommand: () => ListTagsLogGroupCommand,
@@ -1265,6 +1266,12 @@ var se_ListLogAnomalyDetectorsCommand = /* @__PURE__ */ __name(async (input, con
1265
1266
  body = JSON.stringify((0, import_smithy_client._json)(input));
1266
1267
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1267
1268
  }, "se_ListLogAnomalyDetectorsCommand");
1269
+ var se_ListLogGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
1270
+ const headers = sharedHeaders("ListLogGroups");
1271
+ let body;
1272
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1273
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1274
+ }, "se_ListLogGroupsCommand");
1268
1275
  var se_ListLogGroupsForQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
1269
1276
  const headers = sharedHeaders("ListLogGroupsForQuery");
1270
1277
  let body;
@@ -2152,6 +2159,19 @@ var de_ListLogAnomalyDetectorsCommand = /* @__PURE__ */ __name(async (output, co
2152
2159
  };
2153
2160
  return response;
2154
2161
  }, "de_ListLogAnomalyDetectorsCommand");
2162
+ var de_ListLogGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
2163
+ if (output.statusCode >= 300) {
2164
+ return de_CommandError(output, context);
2165
+ }
2166
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
2167
+ let contents = {};
2168
+ contents = (0, import_smithy_client._json)(data);
2169
+ const response = {
2170
+ $metadata: deserializeMetadata(output),
2171
+ ...contents
2172
+ };
2173
+ return response;
2174
+ }, "de_ListLogGroupsCommand");
2155
2175
  var de_ListLogGroupsForQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
2156
2176
  if (output.statusCode >= 300) {
2157
2177
  return de_CommandError(output, context);
@@ -3803,6 +3823,21 @@ var ListLogAnomalyDetectorsCommand = class extends import_smithy_client.Command.
3803
3823
  }
3804
3824
  };
3805
3825
 
3826
+ // src/commands/ListLogGroupsCommand.ts
3827
+
3828
+
3829
+
3830
+ var ListLogGroupsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
3831
+ return [
3832
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3833
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3834
+ ];
3835
+ }).s("Logs_20140328", "ListLogGroups", {}).n("CloudWatchLogsClient", "ListLogGroupsCommand").f(void 0, void 0).ser(se_ListLogGroupsCommand).de(de_ListLogGroupsCommand).build() {
3836
+ static {
3837
+ __name(this, "ListLogGroupsCommand");
3838
+ }
3839
+ };
3840
+
3806
3841
  // src/commands/ListLogGroupsForQueryCommand.ts
3807
3842
 
3808
3843
 
@@ -4335,6 +4370,7 @@ var commands = {
4335
4370
  ListAnomaliesCommand,
4336
4371
  ListIntegrationsCommand,
4337
4372
  ListLogAnomalyDetectorsCommand,
4373
+ ListLogGroupsCommand,
4338
4374
  ListLogGroupsForQueryCommand,
4339
4375
  ListTagsForResourceCommand,
4340
4376
  ListTagsLogGroupCommand,
@@ -4495,6 +4531,7 @@ var paginateListLogGroupsForQuery = (0, import_core.createPaginator)(CloudWatchL
4495
4531
  ListAnomaliesCommand,
4496
4532
  ListIntegrationsCommand,
4497
4533
  ListLogAnomalyDetectorsCommand,
4534
+ ListLogGroupsCommand,
4498
4535
  ListLogGroupsForQueryCommand,
4499
4536
  ListTagsForResourceCommand,
4500
4537
  ListTagsLogGroupCommand,
@@ -58,6 +58,7 @@ import { GetTransformerCommand, } from "./commands/GetTransformerCommand";
58
58
  import { ListAnomaliesCommand, } from "./commands/ListAnomaliesCommand";
59
59
  import { ListIntegrationsCommand, } from "./commands/ListIntegrationsCommand";
60
60
  import { ListLogAnomalyDetectorsCommand, } from "./commands/ListLogAnomalyDetectorsCommand";
61
+ import { ListLogGroupsCommand, } from "./commands/ListLogGroupsCommand";
61
62
  import { ListLogGroupsForQueryCommand, } from "./commands/ListLogGroupsForQueryCommand";
62
63
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
63
64
  import { ListTagsLogGroupCommand, } from "./commands/ListTagsLogGroupCommand";
@@ -148,6 +149,7 @@ const commands = {
148
149
  ListAnomaliesCommand,
149
150
  ListIntegrationsCommand,
150
151
  ListLogAnomalyDetectorsCommand,
152
+ ListLogGroupsCommand,
151
153
  ListLogGroupsForQueryCommand,
152
154
  ListTagsForResourceCommand,
153
155
  ListTagsLogGroupCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListLogGroupsCommand, se_ListLogGroupsCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ListLogGroupsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Logs_20140328", "ListLogGroups", {})
17
+ .n("CloudWatchLogsClient", "ListLogGroupsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListLogGroupsCommand)
20
+ .de(de_ListLogGroupsCommand)
21
+ .build() {
22
+ }
@@ -56,6 +56,7 @@ export * from "./GetTransformerCommand";
56
56
  export * from "./ListAnomaliesCommand";
57
57
  export * from "./ListIntegrationsCommand";
58
58
  export * from "./ListLogAnomalyDetectorsCommand";
59
+ export * from "./ListLogGroupsCommand";
59
60
  export * from "./ListLogGroupsForQueryCommand";
60
61
  export * from "./ListTagsForResourceCommand";
61
62
  export * from "./ListTagsLogGroupCommand";
@@ -352,6 +352,12 @@ export const se_ListLogAnomalyDetectorsCommand = async (input, context) => {
352
352
  body = JSON.stringify(_json(input));
353
353
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
354
354
  };
355
+ export const se_ListLogGroupsCommand = async (input, context) => {
356
+ const headers = sharedHeaders("ListLogGroups");
357
+ let body;
358
+ body = JSON.stringify(_json(input));
359
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
360
+ };
355
361
  export const se_ListLogGroupsForQueryCommand = async (input, context) => {
356
362
  const headers = sharedHeaders("ListLogGroupsForQuery");
357
363
  let body;
@@ -1239,6 +1245,19 @@ export const de_ListLogAnomalyDetectorsCommand = async (output, context) => {
1239
1245
  };
1240
1246
  return response;
1241
1247
  };
1248
+ export const de_ListLogGroupsCommand = async (output, context) => {
1249
+ if (output.statusCode >= 300) {
1250
+ return de_CommandError(output, context);
1251
+ }
1252
+ const data = await parseBody(output.body, context);
1253
+ let contents = {};
1254
+ contents = _json(data);
1255
+ const response = {
1256
+ $metadata: deserializeMetadata(output),
1257
+ ...contents,
1258
+ };
1259
+ return response;
1260
+ };
1242
1261
  export const de_ListLogGroupsForQueryCommand = async (output, context) => {
1243
1262
  if (output.statusCode >= 300) {
1244
1263
  return de_CommandError(output, context);
@@ -58,6 +58,7 @@ import { GetTransformerCommandInput, GetTransformerCommandOutput } from "./comma
58
58
  import { ListAnomaliesCommandInput, ListAnomaliesCommandOutput } from "./commands/ListAnomaliesCommand";
59
59
  import { ListIntegrationsCommandInput, ListIntegrationsCommandOutput } from "./commands/ListIntegrationsCommand";
60
60
  import { ListLogAnomalyDetectorsCommandInput, ListLogAnomalyDetectorsCommandOutput } from "./commands/ListLogAnomalyDetectorsCommand";
61
+ import { ListLogGroupsCommandInput, ListLogGroupsCommandOutput } from "./commands/ListLogGroupsCommand";
61
62
  import { ListLogGroupsForQueryCommandInput, ListLogGroupsForQueryCommandOutput } from "./commands/ListLogGroupsForQueryCommand";
62
63
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
63
64
  import { ListTagsLogGroupCommandInput, ListTagsLogGroupCommandOutput } from "./commands/ListTagsLogGroupCommand";
@@ -457,6 +458,13 @@ export interface CloudWatchLogs {
457
458
  listLogAnomalyDetectors(args: ListLogAnomalyDetectorsCommandInput, options?: __HttpHandlerOptions): Promise<ListLogAnomalyDetectorsCommandOutput>;
458
459
  listLogAnomalyDetectors(args: ListLogAnomalyDetectorsCommandInput, cb: (err: any, data?: ListLogAnomalyDetectorsCommandOutput) => void): void;
459
460
  listLogAnomalyDetectors(args: ListLogAnomalyDetectorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLogAnomalyDetectorsCommandOutput) => void): void;
461
+ /**
462
+ * @see {@link ListLogGroupsCommand}
463
+ */
464
+ listLogGroups(): Promise<ListLogGroupsCommandOutput>;
465
+ listLogGroups(args: ListLogGroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListLogGroupsCommandOutput>;
466
+ listLogGroups(args: ListLogGroupsCommandInput, cb: (err: any, data?: ListLogGroupsCommandOutput) => void): void;
467
+ listLogGroups(args: ListLogGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLogGroupsCommandOutput) => void): void;
460
468
  /**
461
469
  * @see {@link ListLogGroupsForQueryCommand}
462
470
  */
@@ -66,6 +66,7 @@ import { GetTransformerCommandInput, GetTransformerCommandOutput } from "./comma
66
66
  import { ListAnomaliesCommandInput, ListAnomaliesCommandOutput } from "./commands/ListAnomaliesCommand";
67
67
  import { ListIntegrationsCommandInput, ListIntegrationsCommandOutput } from "./commands/ListIntegrationsCommand";
68
68
  import { ListLogAnomalyDetectorsCommandInput, ListLogAnomalyDetectorsCommandOutput } from "./commands/ListLogAnomalyDetectorsCommand";
69
+ import { ListLogGroupsCommandInput, ListLogGroupsCommandOutput } from "./commands/ListLogGroupsCommand";
69
70
  import { ListLogGroupsForQueryCommandInput, ListLogGroupsForQueryCommandOutput } from "./commands/ListLogGroupsForQueryCommand";
70
71
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
71
72
  import { ListTagsLogGroupCommandInput, ListTagsLogGroupCommandOutput } from "./commands/ListTagsLogGroupCommand";
@@ -103,11 +104,11 @@ export { __Client };
103
104
  /**
104
105
  * @public
105
106
  */
106
- export type ServiceInputTypes = AssociateKmsKeyCommandInput | CancelExportTaskCommandInput | CreateDeliveryCommandInput | CreateExportTaskCommandInput | CreateLogAnomalyDetectorCommandInput | CreateLogGroupCommandInput | CreateLogStreamCommandInput | DeleteAccountPolicyCommandInput | DeleteDataProtectionPolicyCommandInput | DeleteDeliveryCommandInput | DeleteDeliveryDestinationCommandInput | DeleteDeliveryDestinationPolicyCommandInput | DeleteDeliverySourceCommandInput | DeleteDestinationCommandInput | DeleteIndexPolicyCommandInput | DeleteIntegrationCommandInput | DeleteLogAnomalyDetectorCommandInput | DeleteLogGroupCommandInput | DeleteLogStreamCommandInput | DeleteMetricFilterCommandInput | DeleteQueryDefinitionCommandInput | DeleteResourcePolicyCommandInput | DeleteRetentionPolicyCommandInput | DeleteSubscriptionFilterCommandInput | DeleteTransformerCommandInput | DescribeAccountPoliciesCommandInput | DescribeConfigurationTemplatesCommandInput | DescribeDeliveriesCommandInput | DescribeDeliveryDestinationsCommandInput | DescribeDeliverySourcesCommandInput | DescribeDestinationsCommandInput | DescribeExportTasksCommandInput | DescribeFieldIndexesCommandInput | DescribeIndexPoliciesCommandInput | DescribeLogGroupsCommandInput | DescribeLogStreamsCommandInput | DescribeMetricFiltersCommandInput | DescribeQueriesCommandInput | DescribeQueryDefinitionsCommandInput | DescribeResourcePoliciesCommandInput | DescribeSubscriptionFiltersCommandInput | DisassociateKmsKeyCommandInput | FilterLogEventsCommandInput | GetDataProtectionPolicyCommandInput | GetDeliveryCommandInput | GetDeliveryDestinationCommandInput | GetDeliveryDestinationPolicyCommandInput | GetDeliverySourceCommandInput | GetIntegrationCommandInput | GetLogAnomalyDetectorCommandInput | GetLogEventsCommandInput | GetLogGroupFieldsCommandInput | GetLogRecordCommandInput | GetQueryResultsCommandInput | GetTransformerCommandInput | ListAnomaliesCommandInput | ListIntegrationsCommandInput | ListLogAnomalyDetectorsCommandInput | ListLogGroupsForQueryCommandInput | ListTagsForResourceCommandInput | ListTagsLogGroupCommandInput | PutAccountPolicyCommandInput | PutDataProtectionPolicyCommandInput | PutDeliveryDestinationCommandInput | PutDeliveryDestinationPolicyCommandInput | PutDeliverySourceCommandInput | PutDestinationCommandInput | PutDestinationPolicyCommandInput | PutIndexPolicyCommandInput | PutIntegrationCommandInput | PutLogEventsCommandInput | PutMetricFilterCommandInput | PutQueryDefinitionCommandInput | PutResourcePolicyCommandInput | PutRetentionPolicyCommandInput | PutSubscriptionFilterCommandInput | PutTransformerCommandInput | StartLiveTailCommandInput | StartQueryCommandInput | StopQueryCommandInput | TagLogGroupCommandInput | TagResourceCommandInput | TestMetricFilterCommandInput | TestTransformerCommandInput | UntagLogGroupCommandInput | UntagResourceCommandInput | UpdateAnomalyCommandInput | UpdateDeliveryConfigurationCommandInput | UpdateLogAnomalyDetectorCommandInput;
107
+ export type ServiceInputTypes = AssociateKmsKeyCommandInput | CancelExportTaskCommandInput | CreateDeliveryCommandInput | CreateExportTaskCommandInput | CreateLogAnomalyDetectorCommandInput | CreateLogGroupCommandInput | CreateLogStreamCommandInput | DeleteAccountPolicyCommandInput | DeleteDataProtectionPolicyCommandInput | DeleteDeliveryCommandInput | DeleteDeliveryDestinationCommandInput | DeleteDeliveryDestinationPolicyCommandInput | DeleteDeliverySourceCommandInput | DeleteDestinationCommandInput | DeleteIndexPolicyCommandInput | DeleteIntegrationCommandInput | DeleteLogAnomalyDetectorCommandInput | DeleteLogGroupCommandInput | DeleteLogStreamCommandInput | DeleteMetricFilterCommandInput | DeleteQueryDefinitionCommandInput | DeleteResourcePolicyCommandInput | DeleteRetentionPolicyCommandInput | DeleteSubscriptionFilterCommandInput | DeleteTransformerCommandInput | DescribeAccountPoliciesCommandInput | DescribeConfigurationTemplatesCommandInput | DescribeDeliveriesCommandInput | DescribeDeliveryDestinationsCommandInput | DescribeDeliverySourcesCommandInput | DescribeDestinationsCommandInput | DescribeExportTasksCommandInput | DescribeFieldIndexesCommandInput | DescribeIndexPoliciesCommandInput | DescribeLogGroupsCommandInput | DescribeLogStreamsCommandInput | DescribeMetricFiltersCommandInput | DescribeQueriesCommandInput | DescribeQueryDefinitionsCommandInput | DescribeResourcePoliciesCommandInput | DescribeSubscriptionFiltersCommandInput | DisassociateKmsKeyCommandInput | FilterLogEventsCommandInput | GetDataProtectionPolicyCommandInput | GetDeliveryCommandInput | GetDeliveryDestinationCommandInput | GetDeliveryDestinationPolicyCommandInput | GetDeliverySourceCommandInput | GetIntegrationCommandInput | GetLogAnomalyDetectorCommandInput | GetLogEventsCommandInput | GetLogGroupFieldsCommandInput | GetLogRecordCommandInput | GetQueryResultsCommandInput | GetTransformerCommandInput | ListAnomaliesCommandInput | ListIntegrationsCommandInput | ListLogAnomalyDetectorsCommandInput | ListLogGroupsCommandInput | ListLogGroupsForQueryCommandInput | ListTagsForResourceCommandInput | ListTagsLogGroupCommandInput | PutAccountPolicyCommandInput | PutDataProtectionPolicyCommandInput | PutDeliveryDestinationCommandInput | PutDeliveryDestinationPolicyCommandInput | PutDeliverySourceCommandInput | PutDestinationCommandInput | PutDestinationPolicyCommandInput | PutIndexPolicyCommandInput | PutIntegrationCommandInput | PutLogEventsCommandInput | PutMetricFilterCommandInput | PutQueryDefinitionCommandInput | PutResourcePolicyCommandInput | PutRetentionPolicyCommandInput | PutSubscriptionFilterCommandInput | PutTransformerCommandInput | StartLiveTailCommandInput | StartQueryCommandInput | StopQueryCommandInput | TagLogGroupCommandInput | TagResourceCommandInput | TestMetricFilterCommandInput | TestTransformerCommandInput | UntagLogGroupCommandInput | UntagResourceCommandInput | UpdateAnomalyCommandInput | UpdateDeliveryConfigurationCommandInput | UpdateLogAnomalyDetectorCommandInput;
107
108
  /**
108
109
  * @public
109
110
  */
110
- export type ServiceOutputTypes = AssociateKmsKeyCommandOutput | CancelExportTaskCommandOutput | CreateDeliveryCommandOutput | CreateExportTaskCommandOutput | CreateLogAnomalyDetectorCommandOutput | CreateLogGroupCommandOutput | CreateLogStreamCommandOutput | DeleteAccountPolicyCommandOutput | DeleteDataProtectionPolicyCommandOutput | DeleteDeliveryCommandOutput | DeleteDeliveryDestinationCommandOutput | DeleteDeliveryDestinationPolicyCommandOutput | DeleteDeliverySourceCommandOutput | DeleteDestinationCommandOutput | DeleteIndexPolicyCommandOutput | DeleteIntegrationCommandOutput | DeleteLogAnomalyDetectorCommandOutput | DeleteLogGroupCommandOutput | DeleteLogStreamCommandOutput | DeleteMetricFilterCommandOutput | DeleteQueryDefinitionCommandOutput | DeleteResourcePolicyCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteSubscriptionFilterCommandOutput | DeleteTransformerCommandOutput | DescribeAccountPoliciesCommandOutput | DescribeConfigurationTemplatesCommandOutput | DescribeDeliveriesCommandOutput | DescribeDeliveryDestinationsCommandOutput | DescribeDeliverySourcesCommandOutput | DescribeDestinationsCommandOutput | DescribeExportTasksCommandOutput | DescribeFieldIndexesCommandOutput | DescribeIndexPoliciesCommandOutput | DescribeLogGroupsCommandOutput | DescribeLogStreamsCommandOutput | DescribeMetricFiltersCommandOutput | DescribeQueriesCommandOutput | DescribeQueryDefinitionsCommandOutput | DescribeResourcePoliciesCommandOutput | DescribeSubscriptionFiltersCommandOutput | DisassociateKmsKeyCommandOutput | FilterLogEventsCommandOutput | GetDataProtectionPolicyCommandOutput | GetDeliveryCommandOutput | GetDeliveryDestinationCommandOutput | GetDeliveryDestinationPolicyCommandOutput | GetDeliverySourceCommandOutput | GetIntegrationCommandOutput | GetLogAnomalyDetectorCommandOutput | GetLogEventsCommandOutput | GetLogGroupFieldsCommandOutput | GetLogRecordCommandOutput | GetQueryResultsCommandOutput | GetTransformerCommandOutput | ListAnomaliesCommandOutput | ListIntegrationsCommandOutput | ListLogAnomalyDetectorsCommandOutput | ListLogGroupsForQueryCommandOutput | ListTagsForResourceCommandOutput | ListTagsLogGroupCommandOutput | PutAccountPolicyCommandOutput | PutDataProtectionPolicyCommandOutput | PutDeliveryDestinationCommandOutput | PutDeliveryDestinationPolicyCommandOutput | PutDeliverySourceCommandOutput | PutDestinationCommandOutput | PutDestinationPolicyCommandOutput | PutIndexPolicyCommandOutput | PutIntegrationCommandOutput | PutLogEventsCommandOutput | PutMetricFilterCommandOutput | PutQueryDefinitionCommandOutput | PutResourcePolicyCommandOutput | PutRetentionPolicyCommandOutput | PutSubscriptionFilterCommandOutput | PutTransformerCommandOutput | StartLiveTailCommandOutput | StartQueryCommandOutput | StopQueryCommandOutput | TagLogGroupCommandOutput | TagResourceCommandOutput | TestMetricFilterCommandOutput | TestTransformerCommandOutput | UntagLogGroupCommandOutput | UntagResourceCommandOutput | UpdateAnomalyCommandOutput | UpdateDeliveryConfigurationCommandOutput | UpdateLogAnomalyDetectorCommandOutput;
111
+ export type ServiceOutputTypes = AssociateKmsKeyCommandOutput | CancelExportTaskCommandOutput | CreateDeliveryCommandOutput | CreateExportTaskCommandOutput | CreateLogAnomalyDetectorCommandOutput | CreateLogGroupCommandOutput | CreateLogStreamCommandOutput | DeleteAccountPolicyCommandOutput | DeleteDataProtectionPolicyCommandOutput | DeleteDeliveryCommandOutput | DeleteDeliveryDestinationCommandOutput | DeleteDeliveryDestinationPolicyCommandOutput | DeleteDeliverySourceCommandOutput | DeleteDestinationCommandOutput | DeleteIndexPolicyCommandOutput | DeleteIntegrationCommandOutput | DeleteLogAnomalyDetectorCommandOutput | DeleteLogGroupCommandOutput | DeleteLogStreamCommandOutput | DeleteMetricFilterCommandOutput | DeleteQueryDefinitionCommandOutput | DeleteResourcePolicyCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteSubscriptionFilterCommandOutput | DeleteTransformerCommandOutput | DescribeAccountPoliciesCommandOutput | DescribeConfigurationTemplatesCommandOutput | DescribeDeliveriesCommandOutput | DescribeDeliveryDestinationsCommandOutput | DescribeDeliverySourcesCommandOutput | DescribeDestinationsCommandOutput | DescribeExportTasksCommandOutput | DescribeFieldIndexesCommandOutput | DescribeIndexPoliciesCommandOutput | DescribeLogGroupsCommandOutput | DescribeLogStreamsCommandOutput | DescribeMetricFiltersCommandOutput | DescribeQueriesCommandOutput | DescribeQueryDefinitionsCommandOutput | DescribeResourcePoliciesCommandOutput | DescribeSubscriptionFiltersCommandOutput | DisassociateKmsKeyCommandOutput | FilterLogEventsCommandOutput | GetDataProtectionPolicyCommandOutput | GetDeliveryCommandOutput | GetDeliveryDestinationCommandOutput | GetDeliveryDestinationPolicyCommandOutput | GetDeliverySourceCommandOutput | GetIntegrationCommandOutput | GetLogAnomalyDetectorCommandOutput | GetLogEventsCommandOutput | GetLogGroupFieldsCommandOutput | GetLogRecordCommandOutput | GetQueryResultsCommandOutput | GetTransformerCommandOutput | ListAnomaliesCommandOutput | ListIntegrationsCommandOutput | ListLogAnomalyDetectorsCommandOutput | ListLogGroupsCommandOutput | ListLogGroupsForQueryCommandOutput | ListTagsForResourceCommandOutput | ListTagsLogGroupCommandOutput | PutAccountPolicyCommandOutput | PutDataProtectionPolicyCommandOutput | PutDeliveryDestinationCommandOutput | PutDeliveryDestinationPolicyCommandOutput | PutDeliverySourceCommandOutput | PutDestinationCommandOutput | PutDestinationPolicyCommandOutput | PutIndexPolicyCommandOutput | PutIntegrationCommandOutput | PutLogEventsCommandOutput | PutMetricFilterCommandOutput | PutQueryDefinitionCommandOutput | PutResourcePolicyCommandOutput | PutRetentionPolicyCommandOutput | PutSubscriptionFilterCommandOutput | PutTransformerCommandOutput | StartLiveTailCommandOutput | StartQueryCommandOutput | StopQueryCommandOutput | TagLogGroupCommandOutput | TagResourceCommandOutput | TestMetricFilterCommandOutput | TestTransformerCommandOutput | UntagLogGroupCommandOutput | UntagResourceCommandOutput | UpdateAnomalyCommandOutput | UpdateDeliveryConfigurationCommandOutput | UpdateLogAnomalyDetectorCommandOutput;
111
112
  /**
112
113
  * @public
113
114
  */
@@ -27,7 +27,7 @@ declare const DescribeLogGroupsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Lists the specified log groups. You can list all your log groups or filter the results by prefix.
30
+ * <p>Returns information about log groups. You can return all your log groups or filter the results by prefix.
31
31
  * The results are ASCII-sorted by log group name.</p>
32
32
  * <p>CloudWatch Logs doesn't support IAM policies that control access to the <code>DescribeLogGroups</code> action by using the
33
33
  * <code>aws:ResourceTag/<i>key-name</i>
@@ -55,6 +55,9 @@ declare const DescribeLogGroupsCommand_base: {
55
55
  * limit: Number("int"),
56
56
  * includeLinkedAccounts: true || false,
57
57
  * logGroupClass: "STANDARD" || "INFREQUENT_ACCESS" || "DELIVERY",
58
+ * logGroupIdentifiers: [ // DescribeLogGroupsLogGroupIdentifiers
59
+ * "STRING_VALUE",
60
+ * ],
58
61
  * };
59
62
  * const command = new DescribeLogGroupsCommand(input);
60
63
  * const response = await client.send(command);
@@ -0,0 +1,99 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
4
+ import { ListLogGroupsRequest, ListLogGroupsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListLogGroupsCommand}.
14
+ */
15
+ export interface ListLogGroupsCommandInput extends ListLogGroupsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListLogGroupsCommand}.
21
+ */
22
+ export interface ListLogGroupsCommandOutput extends ListLogGroupsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListLogGroupsCommand_base: {
25
+ new (input: ListLogGroupsCommandInput): import("@smithy/smithy-client").CommandImpl<ListLogGroupsCommandInput, ListLogGroupsCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListLogGroupsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListLogGroupsCommandInput, ListLogGroupsCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a list of log groups in the Region in your account. If you are performing this action in a monitoring account, you can
31
+ * choose to also return log groups from source accounts that are linked to the monitoring account. For more information about using cross-account
32
+ * observability to set up monitoring accounts and source accounts, see
33
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">
34
+ * CloudWatch cross-account observability</a>.</p>
35
+ * <p>You can optionally filter the list by log group class and by using regular expressions in your request to match strings in the log group names.</p>
36
+ * <p>This operation is paginated. By default, your first use of this operation returns 50 results, and includes a token to use in a subsequent operation to return
37
+ * more results.</p>
38
+ * @example
39
+ * Use a bare-bones client and the command you need to make an API call.
40
+ * ```javascript
41
+ * import { CloudWatchLogsClient, ListLogGroupsCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
42
+ * // const { CloudWatchLogsClient, ListLogGroupsCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
43
+ * const client = new CloudWatchLogsClient(config);
44
+ * const input = { // ListLogGroupsRequest
45
+ * logGroupNamePattern: "STRING_VALUE",
46
+ * logGroupClass: "STANDARD" || "INFREQUENT_ACCESS" || "DELIVERY",
47
+ * includeLinkedAccounts: true || false,
48
+ * accountIdentifiers: [ // AccountIds
49
+ * "STRING_VALUE",
50
+ * ],
51
+ * nextToken: "STRING_VALUE",
52
+ * limit: Number("int"),
53
+ * };
54
+ * const command = new ListLogGroupsCommand(input);
55
+ * const response = await client.send(command);
56
+ * // { // ListLogGroupsResponse
57
+ * // logGroups: [ // LogGroupSummaries
58
+ * // { // LogGroupSummary
59
+ * // logGroupName: "STRING_VALUE",
60
+ * // logGroupArn: "STRING_VALUE",
61
+ * // logGroupClass: "STANDARD" || "INFREQUENT_ACCESS" || "DELIVERY",
62
+ * // },
63
+ * // ],
64
+ * // nextToken: "STRING_VALUE",
65
+ * // };
66
+ *
67
+ * ```
68
+ *
69
+ * @param ListLogGroupsCommandInput - {@link ListLogGroupsCommandInput}
70
+ * @returns {@link ListLogGroupsCommandOutput}
71
+ * @see {@link ListLogGroupsCommandInput} for command's `input` shape.
72
+ * @see {@link ListLogGroupsCommandOutput} for command's `response` shape.
73
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
74
+ *
75
+ * @throws {@link InvalidParameterException} (client fault)
76
+ * <p>A parameter is specified incorrectly.</p>
77
+ *
78
+ * @throws {@link ServiceUnavailableException} (server fault)
79
+ * <p>The service cannot complete the request.</p>
80
+ *
81
+ * @throws {@link CloudWatchLogsServiceException}
82
+ * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
83
+ *
84
+ *
85
+ * @public
86
+ */
87
+ export declare class ListLogGroupsCommand extends ListLogGroupsCommand_base {
88
+ /** @internal type navigation helper, not in runtime. */
89
+ protected static __types: {
90
+ api: {
91
+ input: ListLogGroupsRequest;
92
+ output: ListLogGroupsResponse;
93
+ };
94
+ sdk: {
95
+ input: ListLogGroupsCommandInput;
96
+ output: ListLogGroupsCommandOutput;
97
+ };
98
+ };
99
+ }
@@ -56,6 +56,7 @@ export * from "./GetTransformerCommand";
56
56
  export * from "./ListAnomaliesCommand";
57
57
  export * from "./ListIntegrationsCommand";
58
58
  export * from "./ListLogAnomalyDetectorsCommand";
59
+ export * from "./ListLogGroupsCommand";
59
60
  export * from "./ListLogGroupsForQueryCommand";
60
61
  export * from "./ListTagsForResourceCommand";
61
62
  export * from "./ListTagsLogGroupCommand";
@@ -2161,7 +2161,7 @@ export interface DescribeIndexPoliciesResponse {
2161
2161
  */
2162
2162
  export interface DescribeLogGroupsRequest {
2163
2163
  /**
2164
- * <p>When <code>includeLinkedAccounts</code> is set to <code>True</code>, use this parameter to
2164
+ * <p>When <code>includeLinkedAccounts</code> is set to <code>true</code>, use this parameter to
2165
2165
  * specify the list of accounts to search. You can specify as many as 20 account IDs in the array. </p>
2166
2166
  * @public
2167
2167
  */
@@ -2207,18 +2207,21 @@ export interface DescribeLogGroupsRequest {
2207
2207
  */
2208
2208
  limit?: number | undefined;
2209
2209
  /**
2210
- * <p>If you are using a monitoring account, set this to <code>True</code> to have the operation
2210
+ * <p>If you are using a monitoring account, set this to <code>true</code> to have the operation
2211
2211
  * return log groups in
2212
2212
  * the accounts listed in <code>accountIdentifiers</code>.</p>
2213
2213
  * <p>If this parameter is set to <code>true</code> and <code>accountIdentifiers</code>
2214
2214
  *
2215
2215
  * contains a null value, the operation returns all log groups in the monitoring account
2216
2216
  * and all log groups in all source accounts that are linked to the monitoring account. </p>
2217
+ * <p>The default for this parameter is <code>false</code>.</p>
2217
2218
  * @public
2218
2219
  */
2219
2220
  includeLinkedAccounts?: boolean | undefined;
2220
2221
  /**
2221
- * <p>Specifies the log group class for this log group. There are three classes:</p>
2222
+ * <p>Use this parameter to limit the results to only those log groups in the specified log group class. If you omit this parameter, log groups
2223
+ * of all classes can be returned.</p>
2224
+ * <p>Specifies the log group class for this log group. There are three classes:</p>
2222
2225
  * <ul>
2223
2226
  * <li>
2224
2227
  * <p>The <code>Standard</code> log class supports all CloudWatch Logs features.</p>
@@ -2239,6 +2242,14 @@ export interface DescribeLogGroupsRequest {
2239
2242
  * @public
2240
2243
  */
2241
2244
  logGroupClass?: LogGroupClass | undefined;
2245
+ /**
2246
+ * <p>Use this array to filter the list of log groups returned. If you specify this parameter, the only other filter that you can choose to specify is <code>includeLinkedAccounts</code>.</p>
2247
+ * <p>If you are using this operation in a monitoring account, you can specify
2248
+ * the ARNs of log groups in source accounts and in the monitoring account itself. If you are using this operation in an account that is not a cross-account monitoring account, you can specify only
2249
+ * log group names in the same account as the operation.</p>
2250
+ * @public
2251
+ */
2252
+ logGroupIdentifiers?: string[] | undefined;
2242
2253
  }
2243
2254
  /**
2244
2255
  * @public
@@ -2356,9 +2367,7 @@ export interface LogGroup {
2356
2367
  */
2357
2368
  export interface DescribeLogGroupsResponse {
2358
2369
  /**
2359
- * <p>The log groups.</p>
2360
- * <p>If the <code>retentionInDays</code> value is not included for a log group, then that log
2361
- * group's events do not expire.</p>
2370
+ * <p>An array of structures, where each structure contains the information about one log group.</p>
2362
2371
  * @public
2363
2372
  */
2364
2373
  logGroups?: LogGroup[] | undefined;
@@ -5039,6 +5048,103 @@ export interface ListLogAnomalyDetectorsResponse {
5039
5048
  */
5040
5049
  nextToken?: string | undefined;
5041
5050
  }
5051
+ /**
5052
+ * @public
5053
+ */
5054
+ export interface ListLogGroupsRequest {
5055
+ /**
5056
+ * <p>Use this parameter to limit the returned log groups to only those with names that match the pattern that you specify. This parameter
5057
+ * is a regular expression that can match prefixes and substrings, and supports wildcard matching and matching multiple patterns, as in the following examples. </p>
5058
+ * <ul>
5059
+ * <li>
5060
+ * <p>Use <code>^</code> to match log group names by prefix.</p>
5061
+ * </li>
5062
+ * <li>
5063
+ * <p>For a substring match, specify the string to match. All matches are case sensitive</p>
5064
+ * </li>
5065
+ * <li>
5066
+ * <p>To match multiple patterns, separate them with a <code>|</code> as in the example <code>^/aws/lambda|discovery</code>
5067
+ * </p>
5068
+ * </li>
5069
+ * </ul>
5070
+ * <p>You can specify as many as five different regular expression patterns in this field, each of which must be between 3 and 24 characters. You can include the <code>^</code> symbol as many as five times,
5071
+ * and include the <code>|</code> symbol as many as four times.</p>
5072
+ * @public
5073
+ */
5074
+ logGroupNamePattern?: string | undefined;
5075
+ /**
5076
+ * <p>Use this parameter to limit the results to only those log groups in the specified log group class. If you omit this parameter, log groups
5077
+ * of all classes can be returned.</p>
5078
+ * @public
5079
+ */
5080
+ logGroupClass?: LogGroupClass | undefined;
5081
+ /**
5082
+ * <p>If you are using a monitoring account, set this to <code>true</code> to have the operation
5083
+ * return log groups in
5084
+ * the accounts listed in <code>accountIdentifiers</code>.</p>
5085
+ * <p>If this parameter is set to <code>true</code> and <code>accountIdentifiers</code>
5086
+ *
5087
+ * contains a null value, the operation returns all log groups in the monitoring account
5088
+ * and all log groups in all source accounts that are linked to the monitoring account. </p>
5089
+ * <p>The default for this parameter is <code>false</code>.</p>
5090
+ * @public
5091
+ */
5092
+ includeLinkedAccounts?: boolean | undefined;
5093
+ /**
5094
+ * <p>When <code>includeLinkedAccounts</code> is set to <code>true</code>, use this parameter to
5095
+ * specify the list of accounts to search. You can specify as many as 20 account IDs in the array.</p>
5096
+ * @public
5097
+ */
5098
+ accountIdentifiers?: string[] | undefined;
5099
+ /**
5100
+ * <p>The token for the next set of items to return. The token expires after 24 hours.</p>
5101
+ * @public
5102
+ */
5103
+ nextToken?: string | undefined;
5104
+ /**
5105
+ * <p>The maximum number of log groups to return. If you omit this parameter, the default is up to 50 log groups.</p>
5106
+ * @public
5107
+ */
5108
+ limit?: number | undefined;
5109
+ }
5110
+ /**
5111
+ * <p>This structure contains information about one log group in your account.</p>
5112
+ * @public
5113
+ */
5114
+ export interface LogGroupSummary {
5115
+ /**
5116
+ * <p>The name of the log group.</p>
5117
+ * @public
5118
+ */
5119
+ logGroupName?: string | undefined;
5120
+ /**
5121
+ * <p>The Amazon Resource Name (ARN) of the log group.</p>
5122
+ * @public
5123
+ */
5124
+ logGroupArn?: string | undefined;
5125
+ /**
5126
+ * <p>The log group class for this log group. For details about the features supported by each log group class, see
5127
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html">Log classes</a>
5128
+ * </p>
5129
+ * @public
5130
+ */
5131
+ logGroupClass?: LogGroupClass | undefined;
5132
+ }
5133
+ /**
5134
+ * @public
5135
+ */
5136
+ export interface ListLogGroupsResponse {
5137
+ /**
5138
+ * <p>An array of structures, where each structure contains the information about one log group.</p>
5139
+ * @public
5140
+ */
5141
+ logGroups?: LogGroupSummary[] | undefined;
5142
+ /**
5143
+ * <p>The token for the next set of items to return. The token expires after 24 hours.</p>
5144
+ * @public
5145
+ */
5146
+ nextToken?: string | undefined;
5147
+ }
5042
5148
  /**
5043
5149
  * @public
5044
5150
  */
@@ -58,6 +58,7 @@ import { GetTransformerCommandInput, GetTransformerCommandOutput } from "../comm
58
58
  import { ListAnomaliesCommandInput, ListAnomaliesCommandOutput } from "../commands/ListAnomaliesCommand";
59
59
  import { ListIntegrationsCommandInput, ListIntegrationsCommandOutput } from "../commands/ListIntegrationsCommand";
60
60
  import { ListLogAnomalyDetectorsCommandInput, ListLogAnomalyDetectorsCommandOutput } from "../commands/ListLogAnomalyDetectorsCommand";
61
+ import { ListLogGroupsCommandInput, ListLogGroupsCommandOutput } from "../commands/ListLogGroupsCommand";
61
62
  import { ListLogGroupsForQueryCommandInput, ListLogGroupsForQueryCommandOutput } from "../commands/ListLogGroupsForQueryCommand";
62
63
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
63
64
  import { ListTagsLogGroupCommandInput, ListTagsLogGroupCommandOutput } from "../commands/ListTagsLogGroupCommand";
@@ -321,6 +322,10 @@ export declare const se_ListIntegrationsCommand: (input: ListIntegrationsCommand
321
322
  * serializeAws_json1_1ListLogAnomalyDetectorsCommand
322
323
  */
323
324
  export declare const se_ListLogAnomalyDetectorsCommand: (input: ListLogAnomalyDetectorsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
325
+ /**
326
+ * serializeAws_json1_1ListLogGroupsCommand
327
+ */
328
+ export declare const se_ListLogGroupsCommand: (input: ListLogGroupsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
324
329
  /**
325
330
  * serializeAws_json1_1ListLogGroupsForQueryCommand
326
331
  */
@@ -677,6 +682,10 @@ export declare const de_ListIntegrationsCommand: (output: __HttpResponse, contex
677
682
  * deserializeAws_json1_1ListLogAnomalyDetectorsCommand
678
683
  */
679
684
  export declare const de_ListLogAnomalyDetectorsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListLogAnomalyDetectorsCommandOutput>;
685
+ /**
686
+ * deserializeAws_json1_1ListLogGroupsCommand
687
+ */
688
+ export declare const de_ListLogGroupsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListLogGroupsCommandOutput>;
680
689
  /**
681
690
  * deserializeAws_json1_1ListLogGroupsForQueryCommand
682
691
  */
@@ -232,6 +232,10 @@ import {
232
232
  ListLogAnomalyDetectorsCommandInput,
233
233
  ListLogAnomalyDetectorsCommandOutput,
234
234
  } from "./commands/ListLogAnomalyDetectorsCommand";
235
+ import {
236
+ ListLogGroupsCommandInput,
237
+ ListLogGroupsCommandOutput,
238
+ } from "./commands/ListLogGroupsCommand";
235
239
  import {
236
240
  ListLogGroupsForQueryCommandInput,
237
241
  ListLogGroupsForQueryCommandOutput,
@@ -1130,6 +1134,20 @@ export interface CloudWatchLogs {
1130
1134
  options: __HttpHandlerOptions,
1131
1135
  cb: (err: any, data?: ListLogAnomalyDetectorsCommandOutput) => void
1132
1136
  ): void;
1137
+ listLogGroups(): Promise<ListLogGroupsCommandOutput>;
1138
+ listLogGroups(
1139
+ args: ListLogGroupsCommandInput,
1140
+ options?: __HttpHandlerOptions
1141
+ ): Promise<ListLogGroupsCommandOutput>;
1142
+ listLogGroups(
1143
+ args: ListLogGroupsCommandInput,
1144
+ cb: (err: any, data?: ListLogGroupsCommandOutput) => void
1145
+ ): void;
1146
+ listLogGroups(
1147
+ args: ListLogGroupsCommandInput,
1148
+ options: __HttpHandlerOptions,
1149
+ cb: (err: any, data?: ListLogGroupsCommandOutput) => void
1150
+ ): void;
1133
1151
  listLogGroupsForQuery(
1134
1152
  args: ListLogGroupsForQueryCommandInput,
1135
1153
  options?: __HttpHandlerOptions
@@ -282,6 +282,10 @@ import {
282
282
  ListLogAnomalyDetectorsCommandInput,
283
283
  ListLogAnomalyDetectorsCommandOutput,
284
284
  } from "./commands/ListLogAnomalyDetectorsCommand";
285
+ import {
286
+ ListLogGroupsCommandInput,
287
+ ListLogGroupsCommandOutput,
288
+ } from "./commands/ListLogGroupsCommand";
285
289
  import {
286
290
  ListLogGroupsForQueryCommandInput,
287
291
  ListLogGroupsForQueryCommandOutput,
@@ -472,6 +476,7 @@ export type ServiceInputTypes =
472
476
  | ListAnomaliesCommandInput
473
477
  | ListIntegrationsCommandInput
474
478
  | ListLogAnomalyDetectorsCommandInput
479
+ | ListLogGroupsCommandInput
475
480
  | ListLogGroupsForQueryCommandInput
476
481
  | ListTagsForResourceCommandInput
477
482
  | ListTagsLogGroupCommandInput
@@ -562,6 +567,7 @@ export type ServiceOutputTypes =
562
567
  | ListAnomaliesCommandOutput
563
568
  | ListIntegrationsCommandOutput
564
569
  | ListLogAnomalyDetectorsCommandOutput
570
+ | ListLogGroupsCommandOutput
565
571
  | ListLogGroupsForQueryCommandOutput
566
572
  | ListTagsForResourceCommandOutput
567
573
  | ListTagsLogGroupCommandOutput
@@ -0,0 +1,50 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ CloudWatchLogsClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../CloudWatchLogsClient";
8
+ import {
9
+ ListLogGroupsRequest,
10
+ ListLogGroupsResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface ListLogGroupsCommandInput extends ListLogGroupsRequest {}
15
+ export interface ListLogGroupsCommandOutput
16
+ extends ListLogGroupsResponse,
17
+ __MetadataBearer {}
18
+ declare const ListLogGroupsCommand_base: {
19
+ new (
20
+ input: ListLogGroupsCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ ListLogGroupsCommandInput,
23
+ ListLogGroupsCommandOutput,
24
+ CloudWatchLogsClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ ...[input]: [] | [ListLogGroupsCommandInput]
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ ListLogGroupsCommandInput,
32
+ ListLogGroupsCommandOutput,
33
+ CloudWatchLogsClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class ListLogGroupsCommand extends ListLogGroupsCommand_base {
40
+ protected static __types: {
41
+ api: {
42
+ input: ListLogGroupsRequest;
43
+ output: ListLogGroupsResponse;
44
+ };
45
+ sdk: {
46
+ input: ListLogGroupsCommandInput;
47
+ output: ListLogGroupsCommandOutput;
48
+ };
49
+ };
50
+ }
@@ -56,6 +56,7 @@ export * from "./GetTransformerCommand";
56
56
  export * from "./ListAnomaliesCommand";
57
57
  export * from "./ListIntegrationsCommand";
58
58
  export * from "./ListLogAnomalyDetectorsCommand";
59
+ export * from "./ListLogGroupsCommand";
59
60
  export * from "./ListLogGroupsForQueryCommand";
60
61
  export * from "./ListTagsForResourceCommand";
61
62
  export * from "./ListTagsLogGroupCommand";
@@ -564,6 +564,7 @@ export interface DescribeLogGroupsRequest {
564
564
  limit?: number | undefined;
565
565
  includeLinkedAccounts?: boolean | undefined;
566
566
  logGroupClass?: LogGroupClass | undefined;
567
+ logGroupIdentifiers?: string[] | undefined;
567
568
  }
568
569
  export declare const InheritedProperty: {
569
570
  readonly ACCOUNT_DATA_PROTECTION: "ACCOUNT_DATA_PROTECTION";
@@ -1201,6 +1202,23 @@ export interface ListLogAnomalyDetectorsResponse {
1201
1202
  anomalyDetectors?: AnomalyDetector[] | undefined;
1202
1203
  nextToken?: string | undefined;
1203
1204
  }
1205
+ export interface ListLogGroupsRequest {
1206
+ logGroupNamePattern?: string | undefined;
1207
+ logGroupClass?: LogGroupClass | undefined;
1208
+ includeLinkedAccounts?: boolean | undefined;
1209
+ accountIdentifiers?: string[] | undefined;
1210
+ nextToken?: string | undefined;
1211
+ limit?: number | undefined;
1212
+ }
1213
+ export interface LogGroupSummary {
1214
+ logGroupName?: string | undefined;
1215
+ logGroupArn?: string | undefined;
1216
+ logGroupClass?: LogGroupClass | undefined;
1217
+ }
1218
+ export interface ListLogGroupsResponse {
1219
+ logGroups?: LogGroupSummary[] | undefined;
1220
+ nextToken?: string | undefined;
1221
+ }
1204
1222
  export interface ListLogGroupsForQueryRequest {
1205
1223
  queryId: string | undefined;
1206
1224
  nextToken?: string | undefined;
@@ -238,6 +238,10 @@ import {
238
238
  ListLogAnomalyDetectorsCommandInput,
239
239
  ListLogAnomalyDetectorsCommandOutput,
240
240
  } from "../commands/ListLogAnomalyDetectorsCommand";
241
+ import {
242
+ ListLogGroupsCommandInput,
243
+ ListLogGroupsCommandOutput,
244
+ } from "../commands/ListLogGroupsCommand";
241
245
  import {
242
246
  ListLogGroupsForQueryCommandInput,
243
247
  ListLogGroupsForQueryCommandOutput,
@@ -594,6 +598,10 @@ export declare const se_ListLogAnomalyDetectorsCommand: (
594
598
  input: ListLogAnomalyDetectorsCommandInput,
595
599
  context: __SerdeContext
596
600
  ) => Promise<__HttpRequest>;
601
+ export declare const se_ListLogGroupsCommand: (
602
+ input: ListLogGroupsCommandInput,
603
+ context: __SerdeContext
604
+ ) => Promise<__HttpRequest>;
597
605
  export declare const se_ListLogGroupsForQueryCommand: (
598
606
  input: ListLogGroupsForQueryCommandInput,
599
607
  context: __SerdeContext
@@ -950,6 +958,10 @@ export declare const de_ListLogAnomalyDetectorsCommand: (
950
958
  output: __HttpResponse,
951
959
  context: __SerdeContext
952
960
  ) => Promise<ListLogAnomalyDetectorsCommandOutput>;
961
+ export declare const de_ListLogGroupsCommand: (
962
+ output: __HttpResponse,
963
+ context: __SerdeContext
964
+ ) => Promise<ListLogGroupsCommandOutput>;
953
965
  export declare const de_ListLogGroupsForQueryCommand: (
954
966
  output: __HttpResponse,
955
967
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudwatch-logs",
3
3
  "description": "AWS SDK for JavaScript Cloudwatch Logs Client for Node.js, Browser and React Native",
4
- "version": "3.808.0",
4
+ "version": "3.812.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudwatch-logs",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.808.0",
24
- "@aws-sdk/credential-provider-node": "3.808.0",
23
+ "@aws-sdk/core": "3.812.0",
24
+ "@aws-sdk/credential-provider-node": "3.812.0",
25
25
  "@aws-sdk/middleware-host-header": "3.804.0",
26
26
  "@aws-sdk/middleware-logger": "3.804.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.804.0",
28
- "@aws-sdk/middleware-user-agent": "3.808.0",
28
+ "@aws-sdk/middleware-user-agent": "3.812.0",
29
29
  "@aws-sdk/region-config-resolver": "3.808.0",
30
30
  "@aws-sdk/types": "3.804.0",
31
31
  "@aws-sdk/util-endpoints": "3.808.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.804.0",
33
- "@aws-sdk/util-user-agent-node": "3.808.0",
33
+ "@aws-sdk/util-user-agent-node": "3.812.0",
34
34
  "@smithy/config-resolver": "^4.1.2",
35
- "@smithy/core": "^3.3.1",
35
+ "@smithy/core": "^3.3.3",
36
36
  "@smithy/eventstream-serde-browser": "^4.0.2",
37
37
  "@smithy/eventstream-serde-config-resolver": "^4.1.0",
38
38
  "@smithy/eventstream-serde-node": "^4.0.2",
@@ -40,21 +40,21 @@
40
40
  "@smithy/hash-node": "^4.0.2",
41
41
  "@smithy/invalid-dependency": "^4.0.2",
42
42
  "@smithy/middleware-content-length": "^4.0.2",
43
- "@smithy/middleware-endpoint": "^4.1.4",
44
- "@smithy/middleware-retry": "^4.1.5",
45
- "@smithy/middleware-serde": "^4.0.3",
43
+ "@smithy/middleware-endpoint": "^4.1.6",
44
+ "@smithy/middleware-retry": "^4.1.7",
45
+ "@smithy/middleware-serde": "^4.0.5",
46
46
  "@smithy/middleware-stack": "^4.0.2",
47
47
  "@smithy/node-config-provider": "^4.1.1",
48
48
  "@smithy/node-http-handler": "^4.0.4",
49
49
  "@smithy/protocol-http": "^5.1.0",
50
- "@smithy/smithy-client": "^4.2.4",
50
+ "@smithy/smithy-client": "^4.2.6",
51
51
  "@smithy/types": "^4.2.0",
52
52
  "@smithy/url-parser": "^4.0.2",
53
53
  "@smithy/util-base64": "^4.0.0",
54
54
  "@smithy/util-body-length-browser": "^4.0.0",
55
55
  "@smithy/util-body-length-node": "^4.0.0",
56
- "@smithy/util-defaults-mode-browser": "^4.0.12",
57
- "@smithy/util-defaults-mode-node": "^4.0.12",
56
+ "@smithy/util-defaults-mode-browser": "^4.0.14",
57
+ "@smithy/util-defaults-mode-node": "^4.0.14",
58
58
  "@smithy/util-endpoints": "^3.0.4",
59
59
  "@smithy/util-middleware": "^4.0.2",
60
60
  "@smithy/util-retry": "^4.0.3",