aws-sdk-cloudtrail 1.104.0 → 1.105.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd172746e0a69eaa96d3ad94bb8ab3a491cd76f859f3b625e17b72bd3e2b2734
4
- data.tar.gz: 9168cf8934ed06566fcab59ed542c136a6f373fc01514157699406cb524d933c
3
+ metadata.gz: 1131288a0eb082f4482bbe2654b4556d41ef172ce95be9619541b27642da1f57
4
+ data.tar.gz: f5adaff304614f1fc23b5393fdc5f89ba047d123dc4a87cfa7b57618e9ae48de
5
5
  SHA512:
6
- metadata.gz: 8ae9ec1e3f737f56f254c28e13aa4a564b19d6e740097b413d0bf4e98abbd5b29ef2e2bb62e92b02423ded4ff93bf4e4654446013f6914f564941c3fcfd985ca
7
- data.tar.gz: 81f0c572f4540d040df6b0129697d51192d1ba8158ecb0f86a083b8d42788357a8f9fba6377a602d282f40618a9e7a1866b6840a18e5e4ac381b48d361c2701f
6
+ metadata.gz: 9aba1a0f46a2af91865f1535bc2dd336226f18b81641c69fb5c0b231dcc1b291671e6711c4f684b0bef5e69daa89ce5b229ca03af5297cfc7082ebde17d151b6
7
+ data.tar.gz: 8895aa3ed877457c0148859b14e00b21cd783c623e6813ab88193e356e89b1d9ce1a01b7431db9a2754ea4a83b1fa35cc7a6f88cce3d96956da47c7e37565248
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.105.0 (2025-05-29)
5
+ ------------------
6
+
7
+ * Feature - CloudTrail Feature Release: Support for Enriched Events with Configurable Context for Event Data Store
8
+
4
9
  1.104.0 (2025-05-12)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.104.0
1
+ 1.105.0
@@ -1788,6 +1788,45 @@ module Aws::CloudTrail
1788
1788
  req.send_request(options)
1789
1789
  end
1790
1790
 
1791
+ # Retrieves the current event configuration settings for the specified
1792
+ # event data store, including details about maximum event size and
1793
+ # context key selectors configured for the event data store.
1794
+ #
1795
+ # @option params [String] :event_data_store
1796
+ # The Amazon Resource Name (ARN) or ID suffix of the ARN of the event
1797
+ # data store for which you want to retrieve event configuration
1798
+ # settings.
1799
+ #
1800
+ # @return [Types::GetEventConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1801
+ #
1802
+ # * {Types::GetEventConfigurationResponse#event_data_store_arn #event_data_store_arn} => String
1803
+ # * {Types::GetEventConfigurationResponse#max_event_size #max_event_size} => String
1804
+ # * {Types::GetEventConfigurationResponse#context_key_selectors #context_key_selectors} => Array<Types::ContextKeySelector>
1805
+ #
1806
+ # @example Request syntax with placeholder values
1807
+ #
1808
+ # resp = client.get_event_configuration({
1809
+ # event_data_store: "String",
1810
+ # })
1811
+ #
1812
+ # @example Response structure
1813
+ #
1814
+ # resp.event_data_store_arn #=> String
1815
+ # resp.max_event_size #=> String, one of "Standard", "Large"
1816
+ # resp.context_key_selectors #=> Array
1817
+ # resp.context_key_selectors[0].type #=> String, one of "TagContext", "RequestContext"
1818
+ # resp.context_key_selectors[0].equals #=> Array
1819
+ # resp.context_key_selectors[0].equals[0] #=> String
1820
+ #
1821
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventConfiguration AWS API Documentation
1822
+ #
1823
+ # @overload get_event_configuration(params = {})
1824
+ # @param [Hash] params ({})
1825
+ def get_event_configuration(params = {}, options = {})
1826
+ req = build_request(:get_event_configuration, params)
1827
+ req.send_request(options)
1828
+ end
1829
+
1791
1830
  # Returns information about an event data store specified as either an
1792
1831
  # ARN or the ID portion of the ARN.
1793
1832
  #
@@ -3036,6 +3075,60 @@ module Aws::CloudTrail
3036
3075
  req.send_request(options)
3037
3076
  end
3038
3077
 
3078
+ # Updates the event configuration settings for the specified event data
3079
+ # store. You can update the maximum event size and context key
3080
+ # selectors.
3081
+ #
3082
+ # @option params [String] :event_data_store
3083
+ # The Amazon Resource Name (ARN) or ID suffix of the ARN of the event
3084
+ # data store for which you want to update event configuration settings.
3085
+ #
3086
+ # @option params [required, String] :max_event_size
3087
+ # The maximum allowed size for events to be stored in the specified
3088
+ # event data store. If you are using context key selectors, MaxEventSize
3089
+ # must be set to Large.
3090
+ #
3091
+ # @option params [required, Array<Types::ContextKeySelector>] :context_key_selectors
3092
+ # A list of context key selectors that will be included to provide
3093
+ # enriched event data.
3094
+ #
3095
+ # @return [Types::PutEventConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3096
+ #
3097
+ # * {Types::PutEventConfigurationResponse#event_data_store_arn #event_data_store_arn} => String
3098
+ # * {Types::PutEventConfigurationResponse#max_event_size #max_event_size} => String
3099
+ # * {Types::PutEventConfigurationResponse#context_key_selectors #context_key_selectors} => Array&lt;Types::ContextKeySelector&gt;
3100
+ #
3101
+ # @example Request syntax with placeholder values
3102
+ #
3103
+ # resp = client.put_event_configuration({
3104
+ # event_data_store: "String",
3105
+ # max_event_size: "Standard", # required, accepts Standard, Large
3106
+ # context_key_selectors: [ # required
3107
+ # {
3108
+ # type: "TagContext", # required, accepts TagContext, RequestContext
3109
+ # equals: ["OperatorTargetListMember"], # required
3110
+ # },
3111
+ # ],
3112
+ # })
3113
+ #
3114
+ # @example Response structure
3115
+ #
3116
+ # resp.event_data_store_arn #=> String
3117
+ # resp.max_event_size #=> String, one of "Standard", "Large"
3118
+ # resp.context_key_selectors #=> Array
3119
+ # resp.context_key_selectors[0].type #=> String, one of "TagContext", "RequestContext"
3120
+ # resp.context_key_selectors[0].equals #=> Array
3121
+ # resp.context_key_selectors[0].equals[0] #=> String
3122
+ #
3123
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventConfiguration AWS API Documentation
3124
+ #
3125
+ # @overload put_event_configuration(params = {})
3126
+ # @param [Hash] params ({})
3127
+ def put_event_configuration(params = {}, options = {})
3128
+ req = build_request(:put_event_configuration, params)
3129
+ req.send_request(options)
3130
+ end
3131
+
3039
3132
  # Configures event selectors (also referred to as *basic event
3040
3133
  # selectors*) or advanced event selectors for your trail. You can use
3041
3134
  # either `AdvancedEventSelectors` or `EventSelectors`, but not both. If
@@ -4585,7 +4678,7 @@ module Aws::CloudTrail
4585
4678
  tracer: tracer
4586
4679
  )
4587
4680
  context[:gem_name] = 'aws-sdk-cloudtrail'
4588
- context[:gem_version] = '1.104.0'
4681
+ context[:gem_version] = '1.105.0'
4589
4682
  Seahorse::Client::Request.new(handlers, context)
4590
4683
  end
4591
4684
 
@@ -47,6 +47,8 @@ module Aws::CloudTrail
47
47
  CloudWatchLogsDeliveryUnavailableException = Shapes::StructureShape.new(name: 'CloudWatchLogsDeliveryUnavailableException')
48
48
  ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
49
49
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
50
+ ContextKeySelector = Shapes::StructureShape.new(name: 'ContextKeySelector')
51
+ ContextKeySelectors = Shapes::ListShape.new(name: 'ContextKeySelectors')
50
52
  CreateChannelRequest = Shapes::StructureShape.new(name: 'CreateChannelRequest')
51
53
  CreateChannelResponse = Shapes::StructureShape.new(name: 'CreateChannelResponse')
52
54
  CreateDashboardRequest = Shapes::StructureShape.new(name: 'CreateDashboardRequest')
@@ -125,6 +127,8 @@ module Aws::CloudTrail
125
127
  GetChannelResponse = Shapes::StructureShape.new(name: 'GetChannelResponse')
126
128
  GetDashboardRequest = Shapes::StructureShape.new(name: 'GetDashboardRequest')
127
129
  GetDashboardResponse = Shapes::StructureShape.new(name: 'GetDashboardResponse')
130
+ GetEventConfigurationRequest = Shapes::StructureShape.new(name: 'GetEventConfigurationRequest')
131
+ GetEventConfigurationResponse = Shapes::StructureShape.new(name: 'GetEventConfigurationResponse')
128
132
  GetEventDataStoreRequest = Shapes::StructureShape.new(name: 'GetEventDataStoreRequest')
129
133
  GetEventDataStoreResponse = Shapes::StructureShape.new(name: 'GetEventDataStoreResponse')
130
134
  GetEventSelectorsRequest = Shapes::StructureShape.new(name: 'GetEventSelectorsRequest')
@@ -165,6 +169,7 @@ module Aws::CloudTrail
165
169
  InsightsMetricValues = Shapes::ListShape.new(name: 'InsightsMetricValues')
166
170
  InsufficientDependencyServiceAccessPermissionException = Shapes::StructureShape.new(name: 'InsufficientDependencyServiceAccessPermissionException')
167
171
  InsufficientEncryptionPolicyException = Shapes::StructureShape.new(name: 'InsufficientEncryptionPolicyException')
172
+ InsufficientIAMAccessPermissionException = Shapes::StructureShape.new(name: 'InsufficientIAMAccessPermissionException')
168
173
  InsufficientS3BucketPolicyException = Shapes::StructureShape.new(name: 'InsufficientS3BucketPolicyException')
169
174
  InsufficientSnsTopicPolicyException = Shapes::StructureShape.new(name: 'InsufficientSnsTopicPolicyException')
170
175
  Integer = Shapes::IntegerShape.new(name: 'Integer')
@@ -232,6 +237,7 @@ module Aws::CloudTrail
232
237
  LookupEventsRequest = Shapes::StructureShape.new(name: 'LookupEventsRequest')
233
238
  LookupEventsResponse = Shapes::StructureShape.new(name: 'LookupEventsResponse')
234
239
  MaxConcurrentQueriesException = Shapes::StructureShape.new(name: 'MaxConcurrentQueriesException')
240
+ MaxEventSize = Shapes::StringShape.new(name: 'MaxEventSize')
235
241
  MaxQueryResults = Shapes::IntegerShape.new(name: 'MaxQueryResults')
236
242
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
237
243
  MaximumNumberOfTrailsExceededException = Shapes::StructureShape.new(name: 'MaximumNumberOfTrailsExceededException')
@@ -241,6 +247,8 @@ module Aws::CloudTrail
241
247
  NotOrganizationMasterAccountException = Shapes::StructureShape.new(name: 'NotOrganizationMasterAccountException')
242
248
  OperationNotPermittedException = Shapes::StructureShape.new(name: 'OperationNotPermittedException')
243
249
  Operator = Shapes::ListShape.new(name: 'Operator')
250
+ OperatorTargetList = Shapes::ListShape.new(name: 'OperatorTargetList')
251
+ OperatorTargetListMember = Shapes::StringShape.new(name: 'OperatorTargetListMember')
244
252
  OperatorValue = Shapes::StringShape.new(name: 'OperatorValue')
245
253
  OrganizationNotInAllFeaturesModeException = Shapes::StructureShape.new(name: 'OrganizationNotInAllFeaturesModeException')
246
254
  OrganizationsNotInUseException = Shapes::StructureShape.new(name: 'OrganizationsNotInUseException')
@@ -252,6 +260,8 @@ module Aws::CloudTrail
252
260
  Prompt = Shapes::StringShape.new(name: 'Prompt')
253
261
  PublicKey = Shapes::StructureShape.new(name: 'PublicKey')
254
262
  PublicKeyList = Shapes::ListShape.new(name: 'PublicKeyList')
263
+ PutEventConfigurationRequest = Shapes::StructureShape.new(name: 'PutEventConfigurationRequest')
264
+ PutEventConfigurationResponse = Shapes::StructureShape.new(name: 'PutEventConfigurationResponse')
255
265
  PutEventSelectorsRequest = Shapes::StructureShape.new(name: 'PutEventSelectorsRequest')
256
266
  PutEventSelectorsResponse = Shapes::StructureShape.new(name: 'PutEventSelectorsResponse')
257
267
  PutInsightSelectorsRequest = Shapes::StructureShape.new(name: 'PutInsightSelectorsRequest')
@@ -355,6 +365,7 @@ module Aws::CloudTrail
355
365
  TrailNotFoundException = Shapes::StructureShape.new(name: 'TrailNotFoundException')
356
366
  TrailNotProvidedException = Shapes::StructureShape.new(name: 'TrailNotProvidedException')
357
367
  Trails = Shapes::ListShape.new(name: 'Trails')
368
+ Type = Shapes::StringShape.new(name: 'Type')
358
369
  UUID = Shapes::StringShape.new(name: 'UUID')
359
370
  UnsupportedOperationException = Shapes::StructureShape.new(name: 'UnsupportedOperationException')
360
371
  UpdateChannelRequest = Shapes::StructureShape.new(name: 'UpdateChannelRequest')
@@ -444,6 +455,12 @@ module Aws::CloudTrail
444
455
 
445
456
  ConflictException.struct_class = Types::ConflictException
446
457
 
458
+ ContextKeySelector.add_member(:type, Shapes::ShapeRef.new(shape: Type, required: true, location_name: "Type"))
459
+ ContextKeySelector.add_member(:equals, Shapes::ShapeRef.new(shape: OperatorTargetList, required: true, location_name: "Equals"))
460
+ ContextKeySelector.struct_class = Types::ContextKeySelector
461
+
462
+ ContextKeySelectors.member = Shapes::ShapeRef.new(shape: ContextKeySelector)
463
+
447
464
  CreateChannelRequest.add_member(:name, Shapes::ShapeRef.new(shape: ChannelName, required: true, location_name: "Name"))
448
465
  CreateChannelRequest.add_member(:source, Shapes::ShapeRef.new(shape: Source, required: true, location_name: "Source"))
449
466
  CreateChannelRequest.add_member(:destinations, Shapes::ShapeRef.new(shape: Destinations, required: true, location_name: "Destinations"))
@@ -712,6 +729,14 @@ module Aws::CloudTrail
712
729
  GetDashboardResponse.add_member(:termination_protection_enabled, Shapes::ShapeRef.new(shape: TerminationProtectionEnabled, location_name: "TerminationProtectionEnabled"))
713
730
  GetDashboardResponse.struct_class = Types::GetDashboardResponse
714
731
 
732
+ GetEventConfigurationRequest.add_member(:event_data_store, Shapes::ShapeRef.new(shape: String, location_name: "EventDataStore"))
733
+ GetEventConfigurationRequest.struct_class = Types::GetEventConfigurationRequest
734
+
735
+ GetEventConfigurationResponse.add_member(:event_data_store_arn, Shapes::ShapeRef.new(shape: EventDataStoreArn, location_name: "EventDataStoreArn"))
736
+ GetEventConfigurationResponse.add_member(:max_event_size, Shapes::ShapeRef.new(shape: MaxEventSize, location_name: "MaxEventSize"))
737
+ GetEventConfigurationResponse.add_member(:context_key_selectors, Shapes::ShapeRef.new(shape: ContextKeySelectors, location_name: "ContextKeySelectors"))
738
+ GetEventConfigurationResponse.struct_class = Types::GetEventConfigurationResponse
739
+
715
740
  GetEventDataStoreRequest.add_member(:event_data_store, Shapes::ShapeRef.new(shape: EventDataStoreArn, required: true, location_name: "EventDataStore"))
716
741
  GetEventDataStoreRequest.struct_class = Types::GetEventDataStoreRequest
717
742
 
@@ -870,6 +895,8 @@ module Aws::CloudTrail
870
895
 
871
896
  InsufficientEncryptionPolicyException.struct_class = Types::InsufficientEncryptionPolicyException
872
897
 
898
+ InsufficientIAMAccessPermissionException.struct_class = Types::InsufficientIAMAccessPermissionException
899
+
873
900
  InsufficientS3BucketPolicyException.struct_class = Types::InsufficientS3BucketPolicyException
874
901
 
875
902
  InsufficientSnsTopicPolicyException.struct_class = Types::InsufficientSnsTopicPolicyException
@@ -1066,6 +1093,8 @@ module Aws::CloudTrail
1066
1093
 
1067
1094
  Operator.member = Shapes::ShapeRef.new(shape: OperatorValue)
1068
1095
 
1096
+ OperatorTargetList.member = Shapes::ShapeRef.new(shape: OperatorTargetListMember)
1097
+
1069
1098
  OrganizationNotInAllFeaturesModeException.struct_class = Types::OrganizationNotInAllFeaturesModeException
1070
1099
 
1071
1100
  OrganizationsNotInUseException.struct_class = Types::OrganizationsNotInUseException
@@ -1084,6 +1113,16 @@ module Aws::CloudTrail
1084
1113
 
1085
1114
  PublicKeyList.member = Shapes::ShapeRef.new(shape: PublicKey)
1086
1115
 
1116
+ PutEventConfigurationRequest.add_member(:event_data_store, Shapes::ShapeRef.new(shape: String, location_name: "EventDataStore"))
1117
+ PutEventConfigurationRequest.add_member(:max_event_size, Shapes::ShapeRef.new(shape: MaxEventSize, required: true, location_name: "MaxEventSize"))
1118
+ PutEventConfigurationRequest.add_member(:context_key_selectors, Shapes::ShapeRef.new(shape: ContextKeySelectors, required: true, location_name: "ContextKeySelectors"))
1119
+ PutEventConfigurationRequest.struct_class = Types::PutEventConfigurationRequest
1120
+
1121
+ PutEventConfigurationResponse.add_member(:event_data_store_arn, Shapes::ShapeRef.new(shape: EventDataStoreArn, location_name: "EventDataStoreArn"))
1122
+ PutEventConfigurationResponse.add_member(:max_event_size, Shapes::ShapeRef.new(shape: MaxEventSize, location_name: "MaxEventSize"))
1123
+ PutEventConfigurationResponse.add_member(:context_key_selectors, Shapes::ShapeRef.new(shape: ContextKeySelectors, location_name: "ContextKeySelectors"))
1124
+ PutEventConfigurationResponse.struct_class = Types::PutEventConfigurationResponse
1125
+
1087
1126
  PutEventSelectorsRequest.add_member(:trail_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "TrailName"))
1088
1127
  PutEventSelectorsRequest.add_member(:event_selectors, Shapes::ShapeRef.new(shape: EventSelectors, location_name: "EventSelectors"))
1089
1128
  PutEventSelectorsRequest.add_member(:advanced_event_selectors, Shapes::ShapeRef.new(shape: AdvancedEventSelectors, location_name: "AdvancedEventSelectors"))
@@ -1833,6 +1872,24 @@ module Aws::CloudTrail
1833
1872
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1834
1873
  end)
1835
1874
 
1875
+ api.add_operation(:get_event_configuration, Seahorse::Model::Operation.new.tap do |o|
1876
+ o.name = "GetEventConfiguration"
1877
+ o.http_method = "POST"
1878
+ o.http_request_uri = "/"
1879
+ o.input = Shapes::ShapeRef.new(shape: GetEventConfigurationRequest)
1880
+ o.output = Shapes::ShapeRef.new(shape: GetEventConfigurationResponse)
1881
+ o.errors << Shapes::ShapeRef.new(shape: CloudTrailARNInvalidException)
1882
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1883
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1884
+ o.errors << Shapes::ShapeRef.new(shape: EventDataStoreARNInvalidException)
1885
+ o.errors << Shapes::ShapeRef.new(shape: EventDataStoreNotFoundException)
1886
+ o.errors << Shapes::ShapeRef.new(shape: InvalidEventDataStoreStatusException)
1887
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1888
+ o.errors << Shapes::ShapeRef.new(shape: InvalidEventDataStoreCategoryException)
1889
+ o.errors << Shapes::ShapeRef.new(shape: NoManagementAccountSLRExistsException)
1890
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
1891
+ end)
1892
+
1836
1893
  api.add_operation(:get_event_data_store, Seahorse::Model::Operation.new.tap do |o|
1837
1894
  o.name = "GetEventDataStore"
1838
1895
  o.http_method = "POST"
@@ -2157,6 +2214,30 @@ module Aws::CloudTrail
2157
2214
  )
2158
2215
  end)
2159
2216
 
2217
+ api.add_operation(:put_event_configuration, Seahorse::Model::Operation.new.tap do |o|
2218
+ o.name = "PutEventConfiguration"
2219
+ o.http_method = "POST"
2220
+ o.http_request_uri = "/"
2221
+ o.input = Shapes::ShapeRef.new(shape: PutEventConfigurationRequest)
2222
+ o.output = Shapes::ShapeRef.new(shape: PutEventConfigurationResponse)
2223
+ o.errors << Shapes::ShapeRef.new(shape: EventDataStoreARNInvalidException)
2224
+ o.errors << Shapes::ShapeRef.new(shape: EventDataStoreNotFoundException)
2225
+ o.errors << Shapes::ShapeRef.new(shape: InvalidEventDataStoreStatusException)
2226
+ o.errors << Shapes::ShapeRef.new(shape: InvalidEventDataStoreCategoryException)
2227
+ o.errors << Shapes::ShapeRef.new(shape: InactiveEventDataStoreException)
2228
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
2229
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
2230
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2231
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2232
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
2233
+ o.errors << Shapes::ShapeRef.new(shape: CloudTrailARNInvalidException)
2234
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2235
+ o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
2236
+ o.errors << Shapes::ShapeRef.new(shape: NoManagementAccountSLRExistsException)
2237
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientDependencyServiceAccessPermissionException)
2238
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientIAMAccessPermissionException)
2239
+ end)
2240
+
2160
2241
  api.add_operation(:put_event_selectors, Seahorse::Model::Operation.new.tap do |o|
2161
2242
  o.name = "PutEventSelectors"
2162
2243
  o.http_method = "POST"
@@ -2235,6 +2316,7 @@ module Aws::CloudTrail
2235
2316
  o.errors << Shapes::ShapeRef.new(shape: OrganizationsNotInUseException)
2236
2317
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
2237
2318
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
2319
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientIAMAccessPermissionException)
2238
2320
  end)
2239
2321
 
2240
2322
  api.add_operation(:remove_tags, Seahorse::Model::Operation.new.tap do |o|
@@ -2321,6 +2403,7 @@ module Aws::CloudTrail
2321
2403
  o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
2322
2404
  o.errors << Shapes::ShapeRef.new(shape: NoManagementAccountSLRExistsException)
2323
2405
  o.errors << Shapes::ShapeRef.new(shape: InsufficientDependencyServiceAccessPermissionException)
2406
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2324
2407
  end)
2325
2408
 
2326
2409
  api.add_operation(:start_import, Seahorse::Model::Operation.new.tap do |o|
@@ -2402,6 +2485,7 @@ module Aws::CloudTrail
2402
2485
  o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
2403
2486
  o.errors << Shapes::ShapeRef.new(shape: NoManagementAccountSLRExistsException)
2404
2487
  o.errors << Shapes::ShapeRef.new(shape: InsufficientDependencyServiceAccessPermissionException)
2488
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2405
2489
  end)
2406
2490
 
2407
2491
  api.add_operation(:stop_import, Seahorse::Model::Operation.new.tap do |o|
@@ -59,6 +59,7 @@ module Aws::CloudTrail
59
59
  # * {InsightNotEnabledException}
60
60
  # * {InsufficientDependencyServiceAccessPermissionException}
61
61
  # * {InsufficientEncryptionPolicyException}
62
+ # * {InsufficientIAMAccessPermissionException}
62
63
  # * {InsufficientS3BucketPolicyException}
63
64
  # * {InsufficientSnsTopicPolicyException}
64
65
  # * {InvalidCloudWatchLogsLogGroupArnException}
@@ -439,6 +440,16 @@ module Aws::CloudTrail
439
440
  end
440
441
  end
441
442
 
443
+ class InsufficientIAMAccessPermissionException < ServiceError
444
+
445
+ # @param [Seahorse::Client::RequestContext] context
446
+ # @param [String] message
447
+ # @param [Aws::CloudTrail::Types::InsufficientIAMAccessPermissionException] data
448
+ def initialize(context, message, data = Aws::EmptyStructure.new)
449
+ super(context, message, data)
450
+ end
451
+ end
452
+
442
453
  class InsufficientS3BucketPolicyException < ServiceError
443
454
 
444
455
  # @param [Seahorse::Client::RequestContext] context
@@ -371,6 +371,28 @@ module Aws::CloudTrail
371
371
  #
372
372
  class ConflictException < Aws::EmptyStructure; end
373
373
 
374
+ # An object that contains information types to be included in CloudTrail
375
+ # enriched events.
376
+ #
377
+ # @!attribute [rw] type
378
+ # Specifies the type of the event record field in ContextKeySelector.
379
+ # Valid values include RequestContext, TagContext.
380
+ # @return [String]
381
+ #
382
+ # @!attribute [rw] equals
383
+ # A list of keys defined by Type to be included in CloudTrail enriched
384
+ # events.
385
+ # @return [Array<String>]
386
+ #
387
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ContextKeySelector AWS API Documentation
388
+ #
389
+ class ContextKeySelector < Struct.new(
390
+ :type,
391
+ :equals)
392
+ SENSITIVE = []
393
+ include Aws::Structure
394
+ end
395
+
374
396
  # @!attribute [rw] name
375
397
  # The name of the channel.
376
398
  # @return [String]
@@ -2034,6 +2056,45 @@ module Aws::CloudTrail
2034
2056
  include Aws::Structure
2035
2057
  end
2036
2058
 
2059
+ # @!attribute [rw] event_data_store
2060
+ # The Amazon Resource Name (ARN) or ID suffix of the ARN of the event
2061
+ # data store for which you want to retrieve event configuration
2062
+ # settings.
2063
+ # @return [String]
2064
+ #
2065
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventConfigurationRequest AWS API Documentation
2066
+ #
2067
+ class GetEventConfigurationRequest < Struct.new(
2068
+ :event_data_store)
2069
+ SENSITIVE = []
2070
+ include Aws::Structure
2071
+ end
2072
+
2073
+ # @!attribute [rw] event_data_store_arn
2074
+ # The Amazon Resource Name (ARN) or ID suffix of the ARN of the event
2075
+ # data store for which the event configuration settings are returned.
2076
+ # @return [String]
2077
+ #
2078
+ # @!attribute [rw] max_event_size
2079
+ # The maximum allowed size for events stored in the specified event
2080
+ # data store.
2081
+ # @return [String]
2082
+ #
2083
+ # @!attribute [rw] context_key_selectors
2084
+ # The list of context key selectors that are configured for the event
2085
+ # data store.
2086
+ # @return [Array<Types::ContextKeySelector>]
2087
+ #
2088
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventConfigurationResponse AWS API Documentation
2089
+ #
2090
+ class GetEventConfigurationResponse < Struct.new(
2091
+ :event_data_store_arn,
2092
+ :max_event_size,
2093
+ :context_key_selectors)
2094
+ SENSITIVE = []
2095
+ include Aws::Structure
2096
+ end
2097
+
2037
2098
  # @!attribute [rw] event_data_store
2038
2099
  # The ARN (or ID suffix of the ARN) of the event data store about
2039
2100
  # which you want information.
@@ -2894,6 +2955,15 @@ module Aws::CloudTrail
2894
2955
  #
2895
2956
  class InsufficientEncryptionPolicyException < Aws::EmptyStructure; end
2896
2957
 
2958
+ # The task can't be completed because you are signed in with an account
2959
+ # that lacks permissions to view or create a service-linked role. Sign
2960
+ # in with an account that has the required permissions and then try
2961
+ # again.
2962
+ #
2963
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InsufficientIAMAccessPermissionException AWS API Documentation
2964
+ #
2965
+ class InsufficientIAMAccessPermissionException < Aws::EmptyStructure; end
2966
+
2897
2967
  # This exception is thrown when the policy on the S3 bucket is not
2898
2968
  # sufficient.
2899
2969
  #
@@ -3937,6 +4007,58 @@ module Aws::CloudTrail
3937
4007
  include Aws::Structure
3938
4008
  end
3939
4009
 
4010
+ # @!attribute [rw] event_data_store
4011
+ # The Amazon Resource Name (ARN) or ID suffix of the ARN of the event
4012
+ # data store for which you want to update event configuration
4013
+ # settings.
4014
+ # @return [String]
4015
+ #
4016
+ # @!attribute [rw] max_event_size
4017
+ # The maximum allowed size for events to be stored in the specified
4018
+ # event data store. If you are using context key selectors,
4019
+ # MaxEventSize must be set to Large.
4020
+ # @return [String]
4021
+ #
4022
+ # @!attribute [rw] context_key_selectors
4023
+ # A list of context key selectors that will be included to provide
4024
+ # enriched event data.
4025
+ # @return [Array<Types::ContextKeySelector>]
4026
+ #
4027
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventConfigurationRequest AWS API Documentation
4028
+ #
4029
+ class PutEventConfigurationRequest < Struct.new(
4030
+ :event_data_store,
4031
+ :max_event_size,
4032
+ :context_key_selectors)
4033
+ SENSITIVE = []
4034
+ include Aws::Structure
4035
+ end
4036
+
4037
+ # @!attribute [rw] event_data_store_arn
4038
+ # The Amazon Resource Name (ARN) or ID suffix of the ARN of the event
4039
+ # data store for which the event configuration settings were updated.
4040
+ # @return [String]
4041
+ #
4042
+ # @!attribute [rw] max_event_size
4043
+ # The maximum allowed size for events stored in the specified event
4044
+ # data store.
4045
+ # @return [String]
4046
+ #
4047
+ # @!attribute [rw] context_key_selectors
4048
+ # The list of context key selectors that are configured for the event
4049
+ # data store.
4050
+ # @return [Array<Types::ContextKeySelector>]
4051
+ #
4052
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventConfigurationResponse AWS API Documentation
4053
+ #
4054
+ class PutEventConfigurationResponse < Struct.new(
4055
+ :event_data_store_arn,
4056
+ :max_event_size,
4057
+ :context_key_selectors)
4058
+ SENSITIVE = []
4059
+ include Aws::Structure
4060
+ end
4061
+
3940
4062
  # @!attribute [rw] trail_name
3941
4063
  # Specifies the name of the trail or trail ARN. If you specify a trail
3942
4064
  # name, the string must meet the following requirements:
@@ -54,7 +54,7 @@ module Aws::CloudTrail
54
54
  autoload :EndpointProvider, 'aws-sdk-cloudtrail/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-cloudtrail/endpoints'
56
56
 
57
- GEM_VERSION = '1.104.0'
57
+ GEM_VERSION = '1.105.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -419,6 +419,18 @@ module Aws
419
419
  ) -> _GetDashboardResponseSuccess
420
420
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDashboardResponseSuccess
421
421
 
422
+ interface _GetEventConfigurationResponseSuccess
423
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetEventConfigurationResponse]
424
+ def event_data_store_arn: () -> ::String
425
+ def max_event_size: () -> ("Standard" | "Large")
426
+ def context_key_selectors: () -> ::Array[Types::ContextKeySelector]
427
+ end
428
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudTrail/Client.html#get_event_configuration-instance_method
429
+ def get_event_configuration: (
430
+ ?event_data_store: ::String
431
+ ) -> _GetEventConfigurationResponseSuccess
432
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEventConfigurationResponseSuccess
433
+
422
434
  interface _GetEventDataStoreResponseSuccess
423
435
  include ::Seahorse::Client::_ResponseSuccess[Types::GetEventDataStoreResponse]
424
436
  def event_data_store_arn: () -> ::String
@@ -716,6 +728,25 @@ module Aws
716
728
  ) -> _LookupEventsResponseSuccess
717
729
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _LookupEventsResponseSuccess
718
730
 
731
+ interface _PutEventConfigurationResponseSuccess
732
+ include ::Seahorse::Client::_ResponseSuccess[Types::PutEventConfigurationResponse]
733
+ def event_data_store_arn: () -> ::String
734
+ def max_event_size: () -> ("Standard" | "Large")
735
+ def context_key_selectors: () -> ::Array[Types::ContextKeySelector]
736
+ end
737
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudTrail/Client.html#put_event_configuration-instance_method
738
+ def put_event_configuration: (
739
+ ?event_data_store: ::String,
740
+ max_event_size: ("Standard" | "Large"),
741
+ context_key_selectors: Array[
742
+ {
743
+ type: ("TagContext" | "RequestContext"),
744
+ equals: Array[::String]
745
+ },
746
+ ]
747
+ ) -> _PutEventConfigurationResponseSuccess
748
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutEventConfigurationResponseSuccess
749
+
719
750
  interface _PutEventSelectorsResponseSuccess
720
751
  include ::Seahorse::Client::_ResponseSuccess[Types::PutEventSelectorsResponse]
721
752
  def trail_arn: () -> ::String
data/sig/errors.rbs CHANGED
@@ -75,6 +75,8 @@ module Aws
75
75
  end
76
76
  class InsufficientEncryptionPolicyException < ::Aws::Errors::ServiceError
77
77
  end
78
+ class InsufficientIAMAccessPermissionException < ::Aws::Errors::ServiceError
79
+ end
78
80
  class InsufficientS3BucketPolicyException < ::Aws::Errors::ServiceError
79
81
  end
80
82
  class InsufficientSnsTopicPolicyException < ::Aws::Errors::ServiceError
data/sig/types.rbs CHANGED
@@ -105,6 +105,12 @@ module Aws::CloudTrail
105
105
  class ConflictException < Aws::EmptyStructure
106
106
  end
107
107
 
108
+ class ContextKeySelector
109
+ attr_accessor type: ("TagContext" | "RequestContext")
110
+ attr_accessor equals: ::Array[::String]
111
+ SENSITIVE: []
112
+ end
113
+
108
114
  class CreateChannelRequest
109
115
  attr_accessor name: ::String
110
116
  attr_accessor source: ::String
@@ -438,6 +444,18 @@ module Aws::CloudTrail
438
444
  SENSITIVE: []
439
445
  end
440
446
 
447
+ class GetEventConfigurationRequest
448
+ attr_accessor event_data_store: ::String
449
+ SENSITIVE: []
450
+ end
451
+
452
+ class GetEventConfigurationResponse
453
+ attr_accessor event_data_store_arn: ::String
454
+ attr_accessor max_event_size: ("Standard" | "Large")
455
+ attr_accessor context_key_selectors: ::Array[Types::ContextKeySelector]
456
+ SENSITIVE: []
457
+ end
458
+
441
459
  class GetEventDataStoreRequest
442
460
  attr_accessor event_data_store: ::String
443
461
  SENSITIVE: []
@@ -636,6 +654,9 @@ module Aws::CloudTrail
636
654
  class InsufficientEncryptionPolicyException < Aws::EmptyStructure
637
655
  end
638
656
 
657
+ class InsufficientIAMAccessPermissionException < Aws::EmptyStructure
658
+ end
659
+
639
660
  class InsufficientS3BucketPolicyException < Aws::EmptyStructure
640
661
  end
641
662
 
@@ -931,6 +952,20 @@ module Aws::CloudTrail
931
952
  SENSITIVE: []
932
953
  end
933
954
 
955
+ class PutEventConfigurationRequest
956
+ attr_accessor event_data_store: ::String
957
+ attr_accessor max_event_size: ("Standard" | "Large")
958
+ attr_accessor context_key_selectors: ::Array[Types::ContextKeySelector]
959
+ SENSITIVE: []
960
+ end
961
+
962
+ class PutEventConfigurationResponse
963
+ attr_accessor event_data_store_arn: ::String
964
+ attr_accessor max_event_size: ("Standard" | "Large")
965
+ attr_accessor context_key_selectors: ::Array[Types::ContextKeySelector]
966
+ SENSITIVE: []
967
+ end
968
+
934
969
  class PutEventSelectorsRequest
935
970
  attr_accessor trail_name: ::String
936
971
  attr_accessor event_selectors: ::Array[Types::EventSelector]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudtrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.104.0
4
+ version: 1.105.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services