@aws-sdk/client-cloudtrail 3.300.0 → 3.303.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 (49) hide show
  1. package/dist-cjs/models/models_0.js +62 -72
  2. package/dist-es/models/models_0.js +62 -72
  3. package/dist-types/commands/AddTagsCommand.d.ts +3 -3
  4. package/dist-types/commands/CancelQueryCommand.d.ts +1 -1
  5. package/dist-types/commands/CreateChannelCommand.d.ts +5 -5
  6. package/dist-types/commands/CreateEventDataStoreCommand.d.ts +9 -11
  7. package/dist-types/commands/CreateTrailCommand.d.ts +3 -3
  8. package/dist-types/commands/DeleteChannelCommand.d.ts +1 -1
  9. package/dist-types/commands/DeleteEventDataStoreCommand.d.ts +1 -1
  10. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +1 -1
  11. package/dist-types/commands/DeleteTrailCommand.d.ts +1 -1
  12. package/dist-types/commands/DeregisterOrganizationDelegatedAdminCommand.d.ts +1 -1
  13. package/dist-types/commands/DescribeQueryCommand.d.ts +1 -1
  14. package/dist-types/commands/DescribeTrailsCommand.d.ts +2 -2
  15. package/dist-types/commands/GetChannelCommand.d.ts +1 -1
  16. package/dist-types/commands/GetEventDataStoreCommand.d.ts +1 -1
  17. package/dist-types/commands/GetEventSelectorsCommand.d.ts +1 -1
  18. package/dist-types/commands/GetImportCommand.d.ts +1 -1
  19. package/dist-types/commands/GetInsightSelectorsCommand.d.ts +1 -1
  20. package/dist-types/commands/GetQueryResultsCommand.d.ts +1 -1
  21. package/dist-types/commands/GetResourcePolicyCommand.d.ts +1 -1
  22. package/dist-types/commands/GetTrailCommand.d.ts +1 -1
  23. package/dist-types/commands/GetTrailStatusCommand.d.ts +1 -1
  24. package/dist-types/commands/ListChannelsCommand.d.ts +1 -1
  25. package/dist-types/commands/ListEventDataStoresCommand.d.ts +1 -1
  26. package/dist-types/commands/ListImportFailuresCommand.d.ts +1 -1
  27. package/dist-types/commands/ListImportsCommand.d.ts +1 -1
  28. package/dist-types/commands/ListPublicKeysCommand.d.ts +1 -1
  29. package/dist-types/commands/ListQueriesCommand.d.ts +1 -1
  30. package/dist-types/commands/ListTagsCommand.d.ts +2 -2
  31. package/dist-types/commands/ListTrailsCommand.d.ts +1 -1
  32. package/dist-types/commands/LookupEventsCommand.d.ts +3 -3
  33. package/dist-types/commands/PutEventSelectorsCommand.d.ts +13 -15
  34. package/dist-types/commands/PutInsightSelectorsCommand.d.ts +3 -3
  35. package/dist-types/commands/PutResourcePolicyCommand.d.ts +1 -1
  36. package/dist-types/commands/RegisterOrganizationDelegatedAdminCommand.d.ts +1 -1
  37. package/dist-types/commands/RemoveTagsCommand.d.ts +3 -3
  38. package/dist-types/commands/RestoreEventDataStoreCommand.d.ts +1 -1
  39. package/dist-types/commands/StartImportCommand.d.ts +4 -4
  40. package/dist-types/commands/StartLoggingCommand.d.ts +1 -1
  41. package/dist-types/commands/StartQueryCommand.d.ts +1 -1
  42. package/dist-types/commands/StopImportCommand.d.ts +1 -1
  43. package/dist-types/commands/StopLoggingCommand.d.ts +1 -1
  44. package/dist-types/commands/UpdateChannelCommand.d.ts +3 -3
  45. package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +7 -9
  46. package/dist-types/commands/UpdateTrailCommand.d.ts +1 -1
  47. package/dist-types/models/models_0.d.ts +112 -62
  48. package/dist-types/ts3.4/models/models_0.d.ts +77 -62
  49. package/package.json +34 -34
@@ -186,14 +186,15 @@ export interface CancelQueryRequest {
186
186
  EventDataStore?: string;
187
187
  QueryId: string | undefined;
188
188
  }
189
- export declare enum QueryStatus {
190
- CANCELLED = "CANCELLED",
191
- FAILED = "FAILED",
192
- FINISHED = "FINISHED",
193
- QUEUED = "QUEUED",
194
- RUNNING = "RUNNING",
195
- TIMED_OUT = "TIMED_OUT",
196
- }
189
+ export declare const QueryStatus: {
190
+ readonly CANCELLED: "CANCELLED";
191
+ readonly FAILED: "FAILED";
192
+ readonly FINISHED: "FINISHED";
193
+ readonly QUEUED: "QUEUED";
194
+ readonly RUNNING: "RUNNING";
195
+ readonly TIMED_OUT: "TIMED_OUT";
196
+ };
197
+ export type QueryStatus = (typeof QueryStatus)[keyof typeof QueryStatus];
197
198
  export interface CancelQueryResponse {
198
199
  QueryId: string | undefined;
199
200
  QueryStatus: QueryStatus | string | undefined;
@@ -283,10 +284,12 @@ export declare class ChannelMaxLimitExceededException extends __BaseException {
283
284
  >
284
285
  );
285
286
  }
286
- export declare enum DestinationType {
287
- AWS_SERVICE = "AWS_SERVICE",
288
- EVENT_DATA_STORE = "EVENT_DATA_STORE",
289
- }
287
+ export declare const DestinationType: {
288
+ readonly AWS_SERVICE: "AWS_SERVICE";
289
+ readonly EVENT_DATA_STORE: "EVENT_DATA_STORE";
290
+ };
291
+ export type DestinationType =
292
+ (typeof DestinationType)[keyof typeof DestinationType];
290
293
  export interface Destination {
291
294
  Type: DestinationType | string | undefined;
292
295
  Location: string | undefined;
@@ -344,11 +347,13 @@ export interface CreateEventDataStoreRequest {
344
347
  TagsList?: Tag[];
345
348
  KmsKeyId?: string;
346
349
  }
347
- export declare enum EventDataStoreStatus {
348
- CREATED = "CREATED",
349
- ENABLED = "ENABLED",
350
- PENDING_DELETION = "PENDING_DELETION",
351
- }
350
+ export declare const EventDataStoreStatus: {
351
+ readonly CREATED: "CREATED";
352
+ readonly ENABLED: "ENABLED";
353
+ readonly PENDING_DELETION: "PENDING_DELETION";
354
+ };
355
+ export type EventDataStoreStatus =
356
+ (typeof EventDataStoreStatus)[keyof typeof EventDataStoreStatus];
352
357
  export interface CreateEventDataStoreResponse {
353
358
  EventDataStoreArn?: string;
354
359
  Name?: string;
@@ -721,17 +726,19 @@ export interface DescribeQueryRequest {
721
726
  EventDataStore?: string;
722
727
  QueryId: string | undefined;
723
728
  }
724
- export declare enum DeliveryStatus {
725
- ACCESS_DENIED = "ACCESS_DENIED",
726
- ACCESS_DENIED_SIGNING_FILE = "ACCESS_DENIED_SIGNING_FILE",
727
- CANCELLED = "CANCELLED",
728
- FAILED = "FAILED",
729
- FAILED_SIGNING_FILE = "FAILED_SIGNING_FILE",
730
- PENDING = "PENDING",
731
- RESOURCE_NOT_FOUND = "RESOURCE_NOT_FOUND",
732
- SUCCESS = "SUCCESS",
733
- UNKNOWN = "UNKNOWN",
734
- }
729
+ export declare const DeliveryStatus: {
730
+ readonly ACCESS_DENIED: "ACCESS_DENIED";
731
+ readonly ACCESS_DENIED_SIGNING_FILE: "ACCESS_DENIED_SIGNING_FILE";
732
+ readonly CANCELLED: "CANCELLED";
733
+ readonly FAILED: "FAILED";
734
+ readonly FAILED_SIGNING_FILE: "FAILED_SIGNING_FILE";
735
+ readonly PENDING: "PENDING";
736
+ readonly RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
737
+ readonly SUCCESS: "SUCCESS";
738
+ readonly UNKNOWN: "UNKNOWN";
739
+ };
740
+ export type DeliveryStatus =
741
+ (typeof DeliveryStatus)[keyof typeof DeliveryStatus];
735
742
  export interface QueryStatisticsForDescribeQuery {
736
743
  EventsMatched?: number;
737
744
  EventsScanned?: number;
@@ -818,11 +825,12 @@ export interface DataResource {
818
825
  Type?: string;
819
826
  Values?: string[];
820
827
  }
821
- export declare enum ReadWriteType {
822
- All = "All",
823
- ReadOnly = "ReadOnly",
824
- WriteOnly = "WriteOnly",
825
- }
828
+ export declare const ReadWriteType: {
829
+ readonly All: "All";
830
+ readonly ReadOnly: "ReadOnly";
831
+ readonly WriteOnly: "WriteOnly";
832
+ };
833
+ export type ReadWriteType = (typeof ReadWriteType)[keyof typeof ReadWriteType];
826
834
  export interface EventSelector {
827
835
  ReadWriteType?: ReadWriteType | string;
828
836
  IncludeManagementEvents?: boolean;
@@ -852,13 +860,14 @@ export interface ImportStatistics {
852
860
  EventsCompleted?: number;
853
861
  FailedEntries?: number;
854
862
  }
855
- export declare enum ImportStatus {
856
- COMPLETED = "COMPLETED",
857
- FAILED = "FAILED",
858
- INITIALIZING = "INITIALIZING",
859
- IN_PROGRESS = "IN_PROGRESS",
860
- STOPPED = "STOPPED",
861
- }
863
+ export declare const ImportStatus: {
864
+ readonly COMPLETED: "COMPLETED";
865
+ readonly FAILED: "FAILED";
866
+ readonly INITIALIZING: "INITIALIZING";
867
+ readonly IN_PROGRESS: "IN_PROGRESS";
868
+ readonly STOPPED: "STOPPED";
869
+ };
870
+ export type ImportStatus = (typeof ImportStatus)[keyof typeof ImportStatus];
862
871
  export interface GetImportResponse {
863
872
  ImportId?: string;
864
873
  Destinations?: string[];
@@ -881,10 +890,11 @@ export declare class ImportNotFoundException extends __BaseException {
881
890
  export interface GetInsightSelectorsRequest {
882
891
  TrailName: string | undefined;
883
892
  }
884
- export declare enum InsightType {
885
- ApiCallRateInsight = "ApiCallRateInsight",
886
- ApiErrorRateInsight = "ApiErrorRateInsight",
887
- }
893
+ export declare const InsightType: {
894
+ readonly ApiCallRateInsight: "ApiCallRateInsight";
895
+ readonly ApiErrorRateInsight: "ApiErrorRateInsight";
896
+ };
897
+ export type InsightType = (typeof InsightType)[keyof typeof InsightType];
888
898
  export interface InsightSelector {
889
899
  InsightType?: InsightType | string;
890
900
  }
@@ -1002,11 +1012,13 @@ export interface ListImportFailuresRequest {
1002
1012
  MaxResults?: number;
1003
1013
  NextToken?: string;
1004
1014
  }
1005
- export declare enum ImportFailureStatus {
1006
- FAILED = "FAILED",
1007
- RETRY = "RETRY",
1008
- SUCCEEDED = "SUCCEEDED",
1009
- }
1015
+ export declare const ImportFailureStatus: {
1016
+ readonly FAILED: "FAILED";
1017
+ readonly RETRY: "RETRY";
1018
+ readonly SUCCEEDED: "SUCCEEDED";
1019
+ };
1020
+ export type ImportFailureStatus =
1021
+ (typeof ImportFailureStatus)[keyof typeof ImportFailureStatus];
1010
1022
  export interface ImportFailureListItem {
1011
1023
  Location?: string;
1012
1024
  Status?: ImportFailureStatus | string;
@@ -1142,19 +1154,22 @@ export declare class InvalidLookupAttributesException extends __BaseException {
1142
1154
  >
1143
1155
  );
1144
1156
  }
1145
- export declare enum EventCategory {
1146
- Insight = "insight",
1147
- }
1148
- export declare enum LookupAttributeKey {
1149
- ACCESS_KEY_ID = "AccessKeyId",
1150
- EVENT_ID = "EventId",
1151
- EVENT_NAME = "EventName",
1152
- EVENT_SOURCE = "EventSource",
1153
- READ_ONLY = "ReadOnly",
1154
- RESOURCE_NAME = "ResourceName",
1155
- RESOURCE_TYPE = "ResourceType",
1156
- USERNAME = "Username",
1157
- }
1157
+ export declare const EventCategory: {
1158
+ readonly Insight: "insight";
1159
+ };
1160
+ export type EventCategory = (typeof EventCategory)[keyof typeof EventCategory];
1161
+ export declare const LookupAttributeKey: {
1162
+ readonly ACCESS_KEY_ID: "AccessKeyId";
1163
+ readonly EVENT_ID: "EventId";
1164
+ readonly EVENT_NAME: "EventName";
1165
+ readonly EVENT_SOURCE: "EventSource";
1166
+ readonly READ_ONLY: "ReadOnly";
1167
+ readonly RESOURCE_NAME: "ResourceName";
1168
+ readonly RESOURCE_TYPE: "ResourceType";
1169
+ readonly USERNAME: "Username";
1170
+ };
1171
+ export type LookupAttributeKey =
1172
+ (typeof LookupAttributeKey)[keyof typeof LookupAttributeKey];
1158
1173
  export interface LookupAttribute {
1159
1174
  AttributeKey: LookupAttributeKey | string | undefined;
1160
1175
  AttributeValue: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudtrail",
3
3
  "description": "AWS SDK for JavaScript Cloudtrail Client for Node.js, Browser and React Native",
4
- "version": "3.300.0",
4
+ "version": "3.303.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",