aws-sdk-cloudtrail 1.53.0 → 1.54.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudtrail/client.rb +131 -8
- data/lib/aws-sdk-cloudtrail/client_api.rb +119 -3
- data/lib/aws-sdk-cloudtrail/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-cloudtrail/endpoint_provider.rb +83 -83
- data/lib/aws-sdk-cloudtrail/endpoints.rb +28 -0
- data/lib/aws-sdk-cloudtrail/errors.rb +77 -0
- data/lib/aws-sdk-cloudtrail/plugins/endpoints.rb +4 -0
- data/lib/aws-sdk-cloudtrail/types.rb +229 -10
- data/lib/aws-sdk-cloudtrail.rb +1 -1
- metadata +2 -2
@@ -95,6 +95,20 @@ module Aws::CloudTrail
|
|
95
95
|
end
|
96
96
|
end
|
97
97
|
|
98
|
+
class DeregisterOrganizationDelegatedAdmin
|
99
|
+
def self.build(context)
|
100
|
+
unless context.config.regional_endpoint
|
101
|
+
endpoint = context.config.endpoint.to_s
|
102
|
+
end
|
103
|
+
Aws::CloudTrail::EndpointParameters.new(
|
104
|
+
region: context.config.region,
|
105
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
106
|
+
use_fips: context.config.use_fips_endpoint,
|
107
|
+
endpoint: endpoint,
|
108
|
+
)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
98
112
|
class DescribeQuery
|
99
113
|
def self.build(context)
|
100
114
|
unless context.config.regional_endpoint
|
@@ -389,6 +403,20 @@ module Aws::CloudTrail
|
|
389
403
|
end
|
390
404
|
end
|
391
405
|
|
406
|
+
class RegisterOrganizationDelegatedAdmin
|
407
|
+
def self.build(context)
|
408
|
+
unless context.config.regional_endpoint
|
409
|
+
endpoint = context.config.endpoint.to_s
|
410
|
+
end
|
411
|
+
Aws::CloudTrail::EndpointParameters.new(
|
412
|
+
region: context.config.region,
|
413
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
414
|
+
use_fips: context.config.use_fips_endpoint,
|
415
|
+
endpoint: endpoint,
|
416
|
+
)
|
417
|
+
end
|
418
|
+
end
|
419
|
+
|
392
420
|
class RemoveTags
|
393
421
|
def self.build(context)
|
394
422
|
unless context.config.regional_endpoint
|
@@ -28,6 +28,10 @@ module Aws::CloudTrail
|
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
30
|
# * {AccountHasOngoingImportException}
|
31
|
+
# * {AccountNotFoundException}
|
32
|
+
# * {AccountNotRegisteredException}
|
33
|
+
# * {AccountRegisteredException}
|
34
|
+
# * {CannotDelegateManagementAccountException}
|
31
35
|
# * {ChannelARNInvalidException}
|
32
36
|
# * {ChannelNotFoundException}
|
33
37
|
# * {CloudTrailARNInvalidException}
|
@@ -35,6 +39,7 @@ module Aws::CloudTrail
|
|
35
39
|
# * {CloudTrailInvalidClientTokenIdException}
|
36
40
|
# * {CloudWatchLogsDeliveryUnavailableException}
|
37
41
|
# * {ConflictException}
|
42
|
+
# * {DelegatedAdminAccountLimitExceededException}
|
38
43
|
# * {EventDataStoreARNInvalidException}
|
39
44
|
# * {EventDataStoreAlreadyExistsException}
|
40
45
|
# * {EventDataStoreHasOngoingImportException}
|
@@ -79,6 +84,8 @@ module Aws::CloudTrail
|
|
79
84
|
# * {KmsKeyNotFoundException}
|
80
85
|
# * {MaxConcurrentQueriesException}
|
81
86
|
# * {MaximumNumberOfTrailsExceededException}
|
87
|
+
# * {NoManagementAccountSLRExistsException}
|
88
|
+
# * {NotOrganizationManagementAccountException}
|
82
89
|
# * {NotOrganizationMasterAccountException}
|
83
90
|
# * {OperationNotPermittedException}
|
84
91
|
# * {OrganizationNotInAllFeaturesModeException}
|
@@ -109,6 +116,46 @@ module Aws::CloudTrail
|
|
109
116
|
end
|
110
117
|
end
|
111
118
|
|
119
|
+
class AccountNotFoundException < ServiceError
|
120
|
+
|
121
|
+
# @param [Seahorse::Client::RequestContext] context
|
122
|
+
# @param [String] message
|
123
|
+
# @param [Aws::CloudTrail::Types::AccountNotFoundException] data
|
124
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
125
|
+
super(context, message, data)
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
class AccountNotRegisteredException < ServiceError
|
130
|
+
|
131
|
+
# @param [Seahorse::Client::RequestContext] context
|
132
|
+
# @param [String] message
|
133
|
+
# @param [Aws::CloudTrail::Types::AccountNotRegisteredException] data
|
134
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
135
|
+
super(context, message, data)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
class AccountRegisteredException < ServiceError
|
140
|
+
|
141
|
+
# @param [Seahorse::Client::RequestContext] context
|
142
|
+
# @param [String] message
|
143
|
+
# @param [Aws::CloudTrail::Types::AccountRegisteredException] data
|
144
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
145
|
+
super(context, message, data)
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
class CannotDelegateManagementAccountException < ServiceError
|
150
|
+
|
151
|
+
# @param [Seahorse::Client::RequestContext] context
|
152
|
+
# @param [String] message
|
153
|
+
# @param [Aws::CloudTrail::Types::CannotDelegateManagementAccountException] data
|
154
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
155
|
+
super(context, message, data)
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
112
159
|
class ChannelARNInvalidException < ServiceError
|
113
160
|
|
114
161
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -179,6 +226,16 @@ module Aws::CloudTrail
|
|
179
226
|
end
|
180
227
|
end
|
181
228
|
|
229
|
+
class DelegatedAdminAccountLimitExceededException < ServiceError
|
230
|
+
|
231
|
+
# @param [Seahorse::Client::RequestContext] context
|
232
|
+
# @param [String] message
|
233
|
+
# @param [Aws::CloudTrail::Types::DelegatedAdminAccountLimitExceededException] data
|
234
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
235
|
+
super(context, message, data)
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
182
239
|
class EventDataStoreARNInvalidException < ServiceError
|
183
240
|
|
184
241
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -619,6 +676,26 @@ module Aws::CloudTrail
|
|
619
676
|
end
|
620
677
|
end
|
621
678
|
|
679
|
+
class NoManagementAccountSLRExistsException < ServiceError
|
680
|
+
|
681
|
+
# @param [Seahorse::Client::RequestContext] context
|
682
|
+
# @param [String] message
|
683
|
+
# @param [Aws::CloudTrail::Types::NoManagementAccountSLRExistsException] data
|
684
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
685
|
+
super(context, message, data)
|
686
|
+
end
|
687
|
+
end
|
688
|
+
|
689
|
+
class NotOrganizationManagementAccountException < ServiceError
|
690
|
+
|
691
|
+
# @param [Seahorse::Client::RequestContext] context
|
692
|
+
# @param [String] message
|
693
|
+
# @param [Aws::CloudTrail::Types::NotOrganizationManagementAccountException] data
|
694
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
695
|
+
super(context, message, data)
|
696
|
+
end
|
697
|
+
end
|
698
|
+
|
622
699
|
class NotOrganizationMasterAccountException < ServiceError
|
623
700
|
|
624
701
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -68,6 +68,8 @@ module Aws::CloudTrail
|
|
68
68
|
Aws::CloudTrail::Endpoints::DeleteEventDataStore.build(context)
|
69
69
|
when :delete_trail
|
70
70
|
Aws::CloudTrail::Endpoints::DeleteTrail.build(context)
|
71
|
+
when :deregister_organization_delegated_admin
|
72
|
+
Aws::CloudTrail::Endpoints::DeregisterOrganizationDelegatedAdmin.build(context)
|
71
73
|
when :describe_query
|
72
74
|
Aws::CloudTrail::Endpoints::DescribeQuery.build(context)
|
73
75
|
when :describe_trails
|
@@ -110,6 +112,8 @@ module Aws::CloudTrail
|
|
110
112
|
Aws::CloudTrail::Endpoints::PutEventSelectors.build(context)
|
111
113
|
when :put_insight_selectors
|
112
114
|
Aws::CloudTrail::Endpoints::PutInsightSelectors.build(context)
|
115
|
+
when :register_organization_delegated_admin
|
116
|
+
Aws::CloudTrail::Endpoints::RegisterOrganizationDelegatedAdmin.build(context)
|
113
117
|
when :remove_tags
|
114
118
|
Aws::CloudTrail::Endpoints::RemoveTags.build(context)
|
115
119
|
when :restore_event_data_store
|
@@ -17,6 +17,27 @@ module Aws::CloudTrail
|
|
17
17
|
#
|
18
18
|
class AccountHasOngoingImportException < Aws::EmptyStructure; end
|
19
19
|
|
20
|
+
# This exception is thrown when when the specified account is not found
|
21
|
+
# or not part of an organization.
|
22
|
+
#
|
23
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AccountNotFoundException AWS API Documentation
|
24
|
+
#
|
25
|
+
class AccountNotFoundException < Aws::EmptyStructure; end
|
26
|
+
|
27
|
+
# This exception is thrown when the specified account is not registered
|
28
|
+
# as the CloudTrail delegated administrator.
|
29
|
+
#
|
30
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AccountNotRegisteredException AWS API Documentation
|
31
|
+
#
|
32
|
+
class AccountNotRegisteredException < Aws::EmptyStructure; end
|
33
|
+
|
34
|
+
# This exception is thrown when the account is already registered as the
|
35
|
+
# CloudTrail delegated administrator.
|
36
|
+
#
|
37
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AccountRegisteredException AWS API Documentation
|
38
|
+
#
|
39
|
+
class AccountRegisteredException < Aws::EmptyStructure; end
|
40
|
+
|
20
41
|
# Specifies the tags to add to a trail or event data store.
|
21
42
|
#
|
22
43
|
# @note When making an API call, you may pass AddTagsRequest
|
@@ -329,7 +350,7 @@ module Aws::CloudTrail
|
|
329
350
|
# data as a hash:
|
330
351
|
#
|
331
352
|
# {
|
332
|
-
# event_data_store: "EventDataStoreArn",
|
353
|
+
# event_data_store: "EventDataStoreArn",
|
333
354
|
# query_id: "UUID", # required
|
334
355
|
# }
|
335
356
|
#
|
@@ -370,6 +391,13 @@ module Aws::CloudTrail
|
|
370
391
|
include Aws::Structure
|
371
392
|
end
|
372
393
|
|
394
|
+
# This exception is thrown when the management account of an
|
395
|
+
# organization is registered as the CloudTrail delegated administrator.
|
396
|
+
#
|
397
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CannotDelegateManagementAccountException AWS API Documentation
|
398
|
+
#
|
399
|
+
class CannotDelegateManagementAccountException < Aws::EmptyStructure; end
|
400
|
+
|
373
401
|
# Contains information about a returned CloudTrail channel.
|
374
402
|
#
|
375
403
|
# @!attribute [rw] channel_arn
|
@@ -485,6 +513,7 @@ module Aws::CloudTrail
|
|
485
513
|
# value: "TagValue",
|
486
514
|
# },
|
487
515
|
# ],
|
516
|
+
# kms_key_id: "EventDataStoreKmsKeyId",
|
488
517
|
# }
|
489
518
|
#
|
490
519
|
# @!attribute [rw] name
|
@@ -528,6 +557,40 @@ module Aws::CloudTrail
|
|
528
557
|
# A list of tags.
|
529
558
|
# @return [Array<Types::Tag>]
|
530
559
|
#
|
560
|
+
# @!attribute [rw] kms_key_id
|
561
|
+
# Specifies the KMS key ID to use to encrypt the events delivered by
|
562
|
+
# CloudTrail. The value can be an alias name prefixed by `alias/`, a
|
563
|
+
# fully specified ARN to an alias, a fully specified ARN to a key, or
|
564
|
+
# a globally unique identifier.
|
565
|
+
#
|
566
|
+
# Disabling or deleting the KMS key, or removing CloudTrail
|
567
|
+
# permissions on the key, prevents CloudTrail from logging events to
|
568
|
+
# the event data store, and prevents users from querying the data in
|
569
|
+
# the event data store that was encrypted with the key. After you
|
570
|
+
# associate an event data store with a KMS key, the KMS key cannot be
|
571
|
+
# removed or changed. Before you disable or delete a KMS key that you
|
572
|
+
# are using with an event data store, delete or back up your event
|
573
|
+
# data store.
|
574
|
+
#
|
575
|
+
# CloudTrail also supports KMS multi-Region keys. For more information
|
576
|
+
# about multi-Region keys, see [Using multi-Region keys][1] in the
|
577
|
+
# *Key Management Service Developer Guide*.
|
578
|
+
#
|
579
|
+
# Examples:
|
580
|
+
#
|
581
|
+
# * `alias/MyAliasName`
|
582
|
+
#
|
583
|
+
# * `arn:aws:kms:us-east-2:123456789012:alias/MyAliasName`
|
584
|
+
#
|
585
|
+
# * `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
|
586
|
+
#
|
587
|
+
# * `12345678-1234-1234-1234-123456789012`
|
588
|
+
#
|
589
|
+
#
|
590
|
+
#
|
591
|
+
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html
|
592
|
+
# @return [String]
|
593
|
+
#
|
531
594
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateEventDataStoreRequest AWS API Documentation
|
532
595
|
#
|
533
596
|
class CreateEventDataStoreRequest < Struct.new(
|
@@ -537,7 +600,8 @@ module Aws::CloudTrail
|
|
537
600
|
:organization_enabled,
|
538
601
|
:retention_period,
|
539
602
|
:termination_protection_enabled,
|
540
|
-
:tags_list
|
603
|
+
:tags_list,
|
604
|
+
:kms_key_id)
|
541
605
|
SENSITIVE = []
|
542
606
|
include Aws::Structure
|
543
607
|
end
|
@@ -592,6 +656,14 @@ module Aws::CloudTrail
|
|
592
656
|
# than the time shown in `CreatedTimestamp`.
|
593
657
|
# @return [Time]
|
594
658
|
#
|
659
|
+
# @!attribute [rw] kms_key_id
|
660
|
+
# Specifies the KMS key ID that encrypts the events delivered by
|
661
|
+
# CloudTrail. The value is a fully specified ARN to a KMS key in the
|
662
|
+
# following format.
|
663
|
+
#
|
664
|
+
# `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
|
665
|
+
# @return [String]
|
666
|
+
#
|
595
667
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateEventDataStoreResponse AWS API Documentation
|
596
668
|
#
|
597
669
|
class CreateEventDataStoreResponse < Struct.new(
|
@@ -605,7 +677,8 @@ module Aws::CloudTrail
|
|
605
677
|
:termination_protection_enabled,
|
606
678
|
:tags_list,
|
607
679
|
:created_timestamp,
|
608
|
-
:updated_timestamp
|
680
|
+
:updated_timestamp,
|
681
|
+
:kms_key_id)
|
609
682
|
SENSITIVE = []
|
610
683
|
include Aws::Structure
|
611
684
|
end
|
@@ -1026,6 +1099,13 @@ module Aws::CloudTrail
|
|
1026
1099
|
include Aws::Structure
|
1027
1100
|
end
|
1028
1101
|
|
1102
|
+
# This exception is thrown when the maximum number of CloudTrail
|
1103
|
+
# delegated administrators is reached.
|
1104
|
+
#
|
1105
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DelegatedAdminAccountLimitExceededException AWS API Documentation
|
1106
|
+
#
|
1107
|
+
class DelegatedAdminAccountLimitExceededException < Aws::EmptyStructure; end
|
1108
|
+
|
1029
1109
|
# @note When making an API call, you may pass DeleteEventDataStoreRequest
|
1030
1110
|
# data as a hash:
|
1031
1111
|
#
|
@@ -1080,11 +1160,43 @@ module Aws::CloudTrail
|
|
1080
1160
|
#
|
1081
1161
|
class DeleteTrailResponse < Aws::EmptyStructure; end
|
1082
1162
|
|
1163
|
+
# Removes CloudTrail delegated administrator permissions from a
|
1164
|
+
# specified member account in an organization that is currently
|
1165
|
+
# designated as a delegated administrator.
|
1166
|
+
#
|
1167
|
+
# @note When making an API call, you may pass DeregisterOrganizationDelegatedAdminRequest
|
1168
|
+
# data as a hash:
|
1169
|
+
#
|
1170
|
+
# {
|
1171
|
+
# delegated_admin_account_id: "AccountId", # required
|
1172
|
+
# }
|
1173
|
+
#
|
1174
|
+
# @!attribute [rw] delegated_admin_account_id
|
1175
|
+
# A delegated administrator account ID. This is a member account in an
|
1176
|
+
# organization that is currently designated as a delegated
|
1177
|
+
# administrator.
|
1178
|
+
# @return [String]
|
1179
|
+
#
|
1180
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeregisterOrganizationDelegatedAdminRequest AWS API Documentation
|
1181
|
+
#
|
1182
|
+
class DeregisterOrganizationDelegatedAdminRequest < Struct.new(
|
1183
|
+
:delegated_admin_account_id)
|
1184
|
+
SENSITIVE = []
|
1185
|
+
include Aws::Structure
|
1186
|
+
end
|
1187
|
+
|
1188
|
+
# Returns the following response if successful. Otherwise, returns an
|
1189
|
+
# error.
|
1190
|
+
#
|
1191
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeregisterOrganizationDelegatedAdminResponse AWS API Documentation
|
1192
|
+
#
|
1193
|
+
class DeregisterOrganizationDelegatedAdminResponse < Aws::EmptyStructure; end
|
1194
|
+
|
1083
1195
|
# @note When making an API call, you may pass DescribeQueryRequest
|
1084
1196
|
# data as a hash:
|
1085
1197
|
#
|
1086
1198
|
# {
|
1087
|
-
# event_data_store: "EventDataStoreArn",
|
1199
|
+
# event_data_store: "EventDataStoreArn",
|
1088
1200
|
# query_id: "UUID", # required
|
1089
1201
|
# }
|
1090
1202
|
#
|
@@ -1642,6 +1754,14 @@ module Aws::CloudTrail
|
|
1642
1754
|
# shown in `CreatedTimestamp`.
|
1643
1755
|
# @return [Time]
|
1644
1756
|
#
|
1757
|
+
# @!attribute [rw] kms_key_id
|
1758
|
+
# Specifies the KMS key ID that encrypts the events delivered by
|
1759
|
+
# CloudTrail. The value is a fully specified ARN to a KMS key in the
|
1760
|
+
# following format.
|
1761
|
+
#
|
1762
|
+
# `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
|
1763
|
+
# @return [String]
|
1764
|
+
#
|
1645
1765
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventDataStoreResponse AWS API Documentation
|
1646
1766
|
#
|
1647
1767
|
class GetEventDataStoreResponse < Struct.new(
|
@@ -1654,7 +1774,8 @@ module Aws::CloudTrail
|
|
1654
1774
|
:retention_period,
|
1655
1775
|
:termination_protection_enabled,
|
1656
1776
|
:created_timestamp,
|
1657
|
-
:updated_timestamp
|
1777
|
+
:updated_timestamp,
|
1778
|
+
:kms_key_id)
|
1658
1779
|
SENSITIVE = []
|
1659
1780
|
include Aws::Structure
|
1660
1781
|
end
|
@@ -1856,7 +1977,7 @@ module Aws::CloudTrail
|
|
1856
1977
|
# data as a hash:
|
1857
1978
|
#
|
1858
1979
|
# {
|
1859
|
-
# event_data_store: "EventDataStoreArn",
|
1980
|
+
# event_data_store: "EventDataStoreArn",
|
1860
1981
|
# query_id: "UUID", # required
|
1861
1982
|
# next_token: "PaginationToken",
|
1862
1983
|
# max_query_results: 1,
|
@@ -2551,7 +2672,7 @@ module Aws::CloudTrail
|
|
2551
2672
|
class InvalidTrailNameException < Aws::EmptyStructure; end
|
2552
2673
|
|
2553
2674
|
# This exception is thrown when there is an issue with the specified KMS
|
2554
|
-
# key and the trail can
|
2675
|
+
# key and the trail or event data store can't be updated.
|
2555
2676
|
#
|
2556
2677
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/KmsException AWS API Documentation
|
2557
2678
|
#
|
@@ -3131,6 +3252,20 @@ module Aws::CloudTrail
|
|
3131
3252
|
#
|
3132
3253
|
class MaximumNumberOfTrailsExceededException < Aws::EmptyStructure; end
|
3133
3254
|
|
3255
|
+
# This exception is thrown when the management account does not have a
|
3256
|
+
# service-linked role.
|
3257
|
+
#
|
3258
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/NoManagementAccountSLRExistsException AWS API Documentation
|
3259
|
+
#
|
3260
|
+
class NoManagementAccountSLRExistsException < Aws::EmptyStructure; end
|
3261
|
+
|
3262
|
+
# This exception is thrown when the account making the request is not
|
3263
|
+
# the organization's management account.
|
3264
|
+
#
|
3265
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/NotOrganizationManagementAccountException AWS API Documentation
|
3266
|
+
#
|
3267
|
+
class NotOrganizationManagementAccountException < Aws::EmptyStructure; end
|
3268
|
+
|
3134
3269
|
# This exception is thrown when the Amazon Web Services account making
|
3135
3270
|
# the request to create or update an organization trail or event data
|
3136
3271
|
# store is not the management account for an organization in
|
@@ -3464,6 +3599,36 @@ module Aws::CloudTrail
|
|
3464
3599
|
include Aws::Structure
|
3465
3600
|
end
|
3466
3601
|
|
3602
|
+
# Specifies an organization member account ID as a CloudTrail delegated
|
3603
|
+
# administrator.
|
3604
|
+
#
|
3605
|
+
# @note When making an API call, you may pass RegisterOrganizationDelegatedAdminRequest
|
3606
|
+
# data as a hash:
|
3607
|
+
#
|
3608
|
+
# {
|
3609
|
+
# member_account_id: "AccountId", # required
|
3610
|
+
# }
|
3611
|
+
#
|
3612
|
+
# @!attribute [rw] member_account_id
|
3613
|
+
# An organization member account ID that you want to designate as a
|
3614
|
+
# delegated administrator.
|
3615
|
+
# @return [String]
|
3616
|
+
#
|
3617
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RegisterOrganizationDelegatedAdminRequest AWS API Documentation
|
3618
|
+
#
|
3619
|
+
class RegisterOrganizationDelegatedAdminRequest < Struct.new(
|
3620
|
+
:member_account_id)
|
3621
|
+
SENSITIVE = []
|
3622
|
+
include Aws::Structure
|
3623
|
+
end
|
3624
|
+
|
3625
|
+
# Returns the following response if successful. Otherwise, returns an
|
3626
|
+
# error.
|
3627
|
+
#
|
3628
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RegisterOrganizationDelegatedAdminResponse AWS API Documentation
|
3629
|
+
#
|
3630
|
+
class RegisterOrganizationDelegatedAdminResponse < Aws::EmptyStructure; end
|
3631
|
+
|
3467
3632
|
# Specifies the tags to remove from a trail or event data store.
|
3468
3633
|
#
|
3469
3634
|
# @note When making an API call, you may pass RemoveTagsRequest
|
@@ -3640,6 +3805,14 @@ module Aws::CloudTrail
|
|
3640
3805
|
# than the time shown in `CreatedTimestamp`.
|
3641
3806
|
# @return [Time]
|
3642
3807
|
#
|
3808
|
+
# @!attribute [rw] kms_key_id
|
3809
|
+
# Specifies the KMS key ID that encrypts the events delivered by
|
3810
|
+
# CloudTrail. The value is a fully specified ARN to a KMS key in the
|
3811
|
+
# following format.
|
3812
|
+
#
|
3813
|
+
# `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
|
3814
|
+
# @return [String]
|
3815
|
+
#
|
3643
3816
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RestoreEventDataStoreResponse AWS API Documentation
|
3644
3817
|
#
|
3645
3818
|
class RestoreEventDataStoreResponse < Struct.new(
|
@@ -3652,7 +3825,8 @@ module Aws::CloudTrail
|
|
3652
3825
|
:retention_period,
|
3653
3826
|
:termination_protection_enabled,
|
3654
3827
|
:created_timestamp,
|
3655
|
-
:updated_timestamp
|
3828
|
+
:updated_timestamp,
|
3829
|
+
:kms_key_id)
|
3656
3830
|
SENSITIVE = []
|
3657
3831
|
include Aws::Structure
|
3658
3832
|
end
|
@@ -4243,6 +4417,7 @@ module Aws::CloudTrail
|
|
4243
4417
|
# organization_enabled: false,
|
4244
4418
|
# retention_period: 1,
|
4245
4419
|
# termination_protection_enabled: false,
|
4420
|
+
# kms_key_id: "EventDataStoreKmsKeyId",
|
4246
4421
|
# }
|
4247
4422
|
#
|
4248
4423
|
# @!attribute [rw] event_data_store
|
@@ -4279,6 +4454,40 @@ module Aws::CloudTrail
|
|
4279
4454
|
# store cannot be automatically deleted.
|
4280
4455
|
# @return [Boolean]
|
4281
4456
|
#
|
4457
|
+
# @!attribute [rw] kms_key_id
|
4458
|
+
# Specifies the KMS key ID to use to encrypt the events delivered by
|
4459
|
+
# CloudTrail. The value can be an alias name prefixed by `alias/`, a
|
4460
|
+
# fully specified ARN to an alias, a fully specified ARN to a key, or
|
4461
|
+
# a globally unique identifier.
|
4462
|
+
#
|
4463
|
+
# Disabling or deleting the KMS key, or removing CloudTrail
|
4464
|
+
# permissions on the key, prevents CloudTrail from logging events to
|
4465
|
+
# the event data store, and prevents users from querying the data in
|
4466
|
+
# the event data store that was encrypted with the key. After you
|
4467
|
+
# associate an event data store with a KMS key, the KMS key cannot be
|
4468
|
+
# removed or changed. Before you disable or delete a KMS key that you
|
4469
|
+
# are using with an event data store, delete or back up your event
|
4470
|
+
# data store.
|
4471
|
+
#
|
4472
|
+
# CloudTrail also supports KMS multi-Region keys. For more information
|
4473
|
+
# about multi-Region keys, see [Using multi-Region keys][1] in the
|
4474
|
+
# *Key Management Service Developer Guide*.
|
4475
|
+
#
|
4476
|
+
# Examples:
|
4477
|
+
#
|
4478
|
+
# * `alias/MyAliasName`
|
4479
|
+
#
|
4480
|
+
# * `arn:aws:kms:us-east-2:123456789012:alias/MyAliasName`
|
4481
|
+
#
|
4482
|
+
# * `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
|
4483
|
+
#
|
4484
|
+
# * `12345678-1234-1234-1234-123456789012`
|
4485
|
+
#
|
4486
|
+
#
|
4487
|
+
#
|
4488
|
+
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html
|
4489
|
+
# @return [String]
|
4490
|
+
#
|
4282
4491
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateEventDataStoreRequest AWS API Documentation
|
4283
4492
|
#
|
4284
4493
|
class UpdateEventDataStoreRequest < Struct.new(
|
@@ -4288,7 +4497,8 @@ module Aws::CloudTrail
|
|
4288
4497
|
:multi_region_enabled,
|
4289
4498
|
:organization_enabled,
|
4290
4499
|
:retention_period,
|
4291
|
-
:termination_protection_enabled
|
4500
|
+
:termination_protection_enabled,
|
4501
|
+
:kms_key_id)
|
4292
4502
|
SENSITIVE = []
|
4293
4503
|
include Aws::Structure
|
4294
4504
|
end
|
@@ -4340,6 +4550,14 @@ module Aws::CloudTrail
|
|
4340
4550
|
# shown in `CreatedTimestamp`.
|
4341
4551
|
# @return [Time]
|
4342
4552
|
#
|
4553
|
+
# @!attribute [rw] kms_key_id
|
4554
|
+
# Specifies the KMS key ID that encrypts the events delivered by
|
4555
|
+
# CloudTrail. The value is a fully specified ARN to a KMS key in the
|
4556
|
+
# following format.
|
4557
|
+
#
|
4558
|
+
# `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
|
4559
|
+
# @return [String]
|
4560
|
+
#
|
4343
4561
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateEventDataStoreResponse AWS API Documentation
|
4344
4562
|
#
|
4345
4563
|
class UpdateEventDataStoreResponse < Struct.new(
|
@@ -4352,7 +4570,8 @@ module Aws::CloudTrail
|
|
4352
4570
|
:retention_period,
|
4353
4571
|
:termination_protection_enabled,
|
4354
4572
|
:created_timestamp,
|
4355
|
-
:updated_timestamp
|
4573
|
+
:updated_timestamp,
|
4574
|
+
:kms_key_id)
|
4356
4575
|
SENSITIVE = []
|
4357
4576
|
include Aws::Structure
|
4358
4577
|
end
|
data/lib/aws-sdk-cloudtrail.rb
CHANGED
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.
|
4
|
+
version: 1.54.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: 2022-
|
11
|
+
date: 2022-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|