@aws-sdk/client-cloudwatch-logs 3.948.0 → 3.953.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 (166) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/index.js +1562 -897
  3. package/dist-cjs/runtimeConfig.shared.js +7 -6
  4. package/dist-es/CloudWatchLogs.js +8 -0
  5. package/dist-es/commands/AssociateKmsKeyCommand.js +2 -2
  6. package/dist-es/commands/AssociateSourceToS3TableIntegrationCommand.js +2 -2
  7. package/dist-es/commands/CancelExportTaskCommand.js +2 -2
  8. package/dist-es/commands/CancelImportTaskCommand.js +16 -0
  9. package/dist-es/commands/CreateDeliveryCommand.js +2 -2
  10. package/dist-es/commands/CreateExportTaskCommand.js +2 -2
  11. package/dist-es/commands/CreateImportTaskCommand.js +16 -0
  12. package/dist-es/commands/CreateLogAnomalyDetectorCommand.js +2 -2
  13. package/dist-es/commands/CreateLogGroupCommand.js +2 -2
  14. package/dist-es/commands/CreateLogStreamCommand.js +2 -2
  15. package/dist-es/commands/CreateScheduledQueryCommand.js +2 -2
  16. package/dist-es/commands/DeleteAccountPolicyCommand.js +2 -2
  17. package/dist-es/commands/DeleteDataProtectionPolicyCommand.js +2 -2
  18. package/dist-es/commands/DeleteDeliveryCommand.js +2 -2
  19. package/dist-es/commands/DeleteDeliveryDestinationCommand.js +2 -2
  20. package/dist-es/commands/DeleteDeliveryDestinationPolicyCommand.js +2 -2
  21. package/dist-es/commands/DeleteDeliverySourceCommand.js +2 -2
  22. package/dist-es/commands/DeleteDestinationCommand.js +2 -2
  23. package/dist-es/commands/DeleteIndexPolicyCommand.js +2 -2
  24. package/dist-es/commands/DeleteIntegrationCommand.js +2 -2
  25. package/dist-es/commands/DeleteLogAnomalyDetectorCommand.js +2 -2
  26. package/dist-es/commands/DeleteLogGroupCommand.js +2 -2
  27. package/dist-es/commands/DeleteLogStreamCommand.js +2 -2
  28. package/dist-es/commands/DeleteMetricFilterCommand.js +2 -2
  29. package/dist-es/commands/DeleteQueryDefinitionCommand.js +2 -2
  30. package/dist-es/commands/DeleteResourcePolicyCommand.js +2 -2
  31. package/dist-es/commands/DeleteRetentionPolicyCommand.js +2 -2
  32. package/dist-es/commands/DeleteScheduledQueryCommand.js +2 -2
  33. package/dist-es/commands/DeleteSubscriptionFilterCommand.js +2 -2
  34. package/dist-es/commands/DeleteTransformerCommand.js +2 -2
  35. package/dist-es/commands/DescribeAccountPoliciesCommand.js +2 -2
  36. package/dist-es/commands/DescribeConfigurationTemplatesCommand.js +2 -2
  37. package/dist-es/commands/DescribeDeliveriesCommand.js +2 -2
  38. package/dist-es/commands/DescribeDeliveryDestinationsCommand.js +2 -2
  39. package/dist-es/commands/DescribeDeliverySourcesCommand.js +2 -2
  40. package/dist-es/commands/DescribeDestinationsCommand.js +2 -2
  41. package/dist-es/commands/DescribeExportTasksCommand.js +2 -2
  42. package/dist-es/commands/DescribeFieldIndexesCommand.js +2 -2
  43. package/dist-es/commands/DescribeImportTaskBatchesCommand.js +16 -0
  44. package/dist-es/commands/DescribeImportTasksCommand.js +16 -0
  45. package/dist-es/commands/DescribeIndexPoliciesCommand.js +2 -2
  46. package/dist-es/commands/DescribeLogGroupsCommand.js +2 -2
  47. package/dist-es/commands/DescribeLogStreamsCommand.js +2 -2
  48. package/dist-es/commands/DescribeMetricFiltersCommand.js +2 -2
  49. package/dist-es/commands/DescribeQueriesCommand.js +2 -2
  50. package/dist-es/commands/DescribeQueryDefinitionsCommand.js +2 -2
  51. package/dist-es/commands/DescribeResourcePoliciesCommand.js +2 -2
  52. package/dist-es/commands/DescribeSubscriptionFiltersCommand.js +2 -2
  53. package/dist-es/commands/DisassociateKmsKeyCommand.js +2 -2
  54. package/dist-es/commands/DisassociateSourceFromS3TableIntegrationCommand.js +2 -2
  55. package/dist-es/commands/FilterLogEventsCommand.js +2 -2
  56. package/dist-es/commands/GetDataProtectionPolicyCommand.js +2 -2
  57. package/dist-es/commands/GetDeliveryCommand.js +2 -2
  58. package/dist-es/commands/GetDeliveryDestinationCommand.js +2 -2
  59. package/dist-es/commands/GetDeliveryDestinationPolicyCommand.js +2 -2
  60. package/dist-es/commands/GetDeliverySourceCommand.js +2 -2
  61. package/dist-es/commands/GetIntegrationCommand.js +2 -2
  62. package/dist-es/commands/GetLogAnomalyDetectorCommand.js +2 -2
  63. package/dist-es/commands/GetLogEventsCommand.js +2 -2
  64. package/dist-es/commands/GetLogFieldsCommand.js +2 -2
  65. package/dist-es/commands/GetLogGroupFieldsCommand.js +2 -2
  66. package/dist-es/commands/GetLogObjectCommand.js +2 -2
  67. package/dist-es/commands/GetLogRecordCommand.js +2 -2
  68. package/dist-es/commands/GetQueryResultsCommand.js +2 -2
  69. package/dist-es/commands/GetScheduledQueryCommand.js +2 -2
  70. package/dist-es/commands/GetScheduledQueryHistoryCommand.js +2 -2
  71. package/dist-es/commands/GetTransformerCommand.js +2 -2
  72. package/dist-es/commands/ListAggregateLogGroupSummariesCommand.js +2 -2
  73. package/dist-es/commands/ListAnomaliesCommand.js +2 -2
  74. package/dist-es/commands/ListIntegrationsCommand.js +2 -2
  75. package/dist-es/commands/ListLogAnomalyDetectorsCommand.js +2 -2
  76. package/dist-es/commands/ListLogGroupsCommand.js +2 -2
  77. package/dist-es/commands/ListLogGroupsForQueryCommand.js +2 -2
  78. package/dist-es/commands/ListScheduledQueriesCommand.js +2 -2
  79. package/dist-es/commands/ListSourcesForS3TableIntegrationCommand.js +2 -2
  80. package/dist-es/commands/ListTagsForResourceCommand.js +2 -2
  81. package/dist-es/commands/ListTagsLogGroupCommand.js +2 -2
  82. package/dist-es/commands/PutAccountPolicyCommand.js +2 -2
  83. package/dist-es/commands/PutDataProtectionPolicyCommand.js +2 -2
  84. package/dist-es/commands/PutDeliveryDestinationCommand.js +2 -2
  85. package/dist-es/commands/PutDeliveryDestinationPolicyCommand.js +2 -2
  86. package/dist-es/commands/PutDeliverySourceCommand.js +2 -2
  87. package/dist-es/commands/PutDestinationCommand.js +2 -2
  88. package/dist-es/commands/PutDestinationPolicyCommand.js +2 -2
  89. package/dist-es/commands/PutIndexPolicyCommand.js +2 -2
  90. package/dist-es/commands/PutIntegrationCommand.js +2 -2
  91. package/dist-es/commands/PutLogEventsCommand.js +2 -2
  92. package/dist-es/commands/PutLogGroupDeletionProtectionCommand.js +2 -2
  93. package/dist-es/commands/PutMetricFilterCommand.js +2 -2
  94. package/dist-es/commands/PutQueryDefinitionCommand.js +2 -2
  95. package/dist-es/commands/PutResourcePolicyCommand.js +2 -2
  96. package/dist-es/commands/PutRetentionPolicyCommand.js +2 -2
  97. package/dist-es/commands/PutSubscriptionFilterCommand.js +2 -2
  98. package/dist-es/commands/PutTransformerCommand.js +2 -2
  99. package/dist-es/commands/StartLiveTailCommand.js +2 -2
  100. package/dist-es/commands/StartQueryCommand.js +2 -2
  101. package/dist-es/commands/StopQueryCommand.js +2 -2
  102. package/dist-es/commands/TagLogGroupCommand.js +2 -2
  103. package/dist-es/commands/TagResourceCommand.js +2 -2
  104. package/dist-es/commands/TestMetricFilterCommand.js +2 -2
  105. package/dist-es/commands/TestTransformerCommand.js +2 -2
  106. package/dist-es/commands/UntagLogGroupCommand.js +2 -2
  107. package/dist-es/commands/UntagResourceCommand.js +2 -2
  108. package/dist-es/commands/UpdateAnomalyCommand.js +2 -2
  109. package/dist-es/commands/UpdateDeliveryConfigurationCommand.js +2 -2
  110. package/dist-es/commands/UpdateLogAnomalyDetectorCommand.js +2 -2
  111. package/dist-es/commands/UpdateScheduledQueryCommand.js +2 -2
  112. package/dist-es/commands/index.js +4 -0
  113. package/dist-es/index.js +1 -0
  114. package/dist-es/models/enums.js +6 -0
  115. package/dist-es/pagination/ListAggregateLogGroupSummariesPaginator.js +4 -0
  116. package/dist-es/pagination/index.js +1 -0
  117. package/dist-es/runtimeConfig.shared.js +7 -6
  118. package/dist-es/schemas/schemas_0.js +943 -766
  119. package/dist-types/CloudWatchLogs.d.ts +29 -0
  120. package/dist-types/CloudWatchLogsClient.d.ts +7 -12
  121. package/dist-types/commands/CancelImportTaskCommand.d.ts +95 -0
  122. package/dist-types/commands/CreateImportTaskCommand.d.ts +152 -0
  123. package/dist-types/commands/CreateScheduledQueryCommand.d.ts +4 -1
  124. package/dist-types/commands/DeleteAccountPolicyCommand.d.ts +8 -8
  125. package/dist-types/commands/DeleteIndexPolicyCommand.d.ts +6 -6
  126. package/dist-types/commands/DeleteScheduledQueryCommand.d.ts +2 -1
  127. package/dist-types/commands/DescribeImportTaskBatchesCommand.d.ts +104 -0
  128. package/dist-types/commands/DescribeImportTasksCommand.d.ts +111 -0
  129. package/dist-types/commands/DescribeQueriesCommand.d.ts +2 -2
  130. package/dist-types/commands/GetQueryResultsCommand.d.ts +2 -1
  131. package/dist-types/commands/GetScheduledQueryCommand.d.ts +2 -1
  132. package/dist-types/commands/GetScheduledQueryHistoryCommand.d.ts +2 -1
  133. package/dist-types/commands/ListScheduledQueriesCommand.d.ts +2 -1
  134. package/dist-types/commands/PutAccountPolicyCommand.d.ts +196 -47
  135. package/dist-types/commands/PutIndexPolicyCommand.d.ts +4 -4
  136. package/dist-types/commands/PutLogGroupDeletionProtectionCommand.d.ts +3 -2
  137. package/dist-types/commands/UpdateScheduledQueryCommand.d.ts +2 -1
  138. package/dist-types/commands/index.d.ts +4 -0
  139. package/dist-types/index.d.ts +1 -0
  140. package/dist-types/models/enums.d.ts +14 -0
  141. package/dist-types/models/models_0.d.ts +391 -44
  142. package/dist-types/pagination/ListAggregateLogGroupSummariesPaginator.d.ts +7 -0
  143. package/dist-types/pagination/index.d.ts +1 -0
  144. package/dist-types/runtimeConfig.browser.d.ts +6 -2
  145. package/dist-types/runtimeConfig.d.ts +6 -2
  146. package/dist-types/runtimeConfig.native.d.ts +6 -2
  147. package/dist-types/runtimeConfig.shared.d.ts +6 -1
  148. package/dist-types/schemas/schemas_0.d.ts +424 -498
  149. package/dist-types/ts3.4/CloudWatchLogs.d.ts +69 -0
  150. package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +24 -4
  151. package/dist-types/ts3.4/commands/CancelImportTaskCommand.d.ts +50 -0
  152. package/dist-types/ts3.4/commands/CreateImportTaskCommand.d.ts +50 -0
  153. package/dist-types/ts3.4/commands/DescribeImportTaskBatchesCommand.d.ts +51 -0
  154. package/dist-types/ts3.4/commands/DescribeImportTasksCommand.d.ts +51 -0
  155. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  156. package/dist-types/ts3.4/index.d.ts +1 -0
  157. package/dist-types/ts3.4/models/enums.d.ts +7 -0
  158. package/dist-types/ts3.4/models/models_0.d.ts +67 -0
  159. package/dist-types/ts3.4/pagination/ListAggregateLogGroupSummariesPaginator.d.ts +11 -0
  160. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  161. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -5
  162. package/dist-types/ts3.4/runtimeConfig.d.ts +9 -5
  163. package/dist-types/ts3.4/runtimeConfig.native.d.ts +9 -5
  164. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +9 -4
  165. package/dist-types/ts3.4/schemas/schemas_0.d.ts +423 -498
  166. package/package.json +37 -37
@@ -3,8 +3,10 @@ import { CloudWatchLogsClient } from "./CloudWatchLogsClient";
3
3
  import { AssociateKmsKeyCommandInput, AssociateKmsKeyCommandOutput } from "./commands/AssociateKmsKeyCommand";
4
4
  import { AssociateSourceToS3TableIntegrationCommandInput, AssociateSourceToS3TableIntegrationCommandOutput } from "./commands/AssociateSourceToS3TableIntegrationCommand";
5
5
  import { CancelExportTaskCommandInput, CancelExportTaskCommandOutput } from "./commands/CancelExportTaskCommand";
6
+ import { CancelImportTaskCommandInput, CancelImportTaskCommandOutput } from "./commands/CancelImportTaskCommand";
6
7
  import { CreateDeliveryCommandInput, CreateDeliveryCommandOutput } from "./commands/CreateDeliveryCommand";
7
8
  import { CreateExportTaskCommandInput, CreateExportTaskCommandOutput } from "./commands/CreateExportTaskCommand";
9
+ import { CreateImportTaskCommandInput, CreateImportTaskCommandOutput } from "./commands/CreateImportTaskCommand";
8
10
  import { CreateLogAnomalyDetectorCommandInput, CreateLogAnomalyDetectorCommandOutput } from "./commands/CreateLogAnomalyDetectorCommand";
9
11
  import { CreateLogGroupCommandInput, CreateLogGroupCommandOutput } from "./commands/CreateLogGroupCommand";
10
12
  import { CreateLogStreamCommandInput, CreateLogStreamCommandOutput } from "./commands/CreateLogStreamCommand";
@@ -36,6 +38,8 @@ import { DescribeDeliverySourcesCommandInput, DescribeDeliverySourcesCommandOutp
36
38
  import { DescribeDestinationsCommandInput, DescribeDestinationsCommandOutput } from "./commands/DescribeDestinationsCommand";
37
39
  import { DescribeExportTasksCommandInput, DescribeExportTasksCommandOutput } from "./commands/DescribeExportTasksCommand";
38
40
  import { DescribeFieldIndexesCommandInput, DescribeFieldIndexesCommandOutput } from "./commands/DescribeFieldIndexesCommand";
41
+ import { DescribeImportTaskBatchesCommandInput, DescribeImportTaskBatchesCommandOutput } from "./commands/DescribeImportTaskBatchesCommand";
42
+ import { DescribeImportTasksCommandInput, DescribeImportTasksCommandOutput } from "./commands/DescribeImportTasksCommand";
39
43
  import { DescribeIndexPoliciesCommandInput, DescribeIndexPoliciesCommandOutput } from "./commands/DescribeIndexPoliciesCommand";
40
44
  import { DescribeLogGroupsCommandInput, DescribeLogGroupsCommandOutput } from "./commands/DescribeLogGroupsCommand";
41
45
  import { DescribeLogStreamsCommandInput, DescribeLogStreamsCommandOutput } from "./commands/DescribeLogStreamsCommand";
@@ -122,6 +126,12 @@ export interface CloudWatchLogs {
122
126
  cancelExportTask(args: CancelExportTaskCommandInput, options?: __HttpHandlerOptions): Promise<CancelExportTaskCommandOutput>;
123
127
  cancelExportTask(args: CancelExportTaskCommandInput, cb: (err: any, data?: CancelExportTaskCommandOutput) => void): void;
124
128
  cancelExportTask(args: CancelExportTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelExportTaskCommandOutput) => void): void;
129
+ /**
130
+ * @see {@link CancelImportTaskCommand}
131
+ */
132
+ cancelImportTask(args: CancelImportTaskCommandInput, options?: __HttpHandlerOptions): Promise<CancelImportTaskCommandOutput>;
133
+ cancelImportTask(args: CancelImportTaskCommandInput, cb: (err: any, data?: CancelImportTaskCommandOutput) => void): void;
134
+ cancelImportTask(args: CancelImportTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelImportTaskCommandOutput) => void): void;
125
135
  /**
126
136
  * @see {@link CreateDeliveryCommand}
127
137
  */
@@ -134,6 +144,12 @@ export interface CloudWatchLogs {
134
144
  createExportTask(args: CreateExportTaskCommandInput, options?: __HttpHandlerOptions): Promise<CreateExportTaskCommandOutput>;
135
145
  createExportTask(args: CreateExportTaskCommandInput, cb: (err: any, data?: CreateExportTaskCommandOutput) => void): void;
136
146
  createExportTask(args: CreateExportTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateExportTaskCommandOutput) => void): void;
147
+ /**
148
+ * @see {@link CreateImportTaskCommand}
149
+ */
150
+ createImportTask(args: CreateImportTaskCommandInput, options?: __HttpHandlerOptions): Promise<CreateImportTaskCommandOutput>;
151
+ createImportTask(args: CreateImportTaskCommandInput, cb: (err: any, data?: CreateImportTaskCommandOutput) => void): void;
152
+ createImportTask(args: CreateImportTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateImportTaskCommandOutput) => void): void;
137
153
  /**
138
154
  * @see {@link CreateLogAnomalyDetectorCommand}
139
155
  */
@@ -327,6 +343,19 @@ export interface CloudWatchLogs {
327
343
  describeFieldIndexes(args: DescribeFieldIndexesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeFieldIndexesCommandOutput>;
328
344
  describeFieldIndexes(args: DescribeFieldIndexesCommandInput, cb: (err: any, data?: DescribeFieldIndexesCommandOutput) => void): void;
329
345
  describeFieldIndexes(args: DescribeFieldIndexesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeFieldIndexesCommandOutput) => void): void;
346
+ /**
347
+ * @see {@link DescribeImportTaskBatchesCommand}
348
+ */
349
+ describeImportTaskBatches(args: DescribeImportTaskBatchesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeImportTaskBatchesCommandOutput>;
350
+ describeImportTaskBatches(args: DescribeImportTaskBatchesCommandInput, cb: (err: any, data?: DescribeImportTaskBatchesCommandOutput) => void): void;
351
+ describeImportTaskBatches(args: DescribeImportTaskBatchesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeImportTaskBatchesCommandOutput) => void): void;
352
+ /**
353
+ * @see {@link DescribeImportTasksCommand}
354
+ */
355
+ describeImportTasks(): Promise<DescribeImportTasksCommandOutput>;
356
+ describeImportTasks(args: DescribeImportTasksCommandInput, options?: __HttpHandlerOptions): Promise<DescribeImportTasksCommandOutput>;
357
+ describeImportTasks(args: DescribeImportTasksCommandInput, cb: (err: any, data?: DescribeImportTasksCommandOutput) => void): void;
358
+ describeImportTasks(args: DescribeImportTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeImportTasksCommandOutput) => void): void;
330
359
  /**
331
360
  * @see {@link DescribeIndexPoliciesCommand}
332
361
  */
@@ -6,13 +6,15 @@ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/m
6
6
  import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
7
7
  import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
8
8
  import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
9
- import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type ClientProtocol, type Decoder as __Decoder, type Encoder as __Encoder, type EventStreamSerdeProvider as __EventStreamSerdeProvider, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type HttpRequest, type HttpResponse, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
9
+ import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type Decoder as __Decoder, type Encoder as __Encoder, type EventStreamSerdeProvider as __EventStreamSerdeProvider, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
10
10
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
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
  */
@@ -245,15 +249,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
245
249
  * Optional extensions
246
250
  */
247
251
  extensions?: RuntimeExtension[];
248
- /**
249
- * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
250
- * may be overridden. A default will always be set by the client.
251
- * Available options depend on the service's supported protocols and will not be validated by
252
- * the client.
253
- * @alpha
254
- *
255
- */
256
- protocol?: ClientProtocol<HttpRequest, HttpResponse>;
257
252
  /**
258
253
  * The function that provides necessary utilities for generating and parsing event stream
259
254
  */
@@ -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
+ }