@aws-sdk/client-cloudwatch-logs 3.948.0 → 3.952.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 (50) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/index.js +218 -32
  3. package/dist-es/CloudWatchLogs.js +8 -0
  4. package/dist-es/commands/CancelImportTaskCommand.js +16 -0
  5. package/dist-es/commands/CreateImportTaskCommand.js +16 -0
  6. package/dist-es/commands/DescribeImportTaskBatchesCommand.js +16 -0
  7. package/dist-es/commands/DescribeImportTasksCommand.js +16 -0
  8. package/dist-es/commands/index.js +4 -0
  9. package/dist-es/models/enums.js +6 -0
  10. package/dist-es/pagination/ListAggregateLogGroupSummariesPaginator.js +4 -0
  11. package/dist-es/pagination/index.js +1 -0
  12. package/dist-es/schemas/schemas_0.js +153 -32
  13. package/dist-types/CloudWatchLogs.d.ts +29 -0
  14. package/dist-types/CloudWatchLogsClient.d.ts +6 -2
  15. package/dist-types/commands/CancelImportTaskCommand.d.ts +95 -0
  16. package/dist-types/commands/CreateImportTaskCommand.d.ts +152 -0
  17. package/dist-types/commands/CreateScheduledQueryCommand.d.ts +4 -1
  18. package/dist-types/commands/DeleteAccountPolicyCommand.d.ts +8 -8
  19. package/dist-types/commands/DeleteIndexPolicyCommand.d.ts +6 -6
  20. package/dist-types/commands/DeleteScheduledQueryCommand.d.ts +2 -1
  21. package/dist-types/commands/DescribeImportTaskBatchesCommand.d.ts +104 -0
  22. package/dist-types/commands/DescribeImportTasksCommand.d.ts +111 -0
  23. package/dist-types/commands/DescribeQueriesCommand.d.ts +2 -2
  24. package/dist-types/commands/GetQueryResultsCommand.d.ts +2 -1
  25. package/dist-types/commands/GetScheduledQueryCommand.d.ts +2 -1
  26. package/dist-types/commands/GetScheduledQueryHistoryCommand.d.ts +2 -1
  27. package/dist-types/commands/ListScheduledQueriesCommand.d.ts +2 -1
  28. package/dist-types/commands/PutAccountPolicyCommand.d.ts +196 -47
  29. package/dist-types/commands/PutIndexPolicyCommand.d.ts +4 -4
  30. package/dist-types/commands/PutLogGroupDeletionProtectionCommand.d.ts +3 -2
  31. package/dist-types/commands/UpdateScheduledQueryCommand.d.ts +2 -1
  32. package/dist-types/commands/index.d.ts +4 -0
  33. package/dist-types/models/enums.d.ts +14 -0
  34. package/dist-types/models/models_0.d.ts +391 -44
  35. package/dist-types/pagination/ListAggregateLogGroupSummariesPaginator.d.ts +7 -0
  36. package/dist-types/pagination/index.d.ts +1 -0
  37. package/dist-types/schemas/schemas_0.d.ts +19 -0
  38. package/dist-types/ts3.4/CloudWatchLogs.d.ts +69 -0
  39. package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +24 -0
  40. package/dist-types/ts3.4/commands/CancelImportTaskCommand.d.ts +50 -0
  41. package/dist-types/ts3.4/commands/CreateImportTaskCommand.d.ts +50 -0
  42. package/dist-types/ts3.4/commands/DescribeImportTaskBatchesCommand.d.ts +51 -0
  43. package/dist-types/ts3.4/commands/DescribeImportTasksCommand.d.ts +51 -0
  44. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  45. package/dist-types/ts3.4/models/enums.d.ts +7 -0
  46. package/dist-types/ts3.4/models/models_0.d.ts +67 -0
  47. package/dist-types/ts3.4/pagination/ListAggregateLogGroupSummariesPaginator.d.ts +11 -0
  48. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  49. package/dist-types/ts3.4/schemas/schemas_0.d.ts +19 -0
  50. package/package.json +2 -2
@@ -11,8 +11,10 @@ import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } fro
11
11
  import { AssociateKmsKeyCommandInput, AssociateKmsKeyCommandOutput } from "./commands/AssociateKmsKeyCommand";
12
12
  import { AssociateSourceToS3TableIntegrationCommandInput, AssociateSourceToS3TableIntegrationCommandOutput } from "./commands/AssociateSourceToS3TableIntegrationCommand";
13
13
  import { CancelExportTaskCommandInput, CancelExportTaskCommandOutput } from "./commands/CancelExportTaskCommand";
14
+ import { CancelImportTaskCommandInput, CancelImportTaskCommandOutput } from "./commands/CancelImportTaskCommand";
14
15
  import { CreateDeliveryCommandInput, CreateDeliveryCommandOutput } from "./commands/CreateDeliveryCommand";
15
16
  import { CreateExportTaskCommandInput, CreateExportTaskCommandOutput } from "./commands/CreateExportTaskCommand";
17
+ import { CreateImportTaskCommandInput, CreateImportTaskCommandOutput } from "./commands/CreateImportTaskCommand";
16
18
  import { CreateLogAnomalyDetectorCommandInput, CreateLogAnomalyDetectorCommandOutput } from "./commands/CreateLogAnomalyDetectorCommand";
17
19
  import { CreateLogGroupCommandInput, CreateLogGroupCommandOutput } from "./commands/CreateLogGroupCommand";
18
20
  import { CreateLogStreamCommandInput, CreateLogStreamCommandOutput } from "./commands/CreateLogStreamCommand";
@@ -44,6 +46,8 @@ import { DescribeDeliverySourcesCommandInput, DescribeDeliverySourcesCommandOutp
44
46
  import { DescribeDestinationsCommandInput, DescribeDestinationsCommandOutput } from "./commands/DescribeDestinationsCommand";
45
47
  import { DescribeExportTasksCommandInput, DescribeExportTasksCommandOutput } from "./commands/DescribeExportTasksCommand";
46
48
  import { DescribeFieldIndexesCommandInput, DescribeFieldIndexesCommandOutput } from "./commands/DescribeFieldIndexesCommand";
49
+ import { DescribeImportTaskBatchesCommandInput, DescribeImportTaskBatchesCommandOutput } from "./commands/DescribeImportTaskBatchesCommand";
50
+ import { DescribeImportTasksCommandInput, DescribeImportTasksCommandOutput } from "./commands/DescribeImportTasksCommand";
47
51
  import { DescribeIndexPoliciesCommandInput, DescribeIndexPoliciesCommandOutput } from "./commands/DescribeIndexPoliciesCommand";
48
52
  import { DescribeLogGroupsCommandInput, DescribeLogGroupsCommandOutput } from "./commands/DescribeLogGroupsCommand";
49
53
  import { DescribeLogStreamsCommandInput, DescribeLogStreamsCommandOutput } from "./commands/DescribeLogStreamsCommand";
@@ -117,11 +121,11 @@ export { __Client };
117
121
  /**
118
122
  * @public
119
123
  */
120
- export type ServiceInputTypes = AssociateKmsKeyCommandInput | AssociateSourceToS3TableIntegrationCommandInput | CancelExportTaskCommandInput | CreateDeliveryCommandInput | CreateExportTaskCommandInput | CreateLogAnomalyDetectorCommandInput | CreateLogGroupCommandInput | CreateLogStreamCommandInput | CreateScheduledQueryCommandInput | DeleteAccountPolicyCommandInput | DeleteDataProtectionPolicyCommandInput | DeleteDeliveryCommandInput | DeleteDeliveryDestinationCommandInput | DeleteDeliveryDestinationPolicyCommandInput | DeleteDeliverySourceCommandInput | DeleteDestinationCommandInput | DeleteIndexPolicyCommandInput | DeleteIntegrationCommandInput | DeleteLogAnomalyDetectorCommandInput | DeleteLogGroupCommandInput | DeleteLogStreamCommandInput | DeleteMetricFilterCommandInput | DeleteQueryDefinitionCommandInput | DeleteResourcePolicyCommandInput | DeleteRetentionPolicyCommandInput | DeleteScheduledQueryCommandInput | DeleteSubscriptionFilterCommandInput | DeleteTransformerCommandInput | DescribeAccountPoliciesCommandInput | DescribeConfigurationTemplatesCommandInput | DescribeDeliveriesCommandInput | DescribeDeliveryDestinationsCommandInput | DescribeDeliverySourcesCommandInput | DescribeDestinationsCommandInput | DescribeExportTasksCommandInput | DescribeFieldIndexesCommandInput | DescribeIndexPoliciesCommandInput | DescribeLogGroupsCommandInput | DescribeLogStreamsCommandInput | DescribeMetricFiltersCommandInput | DescribeQueriesCommandInput | DescribeQueryDefinitionsCommandInput | DescribeResourcePoliciesCommandInput | DescribeSubscriptionFiltersCommandInput | DisassociateKmsKeyCommandInput | DisassociateSourceFromS3TableIntegrationCommandInput | FilterLogEventsCommandInput | GetDataProtectionPolicyCommandInput | GetDeliveryCommandInput | GetDeliveryDestinationCommandInput | GetDeliveryDestinationPolicyCommandInput | GetDeliverySourceCommandInput | GetIntegrationCommandInput | GetLogAnomalyDetectorCommandInput | GetLogEventsCommandInput | GetLogFieldsCommandInput | GetLogGroupFieldsCommandInput | GetLogObjectCommandInput | GetLogRecordCommandInput | GetQueryResultsCommandInput | GetScheduledQueryCommandInput | GetScheduledQueryHistoryCommandInput | GetTransformerCommandInput | ListAggregateLogGroupSummariesCommandInput | ListAnomaliesCommandInput | ListIntegrationsCommandInput | ListLogAnomalyDetectorsCommandInput | ListLogGroupsCommandInput | ListLogGroupsForQueryCommandInput | ListScheduledQueriesCommandInput | ListSourcesForS3TableIntegrationCommandInput | ListTagsForResourceCommandInput | ListTagsLogGroupCommandInput | PutAccountPolicyCommandInput | PutDataProtectionPolicyCommandInput | PutDeliveryDestinationCommandInput | PutDeliveryDestinationPolicyCommandInput | PutDeliverySourceCommandInput | PutDestinationCommandInput | PutDestinationPolicyCommandInput | PutIndexPolicyCommandInput | PutIntegrationCommandInput | PutLogEventsCommandInput | PutLogGroupDeletionProtectionCommandInput | PutMetricFilterCommandInput | PutQueryDefinitionCommandInput | PutResourcePolicyCommandInput | PutRetentionPolicyCommandInput | PutSubscriptionFilterCommandInput | PutTransformerCommandInput | StartLiveTailCommandInput | StartQueryCommandInput | StopQueryCommandInput | TagLogGroupCommandInput | TagResourceCommandInput | TestMetricFilterCommandInput | TestTransformerCommandInput | UntagLogGroupCommandInput | UntagResourceCommandInput | UpdateAnomalyCommandInput | UpdateDeliveryConfigurationCommandInput | UpdateLogAnomalyDetectorCommandInput | UpdateScheduledQueryCommandInput;
124
+ export type ServiceInputTypes = AssociateKmsKeyCommandInput | AssociateSourceToS3TableIntegrationCommandInput | CancelExportTaskCommandInput | CancelImportTaskCommandInput | CreateDeliveryCommandInput | CreateExportTaskCommandInput | CreateImportTaskCommandInput | CreateLogAnomalyDetectorCommandInput | CreateLogGroupCommandInput | CreateLogStreamCommandInput | CreateScheduledQueryCommandInput | DeleteAccountPolicyCommandInput | DeleteDataProtectionPolicyCommandInput | DeleteDeliveryCommandInput | DeleteDeliveryDestinationCommandInput | DeleteDeliveryDestinationPolicyCommandInput | DeleteDeliverySourceCommandInput | DeleteDestinationCommandInput | DeleteIndexPolicyCommandInput | DeleteIntegrationCommandInput | DeleteLogAnomalyDetectorCommandInput | DeleteLogGroupCommandInput | DeleteLogStreamCommandInput | DeleteMetricFilterCommandInput | DeleteQueryDefinitionCommandInput | DeleteResourcePolicyCommandInput | DeleteRetentionPolicyCommandInput | DeleteScheduledQueryCommandInput | DeleteSubscriptionFilterCommandInput | DeleteTransformerCommandInput | DescribeAccountPoliciesCommandInput | DescribeConfigurationTemplatesCommandInput | DescribeDeliveriesCommandInput | DescribeDeliveryDestinationsCommandInput | DescribeDeliverySourcesCommandInput | DescribeDestinationsCommandInput | DescribeExportTasksCommandInput | DescribeFieldIndexesCommandInput | DescribeImportTaskBatchesCommandInput | DescribeImportTasksCommandInput | DescribeIndexPoliciesCommandInput | DescribeLogGroupsCommandInput | DescribeLogStreamsCommandInput | DescribeMetricFiltersCommandInput | DescribeQueriesCommandInput | DescribeQueryDefinitionsCommandInput | DescribeResourcePoliciesCommandInput | DescribeSubscriptionFiltersCommandInput | DisassociateKmsKeyCommandInput | DisassociateSourceFromS3TableIntegrationCommandInput | FilterLogEventsCommandInput | GetDataProtectionPolicyCommandInput | GetDeliveryCommandInput | GetDeliveryDestinationCommandInput | GetDeliveryDestinationPolicyCommandInput | GetDeliverySourceCommandInput | GetIntegrationCommandInput | GetLogAnomalyDetectorCommandInput | GetLogEventsCommandInput | GetLogFieldsCommandInput | GetLogGroupFieldsCommandInput | GetLogObjectCommandInput | GetLogRecordCommandInput | GetQueryResultsCommandInput | GetScheduledQueryCommandInput | GetScheduledQueryHistoryCommandInput | GetTransformerCommandInput | ListAggregateLogGroupSummariesCommandInput | ListAnomaliesCommandInput | ListIntegrationsCommandInput | ListLogAnomalyDetectorsCommandInput | ListLogGroupsCommandInput | ListLogGroupsForQueryCommandInput | ListScheduledQueriesCommandInput | ListSourcesForS3TableIntegrationCommandInput | ListTagsForResourceCommandInput | ListTagsLogGroupCommandInput | PutAccountPolicyCommandInput | PutDataProtectionPolicyCommandInput | PutDeliveryDestinationCommandInput | PutDeliveryDestinationPolicyCommandInput | PutDeliverySourceCommandInput | PutDestinationCommandInput | PutDestinationPolicyCommandInput | PutIndexPolicyCommandInput | PutIntegrationCommandInput | PutLogEventsCommandInput | PutLogGroupDeletionProtectionCommandInput | PutMetricFilterCommandInput | PutQueryDefinitionCommandInput | PutResourcePolicyCommandInput | PutRetentionPolicyCommandInput | PutSubscriptionFilterCommandInput | PutTransformerCommandInput | StartLiveTailCommandInput | StartQueryCommandInput | StopQueryCommandInput | TagLogGroupCommandInput | TagResourceCommandInput | TestMetricFilterCommandInput | TestTransformerCommandInput | UntagLogGroupCommandInput | UntagResourceCommandInput | UpdateAnomalyCommandInput | UpdateDeliveryConfigurationCommandInput | UpdateLogAnomalyDetectorCommandInput | UpdateScheduledQueryCommandInput;
121
125
  /**
122
126
  * @public
123
127
  */
124
- export type ServiceOutputTypes = AssociateKmsKeyCommandOutput | AssociateSourceToS3TableIntegrationCommandOutput | CancelExportTaskCommandOutput | CreateDeliveryCommandOutput | CreateExportTaskCommandOutput | CreateLogAnomalyDetectorCommandOutput | CreateLogGroupCommandOutput | CreateLogStreamCommandOutput | CreateScheduledQueryCommandOutput | DeleteAccountPolicyCommandOutput | DeleteDataProtectionPolicyCommandOutput | DeleteDeliveryCommandOutput | DeleteDeliveryDestinationCommandOutput | DeleteDeliveryDestinationPolicyCommandOutput | DeleteDeliverySourceCommandOutput | DeleteDestinationCommandOutput | DeleteIndexPolicyCommandOutput | DeleteIntegrationCommandOutput | DeleteLogAnomalyDetectorCommandOutput | DeleteLogGroupCommandOutput | DeleteLogStreamCommandOutput | DeleteMetricFilterCommandOutput | DeleteQueryDefinitionCommandOutput | DeleteResourcePolicyCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteScheduledQueryCommandOutput | DeleteSubscriptionFilterCommandOutput | DeleteTransformerCommandOutput | DescribeAccountPoliciesCommandOutput | DescribeConfigurationTemplatesCommandOutput | DescribeDeliveriesCommandOutput | DescribeDeliveryDestinationsCommandOutput | DescribeDeliverySourcesCommandOutput | DescribeDestinationsCommandOutput | DescribeExportTasksCommandOutput | DescribeFieldIndexesCommandOutput | DescribeIndexPoliciesCommandOutput | DescribeLogGroupsCommandOutput | DescribeLogStreamsCommandOutput | DescribeMetricFiltersCommandOutput | DescribeQueriesCommandOutput | DescribeQueryDefinitionsCommandOutput | DescribeResourcePoliciesCommandOutput | DescribeSubscriptionFiltersCommandOutput | DisassociateKmsKeyCommandOutput | DisassociateSourceFromS3TableIntegrationCommandOutput | FilterLogEventsCommandOutput | GetDataProtectionPolicyCommandOutput | GetDeliveryCommandOutput | GetDeliveryDestinationCommandOutput | GetDeliveryDestinationPolicyCommandOutput | GetDeliverySourceCommandOutput | GetIntegrationCommandOutput | GetLogAnomalyDetectorCommandOutput | GetLogEventsCommandOutput | GetLogFieldsCommandOutput | GetLogGroupFieldsCommandOutput | GetLogObjectCommandOutput | GetLogRecordCommandOutput | GetQueryResultsCommandOutput | GetScheduledQueryCommandOutput | GetScheduledQueryHistoryCommandOutput | GetTransformerCommandOutput | ListAggregateLogGroupSummariesCommandOutput | ListAnomaliesCommandOutput | ListIntegrationsCommandOutput | ListLogAnomalyDetectorsCommandOutput | ListLogGroupsCommandOutput | ListLogGroupsForQueryCommandOutput | ListScheduledQueriesCommandOutput | ListSourcesForS3TableIntegrationCommandOutput | ListTagsForResourceCommandOutput | ListTagsLogGroupCommandOutput | PutAccountPolicyCommandOutput | PutDataProtectionPolicyCommandOutput | PutDeliveryDestinationCommandOutput | PutDeliveryDestinationPolicyCommandOutput | PutDeliverySourceCommandOutput | PutDestinationCommandOutput | PutDestinationPolicyCommandOutput | PutIndexPolicyCommandOutput | PutIntegrationCommandOutput | PutLogEventsCommandOutput | PutLogGroupDeletionProtectionCommandOutput | PutMetricFilterCommandOutput | PutQueryDefinitionCommandOutput | PutResourcePolicyCommandOutput | PutRetentionPolicyCommandOutput | PutSubscriptionFilterCommandOutput | PutTransformerCommandOutput | StartLiveTailCommandOutput | StartQueryCommandOutput | StopQueryCommandOutput | TagLogGroupCommandOutput | TagResourceCommandOutput | TestMetricFilterCommandOutput | TestTransformerCommandOutput | UntagLogGroupCommandOutput | UntagResourceCommandOutput | UpdateAnomalyCommandOutput | UpdateDeliveryConfigurationCommandOutput | UpdateLogAnomalyDetectorCommandOutput | UpdateScheduledQueryCommandOutput;
128
+ export type ServiceOutputTypes = AssociateKmsKeyCommandOutput | AssociateSourceToS3TableIntegrationCommandOutput | CancelExportTaskCommandOutput | CancelImportTaskCommandOutput | CreateDeliveryCommandOutput | CreateExportTaskCommandOutput | CreateImportTaskCommandOutput | CreateLogAnomalyDetectorCommandOutput | CreateLogGroupCommandOutput | CreateLogStreamCommandOutput | CreateScheduledQueryCommandOutput | DeleteAccountPolicyCommandOutput | DeleteDataProtectionPolicyCommandOutput | DeleteDeliveryCommandOutput | DeleteDeliveryDestinationCommandOutput | DeleteDeliveryDestinationPolicyCommandOutput | DeleteDeliverySourceCommandOutput | DeleteDestinationCommandOutput | DeleteIndexPolicyCommandOutput | DeleteIntegrationCommandOutput | DeleteLogAnomalyDetectorCommandOutput | DeleteLogGroupCommandOutput | DeleteLogStreamCommandOutput | DeleteMetricFilterCommandOutput | DeleteQueryDefinitionCommandOutput | DeleteResourcePolicyCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteScheduledQueryCommandOutput | DeleteSubscriptionFilterCommandOutput | DeleteTransformerCommandOutput | DescribeAccountPoliciesCommandOutput | DescribeConfigurationTemplatesCommandOutput | DescribeDeliveriesCommandOutput | DescribeDeliveryDestinationsCommandOutput | DescribeDeliverySourcesCommandOutput | DescribeDestinationsCommandOutput | DescribeExportTasksCommandOutput | DescribeFieldIndexesCommandOutput | DescribeImportTaskBatchesCommandOutput | DescribeImportTasksCommandOutput | DescribeIndexPoliciesCommandOutput | DescribeLogGroupsCommandOutput | DescribeLogStreamsCommandOutput | DescribeMetricFiltersCommandOutput | DescribeQueriesCommandOutput | DescribeQueryDefinitionsCommandOutput | DescribeResourcePoliciesCommandOutput | DescribeSubscriptionFiltersCommandOutput | DisassociateKmsKeyCommandOutput | DisassociateSourceFromS3TableIntegrationCommandOutput | FilterLogEventsCommandOutput | GetDataProtectionPolicyCommandOutput | GetDeliveryCommandOutput | GetDeliveryDestinationCommandOutput | GetDeliveryDestinationPolicyCommandOutput | GetDeliverySourceCommandOutput | GetIntegrationCommandOutput | GetLogAnomalyDetectorCommandOutput | GetLogEventsCommandOutput | GetLogFieldsCommandOutput | GetLogGroupFieldsCommandOutput | GetLogObjectCommandOutput | GetLogRecordCommandOutput | GetQueryResultsCommandOutput | GetScheduledQueryCommandOutput | GetScheduledQueryHistoryCommandOutput | GetTransformerCommandOutput | ListAggregateLogGroupSummariesCommandOutput | ListAnomaliesCommandOutput | ListIntegrationsCommandOutput | ListLogAnomalyDetectorsCommandOutput | ListLogGroupsCommandOutput | ListLogGroupsForQueryCommandOutput | ListScheduledQueriesCommandOutput | ListSourcesForS3TableIntegrationCommandOutput | ListTagsForResourceCommandOutput | ListTagsLogGroupCommandOutput | PutAccountPolicyCommandOutput | PutDataProtectionPolicyCommandOutput | PutDeliveryDestinationCommandOutput | PutDeliveryDestinationPolicyCommandOutput | PutDeliverySourceCommandOutput | PutDestinationCommandOutput | PutDestinationPolicyCommandOutput | PutIndexPolicyCommandOutput | PutIntegrationCommandOutput | PutLogEventsCommandOutput | PutLogGroupDeletionProtectionCommandOutput | PutMetricFilterCommandOutput | PutQueryDefinitionCommandOutput | PutResourcePolicyCommandOutput | PutRetentionPolicyCommandOutput | PutSubscriptionFilterCommandOutput | PutTransformerCommandOutput | StartLiveTailCommandOutput | StartQueryCommandOutput | StopQueryCommandOutput | TagLogGroupCommandOutput | TagResourceCommandOutput | TestMetricFilterCommandOutput | TestTransformerCommandOutput | UntagLogGroupCommandOutput | UntagResourceCommandOutput | UpdateAnomalyCommandOutput | UpdateDeliveryConfigurationCommandOutput | UpdateLogAnomalyDetectorCommandOutput | UpdateScheduledQueryCommandOutput;
125
129
  /**
126
130
  * @public
127
131
  */
@@ -0,0 +1,95 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
4
+ import type { CancelImportTaskRequest, CancelImportTaskResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CancelImportTaskCommand}.
14
+ */
15
+ export interface CancelImportTaskCommandInput extends CancelImportTaskRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CancelImportTaskCommand}.
21
+ */
22
+ export interface CancelImportTaskCommandOutput extends CancelImportTaskResponse, __MetadataBearer {
23
+ }
24
+ declare const CancelImportTaskCommand_base: {
25
+ new (input: CancelImportTaskCommandInput): import("@smithy/smithy-client").CommandImpl<CancelImportTaskCommandInput, CancelImportTaskCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CancelImportTaskCommandInput): import("@smithy/smithy-client").CommandImpl<CancelImportTaskCommandInput, CancelImportTaskCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Cancels an active import task and stops importing data from the CloudTrail Lake Event Data Store.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { CloudWatchLogsClient, CancelImportTaskCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
35
+ * // const { CloudWatchLogsClient, CancelImportTaskCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
36
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
37
+ * const config = {}; // type is CloudWatchLogsClientConfig
38
+ * const client = new CloudWatchLogsClient(config);
39
+ * const input = { // CancelImportTaskRequest
40
+ * importId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new CancelImportTaskCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // CancelImportTaskResponse
45
+ * // importId: "STRING_VALUE",
46
+ * // importStatistics: { // ImportStatistics
47
+ * // bytesImported: Number("long"),
48
+ * // },
49
+ * // importStatus: "IN_PROGRESS" || "CANCELLED" || "COMPLETED" || "FAILED",
50
+ * // creationTime: Number("long"),
51
+ * // lastUpdatedTime: Number("long"),
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param CancelImportTaskCommandInput - {@link CancelImportTaskCommandInput}
57
+ * @returns {@link CancelImportTaskCommandOutput}
58
+ * @see {@link CancelImportTaskCommandInput} for command's `input` shape.
59
+ * @see {@link CancelImportTaskCommandOutput} for command's `response` shape.
60
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
61
+ *
62
+ * @throws {@link AccessDeniedException} (client fault)
63
+ * <p>You don't have sufficient permissions to perform this action.</p>
64
+ *
65
+ * @throws {@link InvalidOperationException} (client fault)
66
+ * <p>The operation is not valid on the specified resource.</p>
67
+ *
68
+ * @throws {@link InvalidParameterException} (client fault)
69
+ * <p>A parameter is specified incorrectly.</p>
70
+ *
71
+ * @throws {@link ResourceNotFoundException} (client fault)
72
+ * <p>The specified resource does not exist.</p>
73
+ *
74
+ * @throws {@link ThrottlingException} (client fault)
75
+ * <p>The request was throttled because of quota limits.</p>
76
+ *
77
+ * @throws {@link CloudWatchLogsServiceException}
78
+ * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
79
+ *
80
+ *
81
+ * @public
82
+ */
83
+ export declare class CancelImportTaskCommand extends CancelImportTaskCommand_base {
84
+ /** @internal type navigation helper, not in runtime. */
85
+ protected static __types: {
86
+ api: {
87
+ input: CancelImportTaskRequest;
88
+ output: CancelImportTaskResponse;
89
+ };
90
+ sdk: {
91
+ input: CancelImportTaskCommandInput;
92
+ output: CancelImportTaskCommandOutput;
93
+ };
94
+ };
95
+ }
@@ -0,0 +1,152 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
4
+ import type { CreateImportTaskRequest, CreateImportTaskResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateImportTaskCommand}.
14
+ */
15
+ export interface CreateImportTaskCommandInput extends CreateImportTaskRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateImportTaskCommand}.
21
+ */
22
+ export interface CreateImportTaskCommandOutput extends CreateImportTaskResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateImportTaskCommand_base: {
25
+ new (input: CreateImportTaskCommandInput): import("@smithy/smithy-client").CommandImpl<CreateImportTaskCommandInput, CreateImportTaskCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateImportTaskCommandInput): import("@smithy/smithy-client").CommandImpl<CreateImportTaskCommandInput, CreateImportTaskCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Starts an import from a data source to CloudWatch Log and creates a managed log group as the destination for the imported data.
31
+ * Currently, <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store.html">CloudTrail Event Data Store</a> is the only supported data source. </p>
32
+ * <p>The import task must satisfy the following constraints:</p>
33
+ * <ul>
34
+ * <li>
35
+ * <p>The specified source must be in an ACTIVE state.</p>
36
+ * </li>
37
+ * <li>
38
+ * <p>The API caller must have permissions to access the data in the provided source and to perform iam:PassRole on the
39
+ * provided import role which has the same permissions, as described below.</p>
40
+ * </li>
41
+ * <li>
42
+ * <p>The provided IAM role must trust the "cloudtrail.amazonaws.com" principal and have the following permissions:</p>
43
+ * <ul>
44
+ * <li>
45
+ * <p>cloudtrail:GetEventDataStoreData</p>
46
+ * </li>
47
+ * <li>
48
+ * <p>logs:CreateLogGroup</p>
49
+ * </li>
50
+ * <li>
51
+ * <p>logs:CreateLogStream</p>
52
+ * </li>
53
+ * <li>
54
+ * <p>logs:PutResourcePolicy</p>
55
+ * </li>
56
+ * <li>
57
+ * <p>(If source has an associated AWS KMS Key) kms:Decrypt</p>
58
+ * </li>
59
+ * <li>
60
+ * <p>(If source has an associated AWS KMS Key) kms:GenerateDataKey</p>
61
+ * </li>
62
+ * </ul>
63
+ * <p>Example IAM policy for provided import role:</p>
64
+ * <p>
65
+ * <code>[ \{ "Effect": "Allow", "Action": "iam:PassRole", "Resource": "arn:aws:iam::123456789012:role/apiCallerCredentials", "Condition": \{ "StringLike": \{ "iam:AssociatedResourceARN": "arn:aws:logs:us-east-1:123456789012:log-group:aws/cloudtrail/f1d45bff-d0e3-4868-b5d9-2eb678aa32fb:*" \} \} \}, \{ "Effect": "Allow", "Action": [ "cloudtrail:GetEventDataStoreData" ], "Resource": [ "arn:aws:cloudtrail:us-east-1:123456789012:eventdatastore/f1d45bff-d0e3-4868-b5d9-2eb678aa32fb" ] \}, \{ "Effect": "Allow", "Action": [ "logs:CreateImportTask", "logs:CreateLogGroup", "logs:CreateLogStream", "logs:PutResourcePolicy" ], "Resource": [ "arn:aws:logs:us-east-1:123456789012:log-group:/aws/cloudtrail/*" ] \}, \{ "Effect": "Allow", "Action": [ "kms:Decrypt", "kms:GenerateDataKey" ], "Resource": [ "arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012" ] \} ]</code>
66
+ * </p>
67
+ * </li>
68
+ * <li>
69
+ * <p>If the import source has a customer managed key, the "cloudtrail.amazonaws.com" principal needs permissions to perform kms:Decrypt and kms:GenerateDataKey.</p>
70
+ * </li>
71
+ * <li>
72
+ * <p>There can be no more than 3 active imports per account at a given time.</p>
73
+ * </li>
74
+ * <li>
75
+ * <p>The startEventTime must be less than or equal to endEventTime.</p>
76
+ * </li>
77
+ * <li>
78
+ * <p>The data being imported must be within the specified source's retention period.</p>
79
+ * </li>
80
+ * </ul>
81
+ * @example
82
+ * Use a bare-bones client and the command you need to make an API call.
83
+ * ```javascript
84
+ * import { CloudWatchLogsClient, CreateImportTaskCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
85
+ * // const { CloudWatchLogsClient, CreateImportTaskCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
86
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
87
+ * const config = {}; // type is CloudWatchLogsClientConfig
88
+ * const client = new CloudWatchLogsClient(config);
89
+ * const input = { // CreateImportTaskRequest
90
+ * importSourceArn: "STRING_VALUE", // required
91
+ * importRoleArn: "STRING_VALUE", // required
92
+ * importFilter: { // ImportFilter
93
+ * startEventTime: Number("long"),
94
+ * endEventTime: Number("long"),
95
+ * },
96
+ * };
97
+ * const command = new CreateImportTaskCommand(input);
98
+ * const response = await client.send(command);
99
+ * // { // CreateImportTaskResponse
100
+ * // importId: "STRING_VALUE",
101
+ * // importDestinationArn: "STRING_VALUE",
102
+ * // creationTime: Number("long"),
103
+ * // };
104
+ *
105
+ * ```
106
+ *
107
+ * @param CreateImportTaskCommandInput - {@link CreateImportTaskCommandInput}
108
+ * @returns {@link CreateImportTaskCommandOutput}
109
+ * @see {@link CreateImportTaskCommandInput} for command's `input` shape.
110
+ * @see {@link CreateImportTaskCommandOutput} for command's `response` shape.
111
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
112
+ *
113
+ * @throws {@link AccessDeniedException} (client fault)
114
+ * <p>You don't have sufficient permissions to perform this action.</p>
115
+ *
116
+ * @throws {@link ConflictException} (client fault)
117
+ * <p>This operation attempted to create a resource that already exists.</p>
118
+ *
119
+ * @throws {@link InvalidOperationException} (client fault)
120
+ * <p>The operation is not valid on the specified resource.</p>
121
+ *
122
+ * @throws {@link InvalidParameterException} (client fault)
123
+ * <p>A parameter is specified incorrectly.</p>
124
+ *
125
+ * @throws {@link ResourceNotFoundException} (client fault)
126
+ * <p>The specified resource does not exist.</p>
127
+ *
128
+ * @throws {@link ThrottlingException} (client fault)
129
+ * <p>The request was throttled because of quota limits.</p>
130
+ *
131
+ * @throws {@link ValidationException} (client fault)
132
+ * <p>One of the parameters for the request is not valid.</p>
133
+ *
134
+ * @throws {@link CloudWatchLogsServiceException}
135
+ * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
136
+ *
137
+ *
138
+ * @public
139
+ */
140
+ export declare class CreateImportTaskCommand extends CreateImportTaskCommand_base {
141
+ /** @internal type navigation helper, not in runtime. */
142
+ protected static __types: {
143
+ api: {
144
+ input: CreateImportTaskRequest;
145
+ output: CreateImportTaskResponse;
146
+ };
147
+ sdk: {
148
+ input: CreateImportTaskCommandInput;
149
+ output: CreateImportTaskCommandOutput;
150
+ };
151
+ };
152
+ }
@@ -27,7 +27,10 @@ declare const CreateScheduledQueryCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Creates a scheduled query that runs CloudWatch Logs Insights queries at regular intervals. Scheduled queries enable proactive monitoring by automatically executing queries to detect patterns and anomalies in your log data. Query results can be delivered to Amazon S3 for analysis or further processing.</p>
30
+ * <p>Creates a scheduled query that runs CloudWatch Logs Insights queries at regular intervals.
31
+ * Scheduled queries enable proactive monitoring by automatically executing queries to detect
32
+ * patterns and anomalies in your log data. Query results can be delivered to Amazon S3 for analysis
33
+ * or further processing.</p>
31
34
  * @example
32
35
  * Use a bare-bones client and the command you need to make an API call.
33
36
  * ```javascript
@@ -27,11 +27,11 @@ declare const DeleteAccountPolicyCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Deletes a CloudWatch Logs account policy. This stops the
31
- * account-wide policy from applying to log groups or data sources in the account. If you delete
32
- * a data protection policy or subscription filter policy, any log-group level policies of those
33
- * types remain in effect. This operation supports deletion of data source-based field index
34
- * policies, including facet configurations, in addition to log group-based policies.</p>
30
+ * <p>Deletes a CloudWatch Logs account policy. This stops the account-wide policy from
31
+ * applying to log groups or data sources in the account. If you delete a data protection policy
32
+ * or subscription filter policy, any log-group level policies of those types remain in effect.
33
+ * This operation supports deletion of data source-based field index policies, including facet
34
+ * configurations, in addition to log group-based policies.</p>
35
35
  * <p>To use this operation, you must be signed on with the correct permissions depending on the
36
36
  * type of policy that you are deleting.</p>
37
37
  * <ul>
@@ -52,9 +52,9 @@ declare const DeleteAccountPolicyCommand_base: {
52
52
  * <li>
53
53
  * <p>To delete a field index policy, you must have the <code>logs:DeleteIndexPolicy</code>
54
54
  * and <code>logs:DeleteAccountPolicy</code> permissions.</p>
55
- * <p>If you delete a field index policy that included facet configurations, those
56
- * facets will no longer be available for interactive exploration in the CloudWatch Logs
57
- * Insights console. However, facet data is retained for up to 30 days.</p>
55
+ * <p>If you delete a field index policy that included facet configurations, those facets
56
+ * will no longer be available for interactive exploration in the CloudWatch Logs Insights
57
+ * console. However, facet data is retained for up to 30 days.</p>
58
58
  * </li>
59
59
  * </ul>
60
60
  * <p>If you delete a field index policy, the indexing of the log events that happened before
@@ -33,12 +33,12 @@ declare const DeleteIndexPolicyCommand_base: {
33
33
  * <p>If the deleted policy included facet configurations, those facets will no longer be
34
34
  * available for interactive exploration in the CloudWatch Logs Insights console for this log
35
35
  * group. However, facet data is retained for up to 30 days.</p>
36
- * <p>You can't use this operation to delete an account-level index policy. Instead, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteAccountPolicy.html">DeletAccountPolicy</a>.</p>
37
- * <p>If you delete a log-group level field index policy and there is an
38
- * account-level field index policy, in a few minutes the log group begins using that
39
- * account-wide policy to index new incoming log events. This operation only affects log
40
- * group-level policies, including any facet configurations, and preserves any data source-based
41
- * account policies that may apply to the log group.</p>
36
+ * <p>You can't use this operation to delete an account-level index policy. Instead, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteAccountPolicy.html">DeleteAccountPolicy</a>.</p>
37
+ * <p>If you delete a log-group level field index policy and there is an account-level field
38
+ * index policy, in a few minutes the log group begins using that account-wide policy to index
39
+ * new incoming log events. This operation only affects log group-level policies, including any
40
+ * facet configurations, and preserves any data source-based account policies that may apply to
41
+ * the log group.</p>
42
42
  * @example
43
43
  * Use a bare-bones client and the command you need to make an API call.
44
44
  * ```javascript
@@ -27,7 +27,8 @@ declare const DeleteScheduledQueryCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Deletes a scheduled query and stops all future executions. This operation also removes any configured actions and associated resources.</p>
30
+ * <p>Deletes a scheduled query and stops all future executions. This operation also removes any
31
+ * configured actions and associated resources.</p>
31
32
  * @example
32
33
  * Use a bare-bones client and the command you need to make an API call.
33
34
  * ```javascript
@@ -0,0 +1,104 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
4
+ import type { DescribeImportTaskBatchesRequest, DescribeImportTaskBatchesResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DescribeImportTaskBatchesCommand}.
14
+ */
15
+ export interface DescribeImportTaskBatchesCommandInput extends DescribeImportTaskBatchesRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DescribeImportTaskBatchesCommand}.
21
+ */
22
+ export interface DescribeImportTaskBatchesCommandOutput extends DescribeImportTaskBatchesResponse, __MetadataBearer {
23
+ }
24
+ declare const DescribeImportTaskBatchesCommand_base: {
25
+ new (input: DescribeImportTaskBatchesCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeImportTaskBatchesCommandInput, DescribeImportTaskBatchesCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DescribeImportTaskBatchesCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeImportTaskBatchesCommandInput, DescribeImportTaskBatchesCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Gets detailed information about the individual batches within an import task, including their status and any error messages.
31
+ * For CloudTrail Event Data Store sources, a batch refers to a subset of stored events grouped by their eventTime. </p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { CloudWatchLogsClient, DescribeImportTaskBatchesCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
36
+ * // const { CloudWatchLogsClient, DescribeImportTaskBatchesCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
37
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
38
+ * const config = {}; // type is CloudWatchLogsClientConfig
39
+ * const client = new CloudWatchLogsClient(config);
40
+ * const input = { // DescribeImportTaskBatchesRequest
41
+ * importId: "STRING_VALUE", // required
42
+ * batchImportStatus: [ // ImportStatusList
43
+ * "IN_PROGRESS" || "CANCELLED" || "COMPLETED" || "FAILED",
44
+ * ],
45
+ * limit: Number("int"),
46
+ * nextToken: "STRING_VALUE",
47
+ * };
48
+ * const command = new DescribeImportTaskBatchesCommand(input);
49
+ * const response = await client.send(command);
50
+ * // { // DescribeImportTaskBatchesResponse
51
+ * // importSourceArn: "STRING_VALUE",
52
+ * // importId: "STRING_VALUE",
53
+ * // importBatches: [ // ImportBatchList
54
+ * // { // ImportBatch
55
+ * // batchId: "STRING_VALUE", // required
56
+ * // status: "IN_PROGRESS" || "CANCELLED" || "COMPLETED" || "FAILED", // required
57
+ * // errorMessage: "STRING_VALUE",
58
+ * // },
59
+ * // ],
60
+ * // nextToken: "STRING_VALUE",
61
+ * // };
62
+ *
63
+ * ```
64
+ *
65
+ * @param DescribeImportTaskBatchesCommandInput - {@link DescribeImportTaskBatchesCommandInput}
66
+ * @returns {@link DescribeImportTaskBatchesCommandOutput}
67
+ * @see {@link DescribeImportTaskBatchesCommandInput} for command's `input` shape.
68
+ * @see {@link DescribeImportTaskBatchesCommandOutput} for command's `response` shape.
69
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
70
+ *
71
+ * @throws {@link AccessDeniedException} (client fault)
72
+ * <p>You don't have sufficient permissions to perform this action.</p>
73
+ *
74
+ * @throws {@link InvalidOperationException} (client fault)
75
+ * <p>The operation is not valid on the specified resource.</p>
76
+ *
77
+ * @throws {@link InvalidParameterException} (client fault)
78
+ * <p>A parameter is specified incorrectly.</p>
79
+ *
80
+ * @throws {@link ResourceNotFoundException} (client fault)
81
+ * <p>The specified resource does not exist.</p>
82
+ *
83
+ * @throws {@link ThrottlingException} (client fault)
84
+ * <p>The request was throttled because of quota limits.</p>
85
+ *
86
+ * @throws {@link CloudWatchLogsServiceException}
87
+ * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
88
+ *
89
+ *
90
+ * @public
91
+ */
92
+ export declare class DescribeImportTaskBatchesCommand extends DescribeImportTaskBatchesCommand_base {
93
+ /** @internal type navigation helper, not in runtime. */
94
+ protected static __types: {
95
+ api: {
96
+ input: DescribeImportTaskBatchesRequest;
97
+ output: DescribeImportTaskBatchesResponse;
98
+ };
99
+ sdk: {
100
+ input: DescribeImportTaskBatchesCommandInput;
101
+ output: DescribeImportTaskBatchesCommandOutput;
102
+ };
103
+ };
104
+ }
@@ -0,0 +1,111 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
4
+ import type { DescribeImportTasksRequest, DescribeImportTasksResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DescribeImportTasksCommand}.
14
+ */
15
+ export interface DescribeImportTasksCommandInput extends DescribeImportTasksRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DescribeImportTasksCommand}.
21
+ */
22
+ export interface DescribeImportTasksCommandOutput extends DescribeImportTasksResponse, __MetadataBearer {
23
+ }
24
+ declare const DescribeImportTasksCommand_base: {
25
+ new (input: DescribeImportTasksCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeImportTasksCommandInput, DescribeImportTasksCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [DescribeImportTasksCommandInput]): import("@smithy/smithy-client").CommandImpl<DescribeImportTasksCommandInput, DescribeImportTasksCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists and describes import tasks, with optional filtering by import status and source ARN.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { CloudWatchLogsClient, DescribeImportTasksCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
35
+ * // const { CloudWatchLogsClient, DescribeImportTasksCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
36
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
37
+ * const config = {}; // type is CloudWatchLogsClientConfig
38
+ * const client = new CloudWatchLogsClient(config);
39
+ * const input = { // DescribeImportTasksRequest
40
+ * importId: "STRING_VALUE",
41
+ * importStatus: "IN_PROGRESS" || "CANCELLED" || "COMPLETED" || "FAILED",
42
+ * importSourceArn: "STRING_VALUE",
43
+ * limit: Number("int"),
44
+ * nextToken: "STRING_VALUE",
45
+ * };
46
+ * const command = new DescribeImportTasksCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // DescribeImportTasksResponse
49
+ * // imports: [ // ImportList
50
+ * // { // Import
51
+ * // importId: "STRING_VALUE",
52
+ * // importSourceArn: "STRING_VALUE",
53
+ * // importStatus: "IN_PROGRESS" || "CANCELLED" || "COMPLETED" || "FAILED",
54
+ * // importDestinationArn: "STRING_VALUE",
55
+ * // importStatistics: { // ImportStatistics
56
+ * // bytesImported: Number("long"),
57
+ * // },
58
+ * // importFilter: { // ImportFilter
59
+ * // startEventTime: Number("long"),
60
+ * // endEventTime: Number("long"),
61
+ * // },
62
+ * // creationTime: Number("long"),
63
+ * // lastUpdatedTime: Number("long"),
64
+ * // errorMessage: "STRING_VALUE",
65
+ * // },
66
+ * // ],
67
+ * // nextToken: "STRING_VALUE",
68
+ * // };
69
+ *
70
+ * ```
71
+ *
72
+ * @param DescribeImportTasksCommandInput - {@link DescribeImportTasksCommandInput}
73
+ * @returns {@link DescribeImportTasksCommandOutput}
74
+ * @see {@link DescribeImportTasksCommandInput} for command's `input` shape.
75
+ * @see {@link DescribeImportTasksCommandOutput} for command's `response` shape.
76
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
77
+ *
78
+ * @throws {@link AccessDeniedException} (client fault)
79
+ * <p>You don't have sufficient permissions to perform this action.</p>
80
+ *
81
+ * @throws {@link InvalidOperationException} (client fault)
82
+ * <p>The operation is not valid on the specified resource.</p>
83
+ *
84
+ * @throws {@link InvalidParameterException} (client fault)
85
+ * <p>A parameter is specified incorrectly.</p>
86
+ *
87
+ * @throws {@link ResourceNotFoundException} (client fault)
88
+ * <p>The specified resource does not exist.</p>
89
+ *
90
+ * @throws {@link ThrottlingException} (client fault)
91
+ * <p>The request was throttled because of quota limits.</p>
92
+ *
93
+ * @throws {@link CloudWatchLogsServiceException}
94
+ * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
95
+ *
96
+ *
97
+ * @public
98
+ */
99
+ export declare class DescribeImportTasksCommand extends DescribeImportTasksCommand_base {
100
+ /** @internal type navigation helper, not in runtime. */
101
+ protected static __types: {
102
+ api: {
103
+ input: DescribeImportTasksRequest;
104
+ output: DescribeImportTasksResponse;
105
+ };
106
+ sdk: {
107
+ input: DescribeImportTasksCommandInput;
108
+ output: DescribeImportTasksCommandOutput;
109
+ };
110
+ };
111
+ }
@@ -32,8 +32,8 @@ declare const DescribeQueriesCommand_base: {
32
32
  * specific log group or queries with a certain status.</p>
33
33
  * <p>This operation includes both interactive queries started directly by users and automated
34
34
  * queries executed by scheduled query configurations. Scheduled query executions appear in the
35
- * results alongside manually initiated queries, providing visibility into all query activity
36
- * in your account.</p>
35
+ * results alongside manually initiated queries, providing visibility into all query activity in
36
+ * your account.</p>
37
37
  * @example
38
38
  * Use a bare-bones client and the command you need to make an API call.
39
39
  * ```javascript
@@ -42,7 +42,8 @@ declare const GetQueryResultsCommand_base: {
42
42
  * results. </p>
43
43
  * <p>This operation is used both for retrieving results from interactive queries and from
44
44
  * automated scheduled query executions. Scheduled queries use <code>GetQueryResults</code>
45
- * internally to retrieve query results for processing and delivery to configured destinations.</p>
45
+ * internally to retrieve query results for processing and delivery to configured
46
+ * destinations.</p>
46
47
  * <p>If you are using CloudWatch cross-account observability, you can use this operation
47
48
  * in a monitoring account to start queries in linked source accounts. For more information, see
48
49
  * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch cross-account observability</a>.</p>
@@ -27,7 +27,8 @@ declare const GetScheduledQueryCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Retrieves details about a specific scheduled query, including its configuration, execution status, and metadata.</p>
30
+ * <p>Retrieves details about a specific scheduled query, including its configuration, execution
31
+ * status, and metadata.</p>
31
32
  * @example
32
33
  * Use a bare-bones client and the command you need to make an API call.
33
34
  * ```javascript