@aws-sdk/client-cloudtrail 3.933.0 → 3.935.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 (44) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +183 -127
  3. package/dist-es/CloudTrail.js +2 -0
  4. package/dist-es/commands/ListInsightsDataCommand.js +16 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/index.js +2 -1
  7. package/dist-es/models/enums.js +118 -0
  8. package/dist-es/models/errors.js +1205 -0
  9. package/dist-es/models/models_0.js +1 -1311
  10. package/dist-es/pagination/ListInsightsDataPaginator.js +4 -0
  11. package/dist-es/pagination/index.js +1 -0
  12. package/dist-es/schemas/schemas_0.js +33 -8
  13. package/dist-types/CloudTrail.d.ts +7 -0
  14. package/dist-types/CloudTrailClient.d.ts +3 -2
  15. package/dist-types/commands/CreateEventDataStoreCommand.d.ts +5 -0
  16. package/dist-types/commands/DeleteTrailCommand.d.ts +12 -0
  17. package/dist-types/commands/GetInsightSelectorsCommand.d.ts +5 -2
  18. package/dist-types/commands/ListInsightsDataCommand.d.ts +126 -0
  19. package/dist-types/commands/ListInsightsMetricDataCommand.d.ts +35 -1
  20. package/dist-types/commands/PutInsightSelectorsCommand.d.ts +26 -2
  21. package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +11 -0
  22. package/dist-types/commands/index.d.ts +1 -0
  23. package/dist-types/index.d.ts +3 -1
  24. package/dist-types/models/enums.d.ts +294 -0
  25. package/dist-types/models/errors.d.ts +1615 -0
  26. package/dist-types/models/models_0.d.ts +239 -2023
  27. package/dist-types/pagination/ListInsightsDataPaginator.d.ts +7 -0
  28. package/dist-types/pagination/index.d.ts +1 -0
  29. package/dist-types/schemas/schemas_0.d.ts +5 -0
  30. package/dist-types/ts3.4/CloudTrail.d.ts +17 -0
  31. package/dist-types/ts3.4/CloudTrailClient.d.ts +6 -0
  32. package/dist-types/ts3.4/commands/ListInsightsDataCommand.d.ts +50 -0
  33. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  34. package/dist-types/ts3.4/index.d.ts +3 -1
  35. package/dist-types/ts3.4/models/enums.d.ts +153 -0
  36. package/dist-types/ts3.4/models/errors.d.ts +794 -0
  37. package/dist-types/ts3.4/models/models_0.d.ts +57 -944
  38. package/dist-types/ts3.4/pagination/ListInsightsDataPaginator.d.ts +11 -0
  39. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  40. package/dist-types/ts3.4/schemas/schemas_0.d.ts +5 -0
  41. package/package.json +12 -12
  42. package/dist-es/models/index.js +0 -1
  43. package/dist-types/models/index.d.ts +0 -1
  44. package/dist-types/ts3.4/models/index.d.ts +0 -1
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListInsightsDataCommandInput, ListInsightsDataCommandOutput } from "../commands/ListInsightsDataCommand";
3
+ import { CloudTrailPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListInsightsData: (config: CloudTrailPaginationConfiguration, input: ListInsightsDataCommandInput, ...rest: any[]) => Paginator<ListInsightsDataCommandOutput>;
@@ -4,6 +4,7 @@ export * from "./ListChannelsPaginator";
4
4
  export * from "./ListEventDataStoresPaginator";
5
5
  export * from "./ListImportFailuresPaginator";
6
6
  export * from "./ListImportsPaginator";
7
+ export * from "./ListInsightsDataPaginator";
7
8
  export * from "./ListInsightsMetricDataPaginator";
8
9
  export * from "./ListPublicKeysPaginator";
9
10
  export * from "./ListQueriesPaginator";
@@ -145,6 +145,8 @@ export declare var ListImportFailuresRequest: StaticStructureSchema;
145
145
  export declare var ListImportFailuresResponse: StaticStructureSchema;
146
146
  export declare var ListImportsRequest: StaticStructureSchema;
147
147
  export declare var ListImportsResponse: StaticStructureSchema;
148
+ export declare var ListInsightsDataRequest: StaticStructureSchema;
149
+ export declare var ListInsightsDataResponse: StaticStructureSchema;
148
150
  export declare var ListInsightsMetricDataRequest: StaticStructureSchema;
149
151
  export declare var ListInsightsMetricDataResponse: StaticStructureSchema;
150
152
  export declare var ListPublicKeysRequest: StaticStructureSchema;
@@ -271,12 +273,14 @@ export declare var ResourceIdList: number;
271
273
  export declare var ResourceList: StaticListSchema;
272
274
  export declare var ResourceTagList: StaticListSchema;
273
275
  export declare var SearchSampleQueriesSearchResults: StaticListSchema;
276
+ export declare var SourceEventCategories: number;
274
277
  export declare var TagsList: StaticListSchema;
275
278
  export declare var Timestamps: number;
276
279
  export declare var TrailList: StaticListSchema;
277
280
  export declare var TrailNameList: number;
278
281
  export declare var Trails: StaticListSchema;
279
282
  export declare var WidgetList: StaticListSchema;
283
+ export declare var ListInsightsDataDimensions: number;
280
284
  export declare var QueryParameterValues: number;
281
285
  export declare var QueryResultColumn: number;
282
286
  export declare var ViewPropertiesMap: number;
@@ -313,6 +317,7 @@ export declare var ListDashboards: StaticOperationSchema;
313
317
  export declare var ListEventDataStores: StaticOperationSchema;
314
318
  export declare var ListImportFailures: StaticOperationSchema;
315
319
  export declare var ListImports: StaticOperationSchema;
320
+ export declare var ListInsightsData: StaticOperationSchema;
316
321
  export declare var ListInsightsMetricData: StaticOperationSchema;
317
322
  export declare var ListPublicKeys: StaticOperationSchema;
318
323
  export declare var ListQueries: StaticOperationSchema;
@@ -132,6 +132,10 @@ import {
132
132
  ListImportsCommandInput,
133
133
  ListImportsCommandOutput,
134
134
  } from "./commands/ListImportsCommand";
135
+ import {
136
+ ListInsightsDataCommandInput,
137
+ ListInsightsDataCommandOutput,
138
+ } from "./commands/ListInsightsDataCommand";
135
139
  import {
136
140
  ListInsightsMetricDataCommandInput,
137
141
  ListInsightsMetricDataCommandOutput,
@@ -680,6 +684,19 @@ export interface CloudTrail {
680
684
  options: __HttpHandlerOptions,
681
685
  cb: (err: any, data?: ListImportsCommandOutput) => void
682
686
  ): void;
687
+ listInsightsData(
688
+ args: ListInsightsDataCommandInput,
689
+ options?: __HttpHandlerOptions
690
+ ): Promise<ListInsightsDataCommandOutput>;
691
+ listInsightsData(
692
+ args: ListInsightsDataCommandInput,
693
+ cb: (err: any, data?: ListInsightsDataCommandOutput) => void
694
+ ): void;
695
+ listInsightsData(
696
+ args: ListInsightsDataCommandInput,
697
+ options: __HttpHandlerOptions,
698
+ cb: (err: any, data?: ListInsightsDataCommandOutput) => void
699
+ ): void;
683
700
  listInsightsMetricData(
684
701
  args: ListInsightsMetricDataCommandInput,
685
702
  options?: __HttpHandlerOptions
@@ -180,6 +180,10 @@ import {
180
180
  ListImportsCommandInput,
181
181
  ListImportsCommandOutput,
182
182
  } from "./commands/ListImportsCommand";
183
+ import {
184
+ ListInsightsDataCommandInput,
185
+ ListInsightsDataCommandOutput,
186
+ } from "./commands/ListInsightsDataCommand";
183
187
  import {
184
188
  ListInsightsMetricDataCommandInput,
185
189
  ListInsightsMetricDataCommandOutput,
@@ -325,6 +329,7 @@ export type ServiceInputTypes =
325
329
  | ListEventDataStoresCommandInput
326
330
  | ListImportFailuresCommandInput
327
331
  | ListImportsCommandInput
332
+ | ListInsightsDataCommandInput
328
333
  | ListInsightsMetricDataCommandInput
329
334
  | ListPublicKeysCommandInput
330
335
  | ListQueriesCommandInput
@@ -385,6 +390,7 @@ export type ServiceOutputTypes =
385
390
  | ListEventDataStoresCommandOutput
386
391
  | ListImportFailuresCommandOutput
387
392
  | ListImportsCommandOutput
393
+ | ListInsightsDataCommandOutput
388
394
  | ListInsightsMetricDataCommandOutput
389
395
  | ListPublicKeysCommandOutput
390
396
  | ListQueriesCommandOutput
@@ -0,0 +1,50 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ CloudTrailClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../CloudTrailClient";
8
+ import {
9
+ ListInsightsDataRequest,
10
+ ListInsightsDataResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface ListInsightsDataCommandInput extends ListInsightsDataRequest {}
15
+ export interface ListInsightsDataCommandOutput
16
+ extends ListInsightsDataResponse,
17
+ __MetadataBearer {}
18
+ declare const ListInsightsDataCommand_base: {
19
+ new (
20
+ input: ListInsightsDataCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ ListInsightsDataCommandInput,
23
+ ListInsightsDataCommandOutput,
24
+ CloudTrailClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ input: ListInsightsDataCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ ListInsightsDataCommandInput,
32
+ ListInsightsDataCommandOutput,
33
+ CloudTrailClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class ListInsightsDataCommand extends ListInsightsDataCommand_base {
40
+ protected static __types: {
41
+ api: {
42
+ input: ListInsightsDataRequest;
43
+ output: ListInsightsDataResponse;
44
+ };
45
+ sdk: {
46
+ input: ListInsightsDataCommandInput;
47
+ output: ListInsightsDataCommandOutput;
48
+ };
49
+ };
50
+ }
@@ -31,6 +31,7 @@ export * from "./ListDashboardsCommand";
31
31
  export * from "./ListEventDataStoresCommand";
32
32
  export * from "./ListImportFailuresCommand";
33
33
  export * from "./ListImportsCommand";
34
+ export * from "./ListInsightsDataCommand";
34
35
  export * from "./ListInsightsMetricDataCommand";
35
36
  export * from "./ListPublicKeysCommand";
36
37
  export * from "./ListQueriesCommand";
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { CloudTrailExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
- export * from "./models";
8
+ export * from "./models/enums";
9
+ export * from "./models/errors";
10
+ export * from "./models/models_0";
9
11
  export { CloudTrailServiceException } from "./models/CloudTrailServiceException";
@@ -0,0 +1,153 @@
1
+ export declare const BillingMode: {
2
+ readonly EXTENDABLE_RETENTION_PRICING: "EXTENDABLE_RETENTION_PRICING";
3
+ readonly FIXED_RETENTION_PRICING: "FIXED_RETENTION_PRICING";
4
+ };
5
+ export type BillingMode = (typeof BillingMode)[keyof typeof BillingMode];
6
+ export declare const QueryStatus: {
7
+ readonly CANCELLED: "CANCELLED";
8
+ readonly FAILED: "FAILED";
9
+ readonly FINISHED: "FINISHED";
10
+ readonly QUEUED: "QUEUED";
11
+ readonly RUNNING: "RUNNING";
12
+ readonly TIMED_OUT: "TIMED_OUT";
13
+ };
14
+ export type QueryStatus = (typeof QueryStatus)[keyof typeof QueryStatus];
15
+ export declare const DestinationType: {
16
+ readonly AWS_SERVICE: "AWS_SERVICE";
17
+ readonly EVENT_DATA_STORE: "EVENT_DATA_STORE";
18
+ };
19
+ export type DestinationType =
20
+ (typeof DestinationType)[keyof typeof DestinationType];
21
+ export declare const RefreshScheduleFrequencyUnit: {
22
+ readonly DAYS: "DAYS";
23
+ readonly HOURS: "HOURS";
24
+ };
25
+ export type RefreshScheduleFrequencyUnit =
26
+ (typeof RefreshScheduleFrequencyUnit)[keyof typeof RefreshScheduleFrequencyUnit];
27
+ export declare const RefreshScheduleStatus: {
28
+ readonly DISABLED: "DISABLED";
29
+ readonly ENABLED: "ENABLED";
30
+ };
31
+ export type RefreshScheduleStatus =
32
+ (typeof RefreshScheduleStatus)[keyof typeof RefreshScheduleStatus];
33
+ export declare const DashboardType: {
34
+ readonly CUSTOM: "CUSTOM";
35
+ readonly MANAGED: "MANAGED";
36
+ };
37
+ export type DashboardType = (typeof DashboardType)[keyof typeof DashboardType];
38
+ export declare const EventDataStoreStatus: {
39
+ readonly CREATED: "CREATED";
40
+ readonly ENABLED: "ENABLED";
41
+ readonly PENDING_DELETION: "PENDING_DELETION";
42
+ readonly STARTING_INGESTION: "STARTING_INGESTION";
43
+ readonly STOPPED_INGESTION: "STOPPED_INGESTION";
44
+ readonly STOPPING_INGESTION: "STOPPING_INGESTION";
45
+ };
46
+ export type EventDataStoreStatus =
47
+ (typeof EventDataStoreStatus)[keyof typeof EventDataStoreStatus];
48
+ export declare const DeliveryStatus: {
49
+ readonly ACCESS_DENIED: "ACCESS_DENIED";
50
+ readonly ACCESS_DENIED_SIGNING_FILE: "ACCESS_DENIED_SIGNING_FILE";
51
+ readonly CANCELLED: "CANCELLED";
52
+ readonly FAILED: "FAILED";
53
+ readonly FAILED_SIGNING_FILE: "FAILED_SIGNING_FILE";
54
+ readonly PENDING: "PENDING";
55
+ readonly RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
56
+ readonly SUCCESS: "SUCCESS";
57
+ readonly UNKNOWN: "UNKNOWN";
58
+ };
59
+ export type DeliveryStatus =
60
+ (typeof DeliveryStatus)[keyof typeof DeliveryStatus];
61
+ export declare const FederationStatus: {
62
+ readonly DISABLED: "DISABLED";
63
+ readonly DISABLING: "DISABLING";
64
+ readonly ENABLED: "ENABLED";
65
+ readonly ENABLING: "ENABLING";
66
+ };
67
+ export type FederationStatus =
68
+ (typeof FederationStatus)[keyof typeof FederationStatus];
69
+ export declare const DashboardStatus: {
70
+ readonly CREATED: "CREATED";
71
+ readonly CREATING: "CREATING";
72
+ readonly DELETING: "DELETING";
73
+ readonly UPDATED: "UPDATED";
74
+ readonly UPDATING: "UPDATING";
75
+ };
76
+ export type DashboardStatus =
77
+ (typeof DashboardStatus)[keyof typeof DashboardStatus];
78
+ export declare const Type: {
79
+ readonly RequestContext: "RequestContext";
80
+ readonly TagContext: "TagContext";
81
+ };
82
+ export type Type = (typeof Type)[keyof typeof Type];
83
+ export declare const MaxEventSize: {
84
+ readonly Large: "Large";
85
+ readonly Standard: "Standard";
86
+ };
87
+ export type MaxEventSize = (typeof MaxEventSize)[keyof typeof MaxEventSize];
88
+ export declare const ReadWriteType: {
89
+ readonly All: "All";
90
+ readonly ReadOnly: "ReadOnly";
91
+ readonly WriteOnly: "WriteOnly";
92
+ };
93
+ export type ReadWriteType = (typeof ReadWriteType)[keyof typeof ReadWriteType];
94
+ export declare const ImportStatus: {
95
+ readonly COMPLETED: "COMPLETED";
96
+ readonly FAILED: "FAILED";
97
+ readonly INITIALIZING: "INITIALIZING";
98
+ readonly IN_PROGRESS: "IN_PROGRESS";
99
+ readonly STOPPED: "STOPPED";
100
+ };
101
+ export type ImportStatus = (typeof ImportStatus)[keyof typeof ImportStatus];
102
+ export declare const SourceEventCategory: {
103
+ readonly Data: "Data";
104
+ readonly Management: "Management";
105
+ };
106
+ export type SourceEventCategory =
107
+ (typeof SourceEventCategory)[keyof typeof SourceEventCategory];
108
+ export declare const InsightType: {
109
+ readonly ApiCallRateInsight: "ApiCallRateInsight";
110
+ readonly ApiErrorRateInsight: "ApiErrorRateInsight";
111
+ };
112
+ export type InsightType = (typeof InsightType)[keyof typeof InsightType];
113
+ export declare const ImportFailureStatus: {
114
+ readonly FAILED: "FAILED";
115
+ readonly RETRY: "RETRY";
116
+ readonly SUCCEEDED: "SUCCEEDED";
117
+ };
118
+ export type ImportFailureStatus =
119
+ (typeof ImportFailureStatus)[keyof typeof ImportFailureStatus];
120
+ export declare const ListInsightsDataType: {
121
+ readonly INSIGHTS_EVENTS: "InsightsEvents";
122
+ };
123
+ export type ListInsightsDataType =
124
+ (typeof ListInsightsDataType)[keyof typeof ListInsightsDataType];
125
+ export declare const ListInsightsDataDimensionKey: {
126
+ readonly EVENT_ID: "EventId";
127
+ readonly EVENT_NAME: "EventName";
128
+ readonly EVENT_SOURCE: "EventSource";
129
+ };
130
+ export type ListInsightsDataDimensionKey =
131
+ (typeof ListInsightsDataDimensionKey)[keyof typeof ListInsightsDataDimensionKey];
132
+ export declare const InsightsMetricDataType: {
133
+ readonly FILL_WITH_ZEROS: "FillWithZeros";
134
+ readonly NON_ZERO_DATA: "NonZeroData";
135
+ };
136
+ export type InsightsMetricDataType =
137
+ (typeof InsightsMetricDataType)[keyof typeof InsightsMetricDataType];
138
+ export declare const EventCategory: {
139
+ readonly Insight: "insight";
140
+ };
141
+ export type EventCategory = (typeof EventCategory)[keyof typeof EventCategory];
142
+ export declare const LookupAttributeKey: {
143
+ readonly ACCESS_KEY_ID: "AccessKeyId";
144
+ readonly EVENT_ID: "EventId";
145
+ readonly EVENT_NAME: "EventName";
146
+ readonly EVENT_SOURCE: "EventSource";
147
+ readonly READ_ONLY: "ReadOnly";
148
+ readonly RESOURCE_NAME: "ResourceName";
149
+ readonly RESOURCE_TYPE: "ResourceType";
150
+ readonly USERNAME: "Username";
151
+ };
152
+ export type LookupAttributeKey =
153
+ (typeof LookupAttributeKey)[keyof typeof LookupAttributeKey];