aws-sdk-cloudtrail 1.55.0 → 1.57.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 +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudtrail/client.rb +346 -50
- data/lib/aws-sdk-cloudtrail/client_api.rb +194 -1
- data/lib/aws-sdk-cloudtrail/endpoint_provider.rb +41 -103
- data/lib/aws-sdk-cloudtrail/endpoints.rb +84 -0
- data/lib/aws-sdk-cloudtrail/errors.rb +77 -0
- data/lib/aws-sdk-cloudtrail/plugins/endpoints.rb +12 -0
- data/lib/aws-sdk-cloudtrail/types.rb +532 -72
- data/lib/aws-sdk-cloudtrail.rb +1 -1
- metadata +2 -2
@@ -39,6 +39,20 @@ module Aws::CloudTrail
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
+
class CreateChannel
|
43
|
+
def self.build(context)
|
44
|
+
unless context.config.regional_endpoint
|
45
|
+
endpoint = context.config.endpoint.to_s
|
46
|
+
end
|
47
|
+
Aws::CloudTrail::EndpointParameters.new(
|
48
|
+
region: context.config.region,
|
49
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
50
|
+
use_fips: context.config.use_fips_endpoint,
|
51
|
+
endpoint: endpoint,
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
42
56
|
class CreateEventDataStore
|
43
57
|
def self.build(context)
|
44
58
|
unless context.config.regional_endpoint
|
@@ -67,6 +81,20 @@ module Aws::CloudTrail
|
|
67
81
|
end
|
68
82
|
end
|
69
83
|
|
84
|
+
class DeleteChannel
|
85
|
+
def self.build(context)
|
86
|
+
unless context.config.regional_endpoint
|
87
|
+
endpoint = context.config.endpoint.to_s
|
88
|
+
end
|
89
|
+
Aws::CloudTrail::EndpointParameters.new(
|
90
|
+
region: context.config.region,
|
91
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
92
|
+
use_fips: context.config.use_fips_endpoint,
|
93
|
+
endpoint: endpoint,
|
94
|
+
)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
70
98
|
class DeleteEventDataStore
|
71
99
|
def self.build(context)
|
72
100
|
unless context.config.regional_endpoint
|
@@ -81,6 +109,20 @@ module Aws::CloudTrail
|
|
81
109
|
end
|
82
110
|
end
|
83
111
|
|
112
|
+
class DeleteResourcePolicy
|
113
|
+
def self.build(context)
|
114
|
+
unless context.config.regional_endpoint
|
115
|
+
endpoint = context.config.endpoint.to_s
|
116
|
+
end
|
117
|
+
Aws::CloudTrail::EndpointParameters.new(
|
118
|
+
region: context.config.region,
|
119
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
120
|
+
use_fips: context.config.use_fips_endpoint,
|
121
|
+
endpoint: endpoint,
|
122
|
+
)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
84
126
|
class DeleteTrail
|
85
127
|
def self.build(context)
|
86
128
|
unless context.config.regional_endpoint
|
@@ -221,6 +263,20 @@ module Aws::CloudTrail
|
|
221
263
|
end
|
222
264
|
end
|
223
265
|
|
266
|
+
class GetResourcePolicy
|
267
|
+
def self.build(context)
|
268
|
+
unless context.config.regional_endpoint
|
269
|
+
endpoint = context.config.endpoint.to_s
|
270
|
+
end
|
271
|
+
Aws::CloudTrail::EndpointParameters.new(
|
272
|
+
region: context.config.region,
|
273
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
274
|
+
use_fips: context.config.use_fips_endpoint,
|
275
|
+
endpoint: endpoint,
|
276
|
+
)
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
224
280
|
class GetTrail
|
225
281
|
def self.build(context)
|
226
282
|
unless context.config.regional_endpoint
|
@@ -403,6 +459,20 @@ module Aws::CloudTrail
|
|
403
459
|
end
|
404
460
|
end
|
405
461
|
|
462
|
+
class PutResourcePolicy
|
463
|
+
def self.build(context)
|
464
|
+
unless context.config.regional_endpoint
|
465
|
+
endpoint = context.config.endpoint.to_s
|
466
|
+
end
|
467
|
+
Aws::CloudTrail::EndpointParameters.new(
|
468
|
+
region: context.config.region,
|
469
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
470
|
+
use_fips: context.config.use_fips_endpoint,
|
471
|
+
endpoint: endpoint,
|
472
|
+
)
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
406
476
|
class RegisterOrganizationDelegatedAdmin
|
407
477
|
def self.build(context)
|
408
478
|
unless context.config.regional_endpoint
|
@@ -515,6 +585,20 @@ module Aws::CloudTrail
|
|
515
585
|
end
|
516
586
|
end
|
517
587
|
|
588
|
+
class UpdateChannel
|
589
|
+
def self.build(context)
|
590
|
+
unless context.config.regional_endpoint
|
591
|
+
endpoint = context.config.endpoint.to_s
|
592
|
+
end
|
593
|
+
Aws::CloudTrail::EndpointParameters.new(
|
594
|
+
region: context.config.region,
|
595
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
596
|
+
use_fips: context.config.use_fips_endpoint,
|
597
|
+
endpoint: endpoint,
|
598
|
+
)
|
599
|
+
end
|
600
|
+
end
|
601
|
+
|
518
602
|
class UpdateEventDataStore
|
519
603
|
def self.build(context)
|
520
604
|
unless context.config.regional_endpoint
|
@@ -33,6 +33,9 @@ module Aws::CloudTrail
|
|
33
33
|
# * {AccountRegisteredException}
|
34
34
|
# * {CannotDelegateManagementAccountException}
|
35
35
|
# * {ChannelARNInvalidException}
|
36
|
+
# * {ChannelAlreadyExistsException}
|
37
|
+
# * {ChannelExistsForEDSException}
|
38
|
+
# * {ChannelMaxLimitExceededException}
|
36
39
|
# * {ChannelNotFoundException}
|
37
40
|
# * {CloudTrailARNInvalidException}
|
38
41
|
# * {CloudTrailAccessNotEnabledException}
|
@@ -75,6 +78,7 @@ module Aws::CloudTrail
|
|
75
78
|
# * {InvalidS3BucketNameException}
|
76
79
|
# * {InvalidS3PrefixException}
|
77
80
|
# * {InvalidSnsTopicNameException}
|
81
|
+
# * {InvalidSourceException}
|
78
82
|
# * {InvalidTagParameterException}
|
79
83
|
# * {InvalidTimeRangeException}
|
80
84
|
# * {InvalidTokenException}
|
@@ -91,7 +95,10 @@ module Aws::CloudTrail
|
|
91
95
|
# * {OrganizationNotInAllFeaturesModeException}
|
92
96
|
# * {OrganizationsNotInUseException}
|
93
97
|
# * {QueryIdNotFoundException}
|
98
|
+
# * {ResourceARNNotValidException}
|
94
99
|
# * {ResourceNotFoundException}
|
100
|
+
# * {ResourcePolicyNotFoundException}
|
101
|
+
# * {ResourcePolicyNotValidException}
|
95
102
|
# * {ResourceTypeNotSupportedException}
|
96
103
|
# * {S3BucketDoesNotExistException}
|
97
104
|
# * {TagsLimitExceededException}
|
@@ -166,6 +173,36 @@ module Aws::CloudTrail
|
|
166
173
|
end
|
167
174
|
end
|
168
175
|
|
176
|
+
class ChannelAlreadyExistsException < ServiceError
|
177
|
+
|
178
|
+
# @param [Seahorse::Client::RequestContext] context
|
179
|
+
# @param [String] message
|
180
|
+
# @param [Aws::CloudTrail::Types::ChannelAlreadyExistsException] data
|
181
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
182
|
+
super(context, message, data)
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
class ChannelExistsForEDSException < ServiceError
|
187
|
+
|
188
|
+
# @param [Seahorse::Client::RequestContext] context
|
189
|
+
# @param [String] message
|
190
|
+
# @param [Aws::CloudTrail::Types::ChannelExistsForEDSException] data
|
191
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
192
|
+
super(context, message, data)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
class ChannelMaxLimitExceededException < ServiceError
|
197
|
+
|
198
|
+
# @param [Seahorse::Client::RequestContext] context
|
199
|
+
# @param [String] message
|
200
|
+
# @param [Aws::CloudTrail::Types::ChannelMaxLimitExceededException] data
|
201
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
202
|
+
super(context, message, data)
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
169
206
|
class ChannelNotFoundException < ServiceError
|
170
207
|
|
171
208
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -586,6 +623,16 @@ module Aws::CloudTrail
|
|
586
623
|
end
|
587
624
|
end
|
588
625
|
|
626
|
+
class InvalidSourceException < ServiceError
|
627
|
+
|
628
|
+
# @param [Seahorse::Client::RequestContext] context
|
629
|
+
# @param [String] message
|
630
|
+
# @param [Aws::CloudTrail::Types::InvalidSourceException] data
|
631
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
632
|
+
super(context, message, data)
|
633
|
+
end
|
634
|
+
end
|
635
|
+
|
589
636
|
class InvalidTagParameterException < ServiceError
|
590
637
|
|
591
638
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -746,6 +793,16 @@ module Aws::CloudTrail
|
|
746
793
|
end
|
747
794
|
end
|
748
795
|
|
796
|
+
class ResourceARNNotValidException < ServiceError
|
797
|
+
|
798
|
+
# @param [Seahorse::Client::RequestContext] context
|
799
|
+
# @param [String] message
|
800
|
+
# @param [Aws::CloudTrail::Types::ResourceARNNotValidException] data
|
801
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
802
|
+
super(context, message, data)
|
803
|
+
end
|
804
|
+
end
|
805
|
+
|
749
806
|
class ResourceNotFoundException < ServiceError
|
750
807
|
|
751
808
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -756,6 +813,26 @@ module Aws::CloudTrail
|
|
756
813
|
end
|
757
814
|
end
|
758
815
|
|
816
|
+
class ResourcePolicyNotFoundException < ServiceError
|
817
|
+
|
818
|
+
# @param [Seahorse::Client::RequestContext] context
|
819
|
+
# @param [String] message
|
820
|
+
# @param [Aws::CloudTrail::Types::ResourcePolicyNotFoundException] data
|
821
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
822
|
+
super(context, message, data)
|
823
|
+
end
|
824
|
+
end
|
825
|
+
|
826
|
+
class ResourcePolicyNotValidException < ServiceError
|
827
|
+
|
828
|
+
# @param [Seahorse::Client::RequestContext] context
|
829
|
+
# @param [String] message
|
830
|
+
# @param [Aws::CloudTrail::Types::ResourcePolicyNotValidException] data
|
831
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
832
|
+
super(context, message, data)
|
833
|
+
end
|
834
|
+
end
|
835
|
+
|
759
836
|
class ResourceTypeNotSupportedException < ServiceError
|
760
837
|
|
761
838
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -60,12 +60,18 @@ module Aws::CloudTrail
|
|
60
60
|
Aws::CloudTrail::Endpoints::AddTags.build(context)
|
61
61
|
when :cancel_query
|
62
62
|
Aws::CloudTrail::Endpoints::CancelQuery.build(context)
|
63
|
+
when :create_channel
|
64
|
+
Aws::CloudTrail::Endpoints::CreateChannel.build(context)
|
63
65
|
when :create_event_data_store
|
64
66
|
Aws::CloudTrail::Endpoints::CreateEventDataStore.build(context)
|
65
67
|
when :create_trail
|
66
68
|
Aws::CloudTrail::Endpoints::CreateTrail.build(context)
|
69
|
+
when :delete_channel
|
70
|
+
Aws::CloudTrail::Endpoints::DeleteChannel.build(context)
|
67
71
|
when :delete_event_data_store
|
68
72
|
Aws::CloudTrail::Endpoints::DeleteEventDataStore.build(context)
|
73
|
+
when :delete_resource_policy
|
74
|
+
Aws::CloudTrail::Endpoints::DeleteResourcePolicy.build(context)
|
69
75
|
when :delete_trail
|
70
76
|
Aws::CloudTrail::Endpoints::DeleteTrail.build(context)
|
71
77
|
when :deregister_organization_delegated_admin
|
@@ -86,6 +92,8 @@ module Aws::CloudTrail
|
|
86
92
|
Aws::CloudTrail::Endpoints::GetInsightSelectors.build(context)
|
87
93
|
when :get_query_results
|
88
94
|
Aws::CloudTrail::Endpoints::GetQueryResults.build(context)
|
95
|
+
when :get_resource_policy
|
96
|
+
Aws::CloudTrail::Endpoints::GetResourcePolicy.build(context)
|
89
97
|
when :get_trail
|
90
98
|
Aws::CloudTrail::Endpoints::GetTrail.build(context)
|
91
99
|
when :get_trail_status
|
@@ -112,6 +120,8 @@ module Aws::CloudTrail
|
|
112
120
|
Aws::CloudTrail::Endpoints::PutEventSelectors.build(context)
|
113
121
|
when :put_insight_selectors
|
114
122
|
Aws::CloudTrail::Endpoints::PutInsightSelectors.build(context)
|
123
|
+
when :put_resource_policy
|
124
|
+
Aws::CloudTrail::Endpoints::PutResourcePolicy.build(context)
|
115
125
|
when :register_organization_delegated_admin
|
116
126
|
Aws::CloudTrail::Endpoints::RegisterOrganizationDelegatedAdmin.build(context)
|
117
127
|
when :remove_tags
|
@@ -128,6 +138,8 @@ module Aws::CloudTrail
|
|
128
138
|
Aws::CloudTrail::Endpoints::StopImport.build(context)
|
129
139
|
when :stop_logging
|
130
140
|
Aws::CloudTrail::Endpoints::StopLogging.build(context)
|
141
|
+
when :update_channel
|
142
|
+
Aws::CloudTrail::Endpoints::UpdateChannel.build(context)
|
131
143
|
when :update_event_data_store
|
132
144
|
Aws::CloudTrail::Endpoints::UpdateEventDataStore.build(context)
|
133
145
|
when :update_trail
|