aws-sdk-cloudtrail 1.50.0 → 1.51.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,6 +13,7 @@ module Aws::CloudTrail
13
13
 
14
14
  include Seahorse::Model
15
15
 
16
+ AccountHasOngoingImportException = Shapes::StructureShape.new(name: 'AccountHasOngoingImportException')
16
17
  AddTagsRequest = Shapes::StructureShape.new(name: 'AddTagsRequest')
17
18
  AddTagsResponse = Shapes::StructureShape.new(name: 'AddTagsResponse')
18
19
  AdvancedEventSelector = Shapes::StructureShape.new(name: 'AdvancedEventSelector')
@@ -60,6 +61,7 @@ module Aws::CloudTrail
60
61
  EventDataStoreARNInvalidException = Shapes::StructureShape.new(name: 'EventDataStoreARNInvalidException')
61
62
  EventDataStoreAlreadyExistsException = Shapes::StructureShape.new(name: 'EventDataStoreAlreadyExistsException')
62
63
  EventDataStoreArn = Shapes::StringShape.new(name: 'EventDataStoreArn')
64
+ EventDataStoreHasOngoingImportException = Shapes::StructureShape.new(name: 'EventDataStoreHasOngoingImportException')
63
65
  EventDataStoreMaxLimitExceededException = Shapes::StructureShape.new(name: 'EventDataStoreMaxLimitExceededException')
64
66
  EventDataStoreName = Shapes::StringShape.new(name: 'EventDataStoreName')
65
67
  EventDataStoreNotFoundException = Shapes::StructureShape.new(name: 'EventDataStoreNotFoundException')
@@ -76,6 +78,8 @@ module Aws::CloudTrail
76
78
  GetEventDataStoreResponse = Shapes::StructureShape.new(name: 'GetEventDataStoreResponse')
77
79
  GetEventSelectorsRequest = Shapes::StructureShape.new(name: 'GetEventSelectorsRequest')
78
80
  GetEventSelectorsResponse = Shapes::StructureShape.new(name: 'GetEventSelectorsResponse')
81
+ GetImportRequest = Shapes::StructureShape.new(name: 'GetImportRequest')
82
+ GetImportResponse = Shapes::StructureShape.new(name: 'GetImportResponse')
79
83
  GetInsightSelectorsRequest = Shapes::StructureShape.new(name: 'GetInsightSelectorsRequest')
80
84
  GetInsightSelectorsResponse = Shapes::StructureShape.new(name: 'GetInsightSelectorsResponse')
81
85
  GetQueryResultsRequest = Shapes::StructureShape.new(name: 'GetQueryResultsRequest')
@@ -84,6 +88,16 @@ module Aws::CloudTrail
84
88
  GetTrailResponse = Shapes::StructureShape.new(name: 'GetTrailResponse')
85
89
  GetTrailStatusRequest = Shapes::StructureShape.new(name: 'GetTrailStatusRequest')
86
90
  GetTrailStatusResponse = Shapes::StructureShape.new(name: 'GetTrailStatusResponse')
91
+ ImportDestinations = Shapes::ListShape.new(name: 'ImportDestinations')
92
+ ImportFailureList = Shapes::ListShape.new(name: 'ImportFailureList')
93
+ ImportFailureListItem = Shapes::StructureShape.new(name: 'ImportFailureListItem')
94
+ ImportFailureStatus = Shapes::StringShape.new(name: 'ImportFailureStatus')
95
+ ImportNotFoundException = Shapes::StructureShape.new(name: 'ImportNotFoundException')
96
+ ImportSource = Shapes::StructureShape.new(name: 'ImportSource')
97
+ ImportStatistics = Shapes::StructureShape.new(name: 'ImportStatistics')
98
+ ImportStatus = Shapes::StringShape.new(name: 'ImportStatus')
99
+ ImportsList = Shapes::ListShape.new(name: 'ImportsList')
100
+ ImportsListItem = Shapes::StructureShape.new(name: 'ImportsListItem')
87
101
  InactiveEventDataStoreException = Shapes::StructureShape.new(name: 'InactiveEventDataStoreException')
88
102
  InactiveQueryException = Shapes::StructureShape.new(name: 'InactiveQueryException')
89
103
  InsightNotEnabledException = Shapes::StructureShape.new(name: 'InsightNotEnabledException')
@@ -99,9 +113,11 @@ module Aws::CloudTrail
99
113
  InvalidCloudWatchLogsRoleArnException = Shapes::StructureShape.new(name: 'InvalidCloudWatchLogsRoleArnException')
100
114
  InvalidDateRangeException = Shapes::StructureShape.new(name: 'InvalidDateRangeException')
101
115
  InvalidEventCategoryException = Shapes::StructureShape.new(name: 'InvalidEventCategoryException')
116
+ InvalidEventDataStoreCategoryException = Shapes::StructureShape.new(name: 'InvalidEventDataStoreCategoryException')
102
117
  InvalidEventDataStoreStatusException = Shapes::StructureShape.new(name: 'InvalidEventDataStoreStatusException')
103
118
  InvalidEventSelectorsException = Shapes::StructureShape.new(name: 'InvalidEventSelectorsException')
104
119
  InvalidHomeRegionException = Shapes::StructureShape.new(name: 'InvalidHomeRegionException')
120
+ InvalidImportSourceException = Shapes::StructureShape.new(name: 'InvalidImportSourceException')
105
121
  InvalidInsightSelectorsException = Shapes::StructureShape.new(name: 'InvalidInsightSelectorsException')
106
122
  InvalidKmsKeyIdException = Shapes::StructureShape.new(name: 'InvalidKmsKeyIdException')
107
123
  InvalidLookupAttributesException = Shapes::StructureShape.new(name: 'InvalidLookupAttributesException')
@@ -127,6 +143,12 @@ module Aws::CloudTrail
127
143
  ListEventDataStoresMaxResultsCount = Shapes::IntegerShape.new(name: 'ListEventDataStoresMaxResultsCount')
128
144
  ListEventDataStoresRequest = Shapes::StructureShape.new(name: 'ListEventDataStoresRequest')
129
145
  ListEventDataStoresResponse = Shapes::StructureShape.new(name: 'ListEventDataStoresResponse')
146
+ ListImportFailuresMaxResultsCount = Shapes::IntegerShape.new(name: 'ListImportFailuresMaxResultsCount')
147
+ ListImportFailuresRequest = Shapes::StructureShape.new(name: 'ListImportFailuresRequest')
148
+ ListImportFailuresResponse = Shapes::StructureShape.new(name: 'ListImportFailuresResponse')
149
+ ListImportsMaxResultsCount = Shapes::IntegerShape.new(name: 'ListImportsMaxResultsCount')
150
+ ListImportsRequest = Shapes::StructureShape.new(name: 'ListImportsRequest')
151
+ ListImportsResponse = Shapes::StructureShape.new(name: 'ListImportsResponse')
130
152
  ListPublicKeysRequest = Shapes::StructureShape.new(name: 'ListPublicKeysRequest')
131
153
  ListPublicKeysResponse = Shapes::StructureShape.new(name: 'ListPublicKeysResponse')
132
154
  ListQueriesMaxResultsCount = Shapes::IntegerShape.new(name: 'ListQueriesMaxResultsCount')
@@ -187,14 +209,19 @@ module Aws::CloudTrail
187
209
  RestoreEventDataStoreResponse = Shapes::StructureShape.new(name: 'RestoreEventDataStoreResponse')
188
210
  RetentionPeriod = Shapes::IntegerShape.new(name: 'RetentionPeriod')
189
211
  S3BucketDoesNotExistException = Shapes::StructureShape.new(name: 'S3BucketDoesNotExistException')
212
+ S3ImportSource = Shapes::StructureShape.new(name: 'S3ImportSource')
190
213
  SelectorField = Shapes::StringShape.new(name: 'SelectorField')
191
214
  SelectorName = Shapes::StringShape.new(name: 'SelectorName')
192
215
  Source = Shapes::StringShape.new(name: 'Source')
193
216
  SourceConfig = Shapes::StructureShape.new(name: 'SourceConfig')
217
+ StartImportRequest = Shapes::StructureShape.new(name: 'StartImportRequest')
218
+ StartImportResponse = Shapes::StructureShape.new(name: 'StartImportResponse')
194
219
  StartLoggingRequest = Shapes::StructureShape.new(name: 'StartLoggingRequest')
195
220
  StartLoggingResponse = Shapes::StructureShape.new(name: 'StartLoggingResponse')
196
221
  StartQueryRequest = Shapes::StructureShape.new(name: 'StartQueryRequest')
197
222
  StartQueryResponse = Shapes::StructureShape.new(name: 'StartQueryResponse')
223
+ StopImportRequest = Shapes::StructureShape.new(name: 'StopImportRequest')
224
+ StopImportResponse = Shapes::StructureShape.new(name: 'StopImportResponse')
198
225
  StopLoggingRequest = Shapes::StructureShape.new(name: 'StopLoggingRequest')
199
226
  StopLoggingResponse = Shapes::StructureShape.new(name: 'StopLoggingResponse')
200
227
  String = Shapes::StringShape.new(name: 'String')
@@ -219,6 +246,8 @@ module Aws::CloudTrail
219
246
  UpdateTrailRequest = Shapes::StructureShape.new(name: 'UpdateTrailRequest')
220
247
  UpdateTrailResponse = Shapes::StructureShape.new(name: 'UpdateTrailResponse')
221
248
 
249
+ AccountHasOngoingImportException.struct_class = Types::AccountHasOngoingImportException
250
+
222
251
  AddTagsRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ResourceId"))
223
252
  AddTagsRequest.add_member(:tags_list, Shapes::ShapeRef.new(shape: TagsList, required: true, location_name: "TagsList"))
224
253
  AddTagsRequest.struct_class = Types::AddTagsRequest
@@ -390,6 +419,8 @@ module Aws::CloudTrail
390
419
 
391
420
  EventDataStoreAlreadyExistsException.struct_class = Types::EventDataStoreAlreadyExistsException
392
421
 
422
+ EventDataStoreHasOngoingImportException.struct_class = Types::EventDataStoreHasOngoingImportException
423
+
393
424
  EventDataStoreMaxLimitExceededException.struct_class = Types::EventDataStoreMaxLimitExceededException
394
425
 
395
426
  EventDataStoreNotFoundException.struct_class = Types::EventDataStoreNotFoundException
@@ -443,6 +474,20 @@ module Aws::CloudTrail
443
474
  GetEventSelectorsResponse.add_member(:advanced_event_selectors, Shapes::ShapeRef.new(shape: AdvancedEventSelectors, location_name: "AdvancedEventSelectors"))
444
475
  GetEventSelectorsResponse.struct_class = Types::GetEventSelectorsResponse
445
476
 
477
+ GetImportRequest.add_member(:import_id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "ImportId"))
478
+ GetImportRequest.struct_class = Types::GetImportRequest
479
+
480
+ GetImportResponse.add_member(:import_id, Shapes::ShapeRef.new(shape: UUID, location_name: "ImportId"))
481
+ GetImportResponse.add_member(:destinations, Shapes::ShapeRef.new(shape: ImportDestinations, location_name: "Destinations"))
482
+ GetImportResponse.add_member(:import_source, Shapes::ShapeRef.new(shape: ImportSource, location_name: "ImportSource"))
483
+ GetImportResponse.add_member(:start_event_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartEventTime"))
484
+ GetImportResponse.add_member(:end_event_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndEventTime"))
485
+ GetImportResponse.add_member(:import_status, Shapes::ShapeRef.new(shape: ImportStatus, location_name: "ImportStatus"))
486
+ GetImportResponse.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "CreatedTimestamp"))
487
+ GetImportResponse.add_member(:updated_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "UpdatedTimestamp"))
488
+ GetImportResponse.add_member(:import_statistics, Shapes::ShapeRef.new(shape: ImportStatistics, location_name: "ImportStatistics"))
489
+ GetImportResponse.struct_class = Types::GetImportResponse
490
+
446
491
  GetInsightSelectorsRequest.add_member(:trail_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "TrailName"))
447
492
  GetInsightSelectorsRequest.struct_class = Types::GetInsightSelectorsRequest
448
493
 
@@ -491,6 +536,38 @@ module Aws::CloudTrail
491
536
  GetTrailStatusResponse.add_member(:time_logging_stopped, Shapes::ShapeRef.new(shape: String, location_name: "TimeLoggingStopped"))
492
537
  GetTrailStatusResponse.struct_class = Types::GetTrailStatusResponse
493
538
 
539
+ ImportDestinations.member = Shapes::ShapeRef.new(shape: EventDataStoreArn)
540
+
541
+ ImportFailureList.member = Shapes::ShapeRef.new(shape: ImportFailureListItem)
542
+
543
+ ImportFailureListItem.add_member(:location, Shapes::ShapeRef.new(shape: String, location_name: "Location"))
544
+ ImportFailureListItem.add_member(:status, Shapes::ShapeRef.new(shape: ImportFailureStatus, location_name: "Status"))
545
+ ImportFailureListItem.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location_name: "ErrorType"))
546
+ ImportFailureListItem.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "ErrorMessage"))
547
+ ImportFailureListItem.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Date, location_name: "LastUpdatedTime"))
548
+ ImportFailureListItem.struct_class = Types::ImportFailureListItem
549
+
550
+ ImportNotFoundException.struct_class = Types::ImportNotFoundException
551
+
552
+ ImportSource.add_member(:s3, Shapes::ShapeRef.new(shape: S3ImportSource, required: true, location_name: "S3"))
553
+ ImportSource.struct_class = Types::ImportSource
554
+
555
+ ImportStatistics.add_member(:prefixes_found, Shapes::ShapeRef.new(shape: Long, location_name: "PrefixesFound"))
556
+ ImportStatistics.add_member(:prefixes_completed, Shapes::ShapeRef.new(shape: Long, location_name: "PrefixesCompleted"))
557
+ ImportStatistics.add_member(:files_completed, Shapes::ShapeRef.new(shape: Long, location_name: "FilesCompleted"))
558
+ ImportStatistics.add_member(:events_completed, Shapes::ShapeRef.new(shape: Long, location_name: "EventsCompleted"))
559
+ ImportStatistics.add_member(:failed_entries, Shapes::ShapeRef.new(shape: Long, location_name: "FailedEntries"))
560
+ ImportStatistics.struct_class = Types::ImportStatistics
561
+
562
+ ImportsList.member = Shapes::ShapeRef.new(shape: ImportsListItem)
563
+
564
+ ImportsListItem.add_member(:import_id, Shapes::ShapeRef.new(shape: UUID, location_name: "ImportId"))
565
+ ImportsListItem.add_member(:import_status, Shapes::ShapeRef.new(shape: ImportStatus, location_name: "ImportStatus"))
566
+ ImportsListItem.add_member(:destinations, Shapes::ShapeRef.new(shape: ImportDestinations, location_name: "Destinations"))
567
+ ImportsListItem.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "CreatedTimestamp"))
568
+ ImportsListItem.add_member(:updated_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "UpdatedTimestamp"))
569
+ ImportsListItem.struct_class = Types::ImportsListItem
570
+
494
571
  InactiveEventDataStoreException.struct_class = Types::InactiveEventDataStoreException
495
572
 
496
573
  InactiveQueryException.struct_class = Types::InactiveQueryException
@@ -518,12 +595,16 @@ module Aws::CloudTrail
518
595
 
519
596
  InvalidEventCategoryException.struct_class = Types::InvalidEventCategoryException
520
597
 
598
+ InvalidEventDataStoreCategoryException.struct_class = Types::InvalidEventDataStoreCategoryException
599
+
521
600
  InvalidEventDataStoreStatusException.struct_class = Types::InvalidEventDataStoreStatusException
522
601
 
523
602
  InvalidEventSelectorsException.struct_class = Types::InvalidEventSelectorsException
524
603
 
525
604
  InvalidHomeRegionException.struct_class = Types::InvalidHomeRegionException
526
605
 
606
+ InvalidImportSourceException.struct_class = Types::InvalidImportSourceException
607
+
527
608
  InvalidInsightSelectorsException.struct_class = Types::InvalidInsightSelectorsException
528
609
 
529
610
  InvalidKmsKeyIdException.struct_class = Types::InvalidKmsKeyIdException
@@ -578,6 +659,25 @@ module Aws::CloudTrail
578
659
  ListEventDataStoresResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
579
660
  ListEventDataStoresResponse.struct_class = Types::ListEventDataStoresResponse
580
661
 
662
+ ListImportFailuresRequest.add_member(:import_id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "ImportId"))
663
+ ListImportFailuresRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListImportFailuresMaxResultsCount, location_name: "MaxResults"))
664
+ ListImportFailuresRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
665
+ ListImportFailuresRequest.struct_class = Types::ListImportFailuresRequest
666
+
667
+ ListImportFailuresResponse.add_member(:failures, Shapes::ShapeRef.new(shape: ImportFailureList, location_name: "Failures"))
668
+ ListImportFailuresResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
669
+ ListImportFailuresResponse.struct_class = Types::ListImportFailuresResponse
670
+
671
+ ListImportsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListImportsMaxResultsCount, location_name: "MaxResults"))
672
+ ListImportsRequest.add_member(:destination, Shapes::ShapeRef.new(shape: EventDataStoreArn, location_name: "Destination"))
673
+ ListImportsRequest.add_member(:import_status, Shapes::ShapeRef.new(shape: ImportStatus, location_name: "ImportStatus"))
674
+ ListImportsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
675
+ ListImportsRequest.struct_class = Types::ListImportsRequest
676
+
677
+ ListImportsResponse.add_member(:imports, Shapes::ShapeRef.new(shape: ImportsList, location_name: "Imports"))
678
+ ListImportsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
679
+ ListImportsResponse.struct_class = Types::ListImportsResponse
680
+
581
681
  ListPublicKeysRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartTime"))
582
682
  ListPublicKeysRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndTime"))
583
683
  ListPublicKeysRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
@@ -741,10 +841,32 @@ module Aws::CloudTrail
741
841
 
742
842
  S3BucketDoesNotExistException.struct_class = Types::S3BucketDoesNotExistException
743
843
 
844
+ S3ImportSource.add_member(:s3_location_uri, Shapes::ShapeRef.new(shape: String, required: true, location_name: "S3LocationUri"))
845
+ S3ImportSource.add_member(:s3_bucket_region, Shapes::ShapeRef.new(shape: String, required: true, location_name: "S3BucketRegion"))
846
+ S3ImportSource.add_member(:s3_bucket_access_role_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "S3BucketAccessRoleArn"))
847
+ S3ImportSource.struct_class = Types::S3ImportSource
848
+
744
849
  SourceConfig.add_member(:apply_to_all_regions, Shapes::ShapeRef.new(shape: Boolean, location_name: "ApplyToAllRegions"))
745
850
  SourceConfig.add_member(:advanced_event_selectors, Shapes::ShapeRef.new(shape: AdvancedEventSelectors, location_name: "AdvancedEventSelectors"))
746
851
  SourceConfig.struct_class = Types::SourceConfig
747
852
 
853
+ StartImportRequest.add_member(:destinations, Shapes::ShapeRef.new(shape: ImportDestinations, location_name: "Destinations"))
854
+ StartImportRequest.add_member(:import_source, Shapes::ShapeRef.new(shape: ImportSource, location_name: "ImportSource"))
855
+ StartImportRequest.add_member(:start_event_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartEventTime"))
856
+ StartImportRequest.add_member(:end_event_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndEventTime"))
857
+ StartImportRequest.add_member(:import_id, Shapes::ShapeRef.new(shape: UUID, location_name: "ImportId"))
858
+ StartImportRequest.struct_class = Types::StartImportRequest
859
+
860
+ StartImportResponse.add_member(:import_id, Shapes::ShapeRef.new(shape: UUID, location_name: "ImportId"))
861
+ StartImportResponse.add_member(:destinations, Shapes::ShapeRef.new(shape: ImportDestinations, location_name: "Destinations"))
862
+ StartImportResponse.add_member(:import_source, Shapes::ShapeRef.new(shape: ImportSource, location_name: "ImportSource"))
863
+ StartImportResponse.add_member(:start_event_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartEventTime"))
864
+ StartImportResponse.add_member(:end_event_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndEventTime"))
865
+ StartImportResponse.add_member(:import_status, Shapes::ShapeRef.new(shape: ImportStatus, location_name: "ImportStatus"))
866
+ StartImportResponse.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "CreatedTimestamp"))
867
+ StartImportResponse.add_member(:updated_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "UpdatedTimestamp"))
868
+ StartImportResponse.struct_class = Types::StartImportResponse
869
+
748
870
  StartLoggingRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
749
871
  StartLoggingRequest.struct_class = Types::StartLoggingRequest
750
872
 
@@ -756,6 +878,20 @@ module Aws::CloudTrail
756
878
  StartQueryResponse.add_member(:query_id, Shapes::ShapeRef.new(shape: UUID, location_name: "QueryId"))
757
879
  StartQueryResponse.struct_class = Types::StartQueryResponse
758
880
 
881
+ StopImportRequest.add_member(:import_id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "ImportId"))
882
+ StopImportRequest.struct_class = Types::StopImportRequest
883
+
884
+ StopImportResponse.add_member(:import_id, Shapes::ShapeRef.new(shape: UUID, location_name: "ImportId"))
885
+ StopImportResponse.add_member(:import_source, Shapes::ShapeRef.new(shape: ImportSource, location_name: "ImportSource"))
886
+ StopImportResponse.add_member(:destinations, Shapes::ShapeRef.new(shape: ImportDestinations, location_name: "Destinations"))
887
+ StopImportResponse.add_member(:import_status, Shapes::ShapeRef.new(shape: ImportStatus, location_name: "ImportStatus"))
888
+ StopImportResponse.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "CreatedTimestamp"))
889
+ StopImportResponse.add_member(:updated_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "UpdatedTimestamp"))
890
+ StopImportResponse.add_member(:start_event_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartEventTime"))
891
+ StopImportResponse.add_member(:end_event_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndEventTime"))
892
+ StopImportResponse.add_member(:import_statistics, Shapes::ShapeRef.new(shape: ImportStatistics, location_name: "ImportStatistics"))
893
+ StopImportResponse.struct_class = Types::StopImportResponse
894
+
759
895
  StopLoggingRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
760
896
  StopLoggingRequest.struct_class = Types::StopLoggingRequest
761
897
 
@@ -977,6 +1113,7 @@ module Aws::CloudTrail
977
1113
  o.errors << Shapes::ShapeRef.new(shape: EventDataStoreARNInvalidException)
978
1114
  o.errors << Shapes::ShapeRef.new(shape: EventDataStoreNotFoundException)
979
1115
  o.errors << Shapes::ShapeRef.new(shape: EventDataStoreTerminationProtectedException)
1116
+ o.errors << Shapes::ShapeRef.new(shape: EventDataStoreHasOngoingImportException)
980
1117
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
981
1118
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
982
1119
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
@@ -1063,6 +1200,18 @@ module Aws::CloudTrail
1063
1200
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1064
1201
  end)
1065
1202
 
1203
+ api.add_operation(:get_import, Seahorse::Model::Operation.new.tap do |o|
1204
+ o.name = "GetImport"
1205
+ o.http_method = "POST"
1206
+ o.http_request_uri = "/"
1207
+ o.input = Shapes::ShapeRef.new(shape: GetImportRequest)
1208
+ o.output = Shapes::ShapeRef.new(shape: GetImportResponse)
1209
+ o.errors << Shapes::ShapeRef.new(shape: ImportNotFoundException)
1210
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1211
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1212
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1213
+ end)
1214
+
1066
1215
  api.add_operation(:get_insight_selectors, Seahorse::Model::Operation.new.tap do |o|
1067
1216
  o.name = "GetInsightSelectors"
1068
1217
  o.http_method = "POST"
@@ -1157,6 +1306,42 @@ module Aws::CloudTrail
1157
1306
  )
1158
1307
  end)
1159
1308
 
1309
+ api.add_operation(:list_import_failures, Seahorse::Model::Operation.new.tap do |o|
1310
+ o.name = "ListImportFailures"
1311
+ o.http_method = "POST"
1312
+ o.http_request_uri = "/"
1313
+ o.input = Shapes::ShapeRef.new(shape: ListImportFailuresRequest)
1314
+ o.output = Shapes::ShapeRef.new(shape: ListImportFailuresResponse)
1315
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1316
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1317
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1318
+ o[:pager] = Aws::Pager.new(
1319
+ limit_key: "max_results",
1320
+ tokens: {
1321
+ "next_token" => "next_token"
1322
+ }
1323
+ )
1324
+ end)
1325
+
1326
+ api.add_operation(:list_imports, Seahorse::Model::Operation.new.tap do |o|
1327
+ o.name = "ListImports"
1328
+ o.http_method = "POST"
1329
+ o.http_request_uri = "/"
1330
+ o.input = Shapes::ShapeRef.new(shape: ListImportsRequest)
1331
+ o.output = Shapes::ShapeRef.new(shape: ListImportsResponse)
1332
+ o.errors << Shapes::ShapeRef.new(shape: EventDataStoreARNInvalidException)
1333
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1334
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1335
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1336
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1337
+ o[:pager] = Aws::Pager.new(
1338
+ limit_key: "max_results",
1339
+ tokens: {
1340
+ "next_token" => "next_token"
1341
+ }
1342
+ )
1343
+ end)
1344
+
1160
1345
  api.add_operation(:list_public_keys, Seahorse::Model::Operation.new.tap do |o|
1161
1346
  o.name = "ListPublicKeys"
1162
1347
  o.http_method = "POST"
@@ -1329,6 +1514,27 @@ module Aws::CloudTrail
1329
1514
  o.errors << Shapes::ShapeRef.new(shape: OrganizationNotInAllFeaturesModeException)
1330
1515
  end)
1331
1516
 
1517
+ api.add_operation(:start_import, Seahorse::Model::Operation.new.tap do |o|
1518
+ o.name = "StartImport"
1519
+ o.http_method = "POST"
1520
+ o.http_request_uri = "/"
1521
+ o.input = Shapes::ShapeRef.new(shape: StartImportRequest)
1522
+ o.output = Shapes::ShapeRef.new(shape: StartImportResponse)
1523
+ o.errors << Shapes::ShapeRef.new(shape: AccountHasOngoingImportException)
1524
+ o.errors << Shapes::ShapeRef.new(shape: EventDataStoreARNInvalidException)
1525
+ o.errors << Shapes::ShapeRef.new(shape: EventDataStoreNotFoundException)
1526
+ o.errors << Shapes::ShapeRef.new(shape: InvalidEventDataStoreStatusException)
1527
+ o.errors << Shapes::ShapeRef.new(shape: InvalidEventDataStoreCategoryException)
1528
+ o.errors << Shapes::ShapeRef.new(shape: InactiveEventDataStoreException)
1529
+ o.errors << Shapes::ShapeRef.new(shape: InvalidImportSourceException)
1530
+ o.errors << Shapes::ShapeRef.new(shape: ImportNotFoundException)
1531
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1532
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1533
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1534
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1535
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1536
+ end)
1537
+
1332
1538
  api.add_operation(:start_logging, Seahorse::Model::Operation.new.tap do |o|
1333
1539
  o.name = "StartLogging"
1334
1540
  o.http_method = "POST"
@@ -1360,6 +1566,18 @@ module Aws::CloudTrail
1360
1566
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1361
1567
  end)
1362
1568
 
1569
+ api.add_operation(:stop_import, Seahorse::Model::Operation.new.tap do |o|
1570
+ o.name = "StopImport"
1571
+ o.http_method = "POST"
1572
+ o.http_request_uri = "/"
1573
+ o.input = Shapes::ShapeRef.new(shape: StopImportRequest)
1574
+ o.output = Shapes::ShapeRef.new(shape: StopImportResponse)
1575
+ o.errors << Shapes::ShapeRef.new(shape: ImportNotFoundException)
1576
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1577
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1578
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1579
+ end)
1580
+
1363
1581
  api.add_operation(:stop_logging, Seahorse::Model::Operation.new.tap do |o|
1364
1582
  o.name = "StopLogging"
1365
1583
  o.http_method = "POST"
@@ -1383,6 +1601,7 @@ module Aws::CloudTrail
1383
1601
  o.output = Shapes::ShapeRef.new(shape: UpdateEventDataStoreResponse)
1384
1602
  o.errors << Shapes::ShapeRef.new(shape: EventDataStoreARNInvalidException)
1385
1603
  o.errors << Shapes::ShapeRef.new(shape: EventDataStoreNotFoundException)
1604
+ o.errors << Shapes::ShapeRef.new(shape: EventDataStoreHasOngoingImportException)
1386
1605
  o.errors << Shapes::ShapeRef.new(shape: InactiveEventDataStoreException)
1387
1606
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1388
1607
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
@@ -27,6 +27,7 @@ module Aws::CloudTrail
27
27
  # See {Seahorse::Client::RequestContext} for more information.
28
28
  #
29
29
  # ## Error Classes
30
+ # * {AccountHasOngoingImportException}
30
31
  # * {ChannelARNInvalidException}
31
32
  # * {ChannelNotFoundException}
32
33
  # * {CloudTrailARNInvalidException}
@@ -36,9 +37,11 @@ module Aws::CloudTrail
36
37
  # * {ConflictException}
37
38
  # * {EventDataStoreARNInvalidException}
38
39
  # * {EventDataStoreAlreadyExistsException}
40
+ # * {EventDataStoreHasOngoingImportException}
39
41
  # * {EventDataStoreMaxLimitExceededException}
40
42
  # * {EventDataStoreNotFoundException}
41
43
  # * {EventDataStoreTerminationProtectedException}
44
+ # * {ImportNotFoundException}
42
45
  # * {InactiveEventDataStoreException}
43
46
  # * {InactiveQueryException}
44
47
  # * {InsightNotEnabledException}
@@ -50,9 +53,11 @@ module Aws::CloudTrail
50
53
  # * {InvalidCloudWatchLogsRoleArnException}
51
54
  # * {InvalidDateRangeException}
52
55
  # * {InvalidEventCategoryException}
56
+ # * {InvalidEventDataStoreCategoryException}
53
57
  # * {InvalidEventDataStoreStatusException}
54
58
  # * {InvalidEventSelectorsException}
55
59
  # * {InvalidHomeRegionException}
60
+ # * {InvalidImportSourceException}
56
61
  # * {InvalidInsightSelectorsException}
57
62
  # * {InvalidKmsKeyIdException}
58
63
  # * {InvalidLookupAttributesException}
@@ -94,6 +99,16 @@ module Aws::CloudTrail
94
99
 
95
100
  extend Aws::Errors::DynamicErrors
96
101
 
102
+ class AccountHasOngoingImportException < ServiceError
103
+
104
+ # @param [Seahorse::Client::RequestContext] context
105
+ # @param [String] message
106
+ # @param [Aws::CloudTrail::Types::AccountHasOngoingImportException] data
107
+ def initialize(context, message, data = Aws::EmptyStructure.new)
108
+ super(context, message, data)
109
+ end
110
+ end
111
+
97
112
  class ChannelARNInvalidException < ServiceError
98
113
 
99
114
  # @param [Seahorse::Client::RequestContext] context
@@ -184,6 +199,16 @@ module Aws::CloudTrail
184
199
  end
185
200
  end
186
201
 
202
+ class EventDataStoreHasOngoingImportException < ServiceError
203
+
204
+ # @param [Seahorse::Client::RequestContext] context
205
+ # @param [String] message
206
+ # @param [Aws::CloudTrail::Types::EventDataStoreHasOngoingImportException] data
207
+ def initialize(context, message, data = Aws::EmptyStructure.new)
208
+ super(context, message, data)
209
+ end
210
+ end
211
+
187
212
  class EventDataStoreMaxLimitExceededException < ServiceError
188
213
 
189
214
  # @param [Seahorse::Client::RequestContext] context
@@ -214,6 +239,16 @@ module Aws::CloudTrail
214
239
  end
215
240
  end
216
241
 
242
+ class ImportNotFoundException < ServiceError
243
+
244
+ # @param [Seahorse::Client::RequestContext] context
245
+ # @param [String] message
246
+ # @param [Aws::CloudTrail::Types::ImportNotFoundException] data
247
+ def initialize(context, message, data = Aws::EmptyStructure.new)
248
+ super(context, message, data)
249
+ end
250
+ end
251
+
217
252
  class InactiveEventDataStoreException < ServiceError
218
253
 
219
254
  # @param [Seahorse::Client::RequestContext] context
@@ -324,6 +359,16 @@ module Aws::CloudTrail
324
359
  end
325
360
  end
326
361
 
362
+ class InvalidEventDataStoreCategoryException < ServiceError
363
+
364
+ # @param [Seahorse::Client::RequestContext] context
365
+ # @param [String] message
366
+ # @param [Aws::CloudTrail::Types::InvalidEventDataStoreCategoryException] data
367
+ def initialize(context, message, data = Aws::EmptyStructure.new)
368
+ super(context, message, data)
369
+ end
370
+ end
371
+
327
372
  class InvalidEventDataStoreStatusException < ServiceError
328
373
 
329
374
  # @param [Seahorse::Client::RequestContext] context
@@ -354,6 +399,16 @@ module Aws::CloudTrail
354
399
  end
355
400
  end
356
401
 
402
+ class InvalidImportSourceException < ServiceError
403
+
404
+ # @param [Seahorse::Client::RequestContext] context
405
+ # @param [String] message
406
+ # @param [Aws::CloudTrail::Types::InvalidImportSourceException] data
407
+ def initialize(context, message, data = Aws::EmptyStructure.new)
408
+ super(context, message, data)
409
+ end
410
+ end
411
+
357
412
  class InvalidInsightSelectorsException < ServiceError
358
413
 
359
414
  # @param [Seahorse::Client::RequestContext] context