@aws-sdk/client-cloudtrail 3.45.0 → 3.47.2

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 (93) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist-cjs/CloudTrail.js +165 -0
  3. package/dist-cjs/commands/CancelQueryCommand.js +36 -0
  4. package/dist-cjs/commands/CreateEventDataStoreCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteEventDataStoreCommand.js +36 -0
  6. package/dist-cjs/commands/DescribeQueryCommand.js +36 -0
  7. package/dist-cjs/commands/GetEventDataStoreCommand.js +36 -0
  8. package/dist-cjs/commands/GetQueryResultsCommand.js +36 -0
  9. package/dist-cjs/commands/ListEventDataStoresCommand.js +36 -0
  10. package/dist-cjs/commands/ListQueriesCommand.js +36 -0
  11. package/dist-cjs/commands/RestoreEventDataStoreCommand.js +36 -0
  12. package/dist-cjs/commands/StartQueryCommand.js +36 -0
  13. package/dist-cjs/commands/UpdateEventDataStoreCommand.js +36 -0
  14. package/dist-cjs/commands/index.js +11 -0
  15. package/dist-cjs/endpoints.js +0 -16
  16. package/dist-cjs/models/models_0.js +158 -252
  17. package/dist-cjs/pagination/GetQueryResultsPaginator.js +34 -0
  18. package/dist-cjs/pagination/ListEventDataStoresPaginator.js +35 -0
  19. package/dist-cjs/pagination/ListQueriesPaginator.js +35 -0
  20. package/dist-cjs/pagination/index.js +3 -0
  21. package/dist-cjs/protocols/Aws_json1_1.js +2319 -389
  22. package/dist-cjs/runtimeConfig.browser.js +7 -2
  23. package/dist-cjs/runtimeConfig.js +9 -3
  24. package/dist-es/CloudTrail.js +165 -0
  25. package/dist-es/commands/CancelQueryCommand.js +39 -0
  26. package/dist-es/commands/CreateEventDataStoreCommand.js +39 -0
  27. package/dist-es/commands/DeleteEventDataStoreCommand.js +39 -0
  28. package/dist-es/commands/DescribeQueryCommand.js +39 -0
  29. package/dist-es/commands/GetEventDataStoreCommand.js +39 -0
  30. package/dist-es/commands/GetQueryResultsCommand.js +39 -0
  31. package/dist-es/commands/ListEventDataStoresCommand.js +39 -0
  32. package/dist-es/commands/ListQueriesCommand.js +39 -0
  33. package/dist-es/commands/RestoreEventDataStoreCommand.js +39 -0
  34. package/dist-es/commands/StartQueryCommand.js +39 -0
  35. package/dist-es/commands/UpdateEventDataStoreCommand.js +39 -0
  36. package/dist-es/commands/index.js +11 -0
  37. package/dist-es/endpoints.js +0 -16
  38. package/dist-es/models/models_0.js +118 -176
  39. package/dist-es/pagination/GetQueryResultsPaginator.js +73 -0
  40. package/dist-es/pagination/ListEventDataStoresPaginator.js +74 -0
  41. package/dist-es/pagination/ListQueriesPaginator.js +74 -0
  42. package/dist-es/pagination/index.js +3 -0
  43. package/dist-es/protocols/Aws_json1_1.js +2669 -704
  44. package/dist-es/runtimeConfig.browser.js +12 -3
  45. package/dist-es/runtimeConfig.js +13 -6
  46. package/dist-types/CloudTrail.d.ts +100 -1
  47. package/dist-types/CloudTrailClient.d.ts +18 -3
  48. package/dist-types/commands/CancelQueryCommand.d.ts +37 -0
  49. package/dist-types/commands/CreateEventDataStoreCommand.d.ts +35 -0
  50. package/dist-types/commands/DeleteEventDataStoreCommand.d.ts +41 -0
  51. package/dist-types/commands/DescribeQueryCommand.d.ts +36 -0
  52. package/dist-types/commands/GetEventDataStoreCommand.d.ts +35 -0
  53. package/dist-types/commands/GetQueryResultsCommand.d.ts +36 -0
  54. package/dist-types/commands/ListEventDataStoresCommand.d.ts +35 -0
  55. package/dist-types/commands/ListQueriesCommand.d.ts +39 -0
  56. package/dist-types/commands/PutInsightSelectorsCommand.d.ts +1 -1
  57. package/dist-types/commands/RestoreEventDataStoreCommand.d.ts +37 -0
  58. package/dist-types/commands/StartQueryCommand.d.ts +36 -0
  59. package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +40 -0
  60. package/dist-types/commands/index.d.ts +11 -0
  61. package/dist-types/models/models_0.d.ts +926 -328
  62. package/dist-types/pagination/GetQueryResultsPaginator.d.ts +4 -0
  63. package/dist-types/pagination/ListEventDataStoresPaginator.d.ts +4 -0
  64. package/dist-types/pagination/ListQueriesPaginator.d.ts +4 -0
  65. package/dist-types/pagination/index.d.ts +3 -0
  66. package/dist-types/protocols/Aws_json1_1.d.ts +33 -0
  67. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  68. package/dist-types/runtimeConfig.d.ts +4 -3
  69. package/dist-types/runtimeConfig.native.d.ts +1 -0
  70. package/dist-types/ts3.4/CloudTrail.d.ts +55 -0
  71. package/dist-types/ts3.4/CloudTrailClient.d.ts +16 -3
  72. package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +17 -0
  73. package/dist-types/ts3.4/commands/CreateEventDataStoreCommand.d.ts +17 -0
  74. package/dist-types/ts3.4/commands/DeleteEventDataStoreCommand.d.ts +17 -0
  75. package/dist-types/ts3.4/commands/DescribeQueryCommand.d.ts +17 -0
  76. package/dist-types/ts3.4/commands/GetEventDataStoreCommand.d.ts +17 -0
  77. package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +17 -0
  78. package/dist-types/ts3.4/commands/ListEventDataStoresCommand.d.ts +17 -0
  79. package/dist-types/ts3.4/commands/ListQueriesCommand.d.ts +17 -0
  80. package/dist-types/ts3.4/commands/RestoreEventDataStoreCommand.d.ts +17 -0
  81. package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +17 -0
  82. package/dist-types/ts3.4/commands/UpdateEventDataStoreCommand.d.ts +17 -0
  83. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  84. package/dist-types/ts3.4/models/models_0.d.ts +523 -205
  85. package/dist-types/ts3.4/pagination/GetQueryResultsPaginator.d.ts +4 -0
  86. package/dist-types/ts3.4/pagination/ListEventDataStoresPaginator.d.ts +4 -0
  87. package/dist-types/ts3.4/pagination/ListQueriesPaginator.d.ts +4 -0
  88. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  89. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +33 -0
  90. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  91. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  92. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  93. package/package.json +39 -46
@@ -33,7 +33,7 @@ export interface AddTagsRequest {
33
33
  /**
34
34
  * <p>Contains a list of tags, up to a limit of 50</p>
35
35
  */
36
- TagsList?: Tag[];
36
+ TagsList: Tag[] | undefined;
37
37
  }
38
38
  export declare namespace AddTagsRequest {
39
39
  /**
@@ -66,11 +66,40 @@ export interface CloudTrailARNInvalidException extends __SmithyException, $Metad
66
66
  */
67
67
  Message?: string;
68
68
  }
69
- export declare namespace CloudTrailARNInvalidException {
69
+ /**
70
+ * <p>This exception is thrown when the specified resource is not ready for an operation.
71
+ * This can occur when you try to run an operation on a trail before CloudTrail has time to fully load the trail.
72
+ * If this exception occurs, wait a few minutes, and then try the operation again.</p>
73
+ */
74
+ export interface ConflictException extends __SmithyException, $MetadataBearer {
75
+ name: "ConflictException";
76
+ $fault: "client";
70
77
  /**
71
- * @internal
78
+ * <p>Brief description of the exception returned by the request.</p>
79
+ */
80
+ Message?: string;
81
+ }
82
+ /**
83
+ * <p>The specified event data store was not found.</p>
84
+ */
85
+ export interface EventDataStoreNotFoundException extends __SmithyException, $MetadataBearer {
86
+ name: "EventDataStoreNotFoundException";
87
+ $fault: "client";
88
+ /**
89
+ * <p>Brief description of the exception returned by the request.</p>
90
+ */
91
+ Message?: string;
92
+ }
93
+ /**
94
+ * <p>The event data store against which you ran your query is inactive.</p>
95
+ */
96
+ export interface InactiveEventDataStoreException extends __SmithyException, $MetadataBearer {
97
+ name: "InactiveEventDataStoreException";
98
+ $fault: "client";
99
+ /**
100
+ * <p>Brief description of the exception returned by the request.</p>
72
101
  */
73
- const filterSensitiveLog: (obj: CloudTrailARNInvalidException) => any;
102
+ Message?: string;
74
103
  }
75
104
  /**
76
105
  * <p>This exception is thrown when the specified tag key or values are not valid.
@@ -84,12 +113,6 @@ export interface InvalidTagParameterException extends __SmithyException, $Metada
84
113
  */
85
114
  Message?: string;
86
115
  }
87
- export declare namespace InvalidTagParameterException {
88
- /**
89
- * @internal
90
- */
91
- const filterSensitiveLog: (obj: InvalidTagParameterException) => any;
92
- }
93
116
  /**
94
117
  * <p>This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:</p>
95
118
  * <ul>
@@ -119,12 +142,6 @@ export interface InvalidTrailNameException extends __SmithyException, $MetadataB
119
142
  */
120
143
  Message?: string;
121
144
  }
122
- export declare namespace InvalidTrailNameException {
123
- /**
124
- * @internal
125
- */
126
- const filterSensitiveLog: (obj: InvalidTrailNameException) => any;
127
- }
128
145
  /**
129
146
  * <p>This exception is thrown when the Amazon Web Services account making the request to create or update an organization trail is not the management account for an
130
147
  * organization in Organizations. For more information, see
@@ -138,12 +155,6 @@ export interface NotOrganizationMasterAccountException extends __SmithyException
138
155
  */
139
156
  Message?: string;
140
157
  }
141
- export declare namespace NotOrganizationMasterAccountException {
142
- /**
143
- * @internal
144
- */
145
- const filterSensitiveLog: (obj: NotOrganizationMasterAccountException) => any;
146
- }
147
158
  /**
148
159
  * <p>This exception is thrown when the requested operation is not permitted.</p>
149
160
  */
@@ -155,12 +166,6 @@ export interface OperationNotPermittedException extends __SmithyException, $Meta
155
166
  */
156
167
  Message?: string;
157
168
  }
158
- export declare namespace OperationNotPermittedException {
159
- /**
160
- * @internal
161
- */
162
- const filterSensitiveLog: (obj: OperationNotPermittedException) => any;
163
- }
164
169
  /**
165
170
  * <p>This exception is thrown when the specified resource is not found.</p>
166
171
  */
@@ -172,12 +177,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
172
177
  */
173
178
  Message?: string;
174
179
  }
175
- export declare namespace ResourceNotFoundException {
176
- /**
177
- * @internal
178
- */
179
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
180
- }
181
180
  /**
182
181
  * <p>This exception is thrown when the specified resource type is not supported by CloudTrail.</p>
183
182
  */
@@ -189,12 +188,6 @@ export interface ResourceTypeNotSupportedException extends __SmithyException, $M
189
188
  */
190
189
  Message?: string;
191
190
  }
192
- export declare namespace ResourceTypeNotSupportedException {
193
- /**
194
- * @internal
195
- */
196
- const filterSensitiveLog: (obj: ResourceTypeNotSupportedException) => any;
197
- }
198
191
  /**
199
192
  * <p>The number of tags per trail has exceeded the permitted amount. Currently, the limit is 50.</p>
200
193
  */
@@ -206,12 +199,6 @@ export interface TagsLimitExceededException extends __SmithyException, $Metadata
206
199
  */
207
200
  Message?: string;
208
201
  }
209
- export declare namespace TagsLimitExceededException {
210
- /**
211
- * @internal
212
- */
213
- const filterSensitiveLog: (obj: TagsLimitExceededException) => any;
214
- }
215
202
  /**
216
203
  * <p>This exception is thrown when the requested operation is not supported.</p>
217
204
  */
@@ -223,12 +210,6 @@ export interface UnsupportedOperationException extends __SmithyException, $Metad
223
210
  */
224
211
  Message?: string;
225
212
  }
226
- export declare namespace UnsupportedOperationException {
227
- /**
228
- * @internal
229
- */
230
- const filterSensitiveLog: (obj: UnsupportedOperationException) => any;
231
- }
232
213
  /**
233
214
  * <p>A single selector statement in an advanced event selector.</p>
234
215
  */
@@ -539,6 +520,92 @@ export declare namespace AdvancedEventSelector {
539
520
  */
540
521
  const filterSensitiveLog: (obj: AdvancedEventSelector) => any;
541
522
  }
523
+ export interface CancelQueryRequest {
524
+ /**
525
+ * <p>The ARN (or the ID suffix of the ARN) of an event data store on which the specified query is running.</p>
526
+ */
527
+ EventDataStore: string | undefined;
528
+ /**
529
+ * <p>The ID of the query that you want to cancel. The <code>QueryId</code> comes from the response of a <code>StartQuery</code>
530
+ * operation.</p>
531
+ */
532
+ QueryId: string | undefined;
533
+ }
534
+ export declare namespace CancelQueryRequest {
535
+ /**
536
+ * @internal
537
+ */
538
+ const filterSensitiveLog: (obj: CancelQueryRequest) => any;
539
+ }
540
+ export declare enum QueryStatus {
541
+ CANCELLED = "CANCELLED",
542
+ FAILED = "FAILED",
543
+ FINISHED = "FINISHED",
544
+ QUEUED = "QUEUED",
545
+ RUNNING = "RUNNING"
546
+ }
547
+ export interface CancelQueryResponse {
548
+ /**
549
+ * <p>The ID of the canceled query.</p>
550
+ */
551
+ QueryId: string | undefined;
552
+ /**
553
+ * <p>Shows the status of a query after a <code>CancelQuery</code> request. Typically, the values shown are either
554
+ * <code>RUNNING</code> or <code>CANCELLED</code>.</p>
555
+ */
556
+ QueryStatus: QueryStatus | string | undefined;
557
+ }
558
+ export declare namespace CancelQueryResponse {
559
+ /**
560
+ * @internal
561
+ */
562
+ const filterSensitiveLog: (obj: CancelQueryResponse) => any;
563
+ }
564
+ /**
565
+ * <p>The specified event data store ARN is not valid or does not map to an event data store in your account.</p>
566
+ */
567
+ export interface EventDataStoreARNInvalidException extends __SmithyException, $MetadataBearer {
568
+ name: "EventDataStoreARNInvalidException";
569
+ $fault: "client";
570
+ /**
571
+ * <p>Brief description of the exception returned by the request.</p>
572
+ */
573
+ Message?: string;
574
+ }
575
+ /**
576
+ * <p>The specified query cannot be canceled because it is in the <code>FINISHED</code>, <code>FAILED</code>, or
577
+ * <code>CANCELLED</code> state.</p>
578
+ */
579
+ export interface InactiveQueryException extends __SmithyException, $MetadataBearer {
580
+ name: "InactiveQueryException";
581
+ $fault: "client";
582
+ /**
583
+ * <p>Brief description of the exception returned by the request.</p>
584
+ */
585
+ Message?: string;
586
+ }
587
+ /**
588
+ * <p>The request includes a parameter that is not valid.</p>
589
+ */
590
+ export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
591
+ name: "InvalidParameterException";
592
+ $fault: "client";
593
+ /**
594
+ * <p>Brief description of the exception returned by the request.</p>
595
+ */
596
+ Message?: string;
597
+ }
598
+ /**
599
+ * <p>The query ID does not exist or does not map to a query.</p>
600
+ */
601
+ export interface QueryIdNotFoundException extends __SmithyException, $MetadataBearer {
602
+ name: "QueryIdNotFoundException";
603
+ $fault: "client";
604
+ /**
605
+ * <p>Brief description of the exception returned by the request.</p>
606
+ */
607
+ Message?: string;
608
+ }
542
609
  /**
543
610
  * <p>This exception is thrown when trusted access has not been enabled between CloudTrail and Organizations. For more information,
544
611
  * see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html">Enabling Trusted Access with Other Amazon Web Services Services</a>
@@ -552,11 +619,164 @@ export interface CloudTrailAccessNotEnabledException extends __SmithyException,
552
619
  */
553
620
  Message?: string;
554
621
  }
555
- export declare namespace CloudTrailAccessNotEnabledException {
622
+ export interface CreateEventDataStoreRequest {
623
+ /**
624
+ * <p>The name of the event data store.</p>
625
+ */
626
+ Name: string | undefined;
627
+ /**
628
+ * <p>The advanced event selectors to use to select the events for the data store. For more information about how to use advanced event
629
+ * selectors, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced">Log events by using advanced event selectors</a> in the CloudTrail
630
+ * User Guide.</p>
631
+ */
632
+ AdvancedEventSelectors?: AdvancedEventSelector[];
633
+ /**
634
+ * <p>Specifies whether the event data store includes events from all regions, or only from the region in which the event data store
635
+ * is created.</p>
636
+ */
637
+ MultiRegionEnabled?: boolean;
638
+ /**
639
+ * <p>Specifies whether an event data store collects events logged for an organization in Organizations.</p>
640
+ */
641
+ OrganizationEnabled?: boolean;
642
+ /**
643
+ * <p>The retention period of the event data store, in days. You can set a retention period of up to 2555 days,
644
+ * the equivalent of seven years.</p>
645
+ */
646
+ RetentionPeriod?: number;
647
+ /**
648
+ * <p>Specifies whether termination protection is enabled for the event data store. If termination protection is enabled, you
649
+ * cannot delete the event data store until termination protection is disabled.</p>
650
+ */
651
+ TerminationProtectionEnabled?: boolean;
652
+ /**
653
+ * <p>A list of tags.</p>
654
+ */
655
+ TagsList?: Tag[];
656
+ }
657
+ export declare namespace CreateEventDataStoreRequest {
658
+ /**
659
+ * @internal
660
+ */
661
+ const filterSensitiveLog: (obj: CreateEventDataStoreRequest) => any;
662
+ }
663
+ export declare enum EventDataStoreStatus {
664
+ CREATED = "CREATED",
665
+ ENABLED = "ENABLED",
666
+ PENDING_DELETION = "PENDING_DELETION"
667
+ }
668
+ export interface CreateEventDataStoreResponse {
669
+ /**
670
+ * <p>The ARN of the event data store.</p>
671
+ */
672
+ EventDataStoreArn?: string;
673
+ /**
674
+ * <p>The name of the event data store.</p>
675
+ */
676
+ Name?: string;
677
+ /**
678
+ * <p>The status of event data store creation.</p>
679
+ */
680
+ Status?: EventDataStoreStatus | string;
681
+ /**
682
+ * <p>The advanced event selectors that were used to select the events for the data store.</p>
683
+ */
684
+ AdvancedEventSelectors?: AdvancedEventSelector[];
685
+ /**
686
+ * <p>Indicates whether the event data store collects events from all regions, or only from the region in which it was created.</p>
687
+ */
688
+ MultiRegionEnabled?: boolean;
689
+ /**
690
+ * <p>Indicates whether an event data store is collecting logged events for an organization in Organizations.</p>
691
+ */
692
+ OrganizationEnabled?: boolean;
693
+ /**
694
+ * <p>The retention period of an event data store, in days.</p>
695
+ */
696
+ RetentionPeriod?: number;
697
+ /**
698
+ * <p>Indicates whether termination protection is enabled for the event data store.</p>
699
+ */
700
+ TerminationProtectionEnabled?: boolean;
701
+ /**
702
+ * <p>A list of tags.</p>
703
+ */
704
+ TagsList?: Tag[];
705
+ /**
706
+ * <p>The timestamp that shows when the event data store was created.</p>
707
+ */
708
+ CreatedTimestamp?: Date;
709
+ /**
710
+ * <p>The timestamp that shows when an event data store was updated, if applicable.
711
+ * <code>UpdatedTimestamp</code> is always either the same or newer than the time shown in <code>CreatedTimestamp</code>.</p>
712
+ */
713
+ UpdatedTimestamp?: Date;
714
+ }
715
+ export declare namespace CreateEventDataStoreResponse {
556
716
  /**
557
717
  * @internal
558
718
  */
559
- const filterSensitiveLog: (obj: CloudTrailAccessNotEnabledException) => any;
719
+ const filterSensitiveLog: (obj: CreateEventDataStoreResponse) => any;
720
+ }
721
+ /**
722
+ * <p>An event data store with that name already exists.</p>
723
+ */
724
+ export interface EventDataStoreAlreadyExistsException extends __SmithyException, $MetadataBearer {
725
+ name: "EventDataStoreAlreadyExistsException";
726
+ $fault: "client";
727
+ /**
728
+ * <p>Brief description of the exception returned by the request.</p>
729
+ */
730
+ Message?: string;
731
+ }
732
+ /**
733
+ * <p>Your account has used the maximum number of event data stores.</p>
734
+ */
735
+ export interface EventDataStoreMaxLimitExceededException extends __SmithyException, $MetadataBearer {
736
+ name: "EventDataStoreMaxLimitExceededException";
737
+ $fault: "client";
738
+ /**
739
+ * <p>Brief description of the exception returned by the request.</p>
740
+ */
741
+ Message?: string;
742
+ }
743
+ /**
744
+ * <p>This exception is thrown when the IAM user or role that is used to create the organization trail is lacking one or more required permissions for
745
+ * creating an organization trail in a required service. For more information, see
746
+ * <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html">Prepare For Creating a Trail For Your Organization</a>.</p>
747
+ */
748
+ export interface InsufficientDependencyServiceAccessPermissionException extends __SmithyException, $MetadataBearer {
749
+ name: "InsufficientDependencyServiceAccessPermissionException";
750
+ $fault: "client";
751
+ /**
752
+ * <p>Brief description of the exception returned by the request.</p>
753
+ */
754
+ Message?: string;
755
+ }
756
+ /**
757
+ * <p>This exception is thrown when Organizations is not configured to support all features. All features must be enabled in Organizations to support
758
+ * creating an organization trail. For more information, see
759
+ * <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html">Prepare For Creating a Trail For Your Organization</a>.</p>
760
+ */
761
+ export interface OrganizationNotInAllFeaturesModeException extends __SmithyException, $MetadataBearer {
762
+ name: "OrganizationNotInAllFeaturesModeException";
763
+ $fault: "client";
764
+ /**
765
+ * <p>Brief description of the exception returned by the request.</p>
766
+ */
767
+ Message?: string;
768
+ }
769
+ /**
770
+ * <p>This exception is thrown when the request is made from an Amazon Web Services account that is not a member of an organization.
771
+ * To make this request, sign in using the credentials of an account that belongs to an organization.</p>
772
+ */
773
+ export interface OrganizationsNotInUseException extends __SmithyException, $MetadataBearer {
774
+ name: "OrganizationsNotInUseException";
775
+ $fault: "client";
776
+ /**
777
+ * <p>Brief description of the exception returned by the request.</p>
778
+ */
779
+ Message?: string;
560
780
  }
561
781
  /**
562
782
  * <p>This exception is thrown when a call results in the <code>InvalidClientTokenId</code> error code.
@@ -571,12 +791,6 @@ export interface CloudTrailInvalidClientTokenIdException extends __SmithyExcepti
571
791
  */
572
792
  Message?: string;
573
793
  }
574
- export declare namespace CloudTrailInvalidClientTokenIdException {
575
- /**
576
- * @internal
577
- */
578
- const filterSensitiveLog: (obj: CloudTrailInvalidClientTokenIdException) => any;
579
- }
580
794
  /**
581
795
  * <p>Cannot set a CloudWatch Logs delivery for this region.</p>
582
796
  */
@@ -588,12 +802,6 @@ export interface CloudWatchLogsDeliveryUnavailableException extends __SmithyExce
588
802
  */
589
803
  Message?: string;
590
804
  }
591
- export declare namespace CloudWatchLogsDeliveryUnavailableException {
592
- /**
593
- * @internal
594
- */
595
- const filterSensitiveLog: (obj: CloudWatchLogsDeliveryUnavailableException) => any;
596
- }
597
805
  /**
598
806
  * <p>Specifies the settings for each trail.</p>
599
807
  */
@@ -779,25 +987,6 @@ export declare namespace CreateTrailResponse {
779
987
  */
780
988
  const filterSensitiveLog: (obj: CreateTrailResponse) => any;
781
989
  }
782
- /**
783
- * <p>This exception is thrown when the IAM user or role that is used to create the organization trail is lacking one or more required permissions for
784
- * creating an organization trail in a required service. For more information, see
785
- * <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html">Prepare For Creating a Trail For Your Organization</a>.</p>
786
- */
787
- export interface InsufficientDependencyServiceAccessPermissionException extends __SmithyException, $MetadataBearer {
788
- name: "InsufficientDependencyServiceAccessPermissionException";
789
- $fault: "client";
790
- /**
791
- * <p>Brief description of the exception returned by the request.</p>
792
- */
793
- Message?: string;
794
- }
795
- export declare namespace InsufficientDependencyServiceAccessPermissionException {
796
- /**
797
- * @internal
798
- */
799
- const filterSensitiveLog: (obj: InsufficientDependencyServiceAccessPermissionException) => any;
800
- }
801
990
  /**
802
991
  * <p>This exception is thrown when the policy on the S3 bucket or KMS key is not sufficient.</p>
803
992
  */
@@ -809,12 +998,6 @@ export interface InsufficientEncryptionPolicyException extends __SmithyException
809
998
  */
810
999
  Message?: string;
811
1000
  }
812
- export declare namespace InsufficientEncryptionPolicyException {
813
- /**
814
- * @internal
815
- */
816
- const filterSensitiveLog: (obj: InsufficientEncryptionPolicyException) => any;
817
- }
818
1001
  /**
819
1002
  * <p>This exception is thrown when the policy on the S3 bucket is not sufficient.</p>
820
1003
  */
@@ -826,12 +1009,6 @@ export interface InsufficientS3BucketPolicyException extends __SmithyException,
826
1009
  */
827
1010
  Message?: string;
828
1011
  }
829
- export declare namespace InsufficientS3BucketPolicyException {
830
- /**
831
- * @internal
832
- */
833
- const filterSensitiveLog: (obj: InsufficientS3BucketPolicyException) => any;
834
- }
835
1012
  /**
836
1013
  * <p>This exception is thrown when the policy on the Amazon SNS topic is not sufficient.</p>
837
1014
  */
@@ -843,12 +1020,6 @@ export interface InsufficientSnsTopicPolicyException extends __SmithyException,
843
1020
  */
844
1021
  Message?: string;
845
1022
  }
846
- export declare namespace InsufficientSnsTopicPolicyException {
847
- /**
848
- * @internal
849
- */
850
- const filterSensitiveLog: (obj: InsufficientSnsTopicPolicyException) => any;
851
- }
852
1023
  /**
853
1024
  * <p>This exception is thrown when the provided CloudWatch Logs log group is not valid.</p>
854
1025
  */
@@ -860,12 +1031,6 @@ export interface InvalidCloudWatchLogsLogGroupArnException extends __SmithyExcep
860
1031
  */
861
1032
  Message?: string;
862
1033
  }
863
- export declare namespace InvalidCloudWatchLogsLogGroupArnException {
864
- /**
865
- * @internal
866
- */
867
- const filterSensitiveLog: (obj: InvalidCloudWatchLogsLogGroupArnException) => any;
868
- }
869
1034
  /**
870
1035
  * <p>This exception is thrown when the provided role is not valid.</p>
871
1036
  */
@@ -877,12 +1042,6 @@ export interface InvalidCloudWatchLogsRoleArnException extends __SmithyException
877
1042
  */
878
1043
  Message?: string;
879
1044
  }
880
- export declare namespace InvalidCloudWatchLogsRoleArnException {
881
- /**
882
- * @internal
883
- */
884
- const filterSensitiveLog: (obj: InvalidCloudWatchLogsRoleArnException) => any;
885
- }
886
1045
  /**
887
1046
  * <p>This exception is thrown when the KMS key ARN is not valid.</p>
888
1047
  */
@@ -894,12 +1053,6 @@ export interface InvalidKmsKeyIdException extends __SmithyException, $MetadataBe
894
1053
  */
895
1054
  Message?: string;
896
1055
  }
897
- export declare namespace InvalidKmsKeyIdException {
898
- /**
899
- * @internal
900
- */
901
- const filterSensitiveLog: (obj: InvalidKmsKeyIdException) => any;
902
- }
903
1056
  /**
904
1057
  * <p>This exception is thrown when the combination of parameters provided is not valid.</p>
905
1058
  */
@@ -911,12 +1064,6 @@ export interface InvalidParameterCombinationException extends __SmithyException,
911
1064
  */
912
1065
  Message?: string;
913
1066
  }
914
- export declare namespace InvalidParameterCombinationException {
915
- /**
916
- * @internal
917
- */
918
- const filterSensitiveLog: (obj: InvalidParameterCombinationException) => any;
919
- }
920
1067
  /**
921
1068
  * <p>This exception is thrown when the provided S3 bucket name is not valid.</p>
922
1069
  */
@@ -928,12 +1075,6 @@ export interface InvalidS3BucketNameException extends __SmithyException, $Metada
928
1075
  */
929
1076
  Message?: string;
930
1077
  }
931
- export declare namespace InvalidS3BucketNameException {
932
- /**
933
- * @internal
934
- */
935
- const filterSensitiveLog: (obj: InvalidS3BucketNameException) => any;
936
- }
937
1078
  /**
938
1079
  * <p>This exception is thrown when the provided S3 prefix is not valid.</p>
939
1080
  */
@@ -945,12 +1086,6 @@ export interface InvalidS3PrefixException extends __SmithyException, $MetadataBe
945
1086
  */
946
1087
  Message?: string;
947
1088
  }
948
- export declare namespace InvalidS3PrefixException {
949
- /**
950
- * @internal
951
- */
952
- const filterSensitiveLog: (obj: InvalidS3PrefixException) => any;
953
- }
954
1089
  /**
955
1090
  * <p>This exception is thrown when the provided SNS topic name is not valid.</p>
956
1091
  */
@@ -962,12 +1097,6 @@ export interface InvalidSnsTopicNameException extends __SmithyException, $Metada
962
1097
  */
963
1098
  Message?: string;
964
1099
  }
965
- export declare namespace InvalidSnsTopicNameException {
966
- /**
967
- * @internal
968
- */
969
- const filterSensitiveLog: (obj: InvalidSnsTopicNameException) => any;
970
- }
971
1100
  /**
972
1101
  * <p>This exception is thrown when there is an issue with the specified KMS key and the trail can’t be updated.</p>
973
1102
  */
@@ -979,12 +1108,6 @@ export interface KmsException extends __SmithyException, $MetadataBearer {
979
1108
  */
980
1109
  Message?: string;
981
1110
  }
982
- export declare namespace KmsException {
983
- /**
984
- * @internal
985
- */
986
- const filterSensitiveLog: (obj: KmsException) => any;
987
- }
988
1111
  /**
989
1112
  * @deprecated
990
1113
  *
@@ -998,12 +1121,6 @@ export interface KmsKeyDisabledException extends __SmithyException, $MetadataBea
998
1121
  */
999
1122
  Message?: string;
1000
1123
  }
1001
- export declare namespace KmsKeyDisabledException {
1002
- /**
1003
- * @internal
1004
- */
1005
- const filterSensitiveLog: (obj: KmsKeyDisabledException) => any;
1006
- }
1007
1124
  /**
1008
1125
  * <p>This exception is thrown when the KMS key does not exist, when the S3 bucket and the
1009
1126
  * KMS key are not in the same region, or when the KMS key associated with the Amazon SNS
@@ -1017,12 +1134,6 @@ export interface KmsKeyNotFoundException extends __SmithyException, $MetadataBea
1017
1134
  */
1018
1135
  Message?: string;
1019
1136
  }
1020
- export declare namespace KmsKeyNotFoundException {
1021
- /**
1022
- * @internal
1023
- */
1024
- const filterSensitiveLog: (obj: KmsKeyNotFoundException) => any;
1025
- }
1026
1137
  /**
1027
1138
  * <p>This exception is thrown when the maximum number of trails is reached.</p>
1028
1139
  */
@@ -1034,49 +1145,6 @@ export interface MaximumNumberOfTrailsExceededException extends __SmithyExceptio
1034
1145
  */
1035
1146
  Message?: string;
1036
1147
  }
1037
- export declare namespace MaximumNumberOfTrailsExceededException {
1038
- /**
1039
- * @internal
1040
- */
1041
- const filterSensitiveLog: (obj: MaximumNumberOfTrailsExceededException) => any;
1042
- }
1043
- /**
1044
- * <p>This exception is thrown when Organizations is not configured to support all features. All features must be enabled in Organizations to support
1045
- * creating an organization trail. For more information, see
1046
- * <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html">Prepare For Creating a Trail For Your Organization</a>.</p>
1047
- */
1048
- export interface OrganizationNotInAllFeaturesModeException extends __SmithyException, $MetadataBearer {
1049
- name: "OrganizationNotInAllFeaturesModeException";
1050
- $fault: "client";
1051
- /**
1052
- * <p>Brief description of the exception returned by the request.</p>
1053
- */
1054
- Message?: string;
1055
- }
1056
- export declare namespace OrganizationNotInAllFeaturesModeException {
1057
- /**
1058
- * @internal
1059
- */
1060
- const filterSensitiveLog: (obj: OrganizationNotInAllFeaturesModeException) => any;
1061
- }
1062
- /**
1063
- * <p>This exception is thrown when the request is made from an Amazon Web Services account that is not a member of an organization.
1064
- * To make this request, sign in using the credentials of an account that belongs to an organization.</p>
1065
- */
1066
- export interface OrganizationsNotInUseException extends __SmithyException, $MetadataBearer {
1067
- name: "OrganizationsNotInUseException";
1068
- $fault: "client";
1069
- /**
1070
- * <p>Brief description of the exception returned by the request.</p>
1071
- */
1072
- Message?: string;
1073
- }
1074
- export declare namespace OrganizationsNotInUseException {
1075
- /**
1076
- * @internal
1077
- */
1078
- const filterSensitiveLog: (obj: OrganizationsNotInUseException) => any;
1079
- }
1080
1148
  /**
1081
1149
  * <p>This exception is thrown when the specified S3 bucket does not exist.</p>
1082
1150
  */
@@ -1088,12 +1156,6 @@ export interface S3BucketDoesNotExistException extends __SmithyException, $Metad
1088
1156
  */
1089
1157
  Message?: string;
1090
1158
  }
1091
- export declare namespace S3BucketDoesNotExistException {
1092
- /**
1093
- * @internal
1094
- */
1095
- const filterSensitiveLog: (obj: S3BucketDoesNotExistException) => any;
1096
- }
1097
1159
  /**
1098
1160
  * <p>This exception is thrown when the specified trail already exists.</p>
1099
1161
  */
@@ -1105,12 +1167,6 @@ export interface TrailAlreadyExistsException extends __SmithyException, $Metadat
1105
1167
  */
1106
1168
  Message?: string;
1107
1169
  }
1108
- export declare namespace TrailAlreadyExistsException {
1109
- /**
1110
- * @internal
1111
- */
1112
- const filterSensitiveLog: (obj: TrailAlreadyExistsException) => any;
1113
- }
1114
1170
  /**
1115
1171
  * <p>This exception is no longer in use.</p>
1116
1172
  */
@@ -1122,31 +1178,37 @@ export interface TrailNotProvidedException extends __SmithyException, $MetadataB
1122
1178
  */
1123
1179
  Message?: string;
1124
1180
  }
1125
- export declare namespace TrailNotProvidedException {
1181
+ export interface DeleteEventDataStoreRequest {
1182
+ /**
1183
+ * <p>The ARN (or the ID suffix of the ARN) of the event data store to delete.</p>
1184
+ */
1185
+ EventDataStore: string | undefined;
1186
+ }
1187
+ export declare namespace DeleteEventDataStoreRequest {
1188
+ /**
1189
+ * @internal
1190
+ */
1191
+ const filterSensitiveLog: (obj: DeleteEventDataStoreRequest) => any;
1192
+ }
1193
+ export interface DeleteEventDataStoreResponse {
1194
+ }
1195
+ export declare namespace DeleteEventDataStoreResponse {
1126
1196
  /**
1127
1197
  * @internal
1128
1198
  */
1129
- const filterSensitiveLog: (obj: TrailNotProvidedException) => any;
1199
+ const filterSensitiveLog: (obj: DeleteEventDataStoreResponse) => any;
1130
1200
  }
1131
1201
  /**
1132
- * <p>This exception is thrown when the specified resource is not ready for an operation.
1133
- * This can occur when you try to run an operation on a trail before CloudTrail has time to fully load the trail.
1134
- * If this exception occurs, wait a few minutes, and then try the operation again.</p>
1202
+ * <p>The event data store cannot be deleted because termination protection is enabled for it.</p>
1135
1203
  */
1136
- export interface ConflictException extends __SmithyException, $MetadataBearer {
1137
- name: "ConflictException";
1204
+ export interface EventDataStoreTerminationProtectedException extends __SmithyException, $MetadataBearer {
1205
+ name: "EventDataStoreTerminationProtectedException";
1138
1206
  $fault: "client";
1139
1207
  /**
1140
1208
  * <p>Brief description of the exception returned by the request.</p>
1141
1209
  */
1142
1210
  Message?: string;
1143
1211
  }
1144
- export declare namespace ConflictException {
1145
- /**
1146
- * @internal
1147
- */
1148
- const filterSensitiveLog: (obj: ConflictException) => any;
1149
- }
1150
1212
  /**
1151
1213
  * <p>The request that specifies the name of a trail to delete.</p>
1152
1214
  */
@@ -1187,12 +1249,6 @@ export interface InvalidHomeRegionException extends __SmithyException, $Metadata
1187
1249
  */
1188
1250
  Message?: string;
1189
1251
  }
1190
- export declare namespace InvalidHomeRegionException {
1191
- /**
1192
- * @internal
1193
- */
1194
- const filterSensitiveLog: (obj: InvalidHomeRegionException) => any;
1195
- }
1196
1252
  /**
1197
1253
  * <p>This exception is thrown when the trail with the given name is not found.</p>
1198
1254
  */
@@ -1204,11 +1260,80 @@ export interface TrailNotFoundException extends __SmithyException, $MetadataBear
1204
1260
  */
1205
1261
  Message?: string;
1206
1262
  }
1207
- export declare namespace TrailNotFoundException {
1263
+ export interface DescribeQueryRequest {
1264
+ /**
1265
+ * <p>The ARN (or the ID suffix of the ARN) of an event data store on which the specified query was run.</p>
1266
+ */
1267
+ EventDataStore: string | undefined;
1268
+ /**
1269
+ * <p>The query ID.</p>
1270
+ */
1271
+ QueryId: string | undefined;
1272
+ }
1273
+ export declare namespace DescribeQueryRequest {
1274
+ /**
1275
+ * @internal
1276
+ */
1277
+ const filterSensitiveLog: (obj: DescribeQueryRequest) => any;
1278
+ }
1279
+ /**
1280
+ * <p>Gets metadata about a query, including the number of events that were matched, the total number of events scanned, the query run time
1281
+ * in milliseconds, and the query's creation time.</p>
1282
+ */
1283
+ export interface QueryStatisticsForDescribeQuery {
1284
+ /**
1285
+ * <p>The number of events that matched a query.</p>
1286
+ */
1287
+ EventsMatched?: number;
1288
+ /**
1289
+ * <p>The number of events that the query scanned in the event data store.</p>
1290
+ */
1291
+ EventsScanned?: number;
1292
+ /**
1293
+ * <p>The query's run time, in milliseconds.</p>
1294
+ */
1295
+ ExecutionTimeInMillis?: number;
1296
+ /**
1297
+ * <p>The creation time of the query.</p>
1298
+ */
1299
+ CreationTime?: Date;
1300
+ }
1301
+ export declare namespace QueryStatisticsForDescribeQuery {
1302
+ /**
1303
+ * @internal
1304
+ */
1305
+ const filterSensitiveLog: (obj: QueryStatisticsForDescribeQuery) => any;
1306
+ }
1307
+ export interface DescribeQueryResponse {
1308
+ /**
1309
+ * <p>The ID of the query.</p>
1310
+ */
1311
+ QueryId?: string;
1312
+ /**
1313
+ * <p>The SQL code of a query.</p>
1314
+ */
1315
+ QueryString?: string;
1316
+ /**
1317
+ * <p>The status of a query. Values for <code>QueryStatus</code> include <code>QUEUED</code>, <code>RUNNING</code>,
1318
+ * <code>FINISHED</code>, <code>FAILED</code>, or <code>CANCELLED</code>
1319
+ * </p>
1320
+ */
1321
+ QueryStatus?: QueryStatus | string;
1322
+ /**
1323
+ * <p>Metadata about a query, including the number of events that were matched, the total number of events scanned, the query run time
1324
+ * in milliseconds, and the query's creation time.</p>
1325
+ */
1326
+ QueryStatistics?: QueryStatisticsForDescribeQuery;
1327
+ /**
1328
+ * <p>The error message returned if a query failed.</p>
1329
+ */
1330
+ ErrorMessage?: string;
1331
+ }
1332
+ export declare namespace DescribeQueryResponse {
1208
1333
  /**
1209
1334
  * @internal
1210
1335
  */
1211
- const filterSensitiveLog: (obj: TrailNotFoundException) => any;
1336
+ const filterSensitiveLog: (obj: DescribeQueryResponse) => any;
1212
1337
  }
1213
1338
  /**
1214
1339
  * <p>Returns information about the trail.</p>
@@ -1357,6 +1482,66 @@ export declare namespace DescribeTrailsResponse {
1357
1482
  */
1358
1483
  const filterSensitiveLog: (obj: DescribeTrailsResponse) => any;
1359
1484
  }
1485
+ export interface GetEventDataStoreRequest {
1486
+ /**
1487
+ * <p>The ARN (or ID suffix of the ARN) of the event data store about which you want information.</p>
1488
+ */
1489
+ EventDataStore: string | undefined;
1490
+ }
1491
+ export declare namespace GetEventDataStoreRequest {
1492
+ /**
1493
+ * @internal
1494
+ */
1495
+ const filterSensitiveLog: (obj: GetEventDataStoreRequest) => any;
1496
+ }
1497
+ export interface GetEventDataStoreResponse {
1498
+ /**
1499
+ * <p>The event data store Amazon Resource Number (ARN).</p>
1500
+ */
1501
+ EventDataStoreArn?: string;
1502
+ /**
1503
+ * <p>The name of the event data store.</p>
1504
+ */
1505
+ Name?: string;
1506
+ /**
1507
+ * <p>The status of an event data store. Values can be <code>ENABLED</code> and <code>PENDING_DELETION</code>.</p>
1508
+ */
1509
+ Status?: EventDataStoreStatus | string;
1510
+ /**
1511
+ * <p>The advanced event selectors used to select events for the data store.</p>
1512
+ */
1513
+ AdvancedEventSelectors?: AdvancedEventSelector[];
1514
+ /**
1515
+ * <p>Indicates whether the event data store includes events from all regions, or only from the region in which it was created.</p>
1516
+ */
1517
+ MultiRegionEnabled?: boolean;
1518
+ /**
1519
+ * <p>Indicates whether an event data store is collecting logged events for an organization in Organizations.</p>
1520
+ */
1521
+ OrganizationEnabled?: boolean;
1522
+ /**
1523
+ * <p>The retention period of the event data store, in days.</p>
1524
+ */
1525
+ RetentionPeriod?: number;
1526
+ /**
1527
+ * <p>Indicates that termination protection is enabled.</p>
1528
+ */
1529
+ TerminationProtectionEnabled?: boolean;
1530
+ /**
1531
+ * <p>The timestamp of the event data store's creation.</p>
1532
+ */
1533
+ CreatedTimestamp?: Date;
1534
+ /**
1535
+ * <p>Shows the time that an event data store was updated, if applicable. <code>UpdatedTimestamp</code> is always either the same or newer than the time shown in <code>CreatedTimestamp</code>.</p>
1536
+ */
1537
+ UpdatedTimestamp?: Date;
1538
+ }
1539
+ export declare namespace GetEventDataStoreResponse {
1540
+ /**
1541
+ * @internal
1542
+ */
1543
+ const filterSensitiveLog: (obj: GetEventDataStoreResponse) => any;
1544
+ }
1360
1545
  export interface GetEventSelectorsRequest {
1361
1546
  /**
1362
1547
  * <p>Specifies the name of the trail or trail ARN. If you specify a trail name, the
@@ -1682,7 +1867,7 @@ export declare enum InsightType {
1682
1867
  */
1683
1868
  export interface InsightSelector {
1684
1869
  /**
1685
- * <p>The type of Insights events to log on a trail. The valid Insights type in this release is <code>ApiCallRateInsight</code>.</p>
1870
+ * <p>The type of insights to log on a trail. <code>ApiCallRateInsight</code> and <code>ApiErrorRateInsight</code> are valid insight types.</p>
1686
1871
  */
1687
1872
  InsightType?: InsightType | string;
1688
1873
  }
@@ -1698,7 +1883,8 @@ export interface GetInsightSelectorsResponse {
1698
1883
  */
1699
1884
  TrailARN?: string;
1700
1885
  /**
1701
- * <p>A JSON string that contains the insight types you want to log on a trail. In this release, only <code>ApiCallRateInsight</code> is supported as an insight type.</p>
1886
+ * <p>A JSON string that contains the insight types you want to log on a trail. In this release, <code>ApiErrorRateInsight</code> and
1887
+ * <code>ApiCallRateInsight</code> are supported as insight types.</p>
1702
1888
  */
1703
1889
  InsightSelectors?: InsightSelector[];
1704
1890
  }
@@ -1719,11 +1905,101 @@ export interface InsightNotEnabledException extends __SmithyException, $Metadata
1719
1905
  */
1720
1906
  Message?: string;
1721
1907
  }
1722
- export declare namespace InsightNotEnabledException {
1908
+ export interface GetQueryResultsRequest {
1909
+ /**
1910
+ * <p>The ARN (or ID suffix of the ARN) of the event data store against which the query was run.</p>
1911
+ */
1912
+ EventDataStore: string | undefined;
1913
+ /**
1914
+ * <p>The ID of the query for which you want to get results.</p>
1915
+ */
1916
+ QueryId: string | undefined;
1917
+ /**
1918
+ * <p>A token you can use to get the next page of query results.</p>
1919
+ */
1920
+ NextToken?: string;
1921
+ /**
1922
+ * <p>The maximum number of query results to display on a single page.</p>
1923
+ */
1924
+ MaxQueryResults?: number;
1925
+ }
1926
+ export declare namespace GetQueryResultsRequest {
1927
+ /**
1928
+ * @internal
1929
+ */
1930
+ const filterSensitiveLog: (obj: GetQueryResultsRequest) => any;
1931
+ }
1932
+ /**
1933
+ * <p>Metadata about a query, such as the number of results.</p>
1934
+ */
1935
+ export interface QueryStatistics {
1936
+ /**
1937
+ * <p>The number of results returned.</p>
1938
+ */
1939
+ ResultsCount?: number;
1940
+ /**
1941
+ * <p>The total number of results returned by a query.</p>
1942
+ */
1943
+ TotalResultsCount?: number;
1944
+ }
1945
+ export declare namespace QueryStatistics {
1946
+ /**
1947
+ * @internal
1948
+ */
1949
+ const filterSensitiveLog: (obj: QueryStatistics) => any;
1950
+ }
1951
+ export interface GetQueryResultsResponse {
1952
+ /**
1953
+ * <p>The status of the query. Values include <code>QUEUED</code>, <code>RUNNING</code>, <code>FINISHED</code>, <code>FAILED</code>,
1954
+ * or <code>CANCELLED</code>.</p>
1955
+ */
1956
+ QueryStatus?: QueryStatus | string;
1957
+ /**
1958
+ * <p>Shows the count of query results.</p>
1959
+ */
1960
+ QueryStatistics?: QueryStatistics;
1961
+ /**
1962
+ * <p>Contains the individual event results of the query.</p>
1963
+ */
1964
+ QueryResultRows?: {
1965
+ [key: string]: string;
1966
+ }[][];
1967
+ /**
1968
+ * <p>A token you can use to get the next page of query results.</p>
1969
+ */
1970
+ NextToken?: string;
1971
+ /**
1972
+ * <p>The error message returned if a query failed.</p>
1973
+ */
1974
+ ErrorMessage?: string;
1975
+ }
1976
+ export declare namespace GetQueryResultsResponse {
1723
1977
  /**
1724
1978
  * @internal
1725
1979
  */
1726
- const filterSensitiveLog: (obj: InsightNotEnabledException) => any;
1980
+ const filterSensitiveLog: (obj: GetQueryResultsResponse) => any;
1981
+ }
1982
+ /**
1983
+ * <p>This exception is thrown if the limit specified is not valid.</p>
1984
+ */
1985
+ export interface InvalidMaxResultsException extends __SmithyException, $MetadataBearer {
1986
+ name: "InvalidMaxResultsException";
1987
+ $fault: "client";
1988
+ /**
1989
+ * <p>Brief description of the exception returned by the request.</p>
1990
+ */
1991
+ Message?: string;
1992
+ }
1993
+ /**
1994
+ * <p>A token that is not valid, or a token that was previously used in a request with different parameters. This exception is thrown if the token is not valid.</p>
1995
+ */
1996
+ export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
1997
+ name: "InvalidNextTokenException";
1998
+ $fault: "client";
1999
+ /**
2000
+ * <p>Brief description of the exception returned by the request.</p>
2001
+ */
2002
+ Message?: string;
1727
2003
  }
1728
2004
  export interface GetTrailRequest {
1729
2005
  /**
@@ -1865,43 +2141,117 @@ export declare namespace GetTrailStatusResponse {
1865
2141
  */
1866
2142
  const filterSensitiveLog: (obj: GetTrailStatusResponse) => any;
1867
2143
  }
1868
- /**
1869
- * <p>Occurs if the timestamp values are not valid. Either the start time occurs after the end time, or the time range is outside the range of possible values.</p>
1870
- */
1871
- export interface InvalidTimeRangeException extends __SmithyException, $MetadataBearer {
1872
- name: "InvalidTimeRangeException";
1873
- $fault: "client";
2144
+ export interface ListEventDataStoresRequest {
1874
2145
  /**
1875
- * <p>Brief description of the exception returned by the request.</p>
2146
+ * <p>A token you can use to get the next page of event data store results.</p>
1876
2147
  */
1877
- Message?: string;
2148
+ NextToken?: string;
2149
+ /**
2150
+ * <p>The maximum number of event data stores to display on a single page.</p>
2151
+ */
2152
+ MaxResults?: number;
1878
2153
  }
1879
- export declare namespace InvalidTimeRangeException {
2154
+ export declare namespace ListEventDataStoresRequest {
1880
2155
  /**
1881
2156
  * @internal
1882
2157
  */
1883
- const filterSensitiveLog: (obj: InvalidTimeRangeException) => any;
2158
+ const filterSensitiveLog: (obj: ListEventDataStoresRequest) => any;
1884
2159
  }
1885
2160
  /**
1886
- * <p>Reserved for future use.</p>
2161
+ * <p>A storage lake of event data against which you can run complex SQL-based queries. An event data store can include events
2162
+ * that you have logged on your account from the last 90 to 2555 days
2163
+ * (about three months to up to seven years). To select events for an event data store,
2164
+ * use <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced">advanced event selectors</a>.</p>
1887
2165
  */
1888
- export interface InvalidTokenException extends __SmithyException, $MetadataBearer {
1889
- name: "InvalidTokenException";
1890
- $fault: "client";
2166
+ export interface EventDataStore {
1891
2167
  /**
1892
- * <p>Brief description of the exception returned by the request.</p>
2168
+ * <p>The ARN of the event data store.</p>
1893
2169
  */
1894
- Message?: string;
1895
- }
1896
- export declare namespace InvalidTokenException {
2170
+ EventDataStoreArn?: string;
1897
2171
  /**
1898
- * @internal
2172
+ * <p>The name of the event data store.</p>
1899
2173
  */
1900
- const filterSensitiveLog: (obj: InvalidTokenException) => any;
1901
- }
1902
- /**
1903
- * <p>Requests the public keys for a specified time range.</p>
1904
- */
2174
+ Name?: string;
2175
+ /**
2176
+ * <p>Indicates whether the event data store is protected from termination.</p>
2177
+ */
2178
+ TerminationProtectionEnabled?: boolean;
2179
+ /**
2180
+ * <p>The status of an event data store. Values are <code>ENABLED</code> and <code>PENDING_DELETION</code>.</p>
2181
+ */
2182
+ Status?: EventDataStoreStatus | string;
2183
+ /**
2184
+ * <p>The advanced event selectors that were used to select events for the data store.</p>
2185
+ */
2186
+ AdvancedEventSelectors?: AdvancedEventSelector[];
2187
+ /**
2188
+ * <p>Indicates whether the event data store includes events from all regions, or only from the region in which it was created.</p>
2189
+ */
2190
+ MultiRegionEnabled?: boolean;
2191
+ /**
2192
+ * <p>Indicates that an event data store is collecting logged events for an organization.</p>
2193
+ */
2194
+ OrganizationEnabled?: boolean;
2195
+ /**
2196
+ * <p>The retention period, in days.</p>
2197
+ */
2198
+ RetentionPeriod?: number;
2199
+ /**
2200
+ * <p>The timestamp of the event data store's creation.</p>
2201
+ */
2202
+ CreatedTimestamp?: Date;
2203
+ /**
2204
+ * <p>The timestamp showing when an event data store was updated, if applicable. <code>UpdatedTimestamp</code> is always either the same or newer than the time shown in <code>CreatedTimestamp</code>.</p>
2205
+ */
2206
+ UpdatedTimestamp?: Date;
2207
+ }
2208
+ export declare namespace EventDataStore {
2209
+ /**
2210
+ * @internal
2211
+ */
2212
+ const filterSensitiveLog: (obj: EventDataStore) => any;
2213
+ }
2214
+ export interface ListEventDataStoresResponse {
2215
+ /**
2216
+ * <p>Contains information about event data stores in the account, in the current region.</p>
2217
+ */
2218
+ EventDataStores?: EventDataStore[];
2219
+ /**
2220
+ * <p>A token you can use to get the next page of results.</p>
2221
+ */
2222
+ NextToken?: string;
2223
+ }
2224
+ export declare namespace ListEventDataStoresResponse {
2225
+ /**
2226
+ * @internal
2227
+ */
2228
+ const filterSensitiveLog: (obj: ListEventDataStoresResponse) => any;
2229
+ }
2230
+ /**
2231
+ * <p>Occurs if the timestamp values are not valid. Either the start time occurs after the end time, or the time range is outside the range of possible values.</p>
2232
+ */
2233
+ export interface InvalidTimeRangeException extends __SmithyException, $MetadataBearer {
2234
+ name: "InvalidTimeRangeException";
2235
+ $fault: "client";
2236
+ /**
2237
+ * <p>Brief description of the exception returned by the request.</p>
2238
+ */
2239
+ Message?: string;
2240
+ }
2241
+ /**
2242
+ * <p>Reserved for future use.</p>
2243
+ */
2244
+ export interface InvalidTokenException extends __SmithyException, $MetadataBearer {
2245
+ name: "InvalidTokenException";
2246
+ $fault: "client";
2247
+ /**
2248
+ * <p>Brief description of the exception returned by the request.</p>
2249
+ */
2250
+ Message?: string;
2251
+ }
2252
+ /**
2253
+ * <p>Requests the public keys for a specified time range.</p>
2254
+ */
1905
2255
  export interface ListPublicKeysRequest {
1906
2256
  /**
1907
2257
  * <p>Optionally specifies, in UTC, the start of the time range to look up public keys for CloudTrail digest files.
@@ -1973,6 +2323,105 @@ export declare namespace ListPublicKeysResponse {
1973
2323
  */
1974
2324
  const filterSensitiveLog: (obj: ListPublicKeysResponse) => any;
1975
2325
  }
2326
+ /**
2327
+ * <p>A date range for the query was specified that is not valid. For more information
2328
+ * about writing a query, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-create-edit-query.html">Create
2329
+ * or edit a query</a> in the <i>CloudTrail User Guide</i>.</p>
2330
+ */
2331
+ export interface InvalidDateRangeException extends __SmithyException, $MetadataBearer {
2332
+ name: "InvalidDateRangeException";
2333
+ $fault: "client";
2334
+ /**
2335
+ * <p>Brief description of the exception returned by the request.</p>
2336
+ */
2337
+ Message?: string;
2338
+ }
2339
+ /**
2340
+ * <p>The query status is not valid for the operation.</p>
2341
+ */
2342
+ export interface InvalidQueryStatusException extends __SmithyException, $MetadataBearer {
2343
+ name: "InvalidQueryStatusException";
2344
+ $fault: "client";
2345
+ /**
2346
+ * <p>Brief description of the exception returned by the request.</p>
2347
+ */
2348
+ Message?: string;
2349
+ }
2350
+ export interface ListQueriesRequest {
2351
+ /**
2352
+ * <p>The ARN (or the ID suffix of the ARN) of an event data store on which queries were run.</p>
2353
+ */
2354
+ EventDataStore: string | undefined;
2355
+ /**
2356
+ * <p>A token you can use to get the next page of results.</p>
2357
+ */
2358
+ NextToken?: string;
2359
+ /**
2360
+ * <p>The maximum number of queries to show on a page.</p>
2361
+ */
2362
+ MaxResults?: number;
2363
+ /**
2364
+ * <p>Use with <code>EndTime</code> to bound a <code>ListQueries</code> request, and limit its results to only those queries run
2365
+ * within a specified time period.</p>
2366
+ */
2367
+ StartTime?: Date;
2368
+ /**
2369
+ * <p>Use with <code>StartTime</code> to bound a <code>ListQueries</code> request, and limit its results to only those queries run
2370
+ * within a specified time period.</p>
2371
+ */
2372
+ EndTime?: Date;
2373
+ /**
2374
+ * <p>The status of queries that you want to return in results. Valid values for <code>QueryStatus</code> include <code>QUEUED</code>, <code>RUNNING</code>,
2375
+ * <code>FINISHED</code>, <code>FAILED</code>, or <code>CANCELLED</code>.</p>
2376
+ */
2377
+ QueryStatus?: QueryStatus | string;
2378
+ }
2379
+ export declare namespace ListQueriesRequest {
2380
+ /**
2381
+ * @internal
2382
+ */
2383
+ const filterSensitiveLog: (obj: ListQueriesRequest) => any;
2384
+ }
2385
+ /**
2386
+ * <p>A SQL string of criteria about events that you want to collect in an event data store.</p>
2387
+ */
2388
+ export interface Query {
2389
+ /**
2390
+ * <p>The ID of a query.</p>
2391
+ */
2392
+ QueryId?: string;
2393
+ /**
2394
+ * <p>The status of the query. This can be <code>QUEUED</code>, <code>RUNNING</code>, <code>FINISHED</code>, <code>FAILED</code>,
2395
+ * or <code>CANCELLED</code>.</p>
2396
+ */
2397
+ QueryStatus?: QueryStatus | string;
2398
+ /**
2399
+ * <p>The creation time of a query.</p>
2400
+ */
2401
+ CreationTime?: Date;
2402
+ }
2403
+ export declare namespace Query {
2404
+ /**
2405
+ * @internal
2406
+ */
2407
+ const filterSensitiveLog: (obj: Query) => any;
2408
+ }
2409
+ export interface ListQueriesResponse {
2410
+ /**
2411
+ * <p>Lists matching query results, and shows query ID, status, and creation time of each query.</p>
2412
+ */
2413
+ Queries?: Query[];
2414
+ /**
2415
+ * <p>A token you can use to get the next page of results.</p>
2416
+ */
2417
+ NextToken?: string;
2418
+ }
2419
+ export declare namespace ListQueriesResponse {
2420
+ /**
2421
+ * @internal
2422
+ */
2423
+ const filterSensitiveLog: (obj: ListQueriesResponse) => any;
2424
+ }
1976
2425
  /**
1977
2426
  * <p>Specifies a list of trail tags to return.</p>
1978
2427
  */
@@ -2102,12 +2551,6 @@ export interface InvalidEventCategoryException extends __SmithyException, $Metad
2102
2551
  */
2103
2552
  Message?: string;
2104
2553
  }
2105
- export declare namespace InvalidEventCategoryException {
2106
- /**
2107
- * @internal
2108
- */
2109
- const filterSensitiveLog: (obj: InvalidEventCategoryException) => any;
2110
- }
2111
2554
  /**
2112
2555
  * <p>Occurs when a lookup attribute is specified that is not valid.</p>
2113
2556
  */
@@ -2119,46 +2562,6 @@ export interface InvalidLookupAttributesException extends __SmithyException, $Me
2119
2562
  */
2120
2563
  Message?: string;
2121
2564
  }
2122
- export declare namespace InvalidLookupAttributesException {
2123
- /**
2124
- * @internal
2125
- */
2126
- const filterSensitiveLog: (obj: InvalidLookupAttributesException) => any;
2127
- }
2128
- /**
2129
- * <p>This exception is thrown if the limit specified is not valid.</p>
2130
- */
2131
- export interface InvalidMaxResultsException extends __SmithyException, $MetadataBearer {
2132
- name: "InvalidMaxResultsException";
2133
- $fault: "client";
2134
- /**
2135
- * <p>Brief description of the exception returned by the request.</p>
2136
- */
2137
- Message?: string;
2138
- }
2139
- export declare namespace InvalidMaxResultsException {
2140
- /**
2141
- * @internal
2142
- */
2143
- const filterSensitiveLog: (obj: InvalidMaxResultsException) => any;
2144
- }
2145
- /**
2146
- * <p>A token that is not valid, or a token that was previously used in a request with different parameters. This exception is thrown if the token is not valid.</p>
2147
- */
2148
- export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
2149
- name: "InvalidNextTokenException";
2150
- $fault: "client";
2151
- /**
2152
- * <p>Brief description of the exception returned by the request.</p>
2153
- */
2154
- Message?: string;
2155
- }
2156
- export declare namespace InvalidNextTokenException {
2157
- /**
2158
- * @internal
2159
- */
2160
- const filterSensitiveLog: (obj: InvalidNextTokenException) => any;
2161
- }
2162
2565
  export declare enum EventCategory {
2163
2566
  Insight = "insight"
2164
2567
  }
@@ -2353,12 +2756,6 @@ export interface InvalidEventSelectorsException extends __SmithyException, $Meta
2353
2756
  */
2354
2757
  Message?: string;
2355
2758
  }
2356
- export declare namespace InvalidEventSelectorsException {
2357
- /**
2358
- * @internal
2359
- */
2360
- const filterSensitiveLog: (obj: InvalidEventSelectorsException) => any;
2361
- }
2362
2759
  export interface PutEventSelectorsRequest {
2363
2760
  /**
2364
2761
  * <p>Specifies the name of the trail or trail ARN. If you specify a trail name, the
@@ -2447,19 +2844,13 @@ export interface InvalidInsightSelectorsException extends __SmithyException, $Me
2447
2844
  */
2448
2845
  Message?: string;
2449
2846
  }
2450
- export declare namespace InvalidInsightSelectorsException {
2451
- /**
2452
- * @internal
2453
- */
2454
- const filterSensitiveLog: (obj: InvalidInsightSelectorsException) => any;
2455
- }
2456
2847
  export interface PutInsightSelectorsRequest {
2457
2848
  /**
2458
2849
  * <p>The name of the CloudTrail trail for which you want to change or add Insights selectors.</p>
2459
2850
  */
2460
2851
  TrailName: string | undefined;
2461
2852
  /**
2462
- * <p>A JSON string that contains the Insights types that you want to log on a trail. The valid Insights type in this release is <code>ApiCallRateInsight</code>.</p>
2853
+ * <p>A JSON string that contains the insight types you want to log on a trail. <code>ApiCallRateInsight</code> and <code>ApiErrorRateInsight</code> are valid insight types.</p>
2463
2854
  */
2464
2855
  InsightSelectors: InsightSelector[] | undefined;
2465
2856
  }
@@ -2475,7 +2866,8 @@ export interface PutInsightSelectorsResponse {
2475
2866
  */
2476
2867
  TrailARN?: string;
2477
2868
  /**
2478
- * <p>A JSON string that contains the Insights event types that you want to log on a trail. The valid Insights type in this release is <code>ApiCallRateInsight</code>.</p>
2869
+ * <p>A JSON string that contains the Insights event types that you want to log on a trail. The valid Insights types in this release are
2870
+ * <code>ApiErrorRateInsight</code> and <code>ApiCallRateInsight</code>.</p>
2479
2871
  */
2480
2872
  InsightSelectors?: InsightSelector[];
2481
2873
  }
@@ -2499,7 +2891,7 @@ export interface RemoveTagsRequest {
2499
2891
  /**
2500
2892
  * <p>Specifies a list of tags to be removed.</p>
2501
2893
  */
2502
- TagsList?: Tag[];
2894
+ TagsList: Tag[] | undefined;
2503
2895
  }
2504
2896
  export declare namespace RemoveTagsRequest {
2505
2897
  /**
@@ -2518,6 +2910,79 @@ export declare namespace RemoveTagsResponse {
2518
2910
  */
2519
2911
  const filterSensitiveLog: (obj: RemoveTagsResponse) => any;
2520
2912
  }
2913
+ /**
2914
+ * <p>The event data store is not in a status that supports the operation.</p>
2915
+ */
2916
+ export interface InvalidEventDataStoreStatusException extends __SmithyException, $MetadataBearer {
2917
+ name: "InvalidEventDataStoreStatusException";
2918
+ $fault: "client";
2919
+ /**
2920
+ * <p>Brief description of the exception returned by the request.</p>
2921
+ */
2922
+ Message?: string;
2923
+ }
2924
+ export interface RestoreEventDataStoreRequest {
2925
+ /**
2926
+ * <p>The ARN (or the ID suffix of the ARN) of the event data store that you want to restore.</p>
2927
+ */
2928
+ EventDataStore: string | undefined;
2929
+ }
2930
+ export declare namespace RestoreEventDataStoreRequest {
2931
+ /**
2932
+ * @internal
2933
+ */
2934
+ const filterSensitiveLog: (obj: RestoreEventDataStoreRequest) => any;
2935
+ }
2936
+ export interface RestoreEventDataStoreResponse {
2937
+ /**
2938
+ * <p>The event data store ARN.</p>
2939
+ */
2940
+ EventDataStoreArn?: string;
2941
+ /**
2942
+ * <p>The name of the event data store.</p>
2943
+ */
2944
+ Name?: string;
2945
+ /**
2946
+ * <p>The status of the event data store.</p>
2947
+ */
2948
+ Status?: EventDataStoreStatus | string;
2949
+ /**
2950
+ * <p>The advanced event selectors that were used to select events.</p>
2951
+ */
2952
+ AdvancedEventSelectors?: AdvancedEventSelector[];
2953
+ /**
2954
+ * <p>Indicates whether the event data store is collecting events from all regions, or only from the region in which the event data
2955
+ * store was created.</p>
2956
+ */
2957
+ MultiRegionEnabled?: boolean;
2958
+ /**
2959
+ * <p>Indicates whether an event data store is collecting logged events for an organization in Organizations.</p>
2960
+ */
2961
+ OrganizationEnabled?: boolean;
2962
+ /**
2963
+ * <p>The retention period, in days.</p>
2964
+ */
2965
+ RetentionPeriod?: number;
2966
+ /**
2967
+ * <p>Indicates that termination protection is enabled and the event data store cannot be automatically deleted.</p>
2968
+ */
2969
+ TerminationProtectionEnabled?: boolean;
2970
+ /**
2971
+ * <p>The timestamp of an event data store's creation.</p>
2972
+ */
2973
+ CreatedTimestamp?: Date;
2974
+ /**
2975
+ * <p>The timestamp that shows when an event data store was updated, if applicable.
2976
+ * <code>UpdatedTimestamp</code> is always either the same or newer than the time shown in <code>CreatedTimestamp</code>.</p>
2977
+ */
2978
+ UpdatedTimestamp?: Date;
2979
+ }
2980
+ export declare namespace RestoreEventDataStoreResponse {
2981
+ /**
2982
+ * @internal
2983
+ */
2984
+ const filterSensitiveLog: (obj: RestoreEventDataStoreResponse) => any;
2985
+ }
2521
2986
  /**
2522
2987
  * <p>The request to CloudTrail to start logging Amazon Web Services API calls for an account.</p>
2523
2988
  */
@@ -2548,6 +3013,55 @@ export declare namespace StartLoggingResponse {
2548
3013
  */
2549
3014
  const filterSensitiveLog: (obj: StartLoggingResponse) => any;
2550
3015
  }
3016
+ /**
3017
+ * <p>The query that was submitted has validation errors, or uses incorrect syntax or unsupported keywords. For more information
3018
+ * about writing a query, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-create-edit-query.html">Create
3019
+ * or edit a query</a> in the <i>CloudTrail User Guide</i>.</p>
3020
+ */
3021
+ export interface InvalidQueryStatementException extends __SmithyException, $MetadataBearer {
3022
+ name: "InvalidQueryStatementException";
3023
+ $fault: "client";
3024
+ /**
3025
+ * <p>Brief description of the exception returned by the request.</p>
3026
+ */
3027
+ Message?: string;
3028
+ }
3029
+ /**
3030
+ * <p>You are already running the maximum number of concurrent queries. Wait a minute for some queries to finish, and then
3031
+ * run the query again.</p>
3032
+ */
3033
+ export interface MaxConcurrentQueriesException extends __SmithyException, $MetadataBearer {
3034
+ name: "MaxConcurrentQueriesException";
3035
+ $fault: "client";
3036
+ /**
3037
+ * <p>Brief description of the exception returned by the request.</p>
3038
+ */
3039
+ Message?: string;
3040
+ }
3041
+ export interface StartQueryRequest {
3042
+ /**
3043
+ * <p>The SQL code of your query.</p>
3044
+ */
3045
+ QueryStatement: string | undefined;
3046
+ }
3047
+ export declare namespace StartQueryRequest {
3048
+ /**
3049
+ * @internal
3050
+ */
3051
+ const filterSensitiveLog: (obj: StartQueryRequest) => any;
3052
+ }
3053
+ export interface StartQueryResponse {
3054
+ /**
3055
+ * <p>The ID of the started query.</p>
3056
+ */
3057
+ QueryId?: string;
3058
+ }
3059
+ export declare namespace StartQueryResponse {
3060
+ /**
3061
+ * @internal
3062
+ */
3063
+ const filterSensitiveLog: (obj: StartQueryResponse) => any;
3064
+ }
2551
3065
  /**
2552
3066
  * <p>Passes the request to CloudTrail to stop logging Amazon Web Services API calls for the specified account.</p>
2553
3067
  */
@@ -2578,6 +3092,90 @@ export declare namespace StopLoggingResponse {
2578
3092
  */
2579
3093
  const filterSensitiveLog: (obj: StopLoggingResponse) => any;
2580
3094
  }
3095
+ export interface UpdateEventDataStoreRequest {
3096
+ /**
3097
+ * <p>The ARN (or the ID suffix of the ARN) of the event data store that you want to update.</p>
3098
+ */
3099
+ EventDataStore: string | undefined;
3100
+ /**
3101
+ * <p>The event data store name.</p>
3102
+ */
3103
+ Name?: string;
3104
+ /**
3105
+ * <p>The advanced event selectors used to select events for the event data store.</p>
3106
+ */
3107
+ AdvancedEventSelectors?: AdvancedEventSelector[];
3108
+ /**
3109
+ * <p>Specifies whether an event data store collects events from all regions, or only from the region in which it was created.</p>
3110
+ */
3111
+ MultiRegionEnabled?: boolean;
3112
+ /**
3113
+ * <p>Specifies whether an event data store collects events logged for an organization in Organizations.</p>
3114
+ */
3115
+ OrganizationEnabled?: boolean;
3116
+ /**
3117
+ * <p>The retention period, in days.</p>
3118
+ */
3119
+ RetentionPeriod?: number;
3120
+ /**
3121
+ * <p>Indicates that termination protection is enabled and the event data store cannot be automatically deleted.</p>
3122
+ */
3123
+ TerminationProtectionEnabled?: boolean;
3124
+ }
3125
+ export declare namespace UpdateEventDataStoreRequest {
3126
+ /**
3127
+ * @internal
3128
+ */
3129
+ const filterSensitiveLog: (obj: UpdateEventDataStoreRequest) => any;
3130
+ }
3131
+ export interface UpdateEventDataStoreResponse {
3132
+ /**
3133
+ * <p>The ARN of the event data store.</p>
3134
+ */
3135
+ EventDataStoreArn?: string;
3136
+ /**
3137
+ * <p>The name of the event data store.</p>
3138
+ */
3139
+ Name?: string;
3140
+ /**
3141
+ * <p>The status of an event data store. Values can be <code>ENABLED</code> and <code>PENDING_DELETION</code>.</p>
3142
+ */
3143
+ Status?: EventDataStoreStatus | string;
3144
+ /**
3145
+ * <p>The advanced event selectors that are applied to the event data store.</p>
3146
+ */
3147
+ AdvancedEventSelectors?: AdvancedEventSelector[];
3148
+ /**
3149
+ * <p>Indicates whether the event data store includes events from all regions, or only from the region in which it was created.</p>
3150
+ */
3151
+ MultiRegionEnabled?: boolean;
3152
+ /**
3153
+ * <p>Indicates whether an event data store is collecting logged events for an organization in Organizations.</p>
3154
+ */
3155
+ OrganizationEnabled?: boolean;
3156
+ /**
3157
+ * <p>The retention period, in days.</p>
3158
+ */
3159
+ RetentionPeriod?: number;
3160
+ /**
3161
+ * <p>Indicates whether termination protection is enabled for the event data store.</p>
3162
+ */
3163
+ TerminationProtectionEnabled?: boolean;
3164
+ /**
3165
+ * <p>The timestamp that shows when an event data store was first created.</p>
3166
+ */
3167
+ CreatedTimestamp?: Date;
3168
+ /**
3169
+ * <p>The timestamp that shows when the event data store was last updated. <code>UpdatedTimestamp</code> is always either the same or newer than the time shown in <code>CreatedTimestamp</code>.</p>
3170
+ */
3171
+ UpdatedTimestamp?: Date;
3172
+ }
3173
+ export declare namespace UpdateEventDataStoreResponse {
3174
+ /**
3175
+ * @internal
3176
+ */
3177
+ const filterSensitiveLog: (obj: UpdateEventDataStoreResponse) => any;
3178
+ }
2581
3179
  /**
2582
3180
  * <p>Specifies settings to update for the trail.</p>
2583
3181
  */