aws-sdk-cloudtrail 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f50269188d3b46ac53482dc05cca469b755e933b
4
- data.tar.gz: 837e712f0885332fd6e3dd5948f36d061e26c621
3
+ metadata.gz: 860c2a77f30b4f7aba3c4a1443a2a31067008b06
4
+ data.tar.gz: 493798a2cdd62b836c8c3c85770c7450c735edee
5
5
  SHA512:
6
- metadata.gz: e29849b38e84fa46332fea99d723c1065065fcc473252a5970b9368cabfd27e93a9db7817930e3705c2fcb191549296eae83b76dfae0599ede692969b1ef976a
7
- data.tar.gz: bef70b0b2bf3890d79fcfe340bc2362dd74a3bb97580df614adf56794dc0ce00c12319f1138787b2a2aef83c9669f54d6fa06b4fe6c766281ed0bae0d1d25296
6
+ metadata.gz: '081b0c5d13570b27d6ed5e8969a9c7121c8f5cd8393a51062e94913a583f9a36404d852c5905c8e4b85c753908e131a7a33e47d000fefb275eec53aea53699f3'
7
+ data.tar.gz: 041ff5b74d228cf2175f9ed3b5256a93ba65a66a8bc60b7fbb7b544ccb2b28300eb14890f8624ff3882b366911ca8a3b67de7adfc0048191a931a28165b2313e
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-cloudtrail/customizations'
42
42
  # @service
43
43
  module Aws::CloudTrail
44
44
 
45
- GEM_VERSION = '1.6.0'
45
+ GEM_VERSION = '1.7.0'
46
46
 
47
47
  end
@@ -15,6 +15,7 @@ require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
15
15
  require 'aws-sdk-core/plugins/retry_errors.rb'
16
16
  require 'aws-sdk-core/plugins/global_configuration.rb'
17
17
  require 'aws-sdk-core/plugins/regional_endpoint.rb'
18
+ require 'aws-sdk-core/plugins/endpoint_discovery.rb'
18
19
  require 'aws-sdk-core/plugins/response_paging.rb'
19
20
  require 'aws-sdk-core/plugins/stub_responses.rb'
20
21
  require 'aws-sdk-core/plugins/idempotency_token.rb'
@@ -45,6 +46,7 @@ module Aws::CloudTrail
45
46
  add_plugin(Aws::Plugins::RetryErrors)
46
47
  add_plugin(Aws::Plugins::GlobalConfiguration)
47
48
  add_plugin(Aws::Plugins::RegionalEndpoint)
49
+ add_plugin(Aws::Plugins::EndpointDiscovery)
48
50
  add_plugin(Aws::Plugins::ResponsePaging)
49
51
  add_plugin(Aws::Plugins::StubResponses)
50
52
  add_plugin(Aws::Plugins::IdempotencyToken)
@@ -98,6 +100,10 @@ module Aws::CloudTrail
98
100
  #
99
101
  # @option options [String] :access_key_id
100
102
  #
103
+ # @option options [Boolean] :active_endpoint_cache (false)
104
+ # When set to `true`, a thread polling for endpoints will be running in
105
+ # the background every 60 secs (default). Defaults to `false`.
106
+ #
101
107
  # @option options [Boolean] :client_side_monitoring (false)
102
108
  # When `true`, client-side metrics will be collected for all API requests from
103
109
  # this client.
@@ -123,6 +129,21 @@ module Aws::CloudTrail
123
129
  # option. You should only configure an `:endpoint` when connecting
124
130
  # to test endpoints. This should be avalid HTTP(S) URI.
125
131
  #
132
+ # @option options [Integer] :endpoint_cache_max_entries (1000)
133
+ # Used for the maximum size limit of the LRU cache storing endpoints data
134
+ # for endpoint discovery enabled operations. Defaults to 1000.
135
+ #
136
+ # @option options [Integer] :endpoint_cache_max_threads (10)
137
+ # Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
138
+ #
139
+ # @option options [Integer] :endpoint_cache_poll_interval (60)
140
+ # When :endpoint_discovery and :active_endpoint_cache is enabled,
141
+ # Use this option to config the time interval in seconds for making
142
+ # requests fetching endpoints information. Defaults to 60 sec.
143
+ #
144
+ # @option options [Boolean] :endpoint_discovery (false)
145
+ # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
146
+ #
126
147
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
127
148
  # The log formatter.
128
149
  #
@@ -319,6 +340,13 @@ module Aws::CloudTrail
319
340
  #
320
341
  # * 12345678-1234-1234-1234-123456789012
321
342
  #
343
+ # @option params [Boolean] :is_organization_trail
344
+ # Specifies whether the trail is created for all accounts in an
345
+ # organization in AWS Organizations, or only for the current AWS
346
+ # account. The default is false, and cannot be true unless the call is
347
+ # made on behalf of an AWS account that is the master account for an
348
+ # organization in AWS Organizations.
349
+ #
322
350
  # @return [Types::CreateTrailResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
323
351
  #
324
352
  # * {Types::CreateTrailResponse#name #name} => String
@@ -333,6 +361,7 @@ module Aws::CloudTrail
333
361
  # * {Types::CreateTrailResponse#cloud_watch_logs_log_group_arn #cloud_watch_logs_log_group_arn} => String
334
362
  # * {Types::CreateTrailResponse#cloud_watch_logs_role_arn #cloud_watch_logs_role_arn} => String
335
363
  # * {Types::CreateTrailResponse#kms_key_id #kms_key_id} => String
364
+ # * {Types::CreateTrailResponse#is_organization_trail #is_organization_trail} => Boolean
336
365
  #
337
366
  # @example Request syntax with placeholder values
338
367
  #
@@ -347,6 +376,7 @@ module Aws::CloudTrail
347
376
  # cloud_watch_logs_log_group_arn: "String",
348
377
  # cloud_watch_logs_role_arn: "String",
349
378
  # kms_key_id: "String",
379
+ # is_organization_trail: false,
350
380
  # })
351
381
  #
352
382
  # @example Response structure
@@ -363,6 +393,7 @@ module Aws::CloudTrail
363
393
  # resp.cloud_watch_logs_log_group_arn #=> String
364
394
  # resp.cloud_watch_logs_role_arn #=> String
365
395
  # resp.kms_key_id #=> String
396
+ # resp.is_organization_trail #=> Boolean
366
397
  #
367
398
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateTrail AWS API Documentation
368
399
  #
@@ -429,7 +460,10 @@ module Aws::CloudTrail
429
460
  # @option params [Boolean] :include_shadow_trails
430
461
  # Specifies whether to include shadow trails in the response. A shadow
431
462
  # trail is the replication in a region of a trail that was created in a
432
- # different region. The default is true.
463
+ # different region, or in the case of an organization trail, the
464
+ # replication of an organization trail in member accounts. If you do not
465
+ # include shadow trails, organization trails in a member account and
466
+ # region replication trails will not be returned. The default is true.
433
467
  #
434
468
  # @return [Types::DescribeTrailsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
435
469
  #
@@ -459,6 +493,7 @@ module Aws::CloudTrail
459
493
  # resp.trail_list[0].cloud_watch_logs_role_arn #=> String
460
494
  # resp.trail_list[0].kms_key_id #=> String
461
495
  # resp.trail_list[0].has_custom_event_selectors #=> Boolean
496
+ # resp.trail_list[0].is_organization_trail #=> Boolean
462
497
  #
463
498
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeTrails AWS API Documentation
464
499
  #
@@ -1121,6 +1156,18 @@ module Aws::CloudTrail
1121
1156
  #
1122
1157
  # * 12345678-1234-1234-1234-123456789012
1123
1158
  #
1159
+ # @option params [Boolean] :is_organization_trail
1160
+ # Specifies whether the trail is applied to all accounts in an
1161
+ # organization in AWS Organizations, or only for the current AWS
1162
+ # account. The default is false, and cannot be true unless the call is
1163
+ # made on behalf of an AWS account that is the master account for an
1164
+ # organization in AWS Organizations. If the trail is not an organization
1165
+ # trail and this is set to true, the trail will be created in all AWS
1166
+ # accounts that belong to the organization. If the trail is an
1167
+ # organization trail and this is set to false, the trail will remain in
1168
+ # the current AWS account but be deleted from all member accounts in the
1169
+ # organization.
1170
+ #
1124
1171
  # @return [Types::UpdateTrailResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1125
1172
  #
1126
1173
  # * {Types::UpdateTrailResponse#name #name} => String
@@ -1135,6 +1182,7 @@ module Aws::CloudTrail
1135
1182
  # * {Types::UpdateTrailResponse#cloud_watch_logs_log_group_arn #cloud_watch_logs_log_group_arn} => String
1136
1183
  # * {Types::UpdateTrailResponse#cloud_watch_logs_role_arn #cloud_watch_logs_role_arn} => String
1137
1184
  # * {Types::UpdateTrailResponse#kms_key_id #kms_key_id} => String
1185
+ # * {Types::UpdateTrailResponse#is_organization_trail #is_organization_trail} => Boolean
1138
1186
  #
1139
1187
  # @example Request syntax with placeholder values
1140
1188
  #
@@ -1149,6 +1197,7 @@ module Aws::CloudTrail
1149
1197
  # cloud_watch_logs_log_group_arn: "String",
1150
1198
  # cloud_watch_logs_role_arn: "String",
1151
1199
  # kms_key_id: "String",
1200
+ # is_organization_trail: false,
1152
1201
  # })
1153
1202
  #
1154
1203
  # @example Response structure
@@ -1165,6 +1214,7 @@ module Aws::CloudTrail
1165
1214
  # resp.cloud_watch_logs_log_group_arn #=> String
1166
1215
  # resp.cloud_watch_logs_role_arn #=> String
1167
1216
  # resp.kms_key_id #=> String
1217
+ # resp.is_organization_trail #=> Boolean
1168
1218
  #
1169
1219
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateTrail AWS API Documentation
1170
1220
  #
@@ -1188,7 +1238,7 @@ module Aws::CloudTrail
1188
1238
  params: params,
1189
1239
  config: config)
1190
1240
  context[:gem_name] = 'aws-sdk-cloudtrail'
1191
- context[:gem_version] = '1.6.0'
1241
+ context[:gem_version] = '1.7.0'
1192
1242
  Seahorse::Client::Request.new(handlers, context)
1193
1243
  end
1194
1244
 
@@ -16,6 +16,7 @@ module Aws::CloudTrail
16
16
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
17
17
  ByteBuffer = Shapes::BlobShape.new(name: 'ByteBuffer')
18
18
  CloudTrailARNInvalidException = Shapes::StructureShape.new(name: 'CloudTrailARNInvalidException')
19
+ CloudTrailAccessNotEnabledException = Shapes::StructureShape.new(name: 'CloudTrailAccessNotEnabledException')
19
20
  CloudWatchLogsDeliveryUnavailableException = Shapes::StructureShape.new(name: 'CloudWatchLogsDeliveryUnavailableException')
20
21
  CreateTrailRequest = Shapes::StructureShape.new(name: 'CreateTrailRequest')
21
22
  CreateTrailResponse = Shapes::StructureShape.new(name: 'CreateTrailResponse')
@@ -35,6 +36,7 @@ module Aws::CloudTrail
35
36
  GetEventSelectorsResponse = Shapes::StructureShape.new(name: 'GetEventSelectorsResponse')
36
37
  GetTrailStatusRequest = Shapes::StructureShape.new(name: 'GetTrailStatusRequest')
37
38
  GetTrailStatusResponse = Shapes::StructureShape.new(name: 'GetTrailStatusResponse')
39
+ InsufficientDependencyServiceAccessPermissionException = Shapes::StructureShape.new(name: 'InsufficientDependencyServiceAccessPermissionException')
38
40
  InsufficientEncryptionPolicyException = Shapes::StructureShape.new(name: 'InsufficientEncryptionPolicyException')
39
41
  InsufficientS3BucketPolicyException = Shapes::StructureShape.new(name: 'InsufficientS3BucketPolicyException')
40
42
  InsufficientSnsTopicPolicyException = Shapes::StructureShape.new(name: 'InsufficientSnsTopicPolicyException')
@@ -69,7 +71,10 @@ module Aws::CloudTrail
69
71
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
70
72
  MaximumNumberOfTrailsExceededException = Shapes::StructureShape.new(name: 'MaximumNumberOfTrailsExceededException')
71
73
  NextToken = Shapes::StringShape.new(name: 'NextToken')
74
+ NotOrganizationMasterAccountException = Shapes::StructureShape.new(name: 'NotOrganizationMasterAccountException')
72
75
  OperationNotPermittedException = Shapes::StructureShape.new(name: 'OperationNotPermittedException')
76
+ OrganizationNotInAllFeaturesModeException = Shapes::StructureShape.new(name: 'OrganizationNotInAllFeaturesModeException')
77
+ OrganizationsNotInUseException = Shapes::StructureShape.new(name: 'OrganizationsNotInUseException')
73
78
  PublicKey = Shapes::StructureShape.new(name: 'PublicKey')
74
79
  PublicKeyList = Shapes::ListShape.new(name: 'PublicKeyList')
75
80
  PutEventSelectorsRequest = Shapes::StructureShape.new(name: 'PutEventSelectorsRequest')
@@ -119,6 +124,7 @@ module Aws::CloudTrail
119
124
  CreateTrailRequest.add_member(:cloud_watch_logs_log_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsLogGroupArn"))
120
125
  CreateTrailRequest.add_member(:cloud_watch_logs_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsRoleArn"))
121
126
  CreateTrailRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
127
+ CreateTrailRequest.add_member(:is_organization_trail, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsOrganizationTrail"))
122
128
  CreateTrailRequest.struct_class = Types::CreateTrailRequest
123
129
 
124
130
  CreateTrailResponse.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
@@ -133,6 +139,7 @@ module Aws::CloudTrail
133
139
  CreateTrailResponse.add_member(:cloud_watch_logs_log_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsLogGroupArn"))
134
140
  CreateTrailResponse.add_member(:cloud_watch_logs_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsRoleArn"))
135
141
  CreateTrailResponse.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
142
+ CreateTrailResponse.add_member(:is_organization_trail, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsOrganizationTrail"))
136
143
  CreateTrailResponse.struct_class = Types::CreateTrailResponse
137
144
 
138
145
  DataResource.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
@@ -304,6 +311,7 @@ module Aws::CloudTrail
304
311
  Trail.add_member(:cloud_watch_logs_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsRoleArn"))
305
312
  Trail.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
306
313
  Trail.add_member(:has_custom_event_selectors, Shapes::ShapeRef.new(shape: Boolean, location_name: "HasCustomEventSelectors"))
314
+ Trail.add_member(:is_organization_trail, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsOrganizationTrail"))
307
315
  Trail.struct_class = Types::Trail
308
316
 
309
317
  TrailList.member = Shapes::ShapeRef.new(shape: Trail)
@@ -320,6 +328,7 @@ module Aws::CloudTrail
320
328
  UpdateTrailRequest.add_member(:cloud_watch_logs_log_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsLogGroupArn"))
321
329
  UpdateTrailRequest.add_member(:cloud_watch_logs_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsRoleArn"))
322
330
  UpdateTrailRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
331
+ UpdateTrailRequest.add_member(:is_organization_trail, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsOrganizationTrail"))
323
332
  UpdateTrailRequest.struct_class = Types::UpdateTrailRequest
324
333
 
325
334
  UpdateTrailResponse.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
@@ -334,6 +343,7 @@ module Aws::CloudTrail
334
343
  UpdateTrailResponse.add_member(:cloud_watch_logs_log_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsLogGroupArn"))
335
344
  UpdateTrailResponse.add_member(:cloud_watch_logs_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsRoleArn"))
336
345
  UpdateTrailResponse.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
346
+ UpdateTrailResponse.add_member(:is_organization_trail, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsOrganizationTrail"))
337
347
  UpdateTrailResponse.struct_class = Types::UpdateTrailResponse
338
348
 
339
349
 
@@ -369,6 +379,7 @@ module Aws::CloudTrail
369
379
  o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
370
380
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
371
381
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
382
+ o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
372
383
  end)
373
384
 
374
385
  api.add_operation(:create_trail, Seahorse::Model::Operation.new.tap do |o|
@@ -398,6 +409,11 @@ module Aws::CloudTrail
398
409
  o.errors << Shapes::ShapeRef.new(shape: CloudWatchLogsDeliveryUnavailableException)
399
410
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
400
411
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
412
+ o.errors << Shapes::ShapeRef.new(shape: CloudTrailAccessNotEnabledException)
413
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientDependencyServiceAccessPermissionException)
414
+ o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
415
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationsNotInUseException)
416
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationNotInAllFeaturesModeException)
401
417
  end)
402
418
 
403
419
  api.add_operation(:delete_trail, Seahorse::Model::Operation.new.tap do |o|
@@ -409,6 +425,10 @@ module Aws::CloudTrail
409
425
  o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
410
426
  o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
411
427
  o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
428
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
429
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
430
+ o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
431
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientDependencyServiceAccessPermissionException)
412
432
  end)
413
433
 
414
434
  api.add_operation(:describe_trails, Seahorse::Model::Operation.new.tap do |o|
@@ -500,6 +520,8 @@ module Aws::CloudTrail
500
520
  o.errors << Shapes::ShapeRef.new(shape: InvalidEventSelectorsException)
501
521
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
502
522
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
523
+ o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
524
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientDependencyServiceAccessPermissionException)
503
525
  end)
504
526
 
505
527
  api.add_operation(:remove_tags, Seahorse::Model::Operation.new.tap do |o|
@@ -515,6 +537,7 @@ module Aws::CloudTrail
515
537
  o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
516
538
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
517
539
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
540
+ o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
518
541
  end)
519
542
 
520
543
  api.add_operation(:start_logging, Seahorse::Model::Operation.new.tap do |o|
@@ -526,6 +549,10 @@ module Aws::CloudTrail
526
549
  o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
527
550
  o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
528
551
  o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
552
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
553
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
554
+ o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
555
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientDependencyServiceAccessPermissionException)
529
556
  end)
530
557
 
531
558
  api.add_operation(:stop_logging, Seahorse::Model::Operation.new.tap do |o|
@@ -537,6 +564,10 @@ module Aws::CloudTrail
537
564
  o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
538
565
  o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
539
566
  o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
567
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
568
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
569
+ o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
570
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientDependencyServiceAccessPermissionException)
540
571
  end)
541
572
 
542
573
  api.add_operation(:update_trail, Seahorse::Model::Operation.new.tap do |o|
@@ -566,6 +597,11 @@ module Aws::CloudTrail
566
597
  o.errors << Shapes::ShapeRef.new(shape: CloudWatchLogsDeliveryUnavailableException)
567
598
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
568
599
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
600
+ o.errors << Shapes::ShapeRef.new(shape: CloudTrailAccessNotEnabledException)
601
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientDependencyServiceAccessPermissionException)
602
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationsNotInUseException)
603
+ o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
604
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationNotInAllFeaturesModeException)
569
605
  end)
570
606
  end
571
607
 
@@ -65,6 +65,7 @@ module Aws::CloudTrail
65
65
  # cloud_watch_logs_log_group_arn: "String",
66
66
  # cloud_watch_logs_role_arn: "String",
67
67
  # kms_key_id: "String",
68
+ # is_organization_trail: false,
68
69
  # }
69
70
  #
70
71
  # @!attribute [rw] name
@@ -165,6 +166,14 @@ module Aws::CloudTrail
165
166
  # * 12345678-1234-1234-1234-123456789012
166
167
  # @return [String]
167
168
  #
169
+ # @!attribute [rw] is_organization_trail
170
+ # Specifies whether the trail is created for all accounts in an
171
+ # organization in AWS Organizations, or only for the current AWS
172
+ # account. The default is false, and cannot be true unless the call is
173
+ # made on behalf of an AWS account that is the master account for an
174
+ # organization in AWS Organizations.
175
+ # @return [Boolean]
176
+ #
168
177
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateTrailRequest AWS API Documentation
169
178
  #
170
179
  class CreateTrailRequest < Struct.new(
@@ -177,7 +186,8 @@ module Aws::CloudTrail
177
186
  :enable_log_file_validation,
178
187
  :cloud_watch_logs_log_group_arn,
179
188
  :cloud_watch_logs_role_arn,
180
- :kms_key_id)
189
+ :kms_key_id,
190
+ :is_organization_trail)
181
191
  include Aws::Structure
182
192
  end
183
193
 
@@ -253,6 +263,10 @@ module Aws::CloudTrail
253
263
  # `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
254
264
  # @return [String]
255
265
  #
266
+ # @!attribute [rw] is_organization_trail
267
+ # Specifies whether the trail is an organization trail.
268
+ # @return [Boolean]
269
+ #
256
270
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateTrailResponse AWS API Documentation
257
271
  #
258
272
  class CreateTrailResponse < Struct.new(
@@ -267,7 +281,8 @@ module Aws::CloudTrail
267
281
  :log_file_validation_enabled,
268
282
  :cloud_watch_logs_log_group_arn,
269
283
  :cloud_watch_logs_role_arn,
270
- :kms_key_id)
284
+ :kms_key_id,
285
+ :is_organization_trail)
271
286
  include Aws::Structure
272
287
  end
273
288
 
@@ -461,7 +476,11 @@ module Aws::CloudTrail
461
476
  # @!attribute [rw] include_shadow_trails
462
477
  # Specifies whether to include shadow trails in the response. A shadow
463
478
  # trail is the replication in a region of a trail that was created in
464
- # a different region. The default is true.
479
+ # a different region, or in the case of an organization trail, the
480
+ # replication of an organization trail in member accounts. If you do
481
+ # not include shadow trails, organization trails in a member account
482
+ # and region replication trails will not be returned. The default is
483
+ # true.
465
484
  # @return [Boolean]
466
485
  #
467
486
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeTrailsRequest AWS API Documentation
@@ -1417,6 +1436,10 @@ module Aws::CloudTrail
1417
1436
  # Specifies if the trail has custom event selectors.
1418
1437
  # @return [Boolean]
1419
1438
  #
1439
+ # @!attribute [rw] is_organization_trail
1440
+ # Specifies whether the trail is an organization trail.
1441
+ # @return [Boolean]
1442
+ #
1420
1443
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/Trail AWS API Documentation
1421
1444
  #
1422
1445
  class Trail < Struct.new(
@@ -1433,7 +1456,8 @@ module Aws::CloudTrail
1433
1456
  :cloud_watch_logs_log_group_arn,
1434
1457
  :cloud_watch_logs_role_arn,
1435
1458
  :kms_key_id,
1436
- :has_custom_event_selectors)
1459
+ :has_custom_event_selectors,
1460
+ :is_organization_trail)
1437
1461
  include Aws::Structure
1438
1462
  end
1439
1463
 
@@ -1453,6 +1477,7 @@ module Aws::CloudTrail
1453
1477
  # cloud_watch_logs_log_group_arn: "String",
1454
1478
  # cloud_watch_logs_role_arn: "String",
1455
1479
  # kms_key_id: "String",
1480
+ # is_organization_trail: false,
1456
1481
  # }
1457
1482
  #
1458
1483
  # @!attribute [rw] name
@@ -1562,6 +1587,19 @@ module Aws::CloudTrail
1562
1587
  # * 12345678-1234-1234-1234-123456789012
1563
1588
  # @return [String]
1564
1589
  #
1590
+ # @!attribute [rw] is_organization_trail
1591
+ # Specifies whether the trail is applied to all accounts in an
1592
+ # organization in AWS Organizations, or only for the current AWS
1593
+ # account. The default is false, and cannot be true unless the call is
1594
+ # made on behalf of an AWS account that is the master account for an
1595
+ # organization in AWS Organizations. If the trail is not an
1596
+ # organization trail and this is set to true, the trail will be
1597
+ # created in all AWS accounts that belong to the organization. If the
1598
+ # trail is an organization trail and this is set to false, the trail
1599
+ # will remain in the current AWS account but be deleted from all
1600
+ # member accounts in the organization.
1601
+ # @return [Boolean]
1602
+ #
1565
1603
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateTrailRequest AWS API Documentation
1566
1604
  #
1567
1605
  class UpdateTrailRequest < Struct.new(
@@ -1574,7 +1612,8 @@ module Aws::CloudTrail
1574
1612
  :enable_log_file_validation,
1575
1613
  :cloud_watch_logs_log_group_arn,
1576
1614
  :cloud_watch_logs_role_arn,
1577
- :kms_key_id)
1615
+ :kms_key_id,
1616
+ :is_organization_trail)
1578
1617
  include Aws::Structure
1579
1618
  end
1580
1619
 
@@ -1650,6 +1689,10 @@ module Aws::CloudTrail
1650
1689
  # `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
1651
1690
  # @return [String]
1652
1691
  #
1692
+ # @!attribute [rw] is_organization_trail
1693
+ # Specifies whether the trail is an organization trail.
1694
+ # @return [Boolean]
1695
+ #
1653
1696
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateTrailResponse AWS API Documentation
1654
1697
  #
1655
1698
  class UpdateTrailResponse < Struct.new(
@@ -1664,7 +1707,8 @@ module Aws::CloudTrail
1664
1707
  :log_file_validation_enabled,
1665
1708
  :cloud_watch_logs_log_group_arn,
1666
1709
  :cloud_watch_logs_role_arn,
1667
- :kms_key_id)
1710
+ :kms_key_id,
1711
+ :is_organization_trail)
1668
1712
  include Aws::Structure
1669
1713
  end
1670
1714
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudtrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-24 00:00:00.000000000 Z
11
+ date: 2018-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.26.0
22
+ version: 3.37.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.26.0
32
+ version: 3.37.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement