aws-sdk-cloudtrail 1.0.0.rc1 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,563 +1,567 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module CloudTrail
10
- # @api private
11
- module ClientApi
12
-
13
- include Seahorse::Model
14
-
15
- AddTagsRequest = Shapes::StructureShape.new(name: 'AddTagsRequest')
16
- AddTagsResponse = Shapes::StructureShape.new(name: 'AddTagsResponse')
17
- Boolean = Shapes::BooleanShape.new(name: 'Boolean')
18
- ByteBuffer = Shapes::BlobShape.new(name: 'ByteBuffer')
19
- CloudTrailARNInvalidException = Shapes::StructureShape.new(name: 'CloudTrailARNInvalidException')
20
- CloudWatchLogsDeliveryUnavailableException = Shapes::StructureShape.new(name: 'CloudWatchLogsDeliveryUnavailableException')
21
- CreateTrailRequest = Shapes::StructureShape.new(name: 'CreateTrailRequest')
22
- CreateTrailResponse = Shapes::StructureShape.new(name: 'CreateTrailResponse')
23
- DataResource = Shapes::StructureShape.new(name: 'DataResource')
24
- DataResourceValues = Shapes::ListShape.new(name: 'DataResourceValues')
25
- DataResources = Shapes::ListShape.new(name: 'DataResources')
26
- Date = Shapes::TimestampShape.new(name: 'Date')
27
- DeleteTrailRequest = Shapes::StructureShape.new(name: 'DeleteTrailRequest')
28
- DeleteTrailResponse = Shapes::StructureShape.new(name: 'DeleteTrailResponse')
29
- DescribeTrailsRequest = Shapes::StructureShape.new(name: 'DescribeTrailsRequest')
30
- DescribeTrailsResponse = Shapes::StructureShape.new(name: 'DescribeTrailsResponse')
31
- Event = Shapes::StructureShape.new(name: 'Event')
32
- EventSelector = Shapes::StructureShape.new(name: 'EventSelector')
33
- EventSelectors = Shapes::ListShape.new(name: 'EventSelectors')
34
- EventsList = Shapes::ListShape.new(name: 'EventsList')
35
- GetEventSelectorsRequest = Shapes::StructureShape.new(name: 'GetEventSelectorsRequest')
36
- GetEventSelectorsResponse = Shapes::StructureShape.new(name: 'GetEventSelectorsResponse')
37
- GetTrailStatusRequest = Shapes::StructureShape.new(name: 'GetTrailStatusRequest')
38
- GetTrailStatusResponse = Shapes::StructureShape.new(name: 'GetTrailStatusResponse')
39
- InsufficientEncryptionPolicyException = Shapes::StructureShape.new(name: 'InsufficientEncryptionPolicyException')
40
- InsufficientS3BucketPolicyException = Shapes::StructureShape.new(name: 'InsufficientS3BucketPolicyException')
41
- InsufficientSnsTopicPolicyException = Shapes::StructureShape.new(name: 'InsufficientSnsTopicPolicyException')
42
- InvalidCloudWatchLogsLogGroupArnException = Shapes::StructureShape.new(name: 'InvalidCloudWatchLogsLogGroupArnException')
43
- InvalidCloudWatchLogsRoleArnException = Shapes::StructureShape.new(name: 'InvalidCloudWatchLogsRoleArnException')
44
- InvalidEventSelectorsException = Shapes::StructureShape.new(name: 'InvalidEventSelectorsException')
45
- InvalidHomeRegionException = Shapes::StructureShape.new(name: 'InvalidHomeRegionException')
46
- InvalidKmsKeyIdException = Shapes::StructureShape.new(name: 'InvalidKmsKeyIdException')
47
- InvalidLookupAttributesException = Shapes::StructureShape.new(name: 'InvalidLookupAttributesException')
48
- InvalidMaxResultsException = Shapes::StructureShape.new(name: 'InvalidMaxResultsException')
49
- InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
50
- InvalidParameterCombinationException = Shapes::StructureShape.new(name: 'InvalidParameterCombinationException')
51
- InvalidS3BucketNameException = Shapes::StructureShape.new(name: 'InvalidS3BucketNameException')
52
- InvalidS3PrefixException = Shapes::StructureShape.new(name: 'InvalidS3PrefixException')
53
- InvalidSnsTopicNameException = Shapes::StructureShape.new(name: 'InvalidSnsTopicNameException')
54
- InvalidTagParameterException = Shapes::StructureShape.new(name: 'InvalidTagParameterException')
55
- InvalidTimeRangeException = Shapes::StructureShape.new(name: 'InvalidTimeRangeException')
56
- InvalidTokenException = Shapes::StructureShape.new(name: 'InvalidTokenException')
57
- InvalidTrailNameException = Shapes::StructureShape.new(name: 'InvalidTrailNameException')
58
- KmsException = Shapes::StructureShape.new(name: 'KmsException')
59
- KmsKeyDisabledException = Shapes::StructureShape.new(name: 'KmsKeyDisabledException')
60
- KmsKeyNotFoundException = Shapes::StructureShape.new(name: 'KmsKeyNotFoundException')
61
- ListPublicKeysRequest = Shapes::StructureShape.new(name: 'ListPublicKeysRequest')
62
- ListPublicKeysResponse = Shapes::StructureShape.new(name: 'ListPublicKeysResponse')
63
- ListTagsRequest = Shapes::StructureShape.new(name: 'ListTagsRequest')
64
- ListTagsResponse = Shapes::StructureShape.new(name: 'ListTagsResponse')
65
- LookupAttribute = Shapes::StructureShape.new(name: 'LookupAttribute')
66
- LookupAttributeKey = Shapes::StringShape.new(name: 'LookupAttributeKey')
67
- LookupAttributesList = Shapes::ListShape.new(name: 'LookupAttributesList')
68
- LookupEventsRequest = Shapes::StructureShape.new(name: 'LookupEventsRequest')
69
- LookupEventsResponse = Shapes::StructureShape.new(name: 'LookupEventsResponse')
70
- MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
71
- MaximumNumberOfTrailsExceededException = Shapes::StructureShape.new(name: 'MaximumNumberOfTrailsExceededException')
72
- NextToken = Shapes::StringShape.new(name: 'NextToken')
73
- OperationNotPermittedException = Shapes::StructureShape.new(name: 'OperationNotPermittedException')
74
- PublicKey = Shapes::StructureShape.new(name: 'PublicKey')
75
- PublicKeyList = Shapes::ListShape.new(name: 'PublicKeyList')
76
- PutEventSelectorsRequest = Shapes::StructureShape.new(name: 'PutEventSelectorsRequest')
77
- PutEventSelectorsResponse = Shapes::StructureShape.new(name: 'PutEventSelectorsResponse')
78
- ReadWriteType = Shapes::StringShape.new(name: 'ReadWriteType')
79
- RemoveTagsRequest = Shapes::StructureShape.new(name: 'RemoveTagsRequest')
80
- RemoveTagsResponse = Shapes::StructureShape.new(name: 'RemoveTagsResponse')
81
- Resource = Shapes::StructureShape.new(name: 'Resource')
82
- ResourceIdList = Shapes::ListShape.new(name: 'ResourceIdList')
83
- ResourceList = Shapes::ListShape.new(name: 'ResourceList')
84
- ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
85
- ResourceTag = Shapes::StructureShape.new(name: 'ResourceTag')
86
- ResourceTagList = Shapes::ListShape.new(name: 'ResourceTagList')
87
- ResourceTypeNotSupportedException = Shapes::StructureShape.new(name: 'ResourceTypeNotSupportedException')
88
- S3BucketDoesNotExistException = Shapes::StructureShape.new(name: 'S3BucketDoesNotExistException')
89
- StartLoggingRequest = Shapes::StructureShape.new(name: 'StartLoggingRequest')
90
- StartLoggingResponse = Shapes::StructureShape.new(name: 'StartLoggingResponse')
91
- StopLoggingRequest = Shapes::StructureShape.new(name: 'StopLoggingRequest')
92
- StopLoggingResponse = Shapes::StructureShape.new(name: 'StopLoggingResponse')
93
- String = Shapes::StringShape.new(name: 'String')
94
- Tag = Shapes::StructureShape.new(name: 'Tag')
95
- TagsLimitExceededException = Shapes::StructureShape.new(name: 'TagsLimitExceededException')
96
- TagsList = Shapes::ListShape.new(name: 'TagsList')
97
- Trail = Shapes::StructureShape.new(name: 'Trail')
98
- TrailAlreadyExistsException = Shapes::StructureShape.new(name: 'TrailAlreadyExistsException')
99
- TrailList = Shapes::ListShape.new(name: 'TrailList')
100
- TrailNameList = Shapes::ListShape.new(name: 'TrailNameList')
101
- TrailNotFoundException = Shapes::StructureShape.new(name: 'TrailNotFoundException')
102
- TrailNotProvidedException = Shapes::StructureShape.new(name: 'TrailNotProvidedException')
103
- UnsupportedOperationException = Shapes::StructureShape.new(name: 'UnsupportedOperationException')
104
- UpdateTrailRequest = Shapes::StructureShape.new(name: 'UpdateTrailRequest')
105
- UpdateTrailResponse = Shapes::StructureShape.new(name: 'UpdateTrailResponse')
106
-
107
- AddTagsRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ResourceId"))
108
- AddTagsRequest.add_member(:tags_list, Shapes::ShapeRef.new(shape: TagsList, location_name: "TagsList"))
109
- AddTagsRequest.struct_class = Types::AddTagsRequest
110
-
111
- AddTagsResponse.struct_class = Types::AddTagsResponse
112
-
113
- CreateTrailRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
114
- CreateTrailRequest.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "S3BucketName"))
115
- CreateTrailRequest.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "S3KeyPrefix"))
116
- CreateTrailRequest.add_member(:sns_topic_name, Shapes::ShapeRef.new(shape: String, location_name: "SnsTopicName"))
117
- CreateTrailRequest.add_member(:include_global_service_events, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeGlobalServiceEvents"))
118
- CreateTrailRequest.add_member(:is_multi_region_trail, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsMultiRegionTrail"))
119
- CreateTrailRequest.add_member(:enable_log_file_validation, Shapes::ShapeRef.new(shape: Boolean, location_name: "EnableLogFileValidation"))
120
- CreateTrailRequest.add_member(:cloud_watch_logs_log_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsLogGroupArn"))
121
- CreateTrailRequest.add_member(:cloud_watch_logs_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsRoleArn"))
122
- CreateTrailRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
123
- CreateTrailRequest.struct_class = Types::CreateTrailRequest
124
-
125
- CreateTrailResponse.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
126
- CreateTrailResponse.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: String, location_name: "S3BucketName"))
127
- CreateTrailResponse.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "S3KeyPrefix"))
128
- CreateTrailResponse.add_member(:sns_topic_name, Shapes::ShapeRef.new(shape: String, deprecated: true, location_name: "SnsTopicName"))
129
- CreateTrailResponse.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: String, location_name: "SnsTopicARN"))
130
- CreateTrailResponse.add_member(:include_global_service_events, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeGlobalServiceEvents"))
131
- CreateTrailResponse.add_member(:is_multi_region_trail, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsMultiRegionTrail"))
132
- CreateTrailResponse.add_member(:trail_arn, Shapes::ShapeRef.new(shape: String, location_name: "TrailARN"))
133
- CreateTrailResponse.add_member(:log_file_validation_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "LogFileValidationEnabled"))
134
- CreateTrailResponse.add_member(:cloud_watch_logs_log_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsLogGroupArn"))
135
- CreateTrailResponse.add_member(:cloud_watch_logs_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsRoleArn"))
136
- CreateTrailResponse.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
137
- CreateTrailResponse.struct_class = Types::CreateTrailResponse
138
-
139
- DataResource.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
140
- DataResource.add_member(:values, Shapes::ShapeRef.new(shape: DataResourceValues, location_name: "Values"))
141
- DataResource.struct_class = Types::DataResource
142
-
143
- DataResourceValues.member = Shapes::ShapeRef.new(shape: String)
144
-
145
- DataResources.member = Shapes::ShapeRef.new(shape: DataResource)
146
-
147
- DeleteTrailRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
148
- DeleteTrailRequest.struct_class = Types::DeleteTrailRequest
149
-
150
- DeleteTrailResponse.struct_class = Types::DeleteTrailResponse
151
-
152
- DescribeTrailsRequest.add_member(:trail_name_list, Shapes::ShapeRef.new(shape: TrailNameList, location_name: "trailNameList"))
153
- DescribeTrailsRequest.add_member(:include_shadow_trails, Shapes::ShapeRef.new(shape: Boolean, location_name: "includeShadowTrails"))
154
- DescribeTrailsRequest.struct_class = Types::DescribeTrailsRequest
155
-
156
- DescribeTrailsResponse.add_member(:trail_list, Shapes::ShapeRef.new(shape: TrailList, location_name: "trailList"))
157
- DescribeTrailsResponse.struct_class = Types::DescribeTrailsResponse
158
-
159
- Event.add_member(:event_id, Shapes::ShapeRef.new(shape: String, location_name: "EventId"))
160
- Event.add_member(:event_name, Shapes::ShapeRef.new(shape: String, location_name: "EventName"))
161
- Event.add_member(:event_time, Shapes::ShapeRef.new(shape: Date, location_name: "EventTime"))
162
- Event.add_member(:event_source, Shapes::ShapeRef.new(shape: String, location_name: "EventSource"))
163
- Event.add_member(:username, Shapes::ShapeRef.new(shape: String, location_name: "Username"))
164
- Event.add_member(:resources, Shapes::ShapeRef.new(shape: ResourceList, location_name: "Resources"))
165
- Event.add_member(:cloud_trail_event, Shapes::ShapeRef.new(shape: String, location_name: "CloudTrailEvent"))
166
- Event.struct_class = Types::Event
167
-
168
- EventSelector.add_member(:read_write_type, Shapes::ShapeRef.new(shape: ReadWriteType, location_name: "ReadWriteType"))
169
- EventSelector.add_member(:include_management_events, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeManagementEvents"))
170
- EventSelector.add_member(:data_resources, Shapes::ShapeRef.new(shape: DataResources, location_name: "DataResources"))
171
- EventSelector.struct_class = Types::EventSelector
172
-
173
- EventSelectors.member = Shapes::ShapeRef.new(shape: EventSelector)
174
-
175
- EventsList.member = Shapes::ShapeRef.new(shape: Event)
176
-
177
- GetEventSelectorsRequest.add_member(:trail_name, Shapes::ShapeRef.new(shape: String, location_name: "TrailName"))
178
- GetEventSelectorsRequest.struct_class = Types::GetEventSelectorsRequest
179
-
180
- GetEventSelectorsResponse.add_member(:trail_arn, Shapes::ShapeRef.new(shape: String, location_name: "TrailARN"))
181
- GetEventSelectorsResponse.add_member(:event_selectors, Shapes::ShapeRef.new(shape: EventSelectors, location_name: "EventSelectors"))
182
- GetEventSelectorsResponse.struct_class = Types::GetEventSelectorsResponse
183
-
184
- GetTrailStatusRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
185
- GetTrailStatusRequest.struct_class = Types::GetTrailStatusRequest
186
-
187
- GetTrailStatusResponse.add_member(:is_logging, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsLogging"))
188
- GetTrailStatusResponse.add_member(:latest_delivery_error, Shapes::ShapeRef.new(shape: String, location_name: "LatestDeliveryError"))
189
- GetTrailStatusResponse.add_member(:latest_notification_error, Shapes::ShapeRef.new(shape: String, location_name: "LatestNotificationError"))
190
- GetTrailStatusResponse.add_member(:latest_delivery_time, Shapes::ShapeRef.new(shape: Date, location_name: "LatestDeliveryTime"))
191
- GetTrailStatusResponse.add_member(:latest_notification_time, Shapes::ShapeRef.new(shape: Date, location_name: "LatestNotificationTime"))
192
- GetTrailStatusResponse.add_member(:start_logging_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartLoggingTime"))
193
- GetTrailStatusResponse.add_member(:stop_logging_time, Shapes::ShapeRef.new(shape: Date, location_name: "StopLoggingTime"))
194
- GetTrailStatusResponse.add_member(:latest_cloud_watch_logs_delivery_error, Shapes::ShapeRef.new(shape: String, location_name: "LatestCloudWatchLogsDeliveryError"))
195
- GetTrailStatusResponse.add_member(:latest_cloud_watch_logs_delivery_time, Shapes::ShapeRef.new(shape: Date, location_name: "LatestCloudWatchLogsDeliveryTime"))
196
- GetTrailStatusResponse.add_member(:latest_digest_delivery_time, Shapes::ShapeRef.new(shape: Date, location_name: "LatestDigestDeliveryTime"))
197
- GetTrailStatusResponse.add_member(:latest_digest_delivery_error, Shapes::ShapeRef.new(shape: String, location_name: "LatestDigestDeliveryError"))
198
- GetTrailStatusResponse.add_member(:latest_delivery_attempt_time, Shapes::ShapeRef.new(shape: String, location_name: "LatestDeliveryAttemptTime"))
199
- GetTrailStatusResponse.add_member(:latest_notification_attempt_time, Shapes::ShapeRef.new(shape: String, location_name: "LatestNotificationAttemptTime"))
200
- GetTrailStatusResponse.add_member(:latest_notification_attempt_succeeded, Shapes::ShapeRef.new(shape: String, location_name: "LatestNotificationAttemptSucceeded"))
201
- GetTrailStatusResponse.add_member(:latest_delivery_attempt_succeeded, Shapes::ShapeRef.new(shape: String, location_name: "LatestDeliveryAttemptSucceeded"))
202
- GetTrailStatusResponse.add_member(:time_logging_started, Shapes::ShapeRef.new(shape: String, location_name: "TimeLoggingStarted"))
203
- GetTrailStatusResponse.add_member(:time_logging_stopped, Shapes::ShapeRef.new(shape: String, location_name: "TimeLoggingStopped"))
204
- GetTrailStatusResponse.struct_class = Types::GetTrailStatusResponse
205
-
206
- ListPublicKeysRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartTime"))
207
- ListPublicKeysRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndTime"))
208
- ListPublicKeysRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
209
- ListPublicKeysRequest.struct_class = Types::ListPublicKeysRequest
210
-
211
- ListPublicKeysResponse.add_member(:public_key_list, Shapes::ShapeRef.new(shape: PublicKeyList, location_name: "PublicKeyList"))
212
- ListPublicKeysResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
213
- ListPublicKeysResponse.struct_class = Types::ListPublicKeysResponse
214
-
215
- ListTagsRequest.add_member(:resource_id_list, Shapes::ShapeRef.new(shape: ResourceIdList, required: true, location_name: "ResourceIdList"))
216
- ListTagsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
217
- ListTagsRequest.struct_class = Types::ListTagsRequest
218
-
219
- ListTagsResponse.add_member(:resource_tag_list, Shapes::ShapeRef.new(shape: ResourceTagList, location_name: "ResourceTagList"))
220
- ListTagsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
221
- ListTagsResponse.struct_class = Types::ListTagsResponse
222
-
223
- LookupAttribute.add_member(:attribute_key, Shapes::ShapeRef.new(shape: LookupAttributeKey, required: true, location_name: "AttributeKey"))
224
- LookupAttribute.add_member(:attribute_value, Shapes::ShapeRef.new(shape: String, required: true, location_name: "AttributeValue"))
225
- LookupAttribute.struct_class = Types::LookupAttribute
226
-
227
- LookupAttributesList.member = Shapes::ShapeRef.new(shape: LookupAttribute)
228
-
229
- LookupEventsRequest.add_member(:lookup_attributes, Shapes::ShapeRef.new(shape: LookupAttributesList, location_name: "LookupAttributes"))
230
- LookupEventsRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartTime"))
231
- LookupEventsRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndTime"))
232
- LookupEventsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
233
- LookupEventsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
234
- LookupEventsRequest.struct_class = Types::LookupEventsRequest
235
-
236
- LookupEventsResponse.add_member(:events, Shapes::ShapeRef.new(shape: EventsList, location_name: "Events"))
237
- LookupEventsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
238
- LookupEventsResponse.struct_class = Types::LookupEventsResponse
239
-
240
- PublicKey.add_member(:value, Shapes::ShapeRef.new(shape: ByteBuffer, location_name: "Value"))
241
- PublicKey.add_member(:validity_start_time, Shapes::ShapeRef.new(shape: Date, location_name: "ValidityStartTime"))
242
- PublicKey.add_member(:validity_end_time, Shapes::ShapeRef.new(shape: Date, location_name: "ValidityEndTime"))
243
- PublicKey.add_member(:fingerprint, Shapes::ShapeRef.new(shape: String, location_name: "Fingerprint"))
244
- PublicKey.struct_class = Types::PublicKey
245
-
246
- PublicKeyList.member = Shapes::ShapeRef.new(shape: PublicKey)
247
-
248
- PutEventSelectorsRequest.add_member(:trail_name, Shapes::ShapeRef.new(shape: String, location_name: "TrailName"))
249
- PutEventSelectorsRequest.add_member(:event_selectors, Shapes::ShapeRef.new(shape: EventSelectors, location_name: "EventSelectors"))
250
- PutEventSelectorsRequest.struct_class = Types::PutEventSelectorsRequest
251
-
252
- PutEventSelectorsResponse.add_member(:trail_arn, Shapes::ShapeRef.new(shape: String, location_name: "TrailARN"))
253
- PutEventSelectorsResponse.add_member(:event_selectors, Shapes::ShapeRef.new(shape: EventSelectors, location_name: "EventSelectors"))
254
- PutEventSelectorsResponse.struct_class = Types::PutEventSelectorsResponse
255
-
256
- RemoveTagsRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ResourceId"))
257
- RemoveTagsRequest.add_member(:tags_list, Shapes::ShapeRef.new(shape: TagsList, location_name: "TagsList"))
258
- RemoveTagsRequest.struct_class = Types::RemoveTagsRequest
259
-
260
- RemoveTagsResponse.struct_class = Types::RemoveTagsResponse
261
-
262
- Resource.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "ResourceType"))
263
- Resource.add_member(:resource_name, Shapes::ShapeRef.new(shape: String, location_name: "ResourceName"))
264
- Resource.struct_class = Types::Resource
265
-
266
- ResourceIdList.member = Shapes::ShapeRef.new(shape: String)
267
-
268
- ResourceList.member = Shapes::ShapeRef.new(shape: Resource)
269
-
270
- ResourceTag.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, location_name: "ResourceId"))
271
- ResourceTag.add_member(:tags_list, Shapes::ShapeRef.new(shape: TagsList, location_name: "TagsList"))
272
- ResourceTag.struct_class = Types::ResourceTag
273
-
274
- ResourceTagList.member = Shapes::ShapeRef.new(shape: ResourceTag)
275
-
276
- StartLoggingRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
277
- StartLoggingRequest.struct_class = Types::StartLoggingRequest
278
-
279
- StartLoggingResponse.struct_class = Types::StartLoggingResponse
280
-
281
- StopLoggingRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
282
- StopLoggingRequest.struct_class = Types::StopLoggingRequest
283
-
284
- StopLoggingResponse.struct_class = Types::StopLoggingResponse
285
-
286
- Tag.add_member(:key, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Key"))
287
- Tag.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "Value"))
288
- Tag.struct_class = Types::Tag
289
-
290
- TagsList.member = Shapes::ShapeRef.new(shape: Tag)
291
-
292
- Trail.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
293
- Trail.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: String, location_name: "S3BucketName"))
294
- Trail.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "S3KeyPrefix"))
295
- Trail.add_member(:sns_topic_name, Shapes::ShapeRef.new(shape: String, deprecated: true, location_name: "SnsTopicName"))
296
- Trail.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: String, location_name: "SnsTopicARN"))
297
- Trail.add_member(:include_global_service_events, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeGlobalServiceEvents"))
298
- Trail.add_member(:is_multi_region_trail, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsMultiRegionTrail"))
299
- Trail.add_member(:home_region, Shapes::ShapeRef.new(shape: String, location_name: "HomeRegion"))
300
- Trail.add_member(:trail_arn, Shapes::ShapeRef.new(shape: String, location_name: "TrailARN"))
301
- Trail.add_member(:log_file_validation_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "LogFileValidationEnabled"))
302
- Trail.add_member(:cloud_watch_logs_log_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsLogGroupArn"))
303
- Trail.add_member(:cloud_watch_logs_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsRoleArn"))
304
- Trail.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
305
- Trail.add_member(:has_custom_event_selectors, Shapes::ShapeRef.new(shape: Boolean, location_name: "HasCustomEventSelectors"))
306
- Trail.struct_class = Types::Trail
307
-
308
- TrailList.member = Shapes::ShapeRef.new(shape: Trail)
309
-
310
- TrailNameList.member = Shapes::ShapeRef.new(shape: String)
311
-
312
- UpdateTrailRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
313
- UpdateTrailRequest.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: String, location_name: "S3BucketName"))
314
- UpdateTrailRequest.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "S3KeyPrefix"))
315
- UpdateTrailRequest.add_member(:sns_topic_name, Shapes::ShapeRef.new(shape: String, location_name: "SnsTopicName"))
316
- UpdateTrailRequest.add_member(:include_global_service_events, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeGlobalServiceEvents"))
317
- UpdateTrailRequest.add_member(:is_multi_region_trail, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsMultiRegionTrail"))
318
- UpdateTrailRequest.add_member(:enable_log_file_validation, Shapes::ShapeRef.new(shape: Boolean, location_name: "EnableLogFileValidation"))
319
- UpdateTrailRequest.add_member(:cloud_watch_logs_log_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsLogGroupArn"))
320
- UpdateTrailRequest.add_member(:cloud_watch_logs_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsRoleArn"))
321
- UpdateTrailRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
322
- UpdateTrailRequest.struct_class = Types::UpdateTrailRequest
323
-
324
- UpdateTrailResponse.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
325
- UpdateTrailResponse.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: String, location_name: "S3BucketName"))
326
- UpdateTrailResponse.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "S3KeyPrefix"))
327
- UpdateTrailResponse.add_member(:sns_topic_name, Shapes::ShapeRef.new(shape: String, deprecated: true, location_name: "SnsTopicName"))
328
- UpdateTrailResponse.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: String, location_name: "SnsTopicARN"))
329
- UpdateTrailResponse.add_member(:include_global_service_events, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeGlobalServiceEvents"))
330
- UpdateTrailResponse.add_member(:is_multi_region_trail, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsMultiRegionTrail"))
331
- UpdateTrailResponse.add_member(:trail_arn, Shapes::ShapeRef.new(shape: String, location_name: "TrailARN"))
332
- UpdateTrailResponse.add_member(:log_file_validation_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "LogFileValidationEnabled"))
333
- UpdateTrailResponse.add_member(:cloud_watch_logs_log_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsLogGroupArn"))
334
- UpdateTrailResponse.add_member(:cloud_watch_logs_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsRoleArn"))
335
- UpdateTrailResponse.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
336
- UpdateTrailResponse.struct_class = Types::UpdateTrailResponse
337
-
338
-
339
- # @api private
340
- API = Seahorse::Model::Api.new.tap do |api|
341
-
342
- api.version = "2013-11-01"
343
-
344
- api.metadata = {
345
- "endpointPrefix" => "cloudtrail",
346
- "jsonVersion" => "1.1",
347
- "protocol" => "json",
348
- "serviceFullName" => "AWS CloudTrail",
349
- "signatureVersion" => "v4",
350
- "targetPrefix" => "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101",
351
- }
352
-
353
- api.add_operation(:add_tags, Seahorse::Model::Operation.new.tap do |o|
354
- o.name = "AddTags"
355
- o.http_method = "POST"
356
- o.http_request_uri = "/"
357
- o.input = Shapes::ShapeRef.new(shape: AddTagsRequest)
358
- o.output = Shapes::ShapeRef.new(shape: AddTagsResponse)
359
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
360
- o.errors << Shapes::ShapeRef.new(shape: CloudTrailARNInvalidException)
361
- o.errors << Shapes::ShapeRef.new(shape: ResourceTypeNotSupportedException)
362
- o.errors << Shapes::ShapeRef.new(shape: TagsLimitExceededException)
363
- o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
364
- o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
365
- o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
366
- o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
367
- end)
368
-
369
- api.add_operation(:create_trail, Seahorse::Model::Operation.new.tap do |o|
370
- o.name = "CreateTrail"
371
- o.http_method = "POST"
372
- o.http_request_uri = "/"
373
- o.input = Shapes::ShapeRef.new(shape: CreateTrailRequest)
374
- o.output = Shapes::ShapeRef.new(shape: CreateTrailResponse)
375
- o.errors << Shapes::ShapeRef.new(shape: MaximumNumberOfTrailsExceededException)
376
- o.errors << Shapes::ShapeRef.new(shape: TrailAlreadyExistsException)
377
- o.errors << Shapes::ShapeRef.new(shape: S3BucketDoesNotExistException)
378
- o.errors << Shapes::ShapeRef.new(shape: InsufficientS3BucketPolicyException)
379
- o.errors << Shapes::ShapeRef.new(shape: InsufficientSnsTopicPolicyException)
380
- o.errors << Shapes::ShapeRef.new(shape: InsufficientEncryptionPolicyException)
381
- o.errors << Shapes::ShapeRef.new(shape: InvalidS3BucketNameException)
382
- o.errors << Shapes::ShapeRef.new(shape: InvalidS3PrefixException)
383
- o.errors << Shapes::ShapeRef.new(shape: InvalidSnsTopicNameException)
384
- o.errors << Shapes::ShapeRef.new(shape: InvalidKmsKeyIdException)
385
- o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
386
- o.errors << Shapes::ShapeRef.new(shape: TrailNotProvidedException)
387
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
388
- o.errors << Shapes::ShapeRef.new(shape: KmsKeyNotFoundException)
389
- o.errors << Shapes::ShapeRef.new(shape: KmsKeyDisabledException)
390
- o.errors << Shapes::ShapeRef.new(shape: KmsException)
391
- o.errors << Shapes::ShapeRef.new(shape: InvalidCloudWatchLogsLogGroupArnException)
392
- o.errors << Shapes::ShapeRef.new(shape: InvalidCloudWatchLogsRoleArnException)
393
- o.errors << Shapes::ShapeRef.new(shape: CloudWatchLogsDeliveryUnavailableException)
394
- o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
395
- o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
396
- end)
397
-
398
- api.add_operation(:delete_trail, Seahorse::Model::Operation.new.tap do |o|
399
- o.name = "DeleteTrail"
400
- o.http_method = "POST"
401
- o.http_request_uri = "/"
402
- o.input = Shapes::ShapeRef.new(shape: DeleteTrailRequest)
403
- o.output = Shapes::ShapeRef.new(shape: DeleteTrailResponse)
404
- o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
405
- o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
406
- o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
407
- end)
408
-
409
- api.add_operation(:describe_trails, Seahorse::Model::Operation.new.tap do |o|
410
- o.name = "DescribeTrails"
411
- o.http_method = "POST"
412
- o.http_request_uri = "/"
413
- o.input = Shapes::ShapeRef.new(shape: DescribeTrailsRequest)
414
- o.output = Shapes::ShapeRef.new(shape: DescribeTrailsResponse)
415
- o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
416
- o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
417
- end)
418
-
419
- api.add_operation(:get_event_selectors, Seahorse::Model::Operation.new.tap do |o|
420
- o.name = "GetEventSelectors"
421
- o.http_method = "POST"
422
- o.http_request_uri = "/"
423
- o.input = Shapes::ShapeRef.new(shape: GetEventSelectorsRequest)
424
- o.output = Shapes::ShapeRef.new(shape: GetEventSelectorsResponse)
425
- o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
426
- o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
427
- o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
428
- o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
429
- end)
430
-
431
- api.add_operation(:get_trail_status, Seahorse::Model::Operation.new.tap do |o|
432
- o.name = "GetTrailStatus"
433
- o.http_method = "POST"
434
- o.http_request_uri = "/"
435
- o.input = Shapes::ShapeRef.new(shape: GetTrailStatusRequest)
436
- o.output = Shapes::ShapeRef.new(shape: GetTrailStatusResponse)
437
- o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
438
- o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
439
- end)
440
-
441
- api.add_operation(:list_public_keys, Seahorse::Model::Operation.new.tap do |o|
442
- o.name = "ListPublicKeys"
443
- o.http_method = "POST"
444
- o.http_request_uri = "/"
445
- o.input = Shapes::ShapeRef.new(shape: ListPublicKeysRequest)
446
- o.output = Shapes::ShapeRef.new(shape: ListPublicKeysResponse)
447
- o.errors << Shapes::ShapeRef.new(shape: InvalidTimeRangeException)
448
- o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
449
- o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
450
- o.errors << Shapes::ShapeRef.new(shape: InvalidTokenException)
451
- end)
452
-
453
- api.add_operation(:list_tags, Seahorse::Model::Operation.new.tap do |o|
454
- o.name = "ListTags"
455
- o.http_method = "POST"
456
- o.http_request_uri = "/"
457
- o.input = Shapes::ShapeRef.new(shape: ListTagsRequest)
458
- o.output = Shapes::ShapeRef.new(shape: ListTagsResponse)
459
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
460
- o.errors << Shapes::ShapeRef.new(shape: CloudTrailARNInvalidException)
461
- o.errors << Shapes::ShapeRef.new(shape: ResourceTypeNotSupportedException)
462
- o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
463
- o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
464
- o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
465
- o.errors << Shapes::ShapeRef.new(shape: InvalidTokenException)
466
- end)
467
-
468
- api.add_operation(:lookup_events, Seahorse::Model::Operation.new.tap do |o|
469
- o.name = "LookupEvents"
470
- o.http_method = "POST"
471
- o.http_request_uri = "/"
472
- o.input = Shapes::ShapeRef.new(shape: LookupEventsRequest)
473
- o.output = Shapes::ShapeRef.new(shape: LookupEventsResponse)
474
- o.errors << Shapes::ShapeRef.new(shape: InvalidLookupAttributesException)
475
- o.errors << Shapes::ShapeRef.new(shape: InvalidTimeRangeException)
476
- o.errors << Shapes::ShapeRef.new(shape: InvalidMaxResultsException)
477
- o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
478
- end)
479
-
480
- api.add_operation(:put_event_selectors, Seahorse::Model::Operation.new.tap do |o|
481
- o.name = "PutEventSelectors"
482
- o.http_method = "POST"
483
- o.http_request_uri = "/"
484
- o.input = Shapes::ShapeRef.new(shape: PutEventSelectorsRequest)
485
- o.output = Shapes::ShapeRef.new(shape: PutEventSelectorsResponse)
486
- o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
487
- o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
488
- o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
489
- o.errors << Shapes::ShapeRef.new(shape: InvalidEventSelectorsException)
490
- o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
491
- o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
492
- end)
493
-
494
- api.add_operation(:remove_tags, Seahorse::Model::Operation.new.tap do |o|
495
- o.name = "RemoveTags"
496
- o.http_method = "POST"
497
- o.http_request_uri = "/"
498
- o.input = Shapes::ShapeRef.new(shape: RemoveTagsRequest)
499
- o.output = Shapes::ShapeRef.new(shape: RemoveTagsResponse)
500
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
501
- o.errors << Shapes::ShapeRef.new(shape: CloudTrailARNInvalidException)
502
- o.errors << Shapes::ShapeRef.new(shape: ResourceTypeNotSupportedException)
503
- o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
504
- o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
505
- o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
506
- o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
507
- end)
508
-
509
- api.add_operation(:start_logging, Seahorse::Model::Operation.new.tap do |o|
510
- o.name = "StartLogging"
511
- o.http_method = "POST"
512
- o.http_request_uri = "/"
513
- o.input = Shapes::ShapeRef.new(shape: StartLoggingRequest)
514
- o.output = Shapes::ShapeRef.new(shape: StartLoggingResponse)
515
- o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
516
- o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
517
- o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
518
- end)
519
-
520
- api.add_operation(:stop_logging, Seahorse::Model::Operation.new.tap do |o|
521
- o.name = "StopLogging"
522
- o.http_method = "POST"
523
- o.http_request_uri = "/"
524
- o.input = Shapes::ShapeRef.new(shape: StopLoggingRequest)
525
- o.output = Shapes::ShapeRef.new(shape: StopLoggingResponse)
526
- o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
527
- o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
528
- o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
529
- end)
530
-
531
- api.add_operation(:update_trail, Seahorse::Model::Operation.new.tap do |o|
532
- o.name = "UpdateTrail"
533
- o.http_method = "POST"
534
- o.http_request_uri = "/"
535
- o.input = Shapes::ShapeRef.new(shape: UpdateTrailRequest)
536
- o.output = Shapes::ShapeRef.new(shape: UpdateTrailResponse)
537
- o.errors << Shapes::ShapeRef.new(shape: S3BucketDoesNotExistException)
538
- o.errors << Shapes::ShapeRef.new(shape: InsufficientS3BucketPolicyException)
539
- o.errors << Shapes::ShapeRef.new(shape: InsufficientSnsTopicPolicyException)
540
- o.errors << Shapes::ShapeRef.new(shape: InsufficientEncryptionPolicyException)
541
- o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
542
- o.errors << Shapes::ShapeRef.new(shape: InvalidS3BucketNameException)
543
- o.errors << Shapes::ShapeRef.new(shape: InvalidS3PrefixException)
544
- o.errors << Shapes::ShapeRef.new(shape: InvalidSnsTopicNameException)
545
- o.errors << Shapes::ShapeRef.new(shape: InvalidKmsKeyIdException)
546
- o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
547
- o.errors << Shapes::ShapeRef.new(shape: TrailNotProvidedException)
548
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
549
- o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
550
- o.errors << Shapes::ShapeRef.new(shape: KmsKeyNotFoundException)
551
- o.errors << Shapes::ShapeRef.new(shape: KmsKeyDisabledException)
552
- o.errors << Shapes::ShapeRef.new(shape: KmsException)
553
- o.errors << Shapes::ShapeRef.new(shape: InvalidCloudWatchLogsLogGroupArnException)
554
- o.errors << Shapes::ShapeRef.new(shape: InvalidCloudWatchLogsRoleArnException)
555
- o.errors << Shapes::ShapeRef.new(shape: CloudWatchLogsDeliveryUnavailableException)
556
- o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
557
- o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
558
- end)
559
- end
8
+ module Aws::CloudTrail
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ AddTagsRequest = Shapes::StructureShape.new(name: 'AddTagsRequest')
15
+ AddTagsResponse = Shapes::StructureShape.new(name: 'AddTagsResponse')
16
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
17
+ ByteBuffer = Shapes::BlobShape.new(name: 'ByteBuffer')
18
+ CloudTrailARNInvalidException = Shapes::StructureShape.new(name: 'CloudTrailARNInvalidException')
19
+ CloudWatchLogsDeliveryUnavailableException = Shapes::StructureShape.new(name: 'CloudWatchLogsDeliveryUnavailableException')
20
+ CreateTrailRequest = Shapes::StructureShape.new(name: 'CreateTrailRequest')
21
+ CreateTrailResponse = Shapes::StructureShape.new(name: 'CreateTrailResponse')
22
+ DataResource = Shapes::StructureShape.new(name: 'DataResource')
23
+ DataResourceValues = Shapes::ListShape.new(name: 'DataResourceValues')
24
+ DataResources = Shapes::ListShape.new(name: 'DataResources')
25
+ Date = Shapes::TimestampShape.new(name: 'Date')
26
+ DeleteTrailRequest = Shapes::StructureShape.new(name: 'DeleteTrailRequest')
27
+ DeleteTrailResponse = Shapes::StructureShape.new(name: 'DeleteTrailResponse')
28
+ DescribeTrailsRequest = Shapes::StructureShape.new(name: 'DescribeTrailsRequest')
29
+ DescribeTrailsResponse = Shapes::StructureShape.new(name: 'DescribeTrailsResponse')
30
+ Event = Shapes::StructureShape.new(name: 'Event')
31
+ EventSelector = Shapes::StructureShape.new(name: 'EventSelector')
32
+ EventSelectors = Shapes::ListShape.new(name: 'EventSelectors')
33
+ EventsList = Shapes::ListShape.new(name: 'EventsList')
34
+ GetEventSelectorsRequest = Shapes::StructureShape.new(name: 'GetEventSelectorsRequest')
35
+ GetEventSelectorsResponse = Shapes::StructureShape.new(name: 'GetEventSelectorsResponse')
36
+ GetTrailStatusRequest = Shapes::StructureShape.new(name: 'GetTrailStatusRequest')
37
+ GetTrailStatusResponse = Shapes::StructureShape.new(name: 'GetTrailStatusResponse')
38
+ InsufficientEncryptionPolicyException = Shapes::StructureShape.new(name: 'InsufficientEncryptionPolicyException')
39
+ InsufficientS3BucketPolicyException = Shapes::StructureShape.new(name: 'InsufficientS3BucketPolicyException')
40
+ InsufficientSnsTopicPolicyException = Shapes::StructureShape.new(name: 'InsufficientSnsTopicPolicyException')
41
+ InvalidCloudWatchLogsLogGroupArnException = Shapes::StructureShape.new(name: 'InvalidCloudWatchLogsLogGroupArnException')
42
+ InvalidCloudWatchLogsRoleArnException = Shapes::StructureShape.new(name: 'InvalidCloudWatchLogsRoleArnException')
43
+ InvalidEventSelectorsException = Shapes::StructureShape.new(name: 'InvalidEventSelectorsException')
44
+ InvalidHomeRegionException = Shapes::StructureShape.new(name: 'InvalidHomeRegionException')
45
+ InvalidKmsKeyIdException = Shapes::StructureShape.new(name: 'InvalidKmsKeyIdException')
46
+ InvalidLookupAttributesException = Shapes::StructureShape.new(name: 'InvalidLookupAttributesException')
47
+ InvalidMaxResultsException = Shapes::StructureShape.new(name: 'InvalidMaxResultsException')
48
+ InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
49
+ InvalidParameterCombinationException = Shapes::StructureShape.new(name: 'InvalidParameterCombinationException')
50
+ InvalidS3BucketNameException = Shapes::StructureShape.new(name: 'InvalidS3BucketNameException')
51
+ InvalidS3PrefixException = Shapes::StructureShape.new(name: 'InvalidS3PrefixException')
52
+ InvalidSnsTopicNameException = Shapes::StructureShape.new(name: 'InvalidSnsTopicNameException')
53
+ InvalidTagParameterException = Shapes::StructureShape.new(name: 'InvalidTagParameterException')
54
+ InvalidTimeRangeException = Shapes::StructureShape.new(name: 'InvalidTimeRangeException')
55
+ InvalidTokenException = Shapes::StructureShape.new(name: 'InvalidTokenException')
56
+ InvalidTrailNameException = Shapes::StructureShape.new(name: 'InvalidTrailNameException')
57
+ KmsException = Shapes::StructureShape.new(name: 'KmsException')
58
+ KmsKeyDisabledException = Shapes::StructureShape.new(name: 'KmsKeyDisabledException')
59
+ KmsKeyNotFoundException = Shapes::StructureShape.new(name: 'KmsKeyNotFoundException')
60
+ ListPublicKeysRequest = Shapes::StructureShape.new(name: 'ListPublicKeysRequest')
61
+ ListPublicKeysResponse = Shapes::StructureShape.new(name: 'ListPublicKeysResponse')
62
+ ListTagsRequest = Shapes::StructureShape.new(name: 'ListTagsRequest')
63
+ ListTagsResponse = Shapes::StructureShape.new(name: 'ListTagsResponse')
64
+ LookupAttribute = Shapes::StructureShape.new(name: 'LookupAttribute')
65
+ LookupAttributeKey = Shapes::StringShape.new(name: 'LookupAttributeKey')
66
+ LookupAttributesList = Shapes::ListShape.new(name: 'LookupAttributesList')
67
+ LookupEventsRequest = Shapes::StructureShape.new(name: 'LookupEventsRequest')
68
+ LookupEventsResponse = Shapes::StructureShape.new(name: 'LookupEventsResponse')
69
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
70
+ MaximumNumberOfTrailsExceededException = Shapes::StructureShape.new(name: 'MaximumNumberOfTrailsExceededException')
71
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
72
+ OperationNotPermittedException = Shapes::StructureShape.new(name: 'OperationNotPermittedException')
73
+ PublicKey = Shapes::StructureShape.new(name: 'PublicKey')
74
+ PublicKeyList = Shapes::ListShape.new(name: 'PublicKeyList')
75
+ PutEventSelectorsRequest = Shapes::StructureShape.new(name: 'PutEventSelectorsRequest')
76
+ PutEventSelectorsResponse = Shapes::StructureShape.new(name: 'PutEventSelectorsResponse')
77
+ ReadWriteType = Shapes::StringShape.new(name: 'ReadWriteType')
78
+ RemoveTagsRequest = Shapes::StructureShape.new(name: 'RemoveTagsRequest')
79
+ RemoveTagsResponse = Shapes::StructureShape.new(name: 'RemoveTagsResponse')
80
+ Resource = Shapes::StructureShape.new(name: 'Resource')
81
+ ResourceIdList = Shapes::ListShape.new(name: 'ResourceIdList')
82
+ ResourceList = Shapes::ListShape.new(name: 'ResourceList')
83
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
84
+ ResourceTag = Shapes::StructureShape.new(name: 'ResourceTag')
85
+ ResourceTagList = Shapes::ListShape.new(name: 'ResourceTagList')
86
+ ResourceTypeNotSupportedException = Shapes::StructureShape.new(name: 'ResourceTypeNotSupportedException')
87
+ S3BucketDoesNotExistException = Shapes::StructureShape.new(name: 'S3BucketDoesNotExistException')
88
+ StartLoggingRequest = Shapes::StructureShape.new(name: 'StartLoggingRequest')
89
+ StartLoggingResponse = Shapes::StructureShape.new(name: 'StartLoggingResponse')
90
+ StopLoggingRequest = Shapes::StructureShape.new(name: 'StopLoggingRequest')
91
+ StopLoggingResponse = Shapes::StructureShape.new(name: 'StopLoggingResponse')
92
+ String = Shapes::StringShape.new(name: 'String')
93
+ Tag = Shapes::StructureShape.new(name: 'Tag')
94
+ TagsLimitExceededException = Shapes::StructureShape.new(name: 'TagsLimitExceededException')
95
+ TagsList = Shapes::ListShape.new(name: 'TagsList')
96
+ Trail = Shapes::StructureShape.new(name: 'Trail')
97
+ TrailAlreadyExistsException = Shapes::StructureShape.new(name: 'TrailAlreadyExistsException')
98
+ TrailList = Shapes::ListShape.new(name: 'TrailList')
99
+ TrailNameList = Shapes::ListShape.new(name: 'TrailNameList')
100
+ TrailNotFoundException = Shapes::StructureShape.new(name: 'TrailNotFoundException')
101
+ TrailNotProvidedException = Shapes::StructureShape.new(name: 'TrailNotProvidedException')
102
+ UnsupportedOperationException = Shapes::StructureShape.new(name: 'UnsupportedOperationException')
103
+ UpdateTrailRequest = Shapes::StructureShape.new(name: 'UpdateTrailRequest')
104
+ UpdateTrailResponse = Shapes::StructureShape.new(name: 'UpdateTrailResponse')
105
+
106
+ AddTagsRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ResourceId"))
107
+ AddTagsRequest.add_member(:tags_list, Shapes::ShapeRef.new(shape: TagsList, location_name: "TagsList"))
108
+ AddTagsRequest.struct_class = Types::AddTagsRequest
109
+
110
+ AddTagsResponse.struct_class = Types::AddTagsResponse
111
+
112
+ CreateTrailRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
113
+ CreateTrailRequest.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "S3BucketName"))
114
+ CreateTrailRequest.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "S3KeyPrefix"))
115
+ CreateTrailRequest.add_member(:sns_topic_name, Shapes::ShapeRef.new(shape: String, location_name: "SnsTopicName"))
116
+ CreateTrailRequest.add_member(:include_global_service_events, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeGlobalServiceEvents"))
117
+ CreateTrailRequest.add_member(:is_multi_region_trail, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsMultiRegionTrail"))
118
+ CreateTrailRequest.add_member(:enable_log_file_validation, Shapes::ShapeRef.new(shape: Boolean, location_name: "EnableLogFileValidation"))
119
+ CreateTrailRequest.add_member(:cloud_watch_logs_log_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsLogGroupArn"))
120
+ CreateTrailRequest.add_member(:cloud_watch_logs_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsRoleArn"))
121
+ CreateTrailRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
122
+ CreateTrailRequest.struct_class = Types::CreateTrailRequest
123
+
124
+ CreateTrailResponse.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
125
+ CreateTrailResponse.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: String, location_name: "S3BucketName"))
126
+ CreateTrailResponse.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "S3KeyPrefix"))
127
+ CreateTrailResponse.add_member(:sns_topic_name, Shapes::ShapeRef.new(shape: String, deprecated: true, location_name: "SnsTopicName"))
128
+ CreateTrailResponse.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: String, location_name: "SnsTopicARN"))
129
+ CreateTrailResponse.add_member(:include_global_service_events, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeGlobalServiceEvents"))
130
+ CreateTrailResponse.add_member(:is_multi_region_trail, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsMultiRegionTrail"))
131
+ CreateTrailResponse.add_member(:trail_arn, Shapes::ShapeRef.new(shape: String, location_name: "TrailARN"))
132
+ CreateTrailResponse.add_member(:log_file_validation_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "LogFileValidationEnabled"))
133
+ CreateTrailResponse.add_member(:cloud_watch_logs_log_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsLogGroupArn"))
134
+ CreateTrailResponse.add_member(:cloud_watch_logs_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsRoleArn"))
135
+ CreateTrailResponse.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
136
+ CreateTrailResponse.struct_class = Types::CreateTrailResponse
137
+
138
+ DataResource.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
139
+ DataResource.add_member(:values, Shapes::ShapeRef.new(shape: DataResourceValues, location_name: "Values"))
140
+ DataResource.struct_class = Types::DataResource
141
+
142
+ DataResourceValues.member = Shapes::ShapeRef.new(shape: String)
143
+
144
+ DataResources.member = Shapes::ShapeRef.new(shape: DataResource)
145
+
146
+ DeleteTrailRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
147
+ DeleteTrailRequest.struct_class = Types::DeleteTrailRequest
148
+
149
+ DeleteTrailResponse.struct_class = Types::DeleteTrailResponse
150
+
151
+ DescribeTrailsRequest.add_member(:trail_name_list, Shapes::ShapeRef.new(shape: TrailNameList, location_name: "trailNameList"))
152
+ DescribeTrailsRequest.add_member(:include_shadow_trails, Shapes::ShapeRef.new(shape: Boolean, location_name: "includeShadowTrails"))
153
+ DescribeTrailsRequest.struct_class = Types::DescribeTrailsRequest
154
+
155
+ DescribeTrailsResponse.add_member(:trail_list, Shapes::ShapeRef.new(shape: TrailList, location_name: "trailList"))
156
+ DescribeTrailsResponse.struct_class = Types::DescribeTrailsResponse
157
+
158
+ Event.add_member(:event_id, Shapes::ShapeRef.new(shape: String, location_name: "EventId"))
159
+ Event.add_member(:event_name, Shapes::ShapeRef.new(shape: String, location_name: "EventName"))
160
+ Event.add_member(:event_time, Shapes::ShapeRef.new(shape: Date, location_name: "EventTime"))
161
+ Event.add_member(:event_source, Shapes::ShapeRef.new(shape: String, location_name: "EventSource"))
162
+ Event.add_member(:username, Shapes::ShapeRef.new(shape: String, location_name: "Username"))
163
+ Event.add_member(:resources, Shapes::ShapeRef.new(shape: ResourceList, location_name: "Resources"))
164
+ Event.add_member(:cloud_trail_event, Shapes::ShapeRef.new(shape: String, location_name: "CloudTrailEvent"))
165
+ Event.struct_class = Types::Event
166
+
167
+ EventSelector.add_member(:read_write_type, Shapes::ShapeRef.new(shape: ReadWriteType, location_name: "ReadWriteType"))
168
+ EventSelector.add_member(:include_management_events, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeManagementEvents"))
169
+ EventSelector.add_member(:data_resources, Shapes::ShapeRef.new(shape: DataResources, location_name: "DataResources"))
170
+ EventSelector.struct_class = Types::EventSelector
171
+
172
+ EventSelectors.member = Shapes::ShapeRef.new(shape: EventSelector)
173
+
174
+ EventsList.member = Shapes::ShapeRef.new(shape: Event)
175
+
176
+ GetEventSelectorsRequest.add_member(:trail_name, Shapes::ShapeRef.new(shape: String, location_name: "TrailName"))
177
+ GetEventSelectorsRequest.struct_class = Types::GetEventSelectorsRequest
178
+
179
+ GetEventSelectorsResponse.add_member(:trail_arn, Shapes::ShapeRef.new(shape: String, location_name: "TrailARN"))
180
+ GetEventSelectorsResponse.add_member(:event_selectors, Shapes::ShapeRef.new(shape: EventSelectors, location_name: "EventSelectors"))
181
+ GetEventSelectorsResponse.struct_class = Types::GetEventSelectorsResponse
182
+
183
+ GetTrailStatusRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
184
+ GetTrailStatusRequest.struct_class = Types::GetTrailStatusRequest
185
+
186
+ GetTrailStatusResponse.add_member(:is_logging, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsLogging"))
187
+ GetTrailStatusResponse.add_member(:latest_delivery_error, Shapes::ShapeRef.new(shape: String, location_name: "LatestDeliveryError"))
188
+ GetTrailStatusResponse.add_member(:latest_notification_error, Shapes::ShapeRef.new(shape: String, location_name: "LatestNotificationError"))
189
+ GetTrailStatusResponse.add_member(:latest_delivery_time, Shapes::ShapeRef.new(shape: Date, location_name: "LatestDeliveryTime"))
190
+ GetTrailStatusResponse.add_member(:latest_notification_time, Shapes::ShapeRef.new(shape: Date, location_name: "LatestNotificationTime"))
191
+ GetTrailStatusResponse.add_member(:start_logging_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartLoggingTime"))
192
+ GetTrailStatusResponse.add_member(:stop_logging_time, Shapes::ShapeRef.new(shape: Date, location_name: "StopLoggingTime"))
193
+ GetTrailStatusResponse.add_member(:latest_cloud_watch_logs_delivery_error, Shapes::ShapeRef.new(shape: String, location_name: "LatestCloudWatchLogsDeliveryError"))
194
+ GetTrailStatusResponse.add_member(:latest_cloud_watch_logs_delivery_time, Shapes::ShapeRef.new(shape: Date, location_name: "LatestCloudWatchLogsDeliveryTime"))
195
+ GetTrailStatusResponse.add_member(:latest_digest_delivery_time, Shapes::ShapeRef.new(shape: Date, location_name: "LatestDigestDeliveryTime"))
196
+ GetTrailStatusResponse.add_member(:latest_digest_delivery_error, Shapes::ShapeRef.new(shape: String, location_name: "LatestDigestDeliveryError"))
197
+ GetTrailStatusResponse.add_member(:latest_delivery_attempt_time, Shapes::ShapeRef.new(shape: String, location_name: "LatestDeliveryAttemptTime"))
198
+ GetTrailStatusResponse.add_member(:latest_notification_attempt_time, Shapes::ShapeRef.new(shape: String, location_name: "LatestNotificationAttemptTime"))
199
+ GetTrailStatusResponse.add_member(:latest_notification_attempt_succeeded, Shapes::ShapeRef.new(shape: String, location_name: "LatestNotificationAttemptSucceeded"))
200
+ GetTrailStatusResponse.add_member(:latest_delivery_attempt_succeeded, Shapes::ShapeRef.new(shape: String, location_name: "LatestDeliveryAttemptSucceeded"))
201
+ GetTrailStatusResponse.add_member(:time_logging_started, Shapes::ShapeRef.new(shape: String, location_name: "TimeLoggingStarted"))
202
+ GetTrailStatusResponse.add_member(:time_logging_stopped, Shapes::ShapeRef.new(shape: String, location_name: "TimeLoggingStopped"))
203
+ GetTrailStatusResponse.struct_class = Types::GetTrailStatusResponse
204
+
205
+ ListPublicKeysRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartTime"))
206
+ ListPublicKeysRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndTime"))
207
+ ListPublicKeysRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
208
+ ListPublicKeysRequest.struct_class = Types::ListPublicKeysRequest
209
+
210
+ ListPublicKeysResponse.add_member(:public_key_list, Shapes::ShapeRef.new(shape: PublicKeyList, location_name: "PublicKeyList"))
211
+ ListPublicKeysResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
212
+ ListPublicKeysResponse.struct_class = Types::ListPublicKeysResponse
213
+
214
+ ListTagsRequest.add_member(:resource_id_list, Shapes::ShapeRef.new(shape: ResourceIdList, required: true, location_name: "ResourceIdList"))
215
+ ListTagsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
216
+ ListTagsRequest.struct_class = Types::ListTagsRequest
217
+
218
+ ListTagsResponse.add_member(:resource_tag_list, Shapes::ShapeRef.new(shape: ResourceTagList, location_name: "ResourceTagList"))
219
+ ListTagsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
220
+ ListTagsResponse.struct_class = Types::ListTagsResponse
221
+
222
+ LookupAttribute.add_member(:attribute_key, Shapes::ShapeRef.new(shape: LookupAttributeKey, required: true, location_name: "AttributeKey"))
223
+ LookupAttribute.add_member(:attribute_value, Shapes::ShapeRef.new(shape: String, required: true, location_name: "AttributeValue"))
224
+ LookupAttribute.struct_class = Types::LookupAttribute
225
+
226
+ LookupAttributesList.member = Shapes::ShapeRef.new(shape: LookupAttribute)
227
+
228
+ LookupEventsRequest.add_member(:lookup_attributes, Shapes::ShapeRef.new(shape: LookupAttributesList, location_name: "LookupAttributes"))
229
+ LookupEventsRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartTime"))
230
+ LookupEventsRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndTime"))
231
+ LookupEventsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
232
+ LookupEventsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
233
+ LookupEventsRequest.struct_class = Types::LookupEventsRequest
234
+
235
+ LookupEventsResponse.add_member(:events, Shapes::ShapeRef.new(shape: EventsList, location_name: "Events"))
236
+ LookupEventsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
237
+ LookupEventsResponse.struct_class = Types::LookupEventsResponse
238
+
239
+ PublicKey.add_member(:value, Shapes::ShapeRef.new(shape: ByteBuffer, location_name: "Value"))
240
+ PublicKey.add_member(:validity_start_time, Shapes::ShapeRef.new(shape: Date, location_name: "ValidityStartTime"))
241
+ PublicKey.add_member(:validity_end_time, Shapes::ShapeRef.new(shape: Date, location_name: "ValidityEndTime"))
242
+ PublicKey.add_member(:fingerprint, Shapes::ShapeRef.new(shape: String, location_name: "Fingerprint"))
243
+ PublicKey.struct_class = Types::PublicKey
244
+
245
+ PublicKeyList.member = Shapes::ShapeRef.new(shape: PublicKey)
246
+
247
+ PutEventSelectorsRequest.add_member(:trail_name, Shapes::ShapeRef.new(shape: String, location_name: "TrailName"))
248
+ PutEventSelectorsRequest.add_member(:event_selectors, Shapes::ShapeRef.new(shape: EventSelectors, location_name: "EventSelectors"))
249
+ PutEventSelectorsRequest.struct_class = Types::PutEventSelectorsRequest
250
+
251
+ PutEventSelectorsResponse.add_member(:trail_arn, Shapes::ShapeRef.new(shape: String, location_name: "TrailARN"))
252
+ PutEventSelectorsResponse.add_member(:event_selectors, Shapes::ShapeRef.new(shape: EventSelectors, location_name: "EventSelectors"))
253
+ PutEventSelectorsResponse.struct_class = Types::PutEventSelectorsResponse
254
+
255
+ RemoveTagsRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ResourceId"))
256
+ RemoveTagsRequest.add_member(:tags_list, Shapes::ShapeRef.new(shape: TagsList, location_name: "TagsList"))
257
+ RemoveTagsRequest.struct_class = Types::RemoveTagsRequest
258
+
259
+ RemoveTagsResponse.struct_class = Types::RemoveTagsResponse
260
+
261
+ Resource.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "ResourceType"))
262
+ Resource.add_member(:resource_name, Shapes::ShapeRef.new(shape: String, location_name: "ResourceName"))
263
+ Resource.struct_class = Types::Resource
264
+
265
+ ResourceIdList.member = Shapes::ShapeRef.new(shape: String)
266
+
267
+ ResourceList.member = Shapes::ShapeRef.new(shape: Resource)
268
+
269
+ ResourceTag.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, location_name: "ResourceId"))
270
+ ResourceTag.add_member(:tags_list, Shapes::ShapeRef.new(shape: TagsList, location_name: "TagsList"))
271
+ ResourceTag.struct_class = Types::ResourceTag
272
+
273
+ ResourceTagList.member = Shapes::ShapeRef.new(shape: ResourceTag)
274
+
275
+ StartLoggingRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
276
+ StartLoggingRequest.struct_class = Types::StartLoggingRequest
277
+
278
+ StartLoggingResponse.struct_class = Types::StartLoggingResponse
279
+
280
+ StopLoggingRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
281
+ StopLoggingRequest.struct_class = Types::StopLoggingRequest
282
+
283
+ StopLoggingResponse.struct_class = Types::StopLoggingResponse
284
+
285
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Key"))
286
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "Value"))
287
+ Tag.struct_class = Types::Tag
288
+
289
+ TagsList.member = Shapes::ShapeRef.new(shape: Tag)
290
+
291
+ Trail.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
292
+ Trail.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: String, location_name: "S3BucketName"))
293
+ Trail.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "S3KeyPrefix"))
294
+ Trail.add_member(:sns_topic_name, Shapes::ShapeRef.new(shape: String, deprecated: true, location_name: "SnsTopicName"))
295
+ Trail.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: String, location_name: "SnsTopicARN"))
296
+ Trail.add_member(:include_global_service_events, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeGlobalServiceEvents"))
297
+ Trail.add_member(:is_multi_region_trail, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsMultiRegionTrail"))
298
+ Trail.add_member(:home_region, Shapes::ShapeRef.new(shape: String, location_name: "HomeRegion"))
299
+ Trail.add_member(:trail_arn, Shapes::ShapeRef.new(shape: String, location_name: "TrailARN"))
300
+ Trail.add_member(:log_file_validation_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "LogFileValidationEnabled"))
301
+ Trail.add_member(:cloud_watch_logs_log_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsLogGroupArn"))
302
+ Trail.add_member(:cloud_watch_logs_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsRoleArn"))
303
+ Trail.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
304
+ Trail.add_member(:has_custom_event_selectors, Shapes::ShapeRef.new(shape: Boolean, location_name: "HasCustomEventSelectors"))
305
+ Trail.struct_class = Types::Trail
306
+
307
+ TrailList.member = Shapes::ShapeRef.new(shape: Trail)
308
+
309
+ TrailNameList.member = Shapes::ShapeRef.new(shape: String)
310
+
311
+ UpdateTrailRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
312
+ UpdateTrailRequest.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: String, location_name: "S3BucketName"))
313
+ UpdateTrailRequest.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "S3KeyPrefix"))
314
+ UpdateTrailRequest.add_member(:sns_topic_name, Shapes::ShapeRef.new(shape: String, location_name: "SnsTopicName"))
315
+ UpdateTrailRequest.add_member(:include_global_service_events, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeGlobalServiceEvents"))
316
+ UpdateTrailRequest.add_member(:is_multi_region_trail, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsMultiRegionTrail"))
317
+ UpdateTrailRequest.add_member(:enable_log_file_validation, Shapes::ShapeRef.new(shape: Boolean, location_name: "EnableLogFileValidation"))
318
+ UpdateTrailRequest.add_member(:cloud_watch_logs_log_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsLogGroupArn"))
319
+ UpdateTrailRequest.add_member(:cloud_watch_logs_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsRoleArn"))
320
+ UpdateTrailRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
321
+ UpdateTrailRequest.struct_class = Types::UpdateTrailRequest
322
+
323
+ UpdateTrailResponse.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
324
+ UpdateTrailResponse.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: String, location_name: "S3BucketName"))
325
+ UpdateTrailResponse.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "S3KeyPrefix"))
326
+ UpdateTrailResponse.add_member(:sns_topic_name, Shapes::ShapeRef.new(shape: String, deprecated: true, location_name: "SnsTopicName"))
327
+ UpdateTrailResponse.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: String, location_name: "SnsTopicARN"))
328
+ UpdateTrailResponse.add_member(:include_global_service_events, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeGlobalServiceEvents"))
329
+ UpdateTrailResponse.add_member(:is_multi_region_trail, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsMultiRegionTrail"))
330
+ UpdateTrailResponse.add_member(:trail_arn, Shapes::ShapeRef.new(shape: String, location_name: "TrailARN"))
331
+ UpdateTrailResponse.add_member(:log_file_validation_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "LogFileValidationEnabled"))
332
+ UpdateTrailResponse.add_member(:cloud_watch_logs_log_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsLogGroupArn"))
333
+ UpdateTrailResponse.add_member(:cloud_watch_logs_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "CloudWatchLogsRoleArn"))
334
+ UpdateTrailResponse.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
335
+ UpdateTrailResponse.struct_class = Types::UpdateTrailResponse
336
+
560
337
 
338
+ # @api private
339
+ API = Seahorse::Model::Api.new.tap do |api|
340
+
341
+ api.version = "2013-11-01"
342
+
343
+ api.metadata = {
344
+ "endpointPrefix" => "cloudtrail",
345
+ "jsonVersion" => "1.1",
346
+ "protocol" => "json",
347
+ "serviceFullName" => "AWS CloudTrail",
348
+ "signatureVersion" => "v4",
349
+ "targetPrefix" => "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101",
350
+ }
351
+
352
+ api.add_operation(:add_tags, Seahorse::Model::Operation.new.tap do |o|
353
+ o.name = "AddTags"
354
+ o.http_method = "POST"
355
+ o.http_request_uri = "/"
356
+ o.input = Shapes::ShapeRef.new(shape: AddTagsRequest)
357
+ o.output = Shapes::ShapeRef.new(shape: AddTagsResponse)
358
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
359
+ o.errors << Shapes::ShapeRef.new(shape: CloudTrailARNInvalidException)
360
+ o.errors << Shapes::ShapeRef.new(shape: ResourceTypeNotSupportedException)
361
+ o.errors << Shapes::ShapeRef.new(shape: TagsLimitExceededException)
362
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
363
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
364
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
365
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
366
+ end)
367
+
368
+ api.add_operation(:create_trail, Seahorse::Model::Operation.new.tap do |o|
369
+ o.name = "CreateTrail"
370
+ o.http_method = "POST"
371
+ o.http_request_uri = "/"
372
+ o.input = Shapes::ShapeRef.new(shape: CreateTrailRequest)
373
+ o.output = Shapes::ShapeRef.new(shape: CreateTrailResponse)
374
+ o.errors << Shapes::ShapeRef.new(shape: MaximumNumberOfTrailsExceededException)
375
+ o.errors << Shapes::ShapeRef.new(shape: TrailAlreadyExistsException)
376
+ o.errors << Shapes::ShapeRef.new(shape: S3BucketDoesNotExistException)
377
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientS3BucketPolicyException)
378
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientSnsTopicPolicyException)
379
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientEncryptionPolicyException)
380
+ o.errors << Shapes::ShapeRef.new(shape: InvalidS3BucketNameException)
381
+ o.errors << Shapes::ShapeRef.new(shape: InvalidS3PrefixException)
382
+ o.errors << Shapes::ShapeRef.new(shape: InvalidSnsTopicNameException)
383
+ o.errors << Shapes::ShapeRef.new(shape: InvalidKmsKeyIdException)
384
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
385
+ o.errors << Shapes::ShapeRef.new(shape: TrailNotProvidedException)
386
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
387
+ o.errors << Shapes::ShapeRef.new(shape: KmsKeyNotFoundException)
388
+ o.errors << Shapes::ShapeRef.new(shape: KmsKeyDisabledException)
389
+ o.errors << Shapes::ShapeRef.new(shape: KmsException)
390
+ o.errors << Shapes::ShapeRef.new(shape: InvalidCloudWatchLogsLogGroupArnException)
391
+ o.errors << Shapes::ShapeRef.new(shape: InvalidCloudWatchLogsRoleArnException)
392
+ o.errors << Shapes::ShapeRef.new(shape: CloudWatchLogsDeliveryUnavailableException)
393
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
394
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
395
+ end)
396
+
397
+ api.add_operation(:delete_trail, Seahorse::Model::Operation.new.tap do |o|
398
+ o.name = "DeleteTrail"
399
+ o.http_method = "POST"
400
+ o.http_request_uri = "/"
401
+ o.input = Shapes::ShapeRef.new(shape: DeleteTrailRequest)
402
+ o.output = Shapes::ShapeRef.new(shape: DeleteTrailResponse)
403
+ o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
404
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
405
+ o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
406
+ end)
407
+
408
+ api.add_operation(:describe_trails, Seahorse::Model::Operation.new.tap do |o|
409
+ o.name = "DescribeTrails"
410
+ o.http_method = "POST"
411
+ o.http_request_uri = "/"
412
+ o.input = Shapes::ShapeRef.new(shape: DescribeTrailsRequest)
413
+ o.output = Shapes::ShapeRef.new(shape: DescribeTrailsResponse)
414
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
415
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
416
+ end)
417
+
418
+ api.add_operation(:get_event_selectors, Seahorse::Model::Operation.new.tap do |o|
419
+ o.name = "GetEventSelectors"
420
+ o.http_method = "POST"
421
+ o.http_request_uri = "/"
422
+ o.input = Shapes::ShapeRef.new(shape: GetEventSelectorsRequest)
423
+ o.output = Shapes::ShapeRef.new(shape: GetEventSelectorsResponse)
424
+ o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
425
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
426
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
427
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
428
+ end)
429
+
430
+ api.add_operation(:get_trail_status, Seahorse::Model::Operation.new.tap do |o|
431
+ o.name = "GetTrailStatus"
432
+ o.http_method = "POST"
433
+ o.http_request_uri = "/"
434
+ o.input = Shapes::ShapeRef.new(shape: GetTrailStatusRequest)
435
+ o.output = Shapes::ShapeRef.new(shape: GetTrailStatusResponse)
436
+ o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
437
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
438
+ end)
439
+
440
+ api.add_operation(:list_public_keys, Seahorse::Model::Operation.new.tap do |o|
441
+ o.name = "ListPublicKeys"
442
+ o.http_method = "POST"
443
+ o.http_request_uri = "/"
444
+ o.input = Shapes::ShapeRef.new(shape: ListPublicKeysRequest)
445
+ o.output = Shapes::ShapeRef.new(shape: ListPublicKeysResponse)
446
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTimeRangeException)
447
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
448
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
449
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTokenException)
450
+ end)
451
+
452
+ api.add_operation(:list_tags, Seahorse::Model::Operation.new.tap do |o|
453
+ o.name = "ListTags"
454
+ o.http_method = "POST"
455
+ o.http_request_uri = "/"
456
+ o.input = Shapes::ShapeRef.new(shape: ListTagsRequest)
457
+ o.output = Shapes::ShapeRef.new(shape: ListTagsResponse)
458
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
459
+ o.errors << Shapes::ShapeRef.new(shape: CloudTrailARNInvalidException)
460
+ o.errors << Shapes::ShapeRef.new(shape: ResourceTypeNotSupportedException)
461
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
462
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
463
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
464
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTokenException)
465
+ end)
466
+
467
+ api.add_operation(:lookup_events, Seahorse::Model::Operation.new.tap do |o|
468
+ o.name = "LookupEvents"
469
+ o.http_method = "POST"
470
+ o.http_request_uri = "/"
471
+ o.input = Shapes::ShapeRef.new(shape: LookupEventsRequest)
472
+ o.output = Shapes::ShapeRef.new(shape: LookupEventsResponse)
473
+ o.errors << Shapes::ShapeRef.new(shape: InvalidLookupAttributesException)
474
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTimeRangeException)
475
+ o.errors << Shapes::ShapeRef.new(shape: InvalidMaxResultsException)
476
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
477
+ o[:pager] = Aws::Pager.new(
478
+ limit_key: "max_results",
479
+ tokens: {
480
+ "next_token" => "next_token"
481
+ }
482
+ )
483
+ end)
484
+
485
+ api.add_operation(:put_event_selectors, Seahorse::Model::Operation.new.tap do |o|
486
+ o.name = "PutEventSelectors"
487
+ o.http_method = "POST"
488
+ o.http_request_uri = "/"
489
+ o.input = Shapes::ShapeRef.new(shape: PutEventSelectorsRequest)
490
+ o.output = Shapes::ShapeRef.new(shape: PutEventSelectorsResponse)
491
+ o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
492
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
493
+ o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
494
+ o.errors << Shapes::ShapeRef.new(shape: InvalidEventSelectorsException)
495
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
496
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
497
+ end)
498
+
499
+ api.add_operation(:remove_tags, Seahorse::Model::Operation.new.tap do |o|
500
+ o.name = "RemoveTags"
501
+ o.http_method = "POST"
502
+ o.http_request_uri = "/"
503
+ o.input = Shapes::ShapeRef.new(shape: RemoveTagsRequest)
504
+ o.output = Shapes::ShapeRef.new(shape: RemoveTagsResponse)
505
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
506
+ o.errors << Shapes::ShapeRef.new(shape: CloudTrailARNInvalidException)
507
+ o.errors << Shapes::ShapeRef.new(shape: ResourceTypeNotSupportedException)
508
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
509
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
510
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
511
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
512
+ end)
513
+
514
+ api.add_operation(:start_logging, Seahorse::Model::Operation.new.tap do |o|
515
+ o.name = "StartLogging"
516
+ o.http_method = "POST"
517
+ o.http_request_uri = "/"
518
+ o.input = Shapes::ShapeRef.new(shape: StartLoggingRequest)
519
+ o.output = Shapes::ShapeRef.new(shape: StartLoggingResponse)
520
+ o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
521
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
522
+ o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
523
+ end)
524
+
525
+ api.add_operation(:stop_logging, Seahorse::Model::Operation.new.tap do |o|
526
+ o.name = "StopLogging"
527
+ o.http_method = "POST"
528
+ o.http_request_uri = "/"
529
+ o.input = Shapes::ShapeRef.new(shape: StopLoggingRequest)
530
+ o.output = Shapes::ShapeRef.new(shape: StopLoggingResponse)
531
+ o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
532
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
533
+ o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
534
+ end)
535
+
536
+ api.add_operation(:update_trail, Seahorse::Model::Operation.new.tap do |o|
537
+ o.name = "UpdateTrail"
538
+ o.http_method = "POST"
539
+ o.http_request_uri = "/"
540
+ o.input = Shapes::ShapeRef.new(shape: UpdateTrailRequest)
541
+ o.output = Shapes::ShapeRef.new(shape: UpdateTrailResponse)
542
+ o.errors << Shapes::ShapeRef.new(shape: S3BucketDoesNotExistException)
543
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientS3BucketPolicyException)
544
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientSnsTopicPolicyException)
545
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientEncryptionPolicyException)
546
+ o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
547
+ o.errors << Shapes::ShapeRef.new(shape: InvalidS3BucketNameException)
548
+ o.errors << Shapes::ShapeRef.new(shape: InvalidS3PrefixException)
549
+ o.errors << Shapes::ShapeRef.new(shape: InvalidSnsTopicNameException)
550
+ o.errors << Shapes::ShapeRef.new(shape: InvalidKmsKeyIdException)
551
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
552
+ o.errors << Shapes::ShapeRef.new(shape: TrailNotProvidedException)
553
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
554
+ o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
555
+ o.errors << Shapes::ShapeRef.new(shape: KmsKeyNotFoundException)
556
+ o.errors << Shapes::ShapeRef.new(shape: KmsKeyDisabledException)
557
+ o.errors << Shapes::ShapeRef.new(shape: KmsException)
558
+ o.errors << Shapes::ShapeRef.new(shape: InvalidCloudWatchLogsLogGroupArnException)
559
+ o.errors << Shapes::ShapeRef.new(shape: InvalidCloudWatchLogsRoleArnException)
560
+ o.errors << Shapes::ShapeRef.new(shape: CloudWatchLogsDeliveryUnavailableException)
561
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
562
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
563
+ end)
561
564
  end
565
+
562
566
  end
563
567
  end