aws-sdk-cloudtrail 1.56.0 → 1.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,7 +31,10 @@ module Aws::CloudTrail
31
31
  CannotDelegateManagementAccountException = Shapes::StructureShape.new(name: 'CannotDelegateManagementAccountException')
32
32
  Channel = Shapes::StructureShape.new(name: 'Channel')
33
33
  ChannelARNInvalidException = Shapes::StructureShape.new(name: 'ChannelARNInvalidException')
34
+ ChannelAlreadyExistsException = Shapes::StructureShape.new(name: 'ChannelAlreadyExistsException')
34
35
  ChannelArn = Shapes::StringShape.new(name: 'ChannelArn')
36
+ ChannelExistsForEDSException = Shapes::StructureShape.new(name: 'ChannelExistsForEDSException')
37
+ ChannelMaxLimitExceededException = Shapes::StructureShape.new(name: 'ChannelMaxLimitExceededException')
35
38
  ChannelName = Shapes::StringShape.new(name: 'ChannelName')
36
39
  ChannelNotFoundException = Shapes::StructureShape.new(name: 'ChannelNotFoundException')
37
40
  Channels = Shapes::ListShape.new(name: 'Channels')
@@ -40,6 +43,8 @@ module Aws::CloudTrail
40
43
  CloudTrailInvalidClientTokenIdException = Shapes::StructureShape.new(name: 'CloudTrailInvalidClientTokenIdException')
41
44
  CloudWatchLogsDeliveryUnavailableException = Shapes::StructureShape.new(name: 'CloudWatchLogsDeliveryUnavailableException')
42
45
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
46
+ CreateChannelRequest = Shapes::StructureShape.new(name: 'CreateChannelRequest')
47
+ CreateChannelResponse = Shapes::StructureShape.new(name: 'CreateChannelResponse')
43
48
  CreateEventDataStoreRequest = Shapes::StructureShape.new(name: 'CreateEventDataStoreRequest')
44
49
  CreateEventDataStoreResponse = Shapes::StructureShape.new(name: 'CreateEventDataStoreResponse')
45
50
  CreateTrailRequest = Shapes::StructureShape.new(name: 'CreateTrailRequest')
@@ -49,8 +54,12 @@ module Aws::CloudTrail
49
54
  DataResources = Shapes::ListShape.new(name: 'DataResources')
50
55
  Date = Shapes::TimestampShape.new(name: 'Date')
51
56
  DelegatedAdminAccountLimitExceededException = Shapes::StructureShape.new(name: 'DelegatedAdminAccountLimitExceededException')
57
+ DeleteChannelRequest = Shapes::StructureShape.new(name: 'DeleteChannelRequest')
58
+ DeleteChannelResponse = Shapes::StructureShape.new(name: 'DeleteChannelResponse')
52
59
  DeleteEventDataStoreRequest = Shapes::StructureShape.new(name: 'DeleteEventDataStoreRequest')
53
60
  DeleteEventDataStoreResponse = Shapes::StructureShape.new(name: 'DeleteEventDataStoreResponse')
61
+ DeleteResourcePolicyRequest = Shapes::StructureShape.new(name: 'DeleteResourcePolicyRequest')
62
+ DeleteResourcePolicyResponse = Shapes::StructureShape.new(name: 'DeleteResourcePolicyResponse')
54
63
  DeleteTrailRequest = Shapes::StructureShape.new(name: 'DeleteTrailRequest')
55
64
  DeleteTrailResponse = Shapes::StructureShape.new(name: 'DeleteTrailResponse')
56
65
  DeliveryS3Uri = Shapes::StringShape.new(name: 'DeliveryS3Uri')
@@ -95,6 +104,8 @@ module Aws::CloudTrail
95
104
  GetInsightSelectorsResponse = Shapes::StructureShape.new(name: 'GetInsightSelectorsResponse')
96
105
  GetQueryResultsRequest = Shapes::StructureShape.new(name: 'GetQueryResultsRequest')
97
106
  GetQueryResultsResponse = Shapes::StructureShape.new(name: 'GetQueryResultsResponse')
107
+ GetResourcePolicyRequest = Shapes::StructureShape.new(name: 'GetResourcePolicyRequest')
108
+ GetResourcePolicyResponse = Shapes::StructureShape.new(name: 'GetResourcePolicyResponse')
98
109
  GetTrailRequest = Shapes::StructureShape.new(name: 'GetTrailRequest')
99
110
  GetTrailResponse = Shapes::StructureShape.new(name: 'GetTrailResponse')
100
111
  GetTrailStatusRequest = Shapes::StructureShape.new(name: 'GetTrailStatusRequest')
@@ -111,6 +122,7 @@ module Aws::CloudTrail
111
122
  ImportsListItem = Shapes::StructureShape.new(name: 'ImportsListItem')
112
123
  InactiveEventDataStoreException = Shapes::StructureShape.new(name: 'InactiveEventDataStoreException')
113
124
  InactiveQueryException = Shapes::StructureShape.new(name: 'InactiveQueryException')
125
+ IngestionStatus = Shapes::StructureShape.new(name: 'IngestionStatus')
114
126
  InsightNotEnabledException = Shapes::StructureShape.new(name: 'InsightNotEnabledException')
115
127
  InsightSelector = Shapes::StructureShape.new(name: 'InsightSelector')
116
128
  InsightSelectors = Shapes::ListShape.new(name: 'InsightSelectors')
@@ -141,6 +153,7 @@ module Aws::CloudTrail
141
153
  InvalidS3BucketNameException = Shapes::StructureShape.new(name: 'InvalidS3BucketNameException')
142
154
  InvalidS3PrefixException = Shapes::StructureShape.new(name: 'InvalidS3PrefixException')
143
155
  InvalidSnsTopicNameException = Shapes::StructureShape.new(name: 'InvalidSnsTopicNameException')
156
+ InvalidSourceException = Shapes::StructureShape.new(name: 'InvalidSourceException')
144
157
  InvalidTagParameterException = Shapes::StructureShape.new(name: 'InvalidTagParameterException')
145
158
  InvalidTimeRangeException = Shapes::StructureShape.new(name: 'InvalidTimeRangeException')
146
159
  InvalidTokenException = Shapes::StructureShape.new(name: 'InvalidTokenException')
@@ -197,6 +210,8 @@ module Aws::CloudTrail
197
210
  PutEventSelectorsResponse = Shapes::StructureShape.new(name: 'PutEventSelectorsResponse')
198
211
  PutInsightSelectorsRequest = Shapes::StructureShape.new(name: 'PutInsightSelectorsRequest')
199
212
  PutInsightSelectorsResponse = Shapes::StructureShape.new(name: 'PutInsightSelectorsResponse')
213
+ PutResourcePolicyRequest = Shapes::StructureShape.new(name: 'PutResourcePolicyRequest')
214
+ PutResourcePolicyResponse = Shapes::StructureShape.new(name: 'PutResourcePolicyResponse')
200
215
  Queries = Shapes::ListShape.new(name: 'Queries')
201
216
  Query = Shapes::StructureShape.new(name: 'Query')
202
217
  QueryIdNotFoundException = Shapes::StructureShape.new(name: 'QueryIdNotFoundException')
@@ -215,9 +230,14 @@ module Aws::CloudTrail
215
230
  RemoveTagsRequest = Shapes::StructureShape.new(name: 'RemoveTagsRequest')
216
231
  RemoveTagsResponse = Shapes::StructureShape.new(name: 'RemoveTagsResponse')
217
232
  Resource = Shapes::StructureShape.new(name: 'Resource')
233
+ ResourceARNNotValidException = Shapes::StructureShape.new(name: 'ResourceARNNotValidException')
234
+ ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
218
235
  ResourceIdList = Shapes::ListShape.new(name: 'ResourceIdList')
219
236
  ResourceList = Shapes::ListShape.new(name: 'ResourceList')
220
237
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
238
+ ResourcePolicy = Shapes::StringShape.new(name: 'ResourcePolicy')
239
+ ResourcePolicyNotFoundException = Shapes::StructureShape.new(name: 'ResourcePolicyNotFoundException')
240
+ ResourcePolicyNotValidException = Shapes::StructureShape.new(name: 'ResourcePolicyNotValidException')
221
241
  ResourceTag = Shapes::StructureShape.new(name: 'ResourceTag')
222
242
  ResourceTagList = Shapes::ListShape.new(name: 'ResourceTagList')
223
243
  ResourceTypeNotSupportedException = Shapes::StructureShape.new(name: 'ResourceTypeNotSupportedException')
@@ -257,6 +277,8 @@ module Aws::CloudTrail
257
277
  Trails = Shapes::ListShape.new(name: 'Trails')
258
278
  UUID = Shapes::StringShape.new(name: 'UUID')
259
279
  UnsupportedOperationException = Shapes::StructureShape.new(name: 'UnsupportedOperationException')
280
+ UpdateChannelRequest = Shapes::StructureShape.new(name: 'UpdateChannelRequest')
281
+ UpdateChannelResponse = Shapes::StructureShape.new(name: 'UpdateChannelResponse')
260
282
  UpdateEventDataStoreRequest = Shapes::StructureShape.new(name: 'UpdateEventDataStoreRequest')
261
283
  UpdateEventDataStoreResponse = Shapes::StructureShape.new(name: 'UpdateEventDataStoreResponse')
262
284
  UpdateTrailRequest = Shapes::StructureShape.new(name: 'UpdateTrailRequest')
@@ -309,6 +331,12 @@ module Aws::CloudTrail
309
331
 
310
332
  ChannelARNInvalidException.struct_class = Types::ChannelARNInvalidException
311
333
 
334
+ ChannelAlreadyExistsException.struct_class = Types::ChannelAlreadyExistsException
335
+
336
+ ChannelExistsForEDSException.struct_class = Types::ChannelExistsForEDSException
337
+
338
+ ChannelMaxLimitExceededException.struct_class = Types::ChannelMaxLimitExceededException
339
+
312
340
  ChannelNotFoundException.struct_class = Types::ChannelNotFoundException
313
341
 
314
342
  Channels.member = Shapes::ShapeRef.new(shape: Channel)
@@ -323,6 +351,19 @@ module Aws::CloudTrail
323
351
 
324
352
  ConflictException.struct_class = Types::ConflictException
325
353
 
354
+ CreateChannelRequest.add_member(:name, Shapes::ShapeRef.new(shape: ChannelName, required: true, location_name: "Name"))
355
+ CreateChannelRequest.add_member(:source, Shapes::ShapeRef.new(shape: Source, required: true, location_name: "Source"))
356
+ CreateChannelRequest.add_member(:destinations, Shapes::ShapeRef.new(shape: Destinations, required: true, location_name: "Destinations"))
357
+ CreateChannelRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagsList, location_name: "Tags"))
358
+ CreateChannelRequest.struct_class = Types::CreateChannelRequest
359
+
360
+ CreateChannelResponse.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChannelArn, location_name: "ChannelArn"))
361
+ CreateChannelResponse.add_member(:name, Shapes::ShapeRef.new(shape: ChannelName, location_name: "Name"))
362
+ CreateChannelResponse.add_member(:source, Shapes::ShapeRef.new(shape: Source, location_name: "Source"))
363
+ CreateChannelResponse.add_member(:destinations, Shapes::ShapeRef.new(shape: Destinations, location_name: "Destinations"))
364
+ CreateChannelResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagsList, location_name: "Tags"))
365
+ CreateChannelResponse.struct_class = Types::CreateChannelResponse
366
+
326
367
  CreateEventDataStoreRequest.add_member(:name, Shapes::ShapeRef.new(shape: EventDataStoreName, required: true, location_name: "Name"))
327
368
  CreateEventDataStoreRequest.add_member(:advanced_event_selectors, Shapes::ShapeRef.new(shape: AdvancedEventSelectors, location_name: "AdvancedEventSelectors"))
328
369
  CreateEventDataStoreRequest.add_member(:multi_region_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "MultiRegionEnabled"))
@@ -386,11 +427,21 @@ module Aws::CloudTrail
386
427
 
387
428
  DelegatedAdminAccountLimitExceededException.struct_class = Types::DelegatedAdminAccountLimitExceededException
388
429
 
430
+ DeleteChannelRequest.add_member(:channel, Shapes::ShapeRef.new(shape: ChannelArn, required: true, location_name: "Channel"))
431
+ DeleteChannelRequest.struct_class = Types::DeleteChannelRequest
432
+
433
+ DeleteChannelResponse.struct_class = Types::DeleteChannelResponse
434
+
389
435
  DeleteEventDataStoreRequest.add_member(:event_data_store, Shapes::ShapeRef.new(shape: EventDataStoreArn, required: true, location_name: "EventDataStore"))
390
436
  DeleteEventDataStoreRequest.struct_class = Types::DeleteEventDataStoreRequest
391
437
 
392
438
  DeleteEventDataStoreResponse.struct_class = Types::DeleteEventDataStoreResponse
393
439
 
440
+ DeleteResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
441
+ DeleteResourcePolicyRequest.struct_class = Types::DeleteResourcePolicyRequest
442
+
443
+ DeleteResourcePolicyResponse.struct_class = Types::DeleteResourcePolicyResponse
444
+
394
445
  DeleteTrailRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
395
446
  DeleteTrailRequest.struct_class = Types::DeleteTrailRequest
396
447
 
@@ -484,6 +535,7 @@ module Aws::CloudTrail
484
535
  GetChannelResponse.add_member(:source, Shapes::ShapeRef.new(shape: Source, location_name: "Source"))
485
536
  GetChannelResponse.add_member(:source_config, Shapes::ShapeRef.new(shape: SourceConfig, location_name: "SourceConfig"))
486
537
  GetChannelResponse.add_member(:destinations, Shapes::ShapeRef.new(shape: Destinations, location_name: "Destinations"))
538
+ GetChannelResponse.add_member(:ingestion_status, Shapes::ShapeRef.new(shape: IngestionStatus, location_name: "IngestionStatus"))
487
539
  GetChannelResponse.struct_class = Types::GetChannelResponse
488
540
 
489
541
  GetEventDataStoreRequest.add_member(:event_data_store, Shapes::ShapeRef.new(shape: EventDataStoreArn, required: true, location_name: "EventDataStore"))
@@ -544,6 +596,13 @@ module Aws::CloudTrail
544
596
  GetQueryResultsResponse.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
545
597
  GetQueryResultsResponse.struct_class = Types::GetQueryResultsResponse
546
598
 
599
+ GetResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
600
+ GetResourcePolicyRequest.struct_class = Types::GetResourcePolicyRequest
601
+
602
+ GetResourcePolicyResponse.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
603
+ GetResourcePolicyResponse.add_member(:resource_policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "ResourcePolicy"))
604
+ GetResourcePolicyResponse.struct_class = Types::GetResourcePolicyResponse
605
+
547
606
  GetTrailRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
548
607
  GetTrailRequest.struct_class = Types::GetTrailRequest
549
608
 
@@ -608,6 +667,13 @@ module Aws::CloudTrail
608
667
 
609
668
  InactiveQueryException.struct_class = Types::InactiveQueryException
610
669
 
670
+ IngestionStatus.add_member(:latest_ingestion_success_time, Shapes::ShapeRef.new(shape: Date, location_name: "LatestIngestionSuccessTime"))
671
+ IngestionStatus.add_member(:latest_ingestion_success_event_id, Shapes::ShapeRef.new(shape: UUID, location_name: "LatestIngestionSuccessEventID"))
672
+ IngestionStatus.add_member(:latest_ingestion_error_code, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "LatestIngestionErrorCode"))
673
+ IngestionStatus.add_member(:latest_ingestion_attempt_time, Shapes::ShapeRef.new(shape: Date, location_name: "LatestIngestionAttemptTime"))
674
+ IngestionStatus.add_member(:latest_ingestion_attempt_event_id, Shapes::ShapeRef.new(shape: UUID, location_name: "LatestIngestionAttemptEventID"))
675
+ IngestionStatus.struct_class = Types::IngestionStatus
676
+
611
677
  InsightNotEnabledException.struct_class = Types::InsightNotEnabledException
612
678
 
613
679
  InsightSelector.add_member(:insight_type, Shapes::ShapeRef.new(shape: InsightType, location_name: "InsightType"))
@@ -665,6 +731,8 @@ module Aws::CloudTrail
665
731
 
666
732
  InvalidSnsTopicNameException.struct_class = Types::InvalidSnsTopicNameException
667
733
 
734
+ InvalidSourceException.struct_class = Types::InvalidSourceException
735
+
668
736
  InvalidTagParameterException.struct_class = Types::InvalidTagParameterException
669
737
 
670
738
  InvalidTimeRangeException.struct_class = Types::InvalidTimeRangeException
@@ -812,6 +880,14 @@ module Aws::CloudTrail
812
880
  PutInsightSelectorsResponse.add_member(:insight_selectors, Shapes::ShapeRef.new(shape: InsightSelectors, location_name: "InsightSelectors"))
813
881
  PutInsightSelectorsResponse.struct_class = Types::PutInsightSelectorsResponse
814
882
 
883
+ PutResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
884
+ PutResourcePolicyRequest.add_member(:resource_policy, Shapes::ShapeRef.new(shape: ResourcePolicy, required: true, location_name: "ResourcePolicy"))
885
+ PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
886
+
887
+ PutResourcePolicyResponse.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
888
+ PutResourcePolicyResponse.add_member(:resource_policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "ResourcePolicy"))
889
+ PutResourcePolicyResponse.struct_class = Types::PutResourcePolicyResponse
890
+
815
891
  Queries.member = Shapes::ShapeRef.new(shape: Query)
816
892
 
817
893
  Query.add_member(:query_id, Shapes::ShapeRef.new(shape: UUID, location_name: "QueryId"))
@@ -855,12 +931,18 @@ module Aws::CloudTrail
855
931
  Resource.add_member(:resource_name, Shapes::ShapeRef.new(shape: String, location_name: "ResourceName"))
856
932
  Resource.struct_class = Types::Resource
857
933
 
934
+ ResourceARNNotValidException.struct_class = Types::ResourceARNNotValidException
935
+
858
936
  ResourceIdList.member = Shapes::ShapeRef.new(shape: String)
859
937
 
860
938
  ResourceList.member = Shapes::ShapeRef.new(shape: Resource)
861
939
 
862
940
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
863
941
 
942
+ ResourcePolicyNotFoundException.struct_class = Types::ResourcePolicyNotFoundException
943
+
944
+ ResourcePolicyNotValidException.struct_class = Types::ResourcePolicyNotValidException
945
+
864
946
  ResourceTag.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, location_name: "ResourceId"))
865
947
  ResourceTag.add_member(:tags_list, Shapes::ShapeRef.new(shape: TagsList, location_name: "TagsList"))
866
948
  ResourceTag.struct_class = Types::ResourceTag
@@ -989,6 +1071,17 @@ module Aws::CloudTrail
989
1071
 
990
1072
  UnsupportedOperationException.struct_class = Types::UnsupportedOperationException
991
1073
 
1074
+ UpdateChannelRequest.add_member(:channel, Shapes::ShapeRef.new(shape: ChannelArn, required: true, location_name: "Channel"))
1075
+ UpdateChannelRequest.add_member(:destinations, Shapes::ShapeRef.new(shape: Destinations, location_name: "Destinations"))
1076
+ UpdateChannelRequest.add_member(:name, Shapes::ShapeRef.new(shape: ChannelName, location_name: "Name"))
1077
+ UpdateChannelRequest.struct_class = Types::UpdateChannelRequest
1078
+
1079
+ UpdateChannelResponse.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChannelArn, location_name: "ChannelArn"))
1080
+ UpdateChannelResponse.add_member(:name, Shapes::ShapeRef.new(shape: ChannelName, location_name: "Name"))
1081
+ UpdateChannelResponse.add_member(:source, Shapes::ShapeRef.new(shape: Source, location_name: "Source"))
1082
+ UpdateChannelResponse.add_member(:destinations, Shapes::ShapeRef.new(shape: Destinations, location_name: "Destinations"))
1083
+ UpdateChannelResponse.struct_class = Types::UpdateChannelResponse
1084
+
992
1085
  UpdateEventDataStoreRequest.add_member(:event_data_store, Shapes::ShapeRef.new(shape: EventDataStoreArn, required: true, location_name: "EventDataStore"))
993
1086
  UpdateEventDataStoreRequest.add_member(:name, Shapes::ShapeRef.new(shape: EventDataStoreName, location_name: "Name"))
994
1087
  UpdateEventDataStoreRequest.add_member(:advanced_event_selectors, Shapes::ShapeRef.new(shape: AdvancedEventSelectors, location_name: "AdvancedEventSelectors"))
@@ -1073,6 +1166,7 @@ module Aws::CloudTrail
1073
1166
  o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
1074
1167
  o.errors << Shapes::ShapeRef.new(shape: InactiveEventDataStoreException)
1075
1168
  o.errors << Shapes::ShapeRef.new(shape: EventDataStoreNotFoundException)
1169
+ o.errors << Shapes::ShapeRef.new(shape: ChannelNotFoundException)
1076
1170
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1077
1171
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1078
1172
  o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
@@ -1098,6 +1192,26 @@ module Aws::CloudTrail
1098
1192
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1099
1193
  end)
1100
1194
 
1195
+ api.add_operation(:create_channel, Seahorse::Model::Operation.new.tap do |o|
1196
+ o.name = "CreateChannel"
1197
+ o.http_method = "POST"
1198
+ o.http_request_uri = "/"
1199
+ o.input = Shapes::ShapeRef.new(shape: CreateChannelRequest)
1200
+ o.output = Shapes::ShapeRef.new(shape: CreateChannelResponse)
1201
+ o.errors << Shapes::ShapeRef.new(shape: ChannelMaxLimitExceededException)
1202
+ o.errors << Shapes::ShapeRef.new(shape: InvalidSourceException)
1203
+ o.errors << Shapes::ShapeRef.new(shape: ChannelAlreadyExistsException)
1204
+ o.errors << Shapes::ShapeRef.new(shape: EventDataStoreARNInvalidException)
1205
+ o.errors << Shapes::ShapeRef.new(shape: EventDataStoreNotFoundException)
1206
+ o.errors << Shapes::ShapeRef.new(shape: InvalidEventDataStoreCategoryException)
1207
+ o.errors << Shapes::ShapeRef.new(shape: InactiveEventDataStoreException)
1208
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1209
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
1210
+ o.errors << Shapes::ShapeRef.new(shape: TagsLimitExceededException)
1211
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1212
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1213
+ end)
1214
+
1101
1215
  api.add_operation(:create_event_data_store, Seahorse::Model::Operation.new.tap do |o|
1102
1216
  o.name = "CreateEventDataStore"
1103
1217
  o.http_method = "POST"
@@ -1163,6 +1277,18 @@ module Aws::CloudTrail
1163
1277
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1164
1278
  end)
1165
1279
 
1280
+ api.add_operation(:delete_channel, Seahorse::Model::Operation.new.tap do |o|
1281
+ o.name = "DeleteChannel"
1282
+ o.http_method = "POST"
1283
+ o.http_request_uri = "/"
1284
+ o.input = Shapes::ShapeRef.new(shape: DeleteChannelRequest)
1285
+ o.output = Shapes::ShapeRef.new(shape: DeleteChannelResponse)
1286
+ o.errors << Shapes::ShapeRef.new(shape: ChannelARNInvalidException)
1287
+ o.errors << Shapes::ShapeRef.new(shape: ChannelNotFoundException)
1288
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1289
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1290
+ end)
1291
+
1166
1292
  api.add_operation(:delete_event_data_store, Seahorse::Model::Operation.new.tap do |o|
1167
1293
  o.name = "DeleteEventDataStore"
1168
1294
  o.http_method = "POST"
@@ -1179,9 +1305,24 @@ module Aws::CloudTrail
1179
1305
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1180
1306
  o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
1181
1307
  o.errors << Shapes::ShapeRef.new(shape: NoManagementAccountSLRExistsException)
1308
+ o.errors << Shapes::ShapeRef.new(shape: ChannelExistsForEDSException)
1182
1309
  o.errors << Shapes::ShapeRef.new(shape: InsufficientDependencyServiceAccessPermissionException)
1183
1310
  end)
1184
1311
 
1312
+ api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
1313
+ o.name = "DeleteResourcePolicy"
1314
+ o.http_method = "POST"
1315
+ o.http_request_uri = "/"
1316
+ o.input = Shapes::ShapeRef.new(shape: DeleteResourcePolicyRequest)
1317
+ o.output = Shapes::ShapeRef.new(shape: DeleteResourcePolicyResponse)
1318
+ o.errors << Shapes::ShapeRef.new(shape: ResourceARNNotValidException)
1319
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1320
+ o.errors << Shapes::ShapeRef.new(shape: ResourcePolicyNotFoundException)
1321
+ o.errors << Shapes::ShapeRef.new(shape: ResourceTypeNotSupportedException)
1322
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1323
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1324
+ end)
1325
+
1185
1326
  api.add_operation(:delete_trail, Seahorse::Model::Operation.new.tap do |o|
1186
1327
  o.name = "DeleteTrail"
1187
1328
  o.http_method = "POST"
@@ -1191,13 +1332,13 @@ module Aws::CloudTrail
1191
1332
  o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
1192
1333
  o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
1193
1334
  o.errors << Shapes::ShapeRef.new(shape: CloudTrailARNInvalidException)
1335
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1194
1336
  o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
1195
1337
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1196
1338
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1197
1339
  o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
1198
1340
  o.errors << Shapes::ShapeRef.new(shape: NoManagementAccountSLRExistsException)
1199
1341
  o.errors << Shapes::ShapeRef.new(shape: InsufficientDependencyServiceAccessPermissionException)
1200
- o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1201
1342
  end)
1202
1343
 
1203
1344
  api.add_operation(:deregister_organization_delegated_admin, Seahorse::Model::Operation.new.tap do |o|
@@ -1209,6 +1350,7 @@ module Aws::CloudTrail
1209
1350
  o.errors << Shapes::ShapeRef.new(shape: AccountNotFoundException)
1210
1351
  o.errors << Shapes::ShapeRef.new(shape: AccountNotRegisteredException)
1211
1352
  o.errors << Shapes::ShapeRef.new(shape: CloudTrailAccessNotEnabledException)
1353
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1212
1354
  o.errors << Shapes::ShapeRef.new(shape: InsufficientDependencyServiceAccessPermissionException)
1213
1355
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1214
1356
  o.errors << Shapes::ShapeRef.new(shape: NotOrganizationManagementAccountException)
@@ -1337,6 +1479,20 @@ module Aws::CloudTrail
1337
1479
  )
1338
1480
  end)
1339
1481
 
1482
+ api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
1483
+ o.name = "GetResourcePolicy"
1484
+ o.http_method = "POST"
1485
+ o.http_request_uri = "/"
1486
+ o.input = Shapes::ShapeRef.new(shape: GetResourcePolicyRequest)
1487
+ o.output = Shapes::ShapeRef.new(shape: GetResourcePolicyResponse)
1488
+ o.errors << Shapes::ShapeRef.new(shape: ResourceARNNotValidException)
1489
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1490
+ o.errors << Shapes::ShapeRef.new(shape: ResourcePolicyNotFoundException)
1491
+ o.errors << Shapes::ShapeRef.new(shape: ResourceTypeNotSupportedException)
1492
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1493
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1494
+ end)
1495
+
1340
1496
  api.add_operation(:get_trail, Seahorse::Model::Operation.new.tap do |o|
1341
1497
  o.name = "GetTrail"
1342
1498
  o.http_method = "POST"
@@ -1575,6 +1731,20 @@ module Aws::CloudTrail
1575
1731
  o.errors << Shapes::ShapeRef.new(shape: NoManagementAccountSLRExistsException)
1576
1732
  end)
1577
1733
 
1734
+ api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
1735
+ o.name = "PutResourcePolicy"
1736
+ o.http_method = "POST"
1737
+ o.http_request_uri = "/"
1738
+ o.input = Shapes::ShapeRef.new(shape: PutResourcePolicyRequest)
1739
+ o.output = Shapes::ShapeRef.new(shape: PutResourcePolicyResponse)
1740
+ o.errors << Shapes::ShapeRef.new(shape: ResourceARNNotValidException)
1741
+ o.errors << Shapes::ShapeRef.new(shape: ResourcePolicyNotValidException)
1742
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1743
+ o.errors << Shapes::ShapeRef.new(shape: ResourceTypeNotSupportedException)
1744
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1745
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1746
+ end)
1747
+
1578
1748
  api.add_operation(:register_organization_delegated_admin, Seahorse::Model::Operation.new.tap do |o|
1579
1749
  o.name = "RegisterOrganizationDelegatedAdmin"
1580
1750
  o.http_method = "POST"
@@ -1587,6 +1757,7 @@ module Aws::CloudTrail
1587
1757
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1588
1758
  o.errors << Shapes::ShapeRef.new(shape: CannotDelegateManagementAccountException)
1589
1759
  o.errors << Shapes::ShapeRef.new(shape: CloudTrailAccessNotEnabledException)
1760
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1590
1761
  o.errors << Shapes::ShapeRef.new(shape: DelegatedAdminAccountLimitExceededException)
1591
1762
  o.errors << Shapes::ShapeRef.new(shape: NotOrganizationManagementAccountException)
1592
1763
  o.errors << Shapes::ShapeRef.new(shape: OrganizationNotInAllFeaturesModeException)
@@ -1608,6 +1779,7 @@ module Aws::CloudTrail
1608
1779
  o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
1609
1780
  o.errors << Shapes::ShapeRef.new(shape: InactiveEventDataStoreException)
1610
1781
  o.errors << Shapes::ShapeRef.new(shape: EventDataStoreNotFoundException)
1782
+ o.errors << Shapes::ShapeRef.new(shape: ChannelNotFoundException)
1611
1783
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1612
1784
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1613
1785
  o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
@@ -1663,6 +1835,7 @@ module Aws::CloudTrail
1663
1835
  o.input = Shapes::ShapeRef.new(shape: StartLoggingRequest)
1664
1836
  o.output = Shapes::ShapeRef.new(shape: StartLoggingResponse)
1665
1837
  o.errors << Shapes::ShapeRef.new(shape: CloudTrailARNInvalidException)
1838
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1666
1839
  o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
1667
1840
  o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
1668
1841
  o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
@@ -1716,6 +1889,7 @@ module Aws::CloudTrail
1716
1889
  o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
1717
1890
  o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
1718
1891
  o.errors << Shapes::ShapeRef.new(shape: CloudTrailARNInvalidException)
1892
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1719
1893
  o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
1720
1894
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1721
1895
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
@@ -1724,6 +1898,24 @@ module Aws::CloudTrail
1724
1898
  o.errors << Shapes::ShapeRef.new(shape: InsufficientDependencyServiceAccessPermissionException)
1725
1899
  end)
1726
1900
 
1901
+ api.add_operation(:update_channel, Seahorse::Model::Operation.new.tap do |o|
1902
+ o.name = "UpdateChannel"
1903
+ o.http_method = "POST"
1904
+ o.http_request_uri = "/"
1905
+ o.input = Shapes::ShapeRef.new(shape: UpdateChannelRequest)
1906
+ o.output = Shapes::ShapeRef.new(shape: UpdateChannelResponse)
1907
+ o.errors << Shapes::ShapeRef.new(shape: ChannelARNInvalidException)
1908
+ o.errors << Shapes::ShapeRef.new(shape: ChannelNotFoundException)
1909
+ o.errors << Shapes::ShapeRef.new(shape: ChannelAlreadyExistsException)
1910
+ o.errors << Shapes::ShapeRef.new(shape: EventDataStoreARNInvalidException)
1911
+ o.errors << Shapes::ShapeRef.new(shape: EventDataStoreNotFoundException)
1912
+ o.errors << Shapes::ShapeRef.new(shape: InvalidEventDataStoreCategoryException)
1913
+ o.errors << Shapes::ShapeRef.new(shape: InactiveEventDataStoreException)
1914
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1915
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1916
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1917
+ end)
1918
+
1727
1919
  api.add_operation(:update_event_data_store, Seahorse::Model::Operation.new.tap do |o|
1728
1920
  o.name = "UpdateEventDataStore"
1729
1921
  o.http_method = "POST"
@@ -1769,6 +1961,7 @@ module Aws::CloudTrail
1769
1961
  o.errors << Shapes::ShapeRef.new(shape: TrailNotProvidedException)
1770
1962
  o.errors << Shapes::ShapeRef.new(shape: InvalidEventSelectorsException)
1771
1963
  o.errors << Shapes::ShapeRef.new(shape: CloudTrailARNInvalidException)
1964
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1772
1965
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
1773
1966
  o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
1774
1967
  o.errors << Shapes::ShapeRef.new(shape: KmsKeyNotFoundException)
@@ -39,6 +39,20 @@ module Aws::CloudTrail
39
39
  end
40
40
  end
41
41
 
42
+ class CreateChannel
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::CloudTrail::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
42
56
  class CreateEventDataStore
43
57
  def self.build(context)
44
58
  unless context.config.regional_endpoint
@@ -67,6 +81,20 @@ module Aws::CloudTrail
67
81
  end
68
82
  end
69
83
 
84
+ class DeleteChannel
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::CloudTrail::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
70
98
  class DeleteEventDataStore
71
99
  def self.build(context)
72
100
  unless context.config.regional_endpoint
@@ -81,6 +109,20 @@ module Aws::CloudTrail
81
109
  end
82
110
  end
83
111
 
112
+ class DeleteResourcePolicy
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::CloudTrail::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
84
126
  class DeleteTrail
85
127
  def self.build(context)
86
128
  unless context.config.regional_endpoint
@@ -221,6 +263,20 @@ module Aws::CloudTrail
221
263
  end
222
264
  end
223
265
 
266
+ class GetResourcePolicy
267
+ def self.build(context)
268
+ unless context.config.regional_endpoint
269
+ endpoint = context.config.endpoint.to_s
270
+ end
271
+ Aws::CloudTrail::EndpointParameters.new(
272
+ region: context.config.region,
273
+ use_dual_stack: context.config.use_dualstack_endpoint,
274
+ use_fips: context.config.use_fips_endpoint,
275
+ endpoint: endpoint,
276
+ )
277
+ end
278
+ end
279
+
224
280
  class GetTrail
225
281
  def self.build(context)
226
282
  unless context.config.regional_endpoint
@@ -403,6 +459,20 @@ module Aws::CloudTrail
403
459
  end
404
460
  end
405
461
 
462
+ class PutResourcePolicy
463
+ def self.build(context)
464
+ unless context.config.regional_endpoint
465
+ endpoint = context.config.endpoint.to_s
466
+ end
467
+ Aws::CloudTrail::EndpointParameters.new(
468
+ region: context.config.region,
469
+ use_dual_stack: context.config.use_dualstack_endpoint,
470
+ use_fips: context.config.use_fips_endpoint,
471
+ endpoint: endpoint,
472
+ )
473
+ end
474
+ end
475
+
406
476
  class RegisterOrganizationDelegatedAdmin
407
477
  def self.build(context)
408
478
  unless context.config.regional_endpoint
@@ -515,6 +585,20 @@ module Aws::CloudTrail
515
585
  end
516
586
  end
517
587
 
588
+ class UpdateChannel
589
+ def self.build(context)
590
+ unless context.config.regional_endpoint
591
+ endpoint = context.config.endpoint.to_s
592
+ end
593
+ Aws::CloudTrail::EndpointParameters.new(
594
+ region: context.config.region,
595
+ use_dual_stack: context.config.use_dualstack_endpoint,
596
+ use_fips: context.config.use_fips_endpoint,
597
+ endpoint: endpoint,
598
+ )
599
+ end
600
+ end
601
+
518
602
  class UpdateEventDataStore
519
603
  def self.build(context)
520
604
  unless context.config.regional_endpoint