aws-sdk-cloudtrail 1.52.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudtrail/client.rb +150 -10
- data/lib/aws-sdk-cloudtrail/client_api.rb +119 -3
- data/lib/aws-sdk-cloudtrail/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-cloudtrail/endpoint_provider.rb +120 -0
- data/lib/aws-sdk-cloudtrail/endpoints.rb +547 -0
- data/lib/aws-sdk-cloudtrail/errors.rb +77 -0
- data/lib/aws-sdk-cloudtrail/plugins/endpoints.rb +144 -0
- data/lib/aws-sdk-cloudtrail/types.rb +229 -10
- data/lib/aws-sdk-cloudtrail.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,144 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::CloudTrail
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::CloudTrail::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::CloudTrail::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::CloudTrail::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :add_tags
|
60
|
+
Aws::CloudTrail::Endpoints::AddTags.build(context)
|
61
|
+
when :cancel_query
|
62
|
+
Aws::CloudTrail::Endpoints::CancelQuery.build(context)
|
63
|
+
when :create_event_data_store
|
64
|
+
Aws::CloudTrail::Endpoints::CreateEventDataStore.build(context)
|
65
|
+
when :create_trail
|
66
|
+
Aws::CloudTrail::Endpoints::CreateTrail.build(context)
|
67
|
+
when :delete_event_data_store
|
68
|
+
Aws::CloudTrail::Endpoints::DeleteEventDataStore.build(context)
|
69
|
+
when :delete_trail
|
70
|
+
Aws::CloudTrail::Endpoints::DeleteTrail.build(context)
|
71
|
+
when :deregister_organization_delegated_admin
|
72
|
+
Aws::CloudTrail::Endpoints::DeregisterOrganizationDelegatedAdmin.build(context)
|
73
|
+
when :describe_query
|
74
|
+
Aws::CloudTrail::Endpoints::DescribeQuery.build(context)
|
75
|
+
when :describe_trails
|
76
|
+
Aws::CloudTrail::Endpoints::DescribeTrails.build(context)
|
77
|
+
when :get_channel
|
78
|
+
Aws::CloudTrail::Endpoints::GetChannel.build(context)
|
79
|
+
when :get_event_data_store
|
80
|
+
Aws::CloudTrail::Endpoints::GetEventDataStore.build(context)
|
81
|
+
when :get_event_selectors
|
82
|
+
Aws::CloudTrail::Endpoints::GetEventSelectors.build(context)
|
83
|
+
when :get_import
|
84
|
+
Aws::CloudTrail::Endpoints::GetImport.build(context)
|
85
|
+
when :get_insight_selectors
|
86
|
+
Aws::CloudTrail::Endpoints::GetInsightSelectors.build(context)
|
87
|
+
when :get_query_results
|
88
|
+
Aws::CloudTrail::Endpoints::GetQueryResults.build(context)
|
89
|
+
when :get_trail
|
90
|
+
Aws::CloudTrail::Endpoints::GetTrail.build(context)
|
91
|
+
when :get_trail_status
|
92
|
+
Aws::CloudTrail::Endpoints::GetTrailStatus.build(context)
|
93
|
+
when :list_channels
|
94
|
+
Aws::CloudTrail::Endpoints::ListChannels.build(context)
|
95
|
+
when :list_event_data_stores
|
96
|
+
Aws::CloudTrail::Endpoints::ListEventDataStores.build(context)
|
97
|
+
when :list_import_failures
|
98
|
+
Aws::CloudTrail::Endpoints::ListImportFailures.build(context)
|
99
|
+
when :list_imports
|
100
|
+
Aws::CloudTrail::Endpoints::ListImports.build(context)
|
101
|
+
when :list_public_keys
|
102
|
+
Aws::CloudTrail::Endpoints::ListPublicKeys.build(context)
|
103
|
+
when :list_queries
|
104
|
+
Aws::CloudTrail::Endpoints::ListQueries.build(context)
|
105
|
+
when :list_tags
|
106
|
+
Aws::CloudTrail::Endpoints::ListTags.build(context)
|
107
|
+
when :list_trails
|
108
|
+
Aws::CloudTrail::Endpoints::ListTrails.build(context)
|
109
|
+
when :lookup_events
|
110
|
+
Aws::CloudTrail::Endpoints::LookupEvents.build(context)
|
111
|
+
when :put_event_selectors
|
112
|
+
Aws::CloudTrail::Endpoints::PutEventSelectors.build(context)
|
113
|
+
when :put_insight_selectors
|
114
|
+
Aws::CloudTrail::Endpoints::PutInsightSelectors.build(context)
|
115
|
+
when :register_organization_delegated_admin
|
116
|
+
Aws::CloudTrail::Endpoints::RegisterOrganizationDelegatedAdmin.build(context)
|
117
|
+
when :remove_tags
|
118
|
+
Aws::CloudTrail::Endpoints::RemoveTags.build(context)
|
119
|
+
when :restore_event_data_store
|
120
|
+
Aws::CloudTrail::Endpoints::RestoreEventDataStore.build(context)
|
121
|
+
when :start_import
|
122
|
+
Aws::CloudTrail::Endpoints::StartImport.build(context)
|
123
|
+
when :start_logging
|
124
|
+
Aws::CloudTrail::Endpoints::StartLogging.build(context)
|
125
|
+
when :start_query
|
126
|
+
Aws::CloudTrail::Endpoints::StartQuery.build(context)
|
127
|
+
when :stop_import
|
128
|
+
Aws::CloudTrail::Endpoints::StopImport.build(context)
|
129
|
+
when :stop_logging
|
130
|
+
Aws::CloudTrail::Endpoints::StopLogging.build(context)
|
131
|
+
when :update_event_data_store
|
132
|
+
Aws::CloudTrail::Endpoints::UpdateEventDataStore.build(context)
|
133
|
+
when :update_trail
|
134
|
+
Aws::CloudTrail::Endpoints::UpdateTrail.build(context)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
def add_handlers(handlers, _config)
|
140
|
+
handlers.add(Handler, step: :build, priority: 75)
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
@@ -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
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-cloudtrail/types'
|
15
15
|
require_relative 'aws-sdk-cloudtrail/client_api'
|
16
|
+
require_relative 'aws-sdk-cloudtrail/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-cloudtrail/client'
|
17
18
|
require_relative 'aws-sdk-cloudtrail/errors'
|
18
19
|
require_relative 'aws-sdk-cloudtrail/resource'
|
20
|
+
require_relative 'aws-sdk-cloudtrail/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-cloudtrail/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-cloudtrail/endpoints'
|
19
23
|
require_relative 'aws-sdk-cloudtrail/customizations'
|
20
24
|
|
21
25
|
# This module provides support for AWS CloudTrail. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-cloudtrail/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::CloudTrail
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.54.0'
|
52
56
|
|
53
57
|
end
|
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
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.165.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.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-cloudtrail/client.rb
|
60
60
|
- lib/aws-sdk-cloudtrail/client_api.rb
|
61
61
|
- lib/aws-sdk-cloudtrail/customizations.rb
|
62
|
+
- lib/aws-sdk-cloudtrail/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-cloudtrail/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-cloudtrail/endpoints.rb
|
62
65
|
- lib/aws-sdk-cloudtrail/errors.rb
|
66
|
+
- lib/aws-sdk-cloudtrail/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-cloudtrail/resource.rb
|
64
68
|
- lib/aws-sdk-cloudtrail/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|