aws-sdk-cloudwatchrum 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,434 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::CloudWatchRUM
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ AppMonitor = Shapes::StructureShape.new(name: 'AppMonitor')
18
+ AppMonitorConfiguration = Shapes::StructureShape.new(name: 'AppMonitorConfiguration')
19
+ AppMonitorDetails = Shapes::StructureShape.new(name: 'AppMonitorDetails')
20
+ AppMonitorDomain = Shapes::StringShape.new(name: 'AppMonitorDomain')
21
+ AppMonitorId = Shapes::StringShape.new(name: 'AppMonitorId')
22
+ AppMonitorName = Shapes::StringShape.new(name: 'AppMonitorName')
23
+ AppMonitorSummary = Shapes::StructureShape.new(name: 'AppMonitorSummary')
24
+ AppMonitorSummaryList = Shapes::ListShape.new(name: 'AppMonitorSummaryList')
25
+ Arn = Shapes::StringShape.new(name: 'Arn')
26
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
27
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
28
+ CreateAppMonitorRequest = Shapes::StructureShape.new(name: 'CreateAppMonitorRequest')
29
+ CreateAppMonitorResponse = Shapes::StructureShape.new(name: 'CreateAppMonitorResponse')
30
+ CwLog = Shapes::StructureShape.new(name: 'CwLog')
31
+ DataStorage = Shapes::StructureShape.new(name: 'DataStorage')
32
+ DeleteAppMonitorRequest = Shapes::StructureShape.new(name: 'DeleteAppMonitorRequest')
33
+ DeleteAppMonitorResponse = Shapes::StructureShape.new(name: 'DeleteAppMonitorResponse')
34
+ EventData = Shapes::StringShape.new(name: 'EventData')
35
+ EventDataList = Shapes::ListShape.new(name: 'EventDataList')
36
+ FavoritePages = Shapes::ListShape.new(name: 'FavoritePages')
37
+ GetAppMonitorDataRequest = Shapes::StructureShape.new(name: 'GetAppMonitorDataRequest')
38
+ GetAppMonitorDataResponse = Shapes::StructureShape.new(name: 'GetAppMonitorDataResponse')
39
+ GetAppMonitorRequest = Shapes::StructureShape.new(name: 'GetAppMonitorRequest')
40
+ GetAppMonitorResponse = Shapes::StructureShape.new(name: 'GetAppMonitorResponse')
41
+ ISOTimestampString = Shapes::StringShape.new(name: 'ISOTimestampString')
42
+ IdentityPoolId = Shapes::StringShape.new(name: 'IdentityPoolId')
43
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
44
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
45
+ JsonValue = Shapes::StringShape.new(name: 'JsonValue')
46
+ ListAppMonitorsRequest = Shapes::StructureShape.new(name: 'ListAppMonitorsRequest')
47
+ ListAppMonitorsResponse = Shapes::StructureShape.new(name: 'ListAppMonitorsResponse')
48
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
49
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
50
+ MaxQueryResults = Shapes::IntegerShape.new(name: 'MaxQueryResults')
51
+ Pages = Shapes::ListShape.new(name: 'Pages')
52
+ PutRumEventsRequest = Shapes::StructureShape.new(name: 'PutRumEventsRequest')
53
+ PutRumEventsResponse = Shapes::StructureShape.new(name: 'PutRumEventsResponse')
54
+ QueryFilter = Shapes::StructureShape.new(name: 'QueryFilter')
55
+ QueryFilterKey = Shapes::StringShape.new(name: 'QueryFilterKey')
56
+ QueryFilterValue = Shapes::StringShape.new(name: 'QueryFilterValue')
57
+ QueryFilterValueList = Shapes::ListShape.new(name: 'QueryFilterValueList')
58
+ QueryFilters = Shapes::ListShape.new(name: 'QueryFilters')
59
+ QueryTimestamp = Shapes::IntegerShape.new(name: 'QueryTimestamp')
60
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
61
+ RumEvent = Shapes::StructureShape.new(name: 'RumEvent')
62
+ RumEventList = Shapes::ListShape.new(name: 'RumEventList')
63
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
64
+ SessionSampleRate = Shapes::FloatShape.new(name: 'SessionSampleRate')
65
+ StateEnum = Shapes::StringShape.new(name: 'StateEnum')
66
+ String = Shapes::StringShape.new(name: 'String')
67
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
68
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
69
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
70
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
71
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
72
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
73
+ Telemetries = Shapes::ListShape.new(name: 'Telemetries')
74
+ Telemetry = Shapes::StringShape.new(name: 'Telemetry')
75
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
76
+ TimeRange = Shapes::StructureShape.new(name: 'TimeRange')
77
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
78
+ Token = Shapes::StringShape.new(name: 'Token')
79
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
80
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
81
+ UpdateAppMonitorRequest = Shapes::StructureShape.new(name: 'UpdateAppMonitorRequest')
82
+ UpdateAppMonitorResponse = Shapes::StructureShape.new(name: 'UpdateAppMonitorResponse')
83
+ Url = Shapes::StringShape.new(name: 'Url')
84
+ UserDetails = Shapes::StructureShape.new(name: 'UserDetails')
85
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
86
+
87
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
88
+ AccessDeniedException.struct_class = Types::AccessDeniedException
89
+
90
+ AppMonitor.add_member(:app_monitor_configuration, Shapes::ShapeRef.new(shape: AppMonitorConfiguration, location_name: "AppMonitorConfiguration"))
91
+ AppMonitor.add_member(:created, Shapes::ShapeRef.new(shape: ISOTimestampString, location_name: "Created"))
92
+ AppMonitor.add_member(:data_storage, Shapes::ShapeRef.new(shape: DataStorage, location_name: "DataStorage"))
93
+ AppMonitor.add_member(:domain, Shapes::ShapeRef.new(shape: AppMonitorDomain, location_name: "Domain"))
94
+ AppMonitor.add_member(:id, Shapes::ShapeRef.new(shape: AppMonitorId, location_name: "Id"))
95
+ AppMonitor.add_member(:last_modified, Shapes::ShapeRef.new(shape: ISOTimestampString, location_name: "LastModified"))
96
+ AppMonitor.add_member(:name, Shapes::ShapeRef.new(shape: AppMonitorName, location_name: "Name"))
97
+ AppMonitor.add_member(:state, Shapes::ShapeRef.new(shape: StateEnum, location_name: "State"))
98
+ AppMonitor.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
99
+ AppMonitor.struct_class = Types::AppMonitor
100
+
101
+ AppMonitorConfiguration.add_member(:allow_cookies, Shapes::ShapeRef.new(shape: Boolean, location_name: "AllowCookies"))
102
+ AppMonitorConfiguration.add_member(:enable_x_ray, Shapes::ShapeRef.new(shape: Boolean, location_name: "EnableXRay"))
103
+ AppMonitorConfiguration.add_member(:excluded_pages, Shapes::ShapeRef.new(shape: Pages, location_name: "ExcludedPages"))
104
+ AppMonitorConfiguration.add_member(:favorite_pages, Shapes::ShapeRef.new(shape: FavoritePages, location_name: "FavoritePages"))
105
+ AppMonitorConfiguration.add_member(:guest_role_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "GuestRoleArn"))
106
+ AppMonitorConfiguration.add_member(:identity_pool_id, Shapes::ShapeRef.new(shape: IdentityPoolId, location_name: "IdentityPoolId"))
107
+ AppMonitorConfiguration.add_member(:included_pages, Shapes::ShapeRef.new(shape: Pages, location_name: "IncludedPages"))
108
+ AppMonitorConfiguration.add_member(:session_sample_rate, Shapes::ShapeRef.new(shape: SessionSampleRate, location_name: "SessionSampleRate"))
109
+ AppMonitorConfiguration.add_member(:telemetries, Shapes::ShapeRef.new(shape: Telemetries, location_name: "Telemetries"))
110
+ AppMonitorConfiguration.struct_class = Types::AppMonitorConfiguration
111
+
112
+ AppMonitorDetails.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
113
+ AppMonitorDetails.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
114
+ AppMonitorDetails.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "version"))
115
+ AppMonitorDetails.struct_class = Types::AppMonitorDetails
116
+
117
+ AppMonitorSummary.add_member(:created, Shapes::ShapeRef.new(shape: ISOTimestampString, location_name: "Created"))
118
+ AppMonitorSummary.add_member(:id, Shapes::ShapeRef.new(shape: AppMonitorId, location_name: "Id"))
119
+ AppMonitorSummary.add_member(:last_modified, Shapes::ShapeRef.new(shape: ISOTimestampString, location_name: "LastModified"))
120
+ AppMonitorSummary.add_member(:name, Shapes::ShapeRef.new(shape: AppMonitorName, location_name: "Name"))
121
+ AppMonitorSummary.add_member(:state, Shapes::ShapeRef.new(shape: StateEnum, location_name: "State"))
122
+ AppMonitorSummary.struct_class = Types::AppMonitorSummary
123
+
124
+ AppMonitorSummaryList.member = Shapes::ShapeRef.new(shape: AppMonitorSummary)
125
+
126
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
127
+ ConflictException.add_member(:resource_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceName"))
128
+ ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
129
+ ConflictException.struct_class = Types::ConflictException
130
+
131
+ CreateAppMonitorRequest.add_member(:app_monitor_configuration, Shapes::ShapeRef.new(shape: AppMonitorConfiguration, location_name: "AppMonitorConfiguration"))
132
+ CreateAppMonitorRequest.add_member(:cw_log_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "CwLogEnabled"))
133
+ CreateAppMonitorRequest.add_member(:domain, Shapes::ShapeRef.new(shape: AppMonitorDomain, required: true, location_name: "Domain"))
134
+ CreateAppMonitorRequest.add_member(:name, Shapes::ShapeRef.new(shape: AppMonitorName, required: true, location_name: "Name"))
135
+ CreateAppMonitorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
136
+ CreateAppMonitorRequest.struct_class = Types::CreateAppMonitorRequest
137
+
138
+ CreateAppMonitorResponse.add_member(:id, Shapes::ShapeRef.new(shape: AppMonitorId, location_name: "Id"))
139
+ CreateAppMonitorResponse.struct_class = Types::CreateAppMonitorResponse
140
+
141
+ CwLog.add_member(:cw_log_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "CwLogEnabled"))
142
+ CwLog.add_member(:cw_log_group, Shapes::ShapeRef.new(shape: String, location_name: "CwLogGroup"))
143
+ CwLog.struct_class = Types::CwLog
144
+
145
+ DataStorage.add_member(:cw_log, Shapes::ShapeRef.new(shape: CwLog, location_name: "CwLog"))
146
+ DataStorage.struct_class = Types::DataStorage
147
+
148
+ DeleteAppMonitorRequest.add_member(:name, Shapes::ShapeRef.new(shape: AppMonitorName, required: true, location: "uri", location_name: "Name"))
149
+ DeleteAppMonitorRequest.struct_class = Types::DeleteAppMonitorRequest
150
+
151
+ DeleteAppMonitorResponse.struct_class = Types::DeleteAppMonitorResponse
152
+
153
+ EventDataList.member = Shapes::ShapeRef.new(shape: EventData)
154
+
155
+ FavoritePages.member = Shapes::ShapeRef.new(shape: String)
156
+
157
+ GetAppMonitorDataRequest.add_member(:filters, Shapes::ShapeRef.new(shape: QueryFilters, location_name: "Filters"))
158
+ GetAppMonitorDataRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxQueryResults, location_name: "MaxResults"))
159
+ GetAppMonitorDataRequest.add_member(:name, Shapes::ShapeRef.new(shape: AppMonitorName, required: true, location: "uri", location_name: "Name"))
160
+ GetAppMonitorDataRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
161
+ GetAppMonitorDataRequest.add_member(:time_range, Shapes::ShapeRef.new(shape: TimeRange, required: true, location_name: "TimeRange"))
162
+ GetAppMonitorDataRequest.struct_class = Types::GetAppMonitorDataRequest
163
+
164
+ GetAppMonitorDataResponse.add_member(:events, Shapes::ShapeRef.new(shape: EventDataList, location_name: "Events"))
165
+ GetAppMonitorDataResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
166
+ GetAppMonitorDataResponse.struct_class = Types::GetAppMonitorDataResponse
167
+
168
+ GetAppMonitorRequest.add_member(:name, Shapes::ShapeRef.new(shape: AppMonitorName, required: true, location: "uri", location_name: "Name"))
169
+ GetAppMonitorRequest.struct_class = Types::GetAppMonitorRequest
170
+
171
+ GetAppMonitorResponse.add_member(:app_monitor, Shapes::ShapeRef.new(shape: AppMonitor, location_name: "AppMonitor"))
172
+ GetAppMonitorResponse.struct_class = Types::GetAppMonitorResponse
173
+
174
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
175
+ InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
176
+ InternalServerException.struct_class = Types::InternalServerException
177
+
178
+ ListAppMonitorsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location: "querystring", location_name: "maxResults"))
179
+ ListAppMonitorsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
180
+ ListAppMonitorsRequest.struct_class = Types::ListAppMonitorsRequest
181
+
182
+ ListAppMonitorsResponse.add_member(:app_monitor_summaries, Shapes::ShapeRef.new(shape: AppMonitorSummaryList, location_name: "AppMonitorSummaries"))
183
+ ListAppMonitorsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
184
+ ListAppMonitorsResponse.struct_class = Types::ListAppMonitorsResponse
185
+
186
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "ResourceArn"))
187
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
188
+
189
+ ListTagsForResourceResponse.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ResourceArn"))
190
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
191
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
192
+
193
+ Pages.member = Shapes::ShapeRef.new(shape: Url)
194
+
195
+ PutRumEventsRequest.add_member(:app_monitor_details, Shapes::ShapeRef.new(shape: AppMonitorDetails, required: true, location_name: "AppMonitorDetails"))
196
+ PutRumEventsRequest.add_member(:batch_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "BatchId"))
197
+ PutRumEventsRequest.add_member(:id, Shapes::ShapeRef.new(shape: AppMonitorId, required: true, location: "uri", location_name: "Id"))
198
+ PutRumEventsRequest.add_member(:rum_events, Shapes::ShapeRef.new(shape: RumEventList, required: true, location_name: "RumEvents"))
199
+ PutRumEventsRequest.add_member(:user_details, Shapes::ShapeRef.new(shape: UserDetails, required: true, location_name: "UserDetails"))
200
+ PutRumEventsRequest.struct_class = Types::PutRumEventsRequest
201
+
202
+ PutRumEventsResponse.struct_class = Types::PutRumEventsResponse
203
+
204
+ QueryFilter.add_member(:name, Shapes::ShapeRef.new(shape: QueryFilterKey, location_name: "Name"))
205
+ QueryFilter.add_member(:values, Shapes::ShapeRef.new(shape: QueryFilterValueList, location_name: "Values"))
206
+ QueryFilter.struct_class = Types::QueryFilter
207
+
208
+ QueryFilterValueList.member = Shapes::ShapeRef.new(shape: QueryFilterValue)
209
+
210
+ QueryFilters.member = Shapes::ShapeRef.new(shape: QueryFilter)
211
+
212
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
213
+ ResourceNotFoundException.add_member(:resource_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceName"))
214
+ ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
215
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
216
+
217
+ RumEvent.add_member(:details, Shapes::ShapeRef.new(shape: JsonValue, required: true, location_name: "details", metadata: {"jsonvalue"=>true}))
218
+ RumEvent.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "id"))
219
+ RumEvent.add_member(:metadata, Shapes::ShapeRef.new(shape: JsonValue, location_name: "metadata", metadata: {"jsonvalue"=>true}))
220
+ RumEvent.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "timestamp"))
221
+ RumEvent.add_member(:type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "type"))
222
+ RumEvent.struct_class = Types::RumEvent
223
+
224
+ RumEventList.member = Shapes::ShapeRef.new(shape: RumEvent)
225
+
226
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
227
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
228
+
229
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
230
+
231
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
232
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
233
+
234
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "ResourceArn"))
235
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
236
+ TagResourceRequest.struct_class = Types::TagResourceRequest
237
+
238
+ TagResourceResponse.struct_class = Types::TagResourceResponse
239
+
240
+ Telemetries.member = Shapes::ShapeRef.new(shape: Telemetry)
241
+
242
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
243
+ ThrottlingException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, location_name: "quotaCode"))
244
+ ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
245
+ ThrottlingException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, location_name: "serviceCode"))
246
+ ThrottlingException.struct_class = Types::ThrottlingException
247
+
248
+ TimeRange.add_member(:after, Shapes::ShapeRef.new(shape: QueryTimestamp, required: true, location_name: "After"))
249
+ TimeRange.add_member(:before, Shapes::ShapeRef.new(shape: QueryTimestamp, location_name: "Before"))
250
+ TimeRange.struct_class = Types::TimeRange
251
+
252
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "ResourceArn"))
253
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
254
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
255
+
256
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
257
+
258
+ UpdateAppMonitorRequest.add_member(:app_monitor_configuration, Shapes::ShapeRef.new(shape: AppMonitorConfiguration, location_name: "AppMonitorConfiguration"))
259
+ UpdateAppMonitorRequest.add_member(:cw_log_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "CwLogEnabled"))
260
+ UpdateAppMonitorRequest.add_member(:domain, Shapes::ShapeRef.new(shape: AppMonitorDomain, location_name: "Domain"))
261
+ UpdateAppMonitorRequest.add_member(:name, Shapes::ShapeRef.new(shape: AppMonitorName, required: true, location: "uri", location_name: "Name"))
262
+ UpdateAppMonitorRequest.struct_class = Types::UpdateAppMonitorRequest
263
+
264
+ UpdateAppMonitorResponse.struct_class = Types::UpdateAppMonitorResponse
265
+
266
+ UserDetails.add_member(:session_id, Shapes::ShapeRef.new(shape: String, location_name: "sessionId"))
267
+ UserDetails.add_member(:user_id, Shapes::ShapeRef.new(shape: String, location_name: "userId"))
268
+ UserDetails.struct_class = Types::UserDetails
269
+
270
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
271
+ ValidationException.struct_class = Types::ValidationException
272
+
273
+
274
+ # @api private
275
+ API = Seahorse::Model::Api.new.tap do |api|
276
+
277
+ api.version = "2018-05-10"
278
+
279
+ api.metadata = {
280
+ "apiVersion" => "2018-05-10",
281
+ "endpointPrefix" => "rum",
282
+ "jsonVersion" => "1.1",
283
+ "protocol" => "rest-json",
284
+ "serviceFullName" => "CloudWatch RUM",
285
+ "serviceId" => "RUM",
286
+ "signatureVersion" => "v4",
287
+ "signingName" => "rum",
288
+ "uid" => "rum-2018-05-10",
289
+ }
290
+
291
+ api.add_operation(:create_app_monitor, Seahorse::Model::Operation.new.tap do |o|
292
+ o.name = "CreateAppMonitor"
293
+ o.http_method = "POST"
294
+ o.http_request_uri = "/appmonitor"
295
+ o.input = Shapes::ShapeRef.new(shape: CreateAppMonitorRequest)
296
+ o.output = Shapes::ShapeRef.new(shape: CreateAppMonitorResponse)
297
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
298
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
299
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
300
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
301
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
302
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
303
+ end)
304
+
305
+ api.add_operation(:delete_app_monitor, Seahorse::Model::Operation.new.tap do |o|
306
+ o.name = "DeleteAppMonitor"
307
+ o.http_method = "DELETE"
308
+ o.http_request_uri = "/appmonitor/{Name}"
309
+ o.input = Shapes::ShapeRef.new(shape: DeleteAppMonitorRequest)
310
+ o.output = Shapes::ShapeRef.new(shape: DeleteAppMonitorResponse)
311
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
312
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
313
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
314
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
315
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
316
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
317
+ end)
318
+
319
+ api.add_operation(:get_app_monitor, Seahorse::Model::Operation.new.tap do |o|
320
+ o.name = "GetAppMonitor"
321
+ o.http_method = "GET"
322
+ o.http_request_uri = "/appmonitor/{Name}"
323
+ o.input = Shapes::ShapeRef.new(shape: GetAppMonitorRequest)
324
+ o.output = Shapes::ShapeRef.new(shape: GetAppMonitorResponse)
325
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
326
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
327
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
328
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
329
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
330
+ end)
331
+
332
+ api.add_operation(:get_app_monitor_data, Seahorse::Model::Operation.new.tap do |o|
333
+ o.name = "GetAppMonitorData"
334
+ o.http_method = "POST"
335
+ o.http_request_uri = "/appmonitor/{Name}/data"
336
+ o.input = Shapes::ShapeRef.new(shape: GetAppMonitorDataRequest)
337
+ o.output = Shapes::ShapeRef.new(shape: GetAppMonitorDataResponse)
338
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
339
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
340
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
341
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
342
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
343
+ o[:pager] = Aws::Pager.new(
344
+ limit_key: "max_results",
345
+ tokens: {
346
+ "next_token" => "next_token"
347
+ }
348
+ )
349
+ end)
350
+
351
+ api.add_operation(:list_app_monitors, Seahorse::Model::Operation.new.tap do |o|
352
+ o.name = "ListAppMonitors"
353
+ o.http_method = "POST"
354
+ o.http_request_uri = "/appmonitors"
355
+ o.input = Shapes::ShapeRef.new(shape: ListAppMonitorsRequest)
356
+ o.output = Shapes::ShapeRef.new(shape: ListAppMonitorsResponse)
357
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
358
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
359
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
360
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
361
+ o[:pager] = Aws::Pager.new(
362
+ limit_key: "max_results",
363
+ tokens: {
364
+ "next_token" => "next_token"
365
+ }
366
+ )
367
+ end)
368
+
369
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
370
+ o.name = "ListTagsForResource"
371
+ o.http_method = "GET"
372
+ o.http_request_uri = "/tags/{ResourceArn}"
373
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
374
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
375
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
376
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
377
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
378
+ end)
379
+
380
+ api.add_operation(:put_rum_events, Seahorse::Model::Operation.new.tap do |o|
381
+ o.name = "PutRumEvents"
382
+ o.http_method = "POST"
383
+ o.http_request_uri = "/appmonitors/{Id}/"
384
+ o.endpoint_pattern = {
385
+ "hostPrefix" => "dataplane.",
386
+ }
387
+ o.input = Shapes::ShapeRef.new(shape: PutRumEventsRequest)
388
+ o.output = Shapes::ShapeRef.new(shape: PutRumEventsResponse)
389
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
390
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
391
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
392
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
393
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
394
+ end)
395
+
396
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
397
+ o.name = "TagResource"
398
+ o.http_method = "POST"
399
+ o.http_request_uri = "/tags/{ResourceArn}"
400
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
401
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
402
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
403
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
404
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
405
+ end)
406
+
407
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
408
+ o.name = "UntagResource"
409
+ o.http_method = "DELETE"
410
+ o.http_request_uri = "/tags/{ResourceArn}"
411
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
412
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
413
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
414
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
415
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
416
+ end)
417
+
418
+ api.add_operation(:update_app_monitor, Seahorse::Model::Operation.new.tap do |o|
419
+ o.name = "UpdateAppMonitor"
420
+ o.http_method = "PATCH"
421
+ o.http_request_uri = "/appmonitor/{Name}"
422
+ o.input = Shapes::ShapeRef.new(shape: UpdateAppMonitorRequest)
423
+ o.output = Shapes::ShapeRef.new(shape: UpdateAppMonitorResponse)
424
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
425
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
426
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
427
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
428
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
429
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
430
+ end)
431
+ end
432
+
433
+ end
434
+ end
File without changes
@@ -0,0 +1,202 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::CloudWatchRUM
11
+
12
+ # When CloudWatchRUM returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::CloudWatchRUM::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all CloudWatchRUM errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::CloudWatchRUM::Errors::ServiceError
20
+ # # rescues all CloudWatchRUM API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {AccessDeniedException}
31
+ # * {ConflictException}
32
+ # * {InternalServerException}
33
+ # * {ResourceNotFoundException}
34
+ # * {ServiceQuotaExceededException}
35
+ # * {ThrottlingException}
36
+ # * {ValidationException}
37
+ #
38
+ # Additionally, error classes are dynamically generated for service errors based on the error code
39
+ # if they are not defined above.
40
+ module Errors
41
+
42
+ extend Aws::Errors::DynamicErrors
43
+
44
+ class AccessDeniedException < ServiceError
45
+
46
+ # @param [Seahorse::Client::RequestContext] context
47
+ # @param [String] message
48
+ # @param [Aws::CloudWatchRUM::Types::AccessDeniedException] data
49
+ def initialize(context, message, data = Aws::EmptyStructure.new)
50
+ super(context, message, data)
51
+ end
52
+
53
+ # @return [String]
54
+ def message
55
+ @message || @data[:message]
56
+ end
57
+ end
58
+
59
+ class ConflictException < ServiceError
60
+
61
+ # @param [Seahorse::Client::RequestContext] context
62
+ # @param [String] message
63
+ # @param [Aws::CloudWatchRUM::Types::ConflictException] data
64
+ def initialize(context, message, data = Aws::EmptyStructure.new)
65
+ super(context, message, data)
66
+ end
67
+
68
+ # @return [String]
69
+ def message
70
+ @message || @data[:message]
71
+ end
72
+
73
+ # @return [String]
74
+ def resource_name
75
+ @data[:resource_name]
76
+ end
77
+
78
+ # @return [String]
79
+ def resource_type
80
+ @data[:resource_type]
81
+ end
82
+ end
83
+
84
+ class InternalServerException < ServiceError
85
+
86
+ # @param [Seahorse::Client::RequestContext] context
87
+ # @param [String] message
88
+ # @param [Aws::CloudWatchRUM::Types::InternalServerException] data
89
+ def initialize(context, message, data = Aws::EmptyStructure.new)
90
+ super(context, message, data)
91
+ end
92
+
93
+ # @return [String]
94
+ def message
95
+ @message || @data[:message]
96
+ end
97
+
98
+ # @return [String]
99
+ def retry_after_seconds
100
+ @data[:retry_after_seconds]
101
+ end
102
+
103
+ def retryable?
104
+ true
105
+ end
106
+ end
107
+
108
+ class ResourceNotFoundException < ServiceError
109
+
110
+ # @param [Seahorse::Client::RequestContext] context
111
+ # @param [String] message
112
+ # @param [Aws::CloudWatchRUM::Types::ResourceNotFoundException] data
113
+ def initialize(context, message, data = Aws::EmptyStructure.new)
114
+ super(context, message, data)
115
+ end
116
+
117
+ # @return [String]
118
+ def message
119
+ @message || @data[:message]
120
+ end
121
+
122
+ # @return [String]
123
+ def resource_name
124
+ @data[:resource_name]
125
+ end
126
+
127
+ # @return [String]
128
+ def resource_type
129
+ @data[:resource_type]
130
+ end
131
+ end
132
+
133
+ class ServiceQuotaExceededException < ServiceError
134
+
135
+ # @param [Seahorse::Client::RequestContext] context
136
+ # @param [String] message
137
+ # @param [Aws::CloudWatchRUM::Types::ServiceQuotaExceededException] data
138
+ def initialize(context, message, data = Aws::EmptyStructure.new)
139
+ super(context, message, data)
140
+ end
141
+
142
+ # @return [String]
143
+ def message
144
+ @message || @data[:message]
145
+ end
146
+ end
147
+
148
+ class ThrottlingException < ServiceError
149
+
150
+ # @param [Seahorse::Client::RequestContext] context
151
+ # @param [String] message
152
+ # @param [Aws::CloudWatchRUM::Types::ThrottlingException] data
153
+ def initialize(context, message, data = Aws::EmptyStructure.new)
154
+ super(context, message, data)
155
+ end
156
+
157
+ # @return [String]
158
+ def message
159
+ @message || @data[:message]
160
+ end
161
+
162
+ # @return [String]
163
+ def quota_code
164
+ @data[:quota_code]
165
+ end
166
+
167
+ # @return [String]
168
+ def retry_after_seconds
169
+ @data[:retry_after_seconds]
170
+ end
171
+
172
+ # @return [String]
173
+ def service_code
174
+ @data[:service_code]
175
+ end
176
+
177
+ def retryable?
178
+ true
179
+ end
180
+
181
+ def throttling?
182
+ true
183
+ end
184
+ end
185
+
186
+ class ValidationException < ServiceError
187
+
188
+ # @param [Seahorse::Client::RequestContext] context
189
+ # @param [String] message
190
+ # @param [Aws::CloudWatchRUM::Types::ValidationException] data
191
+ def initialize(context, message, data = Aws::EmptyStructure.new)
192
+ super(context, message, data)
193
+ end
194
+
195
+ # @return [String]
196
+ def message
197
+ @message || @data[:message]
198
+ end
199
+ end
200
+
201
+ end
202
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::CloudWatchRUM
11
+
12
+ class Resource
13
+
14
+ # @param options ({})
15
+ # @option options [Client] :client
16
+ def initialize(options = {})
17
+ @client = options[:client] || Client.new(options)
18
+ end
19
+
20
+ # @return [Client]
21
+ def client
22
+ @client
23
+ end
24
+
25
+ end
26
+ end