aws-sdk-cloudtrail 1.50.0 → 1.52.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudtrail/client.rb +355 -23
- data/lib/aws-sdk-cloudtrail/client_api.rb +228 -0
- data/lib/aws-sdk-cloudtrail/errors.rb +55 -0
- data/lib/aws-sdk-cloudtrail/types.rb +632 -42
- data/lib/aws-sdk-cloudtrail.rb +1 -1
- metadata +2 -2
@@ -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')
|
@@ -46,6 +47,8 @@ module Aws::CloudTrail
|
|
46
47
|
DeleteEventDataStoreResponse = Shapes::StructureShape.new(name: 'DeleteEventDataStoreResponse')
|
47
48
|
DeleteTrailRequest = Shapes::StructureShape.new(name: 'DeleteTrailRequest')
|
48
49
|
DeleteTrailResponse = Shapes::StructureShape.new(name: 'DeleteTrailResponse')
|
50
|
+
DeliveryS3Uri = Shapes::StringShape.new(name: 'DeliveryS3Uri')
|
51
|
+
DeliveryStatus = Shapes::StringShape.new(name: 'DeliveryStatus')
|
49
52
|
DescribeQueryRequest = Shapes::StructureShape.new(name: 'DescribeQueryRequest')
|
50
53
|
DescribeQueryResponse = Shapes::StructureShape.new(name: 'DescribeQueryResponse')
|
51
54
|
DescribeTrailsRequest = Shapes::StructureShape.new(name: 'DescribeTrailsRequest')
|
@@ -60,6 +63,7 @@ module Aws::CloudTrail
|
|
60
63
|
EventDataStoreARNInvalidException = Shapes::StructureShape.new(name: 'EventDataStoreARNInvalidException')
|
61
64
|
EventDataStoreAlreadyExistsException = Shapes::StructureShape.new(name: 'EventDataStoreAlreadyExistsException')
|
62
65
|
EventDataStoreArn = Shapes::StringShape.new(name: 'EventDataStoreArn')
|
66
|
+
EventDataStoreHasOngoingImportException = Shapes::StructureShape.new(name: 'EventDataStoreHasOngoingImportException')
|
63
67
|
EventDataStoreMaxLimitExceededException = Shapes::StructureShape.new(name: 'EventDataStoreMaxLimitExceededException')
|
64
68
|
EventDataStoreName = Shapes::StringShape.new(name: 'EventDataStoreName')
|
65
69
|
EventDataStoreNotFoundException = Shapes::StructureShape.new(name: 'EventDataStoreNotFoundException')
|
@@ -76,6 +80,8 @@ module Aws::CloudTrail
|
|
76
80
|
GetEventDataStoreResponse = Shapes::StructureShape.new(name: 'GetEventDataStoreResponse')
|
77
81
|
GetEventSelectorsRequest = Shapes::StructureShape.new(name: 'GetEventSelectorsRequest')
|
78
82
|
GetEventSelectorsResponse = Shapes::StructureShape.new(name: 'GetEventSelectorsResponse')
|
83
|
+
GetImportRequest = Shapes::StructureShape.new(name: 'GetImportRequest')
|
84
|
+
GetImportResponse = Shapes::StructureShape.new(name: 'GetImportResponse')
|
79
85
|
GetInsightSelectorsRequest = Shapes::StructureShape.new(name: 'GetInsightSelectorsRequest')
|
80
86
|
GetInsightSelectorsResponse = Shapes::StructureShape.new(name: 'GetInsightSelectorsResponse')
|
81
87
|
GetQueryResultsRequest = Shapes::StructureShape.new(name: 'GetQueryResultsRequest')
|
@@ -84,6 +90,16 @@ module Aws::CloudTrail
|
|
84
90
|
GetTrailResponse = Shapes::StructureShape.new(name: 'GetTrailResponse')
|
85
91
|
GetTrailStatusRequest = Shapes::StructureShape.new(name: 'GetTrailStatusRequest')
|
86
92
|
GetTrailStatusResponse = Shapes::StructureShape.new(name: 'GetTrailStatusResponse')
|
93
|
+
ImportDestinations = Shapes::ListShape.new(name: 'ImportDestinations')
|
94
|
+
ImportFailureList = Shapes::ListShape.new(name: 'ImportFailureList')
|
95
|
+
ImportFailureListItem = Shapes::StructureShape.new(name: 'ImportFailureListItem')
|
96
|
+
ImportFailureStatus = Shapes::StringShape.new(name: 'ImportFailureStatus')
|
97
|
+
ImportNotFoundException = Shapes::StructureShape.new(name: 'ImportNotFoundException')
|
98
|
+
ImportSource = Shapes::StructureShape.new(name: 'ImportSource')
|
99
|
+
ImportStatistics = Shapes::StructureShape.new(name: 'ImportStatistics')
|
100
|
+
ImportStatus = Shapes::StringShape.new(name: 'ImportStatus')
|
101
|
+
ImportsList = Shapes::ListShape.new(name: 'ImportsList')
|
102
|
+
ImportsListItem = Shapes::StructureShape.new(name: 'ImportsListItem')
|
87
103
|
InactiveEventDataStoreException = Shapes::StructureShape.new(name: 'InactiveEventDataStoreException')
|
88
104
|
InactiveQueryException = Shapes::StructureShape.new(name: 'InactiveQueryException')
|
89
105
|
InsightNotEnabledException = Shapes::StructureShape.new(name: 'InsightNotEnabledException')
|
@@ -99,9 +115,11 @@ module Aws::CloudTrail
|
|
99
115
|
InvalidCloudWatchLogsRoleArnException = Shapes::StructureShape.new(name: 'InvalidCloudWatchLogsRoleArnException')
|
100
116
|
InvalidDateRangeException = Shapes::StructureShape.new(name: 'InvalidDateRangeException')
|
101
117
|
InvalidEventCategoryException = Shapes::StructureShape.new(name: 'InvalidEventCategoryException')
|
118
|
+
InvalidEventDataStoreCategoryException = Shapes::StructureShape.new(name: 'InvalidEventDataStoreCategoryException')
|
102
119
|
InvalidEventDataStoreStatusException = Shapes::StructureShape.new(name: 'InvalidEventDataStoreStatusException')
|
103
120
|
InvalidEventSelectorsException = Shapes::StructureShape.new(name: 'InvalidEventSelectorsException')
|
104
121
|
InvalidHomeRegionException = Shapes::StructureShape.new(name: 'InvalidHomeRegionException')
|
122
|
+
InvalidImportSourceException = Shapes::StructureShape.new(name: 'InvalidImportSourceException')
|
105
123
|
InvalidInsightSelectorsException = Shapes::StructureShape.new(name: 'InvalidInsightSelectorsException')
|
106
124
|
InvalidKmsKeyIdException = Shapes::StructureShape.new(name: 'InvalidKmsKeyIdException')
|
107
125
|
InvalidLookupAttributesException = Shapes::StructureShape.new(name: 'InvalidLookupAttributesException')
|
@@ -127,6 +145,12 @@ module Aws::CloudTrail
|
|
127
145
|
ListEventDataStoresMaxResultsCount = Shapes::IntegerShape.new(name: 'ListEventDataStoresMaxResultsCount')
|
128
146
|
ListEventDataStoresRequest = Shapes::StructureShape.new(name: 'ListEventDataStoresRequest')
|
129
147
|
ListEventDataStoresResponse = Shapes::StructureShape.new(name: 'ListEventDataStoresResponse')
|
148
|
+
ListImportFailuresMaxResultsCount = Shapes::IntegerShape.new(name: 'ListImportFailuresMaxResultsCount')
|
149
|
+
ListImportFailuresRequest = Shapes::StructureShape.new(name: 'ListImportFailuresRequest')
|
150
|
+
ListImportFailuresResponse = Shapes::StructureShape.new(name: 'ListImportFailuresResponse')
|
151
|
+
ListImportsMaxResultsCount = Shapes::IntegerShape.new(name: 'ListImportsMaxResultsCount')
|
152
|
+
ListImportsRequest = Shapes::StructureShape.new(name: 'ListImportsRequest')
|
153
|
+
ListImportsResponse = Shapes::StructureShape.new(name: 'ListImportsResponse')
|
130
154
|
ListPublicKeysRequest = Shapes::StructureShape.new(name: 'ListPublicKeysRequest')
|
131
155
|
ListPublicKeysResponse = Shapes::StructureShape.new(name: 'ListPublicKeysResponse')
|
132
156
|
ListQueriesMaxResultsCount = Shapes::IntegerShape.new(name: 'ListQueriesMaxResultsCount')
|
@@ -187,14 +211,19 @@ module Aws::CloudTrail
|
|
187
211
|
RestoreEventDataStoreResponse = Shapes::StructureShape.new(name: 'RestoreEventDataStoreResponse')
|
188
212
|
RetentionPeriod = Shapes::IntegerShape.new(name: 'RetentionPeriod')
|
189
213
|
S3BucketDoesNotExistException = Shapes::StructureShape.new(name: 'S3BucketDoesNotExistException')
|
214
|
+
S3ImportSource = Shapes::StructureShape.new(name: 'S3ImportSource')
|
190
215
|
SelectorField = Shapes::StringShape.new(name: 'SelectorField')
|
191
216
|
SelectorName = Shapes::StringShape.new(name: 'SelectorName')
|
192
217
|
Source = Shapes::StringShape.new(name: 'Source')
|
193
218
|
SourceConfig = Shapes::StructureShape.new(name: 'SourceConfig')
|
219
|
+
StartImportRequest = Shapes::StructureShape.new(name: 'StartImportRequest')
|
220
|
+
StartImportResponse = Shapes::StructureShape.new(name: 'StartImportResponse')
|
194
221
|
StartLoggingRequest = Shapes::StructureShape.new(name: 'StartLoggingRequest')
|
195
222
|
StartLoggingResponse = Shapes::StructureShape.new(name: 'StartLoggingResponse')
|
196
223
|
StartQueryRequest = Shapes::StructureShape.new(name: 'StartQueryRequest')
|
197
224
|
StartQueryResponse = Shapes::StructureShape.new(name: 'StartQueryResponse')
|
225
|
+
StopImportRequest = Shapes::StructureShape.new(name: 'StopImportRequest')
|
226
|
+
StopImportResponse = Shapes::StructureShape.new(name: 'StopImportResponse')
|
198
227
|
StopLoggingRequest = Shapes::StructureShape.new(name: 'StopLoggingRequest')
|
199
228
|
StopLoggingResponse = Shapes::StructureShape.new(name: 'StopLoggingResponse')
|
200
229
|
String = Shapes::StringShape.new(name: 'String')
|
@@ -219,6 +248,8 @@ module Aws::CloudTrail
|
|
219
248
|
UpdateTrailRequest = Shapes::StructureShape.new(name: 'UpdateTrailRequest')
|
220
249
|
UpdateTrailResponse = Shapes::StructureShape.new(name: 'UpdateTrailResponse')
|
221
250
|
|
251
|
+
AccountHasOngoingImportException.struct_class = Types::AccountHasOngoingImportException
|
252
|
+
|
222
253
|
AddTagsRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ResourceId"))
|
223
254
|
AddTagsRequest.add_member(:tags_list, Shapes::ShapeRef.new(shape: TagsList, required: true, location_name: "TagsList"))
|
224
255
|
AddTagsRequest.struct_class = Types::AddTagsRequest
|
@@ -348,6 +379,8 @@ module Aws::CloudTrail
|
|
348
379
|
DescribeQueryResponse.add_member(:query_status, Shapes::ShapeRef.new(shape: QueryStatus, location_name: "QueryStatus"))
|
349
380
|
DescribeQueryResponse.add_member(:query_statistics, Shapes::ShapeRef.new(shape: QueryStatisticsForDescribeQuery, location_name: "QueryStatistics"))
|
350
381
|
DescribeQueryResponse.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
|
382
|
+
DescribeQueryResponse.add_member(:delivery_s3_uri, Shapes::ShapeRef.new(shape: DeliveryS3Uri, location_name: "DeliveryS3Uri"))
|
383
|
+
DescribeQueryResponse.add_member(:delivery_status, Shapes::ShapeRef.new(shape: DeliveryStatus, location_name: "DeliveryStatus"))
|
351
384
|
DescribeQueryResponse.struct_class = Types::DescribeQueryResponse
|
352
385
|
|
353
386
|
DescribeTrailsRequest.add_member(:trail_name_list, Shapes::ShapeRef.new(shape: TrailNameList, location_name: "trailNameList"))
|
@@ -390,6 +423,8 @@ module Aws::CloudTrail
|
|
390
423
|
|
391
424
|
EventDataStoreAlreadyExistsException.struct_class = Types::EventDataStoreAlreadyExistsException
|
392
425
|
|
426
|
+
EventDataStoreHasOngoingImportException.struct_class = Types::EventDataStoreHasOngoingImportException
|
427
|
+
|
393
428
|
EventDataStoreMaxLimitExceededException.struct_class = Types::EventDataStoreMaxLimitExceededException
|
394
429
|
|
395
430
|
EventDataStoreNotFoundException.struct_class = Types::EventDataStoreNotFoundException
|
@@ -443,6 +478,20 @@ module Aws::CloudTrail
|
|
443
478
|
GetEventSelectorsResponse.add_member(:advanced_event_selectors, Shapes::ShapeRef.new(shape: AdvancedEventSelectors, location_name: "AdvancedEventSelectors"))
|
444
479
|
GetEventSelectorsResponse.struct_class = Types::GetEventSelectorsResponse
|
445
480
|
|
481
|
+
GetImportRequest.add_member(:import_id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "ImportId"))
|
482
|
+
GetImportRequest.struct_class = Types::GetImportRequest
|
483
|
+
|
484
|
+
GetImportResponse.add_member(:import_id, Shapes::ShapeRef.new(shape: UUID, location_name: "ImportId"))
|
485
|
+
GetImportResponse.add_member(:destinations, Shapes::ShapeRef.new(shape: ImportDestinations, location_name: "Destinations"))
|
486
|
+
GetImportResponse.add_member(:import_source, Shapes::ShapeRef.new(shape: ImportSource, location_name: "ImportSource"))
|
487
|
+
GetImportResponse.add_member(:start_event_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartEventTime"))
|
488
|
+
GetImportResponse.add_member(:end_event_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndEventTime"))
|
489
|
+
GetImportResponse.add_member(:import_status, Shapes::ShapeRef.new(shape: ImportStatus, location_name: "ImportStatus"))
|
490
|
+
GetImportResponse.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "CreatedTimestamp"))
|
491
|
+
GetImportResponse.add_member(:updated_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "UpdatedTimestamp"))
|
492
|
+
GetImportResponse.add_member(:import_statistics, Shapes::ShapeRef.new(shape: ImportStatistics, location_name: "ImportStatistics"))
|
493
|
+
GetImportResponse.struct_class = Types::GetImportResponse
|
494
|
+
|
446
495
|
GetInsightSelectorsRequest.add_member(:trail_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "TrailName"))
|
447
496
|
GetInsightSelectorsRequest.struct_class = Types::GetInsightSelectorsRequest
|
448
497
|
|
@@ -491,6 +540,38 @@ module Aws::CloudTrail
|
|
491
540
|
GetTrailStatusResponse.add_member(:time_logging_stopped, Shapes::ShapeRef.new(shape: String, location_name: "TimeLoggingStopped"))
|
492
541
|
GetTrailStatusResponse.struct_class = Types::GetTrailStatusResponse
|
493
542
|
|
543
|
+
ImportDestinations.member = Shapes::ShapeRef.new(shape: EventDataStoreArn)
|
544
|
+
|
545
|
+
ImportFailureList.member = Shapes::ShapeRef.new(shape: ImportFailureListItem)
|
546
|
+
|
547
|
+
ImportFailureListItem.add_member(:location, Shapes::ShapeRef.new(shape: String, location_name: "Location"))
|
548
|
+
ImportFailureListItem.add_member(:status, Shapes::ShapeRef.new(shape: ImportFailureStatus, location_name: "Status"))
|
549
|
+
ImportFailureListItem.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location_name: "ErrorType"))
|
550
|
+
ImportFailureListItem.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "ErrorMessage"))
|
551
|
+
ImportFailureListItem.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Date, location_name: "LastUpdatedTime"))
|
552
|
+
ImportFailureListItem.struct_class = Types::ImportFailureListItem
|
553
|
+
|
554
|
+
ImportNotFoundException.struct_class = Types::ImportNotFoundException
|
555
|
+
|
556
|
+
ImportSource.add_member(:s3, Shapes::ShapeRef.new(shape: S3ImportSource, required: true, location_name: "S3"))
|
557
|
+
ImportSource.struct_class = Types::ImportSource
|
558
|
+
|
559
|
+
ImportStatistics.add_member(:prefixes_found, Shapes::ShapeRef.new(shape: Long, location_name: "PrefixesFound"))
|
560
|
+
ImportStatistics.add_member(:prefixes_completed, Shapes::ShapeRef.new(shape: Long, location_name: "PrefixesCompleted"))
|
561
|
+
ImportStatistics.add_member(:files_completed, Shapes::ShapeRef.new(shape: Long, location_name: "FilesCompleted"))
|
562
|
+
ImportStatistics.add_member(:events_completed, Shapes::ShapeRef.new(shape: Long, location_name: "EventsCompleted"))
|
563
|
+
ImportStatistics.add_member(:failed_entries, Shapes::ShapeRef.new(shape: Long, location_name: "FailedEntries"))
|
564
|
+
ImportStatistics.struct_class = Types::ImportStatistics
|
565
|
+
|
566
|
+
ImportsList.member = Shapes::ShapeRef.new(shape: ImportsListItem)
|
567
|
+
|
568
|
+
ImportsListItem.add_member(:import_id, Shapes::ShapeRef.new(shape: UUID, location_name: "ImportId"))
|
569
|
+
ImportsListItem.add_member(:import_status, Shapes::ShapeRef.new(shape: ImportStatus, location_name: "ImportStatus"))
|
570
|
+
ImportsListItem.add_member(:destinations, Shapes::ShapeRef.new(shape: ImportDestinations, location_name: "Destinations"))
|
571
|
+
ImportsListItem.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "CreatedTimestamp"))
|
572
|
+
ImportsListItem.add_member(:updated_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "UpdatedTimestamp"))
|
573
|
+
ImportsListItem.struct_class = Types::ImportsListItem
|
574
|
+
|
494
575
|
InactiveEventDataStoreException.struct_class = Types::InactiveEventDataStoreException
|
495
576
|
|
496
577
|
InactiveQueryException.struct_class = Types::InactiveQueryException
|
@@ -518,12 +599,16 @@ module Aws::CloudTrail
|
|
518
599
|
|
519
600
|
InvalidEventCategoryException.struct_class = Types::InvalidEventCategoryException
|
520
601
|
|
602
|
+
InvalidEventDataStoreCategoryException.struct_class = Types::InvalidEventDataStoreCategoryException
|
603
|
+
|
521
604
|
InvalidEventDataStoreStatusException.struct_class = Types::InvalidEventDataStoreStatusException
|
522
605
|
|
523
606
|
InvalidEventSelectorsException.struct_class = Types::InvalidEventSelectorsException
|
524
607
|
|
525
608
|
InvalidHomeRegionException.struct_class = Types::InvalidHomeRegionException
|
526
609
|
|
610
|
+
InvalidImportSourceException.struct_class = Types::InvalidImportSourceException
|
611
|
+
|
527
612
|
InvalidInsightSelectorsException.struct_class = Types::InvalidInsightSelectorsException
|
528
613
|
|
529
614
|
InvalidKmsKeyIdException.struct_class = Types::InvalidKmsKeyIdException
|
@@ -578,6 +663,25 @@ module Aws::CloudTrail
|
|
578
663
|
ListEventDataStoresResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
579
664
|
ListEventDataStoresResponse.struct_class = Types::ListEventDataStoresResponse
|
580
665
|
|
666
|
+
ListImportFailuresRequest.add_member(:import_id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "ImportId"))
|
667
|
+
ListImportFailuresRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListImportFailuresMaxResultsCount, location_name: "MaxResults"))
|
668
|
+
ListImportFailuresRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
669
|
+
ListImportFailuresRequest.struct_class = Types::ListImportFailuresRequest
|
670
|
+
|
671
|
+
ListImportFailuresResponse.add_member(:failures, Shapes::ShapeRef.new(shape: ImportFailureList, location_name: "Failures"))
|
672
|
+
ListImportFailuresResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
673
|
+
ListImportFailuresResponse.struct_class = Types::ListImportFailuresResponse
|
674
|
+
|
675
|
+
ListImportsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListImportsMaxResultsCount, location_name: "MaxResults"))
|
676
|
+
ListImportsRequest.add_member(:destination, Shapes::ShapeRef.new(shape: EventDataStoreArn, location_name: "Destination"))
|
677
|
+
ListImportsRequest.add_member(:import_status, Shapes::ShapeRef.new(shape: ImportStatus, location_name: "ImportStatus"))
|
678
|
+
ListImportsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
679
|
+
ListImportsRequest.struct_class = Types::ListImportsRequest
|
680
|
+
|
681
|
+
ListImportsResponse.add_member(:imports, Shapes::ShapeRef.new(shape: ImportsList, location_name: "Imports"))
|
682
|
+
ListImportsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
683
|
+
ListImportsResponse.struct_class = Types::ListImportsResponse
|
684
|
+
|
581
685
|
ListPublicKeysRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartTime"))
|
582
686
|
ListPublicKeysRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndTime"))
|
583
687
|
ListPublicKeysRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
@@ -741,21 +845,58 @@ module Aws::CloudTrail
|
|
741
845
|
|
742
846
|
S3BucketDoesNotExistException.struct_class = Types::S3BucketDoesNotExistException
|
743
847
|
|
848
|
+
S3ImportSource.add_member(:s3_location_uri, Shapes::ShapeRef.new(shape: String, required: true, location_name: "S3LocationUri"))
|
849
|
+
S3ImportSource.add_member(:s3_bucket_region, Shapes::ShapeRef.new(shape: String, required: true, location_name: "S3BucketRegion"))
|
850
|
+
S3ImportSource.add_member(:s3_bucket_access_role_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "S3BucketAccessRoleArn"))
|
851
|
+
S3ImportSource.struct_class = Types::S3ImportSource
|
852
|
+
|
744
853
|
SourceConfig.add_member(:apply_to_all_regions, Shapes::ShapeRef.new(shape: Boolean, location_name: "ApplyToAllRegions"))
|
745
854
|
SourceConfig.add_member(:advanced_event_selectors, Shapes::ShapeRef.new(shape: AdvancedEventSelectors, location_name: "AdvancedEventSelectors"))
|
746
855
|
SourceConfig.struct_class = Types::SourceConfig
|
747
856
|
|
857
|
+
StartImportRequest.add_member(:destinations, Shapes::ShapeRef.new(shape: ImportDestinations, location_name: "Destinations"))
|
858
|
+
StartImportRequest.add_member(:import_source, Shapes::ShapeRef.new(shape: ImportSource, location_name: "ImportSource"))
|
859
|
+
StartImportRequest.add_member(:start_event_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartEventTime"))
|
860
|
+
StartImportRequest.add_member(:end_event_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndEventTime"))
|
861
|
+
StartImportRequest.add_member(:import_id, Shapes::ShapeRef.new(shape: UUID, location_name: "ImportId"))
|
862
|
+
StartImportRequest.struct_class = Types::StartImportRequest
|
863
|
+
|
864
|
+
StartImportResponse.add_member(:import_id, Shapes::ShapeRef.new(shape: UUID, location_name: "ImportId"))
|
865
|
+
StartImportResponse.add_member(:destinations, Shapes::ShapeRef.new(shape: ImportDestinations, location_name: "Destinations"))
|
866
|
+
StartImportResponse.add_member(:import_source, Shapes::ShapeRef.new(shape: ImportSource, location_name: "ImportSource"))
|
867
|
+
StartImportResponse.add_member(:start_event_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartEventTime"))
|
868
|
+
StartImportResponse.add_member(:end_event_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndEventTime"))
|
869
|
+
StartImportResponse.add_member(:import_status, Shapes::ShapeRef.new(shape: ImportStatus, location_name: "ImportStatus"))
|
870
|
+
StartImportResponse.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "CreatedTimestamp"))
|
871
|
+
StartImportResponse.add_member(:updated_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "UpdatedTimestamp"))
|
872
|
+
StartImportResponse.struct_class = Types::StartImportResponse
|
873
|
+
|
748
874
|
StartLoggingRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
|
749
875
|
StartLoggingRequest.struct_class = Types::StartLoggingRequest
|
750
876
|
|
751
877
|
StartLoggingResponse.struct_class = Types::StartLoggingResponse
|
752
878
|
|
753
879
|
StartQueryRequest.add_member(:query_statement, Shapes::ShapeRef.new(shape: QueryStatement, required: true, location_name: "QueryStatement"))
|
880
|
+
StartQueryRequest.add_member(:delivery_s3_uri, Shapes::ShapeRef.new(shape: DeliveryS3Uri, location_name: "DeliveryS3Uri"))
|
754
881
|
StartQueryRequest.struct_class = Types::StartQueryRequest
|
755
882
|
|
756
883
|
StartQueryResponse.add_member(:query_id, Shapes::ShapeRef.new(shape: UUID, location_name: "QueryId"))
|
757
884
|
StartQueryResponse.struct_class = Types::StartQueryResponse
|
758
885
|
|
886
|
+
StopImportRequest.add_member(:import_id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "ImportId"))
|
887
|
+
StopImportRequest.struct_class = Types::StopImportRequest
|
888
|
+
|
889
|
+
StopImportResponse.add_member(:import_id, Shapes::ShapeRef.new(shape: UUID, location_name: "ImportId"))
|
890
|
+
StopImportResponse.add_member(:import_source, Shapes::ShapeRef.new(shape: ImportSource, location_name: "ImportSource"))
|
891
|
+
StopImportResponse.add_member(:destinations, Shapes::ShapeRef.new(shape: ImportDestinations, location_name: "Destinations"))
|
892
|
+
StopImportResponse.add_member(:import_status, Shapes::ShapeRef.new(shape: ImportStatus, location_name: "ImportStatus"))
|
893
|
+
StopImportResponse.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "CreatedTimestamp"))
|
894
|
+
StopImportResponse.add_member(:updated_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "UpdatedTimestamp"))
|
895
|
+
StopImportResponse.add_member(:start_event_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartEventTime"))
|
896
|
+
StopImportResponse.add_member(:end_event_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndEventTime"))
|
897
|
+
StopImportResponse.add_member(:import_statistics, Shapes::ShapeRef.new(shape: ImportStatistics, location_name: "ImportStatistics"))
|
898
|
+
StopImportResponse.struct_class = Types::StopImportResponse
|
899
|
+
|
759
900
|
StopLoggingRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
|
760
901
|
StopLoggingRequest.struct_class = Types::StopLoggingRequest
|
761
902
|
|
@@ -977,6 +1118,7 @@ module Aws::CloudTrail
|
|
977
1118
|
o.errors << Shapes::ShapeRef.new(shape: EventDataStoreARNInvalidException)
|
978
1119
|
o.errors << Shapes::ShapeRef.new(shape: EventDataStoreNotFoundException)
|
979
1120
|
o.errors << Shapes::ShapeRef.new(shape: EventDataStoreTerminationProtectedException)
|
1121
|
+
o.errors << Shapes::ShapeRef.new(shape: EventDataStoreHasOngoingImportException)
|
980
1122
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
981
1123
|
o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
|
982
1124
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
@@ -1063,6 +1205,18 @@ module Aws::CloudTrail
|
|
1063
1205
|
o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
|
1064
1206
|
end)
|
1065
1207
|
|
1208
|
+
api.add_operation(:get_import, Seahorse::Model::Operation.new.tap do |o|
|
1209
|
+
o.name = "GetImport"
|
1210
|
+
o.http_method = "POST"
|
1211
|
+
o.http_request_uri = "/"
|
1212
|
+
o.input = Shapes::ShapeRef.new(shape: GetImportRequest)
|
1213
|
+
o.output = Shapes::ShapeRef.new(shape: GetImportResponse)
|
1214
|
+
o.errors << Shapes::ShapeRef.new(shape: ImportNotFoundException)
|
1215
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1216
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
|
1217
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
1218
|
+
end)
|
1219
|
+
|
1066
1220
|
api.add_operation(:get_insight_selectors, Seahorse::Model::Operation.new.tap do |o|
|
1067
1221
|
o.name = "GetInsightSelectors"
|
1068
1222
|
o.http_method = "POST"
|
@@ -1157,6 +1311,42 @@ module Aws::CloudTrail
|
|
1157
1311
|
)
|
1158
1312
|
end)
|
1159
1313
|
|
1314
|
+
api.add_operation(:list_import_failures, Seahorse::Model::Operation.new.tap do |o|
|
1315
|
+
o.name = "ListImportFailures"
|
1316
|
+
o.http_method = "POST"
|
1317
|
+
o.http_request_uri = "/"
|
1318
|
+
o.input = Shapes::ShapeRef.new(shape: ListImportFailuresRequest)
|
1319
|
+
o.output = Shapes::ShapeRef.new(shape: ListImportFailuresResponse)
|
1320
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
1321
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
|
1322
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
1323
|
+
o[:pager] = Aws::Pager.new(
|
1324
|
+
limit_key: "max_results",
|
1325
|
+
tokens: {
|
1326
|
+
"next_token" => "next_token"
|
1327
|
+
}
|
1328
|
+
)
|
1329
|
+
end)
|
1330
|
+
|
1331
|
+
api.add_operation(:list_imports, Seahorse::Model::Operation.new.tap do |o|
|
1332
|
+
o.name = "ListImports"
|
1333
|
+
o.http_method = "POST"
|
1334
|
+
o.http_request_uri = "/"
|
1335
|
+
o.input = Shapes::ShapeRef.new(shape: ListImportsRequest)
|
1336
|
+
o.output = Shapes::ShapeRef.new(shape: ListImportsResponse)
|
1337
|
+
o.errors << Shapes::ShapeRef.new(shape: EventDataStoreARNInvalidException)
|
1338
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
1339
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1340
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
|
1341
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
1342
|
+
o[:pager] = Aws::Pager.new(
|
1343
|
+
limit_key: "max_results",
|
1344
|
+
tokens: {
|
1345
|
+
"next_token" => "next_token"
|
1346
|
+
}
|
1347
|
+
)
|
1348
|
+
end)
|
1349
|
+
|
1160
1350
|
api.add_operation(:list_public_keys, Seahorse::Model::Operation.new.tap do |o|
|
1161
1351
|
o.name = "ListPublicKeys"
|
1162
1352
|
o.http_method = "POST"
|
@@ -1329,6 +1519,27 @@ module Aws::CloudTrail
|
|
1329
1519
|
o.errors << Shapes::ShapeRef.new(shape: OrganizationNotInAllFeaturesModeException)
|
1330
1520
|
end)
|
1331
1521
|
|
1522
|
+
api.add_operation(:start_import, Seahorse::Model::Operation.new.tap do |o|
|
1523
|
+
o.name = "StartImport"
|
1524
|
+
o.http_method = "POST"
|
1525
|
+
o.http_request_uri = "/"
|
1526
|
+
o.input = Shapes::ShapeRef.new(shape: StartImportRequest)
|
1527
|
+
o.output = Shapes::ShapeRef.new(shape: StartImportResponse)
|
1528
|
+
o.errors << Shapes::ShapeRef.new(shape: AccountHasOngoingImportException)
|
1529
|
+
o.errors << Shapes::ShapeRef.new(shape: EventDataStoreARNInvalidException)
|
1530
|
+
o.errors << Shapes::ShapeRef.new(shape: EventDataStoreNotFoundException)
|
1531
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEventDataStoreStatusException)
|
1532
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEventDataStoreCategoryException)
|
1533
|
+
o.errors << Shapes::ShapeRef.new(shape: InactiveEventDataStoreException)
|
1534
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidImportSourceException)
|
1535
|
+
o.errors << Shapes::ShapeRef.new(shape: ImportNotFoundException)
|
1536
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1537
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
|
1538
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
1539
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
|
1540
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
1541
|
+
end)
|
1542
|
+
|
1332
1543
|
api.add_operation(:start_logging, Seahorse::Model::Operation.new.tap do |o|
|
1333
1544
|
o.name = "StartLogging"
|
1334
1545
|
o.http_method = "POST"
|
@@ -1356,6 +1567,22 @@ module Aws::CloudTrail
|
|
1356
1567
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1357
1568
|
o.errors << Shapes::ShapeRef.new(shape: InvalidQueryStatementException)
|
1358
1569
|
o.errors << Shapes::ShapeRef.new(shape: MaxConcurrentQueriesException)
|
1570
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidS3PrefixException)
|
1571
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidS3BucketNameException)
|
1572
|
+
o.errors << Shapes::ShapeRef.new(shape: InsufficientS3BucketPolicyException)
|
1573
|
+
o.errors << Shapes::ShapeRef.new(shape: S3BucketDoesNotExistException)
|
1574
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
|
1575
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
1576
|
+
end)
|
1577
|
+
|
1578
|
+
api.add_operation(:stop_import, Seahorse::Model::Operation.new.tap do |o|
|
1579
|
+
o.name = "StopImport"
|
1580
|
+
o.http_method = "POST"
|
1581
|
+
o.http_request_uri = "/"
|
1582
|
+
o.input = Shapes::ShapeRef.new(shape: StopImportRequest)
|
1583
|
+
o.output = Shapes::ShapeRef.new(shape: StopImportResponse)
|
1584
|
+
o.errors << Shapes::ShapeRef.new(shape: ImportNotFoundException)
|
1585
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1359
1586
|
o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
|
1360
1587
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
1361
1588
|
end)
|
@@ -1383,6 +1610,7 @@ module Aws::CloudTrail
|
|
1383
1610
|
o.output = Shapes::ShapeRef.new(shape: UpdateEventDataStoreResponse)
|
1384
1611
|
o.errors << Shapes::ShapeRef.new(shape: EventDataStoreARNInvalidException)
|
1385
1612
|
o.errors << Shapes::ShapeRef.new(shape: EventDataStoreNotFoundException)
|
1613
|
+
o.errors << Shapes::ShapeRef.new(shape: EventDataStoreHasOngoingImportException)
|
1386
1614
|
o.errors << Shapes::ShapeRef.new(shape: InactiveEventDataStoreException)
|
1387
1615
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1388
1616
|
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
|