aws-sdk-internetmonitor 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,449 @@
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::InternetMonitor
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ Arn = Shapes::StringShape.new(name: 'Arn')
18
+ AvailabilityMeasurement = Shapes::StructureShape.new(name: 'AvailabilityMeasurement')
19
+ BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
20
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
21
+ CreateMonitorInput = Shapes::StructureShape.new(name: 'CreateMonitorInput')
22
+ CreateMonitorOutput = Shapes::StructureShape.new(name: 'CreateMonitorOutput')
23
+ DeleteMonitorInput = Shapes::StructureShape.new(name: 'DeleteMonitorInput')
24
+ DeleteMonitorOutput = Shapes::StructureShape.new(name: 'DeleteMonitorOutput')
25
+ Double = Shapes::FloatShape.new(name: 'Double')
26
+ GetHealthEventInput = Shapes::StructureShape.new(name: 'GetHealthEventInput')
27
+ GetHealthEventOutput = Shapes::StructureShape.new(name: 'GetHealthEventOutput')
28
+ GetMonitorInput = Shapes::StructureShape.new(name: 'GetMonitorInput')
29
+ GetMonitorOutput = Shapes::StructureShape.new(name: 'GetMonitorOutput')
30
+ HealthEvent = Shapes::StructureShape.new(name: 'HealthEvent')
31
+ HealthEventImpactType = Shapes::StringShape.new(name: 'HealthEventImpactType')
32
+ HealthEventList = Shapes::ListShape.new(name: 'HealthEventList')
33
+ HealthEventName = Shapes::StringShape.new(name: 'HealthEventName')
34
+ HealthEventStatus = Shapes::StringShape.new(name: 'HealthEventStatus')
35
+ ImpactedLocation = Shapes::StructureShape.new(name: 'ImpactedLocation')
36
+ ImpactedLocationsList = Shapes::ListShape.new(name: 'ImpactedLocationsList')
37
+ InternalServerErrorException = Shapes::StructureShape.new(name: 'InternalServerErrorException')
38
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
39
+ InternetHealth = Shapes::StructureShape.new(name: 'InternetHealth')
40
+ LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
41
+ ListHealthEventsInput = Shapes::StructureShape.new(name: 'ListHealthEventsInput')
42
+ ListHealthEventsOutput = Shapes::StructureShape.new(name: 'ListHealthEventsOutput')
43
+ ListMonitorsInput = Shapes::StructureShape.new(name: 'ListMonitorsInput')
44
+ ListMonitorsOutput = Shapes::StructureShape.new(name: 'ListMonitorsOutput')
45
+ ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
46
+ ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
47
+ Long = Shapes::IntegerShape.new(name: 'Long')
48
+ MaxCityNetworksToMonitor = Shapes::IntegerShape.new(name: 'MaxCityNetworksToMonitor')
49
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
50
+ Monitor = Shapes::StructureShape.new(name: 'Monitor')
51
+ MonitorArn = Shapes::StringShape.new(name: 'MonitorArn')
52
+ MonitorConfigState = Shapes::StringShape.new(name: 'MonitorConfigState')
53
+ MonitorList = Shapes::ListShape.new(name: 'MonitorList')
54
+ MonitorProcessingStatusCode = Shapes::StringShape.new(name: 'MonitorProcessingStatusCode')
55
+ Network = Shapes::StructureShape.new(name: 'Network')
56
+ NetworkImpairment = Shapes::StructureShape.new(name: 'NetworkImpairment')
57
+ NetworkList = Shapes::ListShape.new(name: 'NetworkList')
58
+ NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
59
+ PerformanceMeasurement = Shapes::StructureShape.new(name: 'PerformanceMeasurement')
60
+ ResourceName = Shapes::StringShape.new(name: 'ResourceName')
61
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
62
+ RoundTripTime = Shapes::StructureShape.new(name: 'RoundTripTime')
63
+ SetOfARNs = Shapes::ListShape.new(name: 'SetOfARNs')
64
+ String = Shapes::StringShape.new(name: 'String')
65
+ SyntheticTimestamp_date_time = Shapes::TimestampShape.new(name: 'SyntheticTimestamp_date_time', timestampFormat: "iso8601")
66
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
67
+ TagKeys = Shapes::ListShape.new(name: 'TagKeys')
68
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
69
+ TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
70
+ TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
71
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
72
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
73
+ TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
74
+ TriangulationEventType = Shapes::StringShape.new(name: 'TriangulationEventType')
75
+ UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
76
+ UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
77
+ UpdateMonitorInput = Shapes::StructureShape.new(name: 'UpdateMonitorInput')
78
+ UpdateMonitorOutput = Shapes::StructureShape.new(name: 'UpdateMonitorOutput')
79
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
80
+
81
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
82
+ AccessDeniedException.struct_class = Types::AccessDeniedException
83
+
84
+ AvailabilityMeasurement.add_member(:experience_score, Shapes::ShapeRef.new(shape: Double, location_name: "ExperienceScore"))
85
+ AvailabilityMeasurement.add_member(:percent_of_total_traffic_impacted, Shapes::ShapeRef.new(shape: Double, location_name: "PercentOfTotalTrafficImpacted"))
86
+ AvailabilityMeasurement.add_member(:percent_of_client_location_impacted, Shapes::ShapeRef.new(shape: Double, location_name: "PercentOfClientLocationImpacted"))
87
+ AvailabilityMeasurement.struct_class = Types::AvailabilityMeasurement
88
+
89
+ BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
90
+ BadRequestException.struct_class = Types::BadRequestException
91
+
92
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
93
+ ConflictException.struct_class = Types::ConflictException
94
+
95
+ CreateMonitorInput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "MonitorName"))
96
+ CreateMonitorInput.add_member(:resources, Shapes::ShapeRef.new(shape: SetOfARNs, location_name: "Resources"))
97
+ CreateMonitorInput.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
98
+ CreateMonitorInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
99
+ CreateMonitorInput.add_member(:max_city_networks_to_monitor, Shapes::ShapeRef.new(shape: MaxCityNetworksToMonitor, required: true, location_name: "MaxCityNetworksToMonitor"))
100
+ CreateMonitorInput.struct_class = Types::CreateMonitorInput
101
+
102
+ CreateMonitorOutput.add_member(:arn, Shapes::ShapeRef.new(shape: MonitorArn, required: true, location_name: "Arn"))
103
+ CreateMonitorOutput.add_member(:status, Shapes::ShapeRef.new(shape: MonitorConfigState, required: true, location_name: "Status"))
104
+ CreateMonitorOutput.struct_class = Types::CreateMonitorOutput
105
+
106
+ DeleteMonitorInput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "MonitorName"))
107
+ DeleteMonitorInput.struct_class = Types::DeleteMonitorInput
108
+
109
+ DeleteMonitorOutput.struct_class = Types::DeleteMonitorOutput
110
+
111
+ GetHealthEventInput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "MonitorName"))
112
+ GetHealthEventInput.add_member(:event_id, Shapes::ShapeRef.new(shape: HealthEventName, required: true, location: "uri", location_name: "EventId"))
113
+ GetHealthEventInput.struct_class = Types::GetHealthEventInput
114
+
115
+ GetHealthEventOutput.add_member(:event_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "EventArn"))
116
+ GetHealthEventOutput.add_member(:event_id, Shapes::ShapeRef.new(shape: HealthEventName, required: true, location_name: "EventId"))
117
+ GetHealthEventOutput.add_member(:started_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "StartedAt"))
118
+ GetHealthEventOutput.add_member(:ended_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "EndedAt"))
119
+ GetHealthEventOutput.add_member(:created_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "CreatedAt"))
120
+ GetHealthEventOutput.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "LastUpdatedAt"))
121
+ GetHealthEventOutput.add_member(:impacted_locations, Shapes::ShapeRef.new(shape: ImpactedLocationsList, required: true, location_name: "ImpactedLocations"))
122
+ GetHealthEventOutput.add_member(:status, Shapes::ShapeRef.new(shape: HealthEventStatus, required: true, location_name: "Status"))
123
+ GetHealthEventOutput.add_member(:percent_of_total_traffic_impacted, Shapes::ShapeRef.new(shape: Double, location_name: "PercentOfTotalTrafficImpacted"))
124
+ GetHealthEventOutput.add_member(:impact_type, Shapes::ShapeRef.new(shape: HealthEventImpactType, required: true, location_name: "ImpactType"))
125
+ GetHealthEventOutput.struct_class = Types::GetHealthEventOutput
126
+
127
+ GetMonitorInput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "MonitorName"))
128
+ GetMonitorInput.struct_class = Types::GetMonitorInput
129
+
130
+ GetMonitorOutput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "MonitorName"))
131
+ GetMonitorOutput.add_member(:monitor_arn, Shapes::ShapeRef.new(shape: MonitorArn, required: true, location_name: "MonitorArn"))
132
+ GetMonitorOutput.add_member(:resources, Shapes::ShapeRef.new(shape: SetOfARNs, required: true, location_name: "Resources"))
133
+ GetMonitorOutput.add_member(:status, Shapes::ShapeRef.new(shape: MonitorConfigState, required: true, location_name: "Status"))
134
+ GetMonitorOutput.add_member(:created_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "CreatedAt"))
135
+ GetMonitorOutput.add_member(:modified_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "ModifiedAt"))
136
+ GetMonitorOutput.add_member(:processing_status, Shapes::ShapeRef.new(shape: MonitorProcessingStatusCode, location_name: "ProcessingStatus"))
137
+ GetMonitorOutput.add_member(:processing_status_info, Shapes::ShapeRef.new(shape: String, location_name: "ProcessingStatusInfo"))
138
+ GetMonitorOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
139
+ GetMonitorOutput.add_member(:max_city_networks_to_monitor, Shapes::ShapeRef.new(shape: MaxCityNetworksToMonitor, required: true, location_name: "MaxCityNetworksToMonitor"))
140
+ GetMonitorOutput.struct_class = Types::GetMonitorOutput
141
+
142
+ HealthEvent.add_member(:event_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "EventArn"))
143
+ HealthEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: HealthEventName, required: true, location_name: "EventId"))
144
+ HealthEvent.add_member(:started_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "StartedAt"))
145
+ HealthEvent.add_member(:ended_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "EndedAt"))
146
+ HealthEvent.add_member(:created_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "CreatedAt"))
147
+ HealthEvent.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "LastUpdatedAt"))
148
+ HealthEvent.add_member(:impacted_locations, Shapes::ShapeRef.new(shape: ImpactedLocationsList, required: true, location_name: "ImpactedLocations"))
149
+ HealthEvent.add_member(:status, Shapes::ShapeRef.new(shape: HealthEventStatus, required: true, location_name: "Status"))
150
+ HealthEvent.add_member(:percent_of_total_traffic_impacted, Shapes::ShapeRef.new(shape: Double, location_name: "PercentOfTotalTrafficImpacted"))
151
+ HealthEvent.add_member(:impact_type, Shapes::ShapeRef.new(shape: HealthEventImpactType, required: true, location_name: "ImpactType"))
152
+ HealthEvent.struct_class = Types::HealthEvent
153
+
154
+ HealthEventList.member = Shapes::ShapeRef.new(shape: HealthEvent)
155
+
156
+ ImpactedLocation.add_member(:as_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ASName"))
157
+ ImpactedLocation.add_member(:as_number, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "ASNumber"))
158
+ ImpactedLocation.add_member(:country, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Country"))
159
+ ImpactedLocation.add_member(:subdivision, Shapes::ShapeRef.new(shape: String, location_name: "Subdivision"))
160
+ ImpactedLocation.add_member(:metro, Shapes::ShapeRef.new(shape: String, location_name: "Metro"))
161
+ ImpactedLocation.add_member(:city, Shapes::ShapeRef.new(shape: String, location_name: "City"))
162
+ ImpactedLocation.add_member(:latitude, Shapes::ShapeRef.new(shape: Double, location_name: "Latitude"))
163
+ ImpactedLocation.add_member(:longitude, Shapes::ShapeRef.new(shape: Double, location_name: "Longitude"))
164
+ ImpactedLocation.add_member(:country_code, Shapes::ShapeRef.new(shape: String, location_name: "CountryCode"))
165
+ ImpactedLocation.add_member(:subdivision_code, Shapes::ShapeRef.new(shape: String, location_name: "SubdivisionCode"))
166
+ ImpactedLocation.add_member(:service_location, Shapes::ShapeRef.new(shape: String, location_name: "ServiceLocation"))
167
+ ImpactedLocation.add_member(:status, Shapes::ShapeRef.new(shape: HealthEventStatus, required: true, location_name: "Status"))
168
+ ImpactedLocation.add_member(:caused_by, Shapes::ShapeRef.new(shape: NetworkImpairment, location_name: "CausedBy"))
169
+ ImpactedLocation.add_member(:internet_health, Shapes::ShapeRef.new(shape: InternetHealth, location_name: "InternetHealth"))
170
+ ImpactedLocation.struct_class = Types::ImpactedLocation
171
+
172
+ ImpactedLocationsList.member = Shapes::ShapeRef.new(shape: ImpactedLocation)
173
+
174
+ InternalServerErrorException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
175
+ InternalServerErrorException.struct_class = Types::InternalServerErrorException
176
+
177
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
178
+ InternalServerException.struct_class = Types::InternalServerException
179
+
180
+ InternetHealth.add_member(:availability, Shapes::ShapeRef.new(shape: AvailabilityMeasurement, location_name: "Availability"))
181
+ InternetHealth.add_member(:performance, Shapes::ShapeRef.new(shape: PerformanceMeasurement, location_name: "Performance"))
182
+ InternetHealth.struct_class = Types::InternetHealth
183
+
184
+ LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
185
+ LimitExceededException.struct_class = Types::LimitExceededException
186
+
187
+ ListHealthEventsInput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "MonitorName"))
188
+ ListHealthEventsInput.add_member(:start_time, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location: "querystring", location_name: "StartTime"))
189
+ ListHealthEventsInput.add_member(:end_time, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location: "querystring", location_name: "EndTime"))
190
+ ListHealthEventsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "NextToken"))
191
+ ListHealthEventsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "MaxResults"))
192
+ ListHealthEventsInput.add_member(:event_status, Shapes::ShapeRef.new(shape: HealthEventStatus, location: "querystring", location_name: "EventStatus"))
193
+ ListHealthEventsInput.struct_class = Types::ListHealthEventsInput
194
+
195
+ ListHealthEventsOutput.add_member(:health_events, Shapes::ShapeRef.new(shape: HealthEventList, required: true, location_name: "HealthEvents"))
196
+ ListHealthEventsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
197
+ ListHealthEventsOutput.struct_class = Types::ListHealthEventsOutput
198
+
199
+ ListMonitorsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "NextToken"))
200
+ ListMonitorsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "MaxResults"))
201
+ ListMonitorsInput.add_member(:monitor_status, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "MonitorStatus"))
202
+ ListMonitorsInput.struct_class = Types::ListMonitorsInput
203
+
204
+ ListMonitorsOutput.add_member(:monitors, Shapes::ShapeRef.new(shape: MonitorList, required: true, location_name: "Monitors"))
205
+ ListMonitorsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
206
+ ListMonitorsOutput.struct_class = Types::ListMonitorsOutput
207
+
208
+ ListTagsForResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: MonitorArn, required: true, location: "uri", location_name: "ResourceArn"))
209
+ ListTagsForResourceInput.struct_class = Types::ListTagsForResourceInput
210
+
211
+ ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
212
+ ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
213
+
214
+ Monitor.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "MonitorName"))
215
+ Monitor.add_member(:monitor_arn, Shapes::ShapeRef.new(shape: MonitorArn, required: true, location_name: "MonitorArn"))
216
+ Monitor.add_member(:status, Shapes::ShapeRef.new(shape: MonitorConfigState, required: true, location_name: "Status"))
217
+ Monitor.add_member(:processing_status, Shapes::ShapeRef.new(shape: MonitorProcessingStatusCode, location_name: "ProcessingStatus"))
218
+ Monitor.struct_class = Types::Monitor
219
+
220
+ MonitorList.member = Shapes::ShapeRef.new(shape: Monitor)
221
+
222
+ Network.add_member(:as_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ASName"))
223
+ Network.add_member(:as_number, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "ASNumber"))
224
+ Network.struct_class = Types::Network
225
+
226
+ NetworkImpairment.add_member(:networks, Shapes::ShapeRef.new(shape: NetworkList, required: true, location_name: "Networks"))
227
+ NetworkImpairment.add_member(:as_path, Shapes::ShapeRef.new(shape: NetworkList, required: true, location_name: "AsPath"))
228
+ NetworkImpairment.add_member(:network_event_type, Shapes::ShapeRef.new(shape: TriangulationEventType, required: true, location_name: "NetworkEventType"))
229
+ NetworkImpairment.struct_class = Types::NetworkImpairment
230
+
231
+ NetworkList.member = Shapes::ShapeRef.new(shape: Network)
232
+
233
+ NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
234
+ NotFoundException.struct_class = Types::NotFoundException
235
+
236
+ PerformanceMeasurement.add_member(:experience_score, Shapes::ShapeRef.new(shape: Double, location_name: "ExperienceScore"))
237
+ PerformanceMeasurement.add_member(:percent_of_total_traffic_impacted, Shapes::ShapeRef.new(shape: Double, location_name: "PercentOfTotalTrafficImpacted"))
238
+ PerformanceMeasurement.add_member(:percent_of_client_location_impacted, Shapes::ShapeRef.new(shape: Double, location_name: "PercentOfClientLocationImpacted"))
239
+ PerformanceMeasurement.add_member(:round_trip_time, Shapes::ShapeRef.new(shape: RoundTripTime, location_name: "RoundTripTime"))
240
+ PerformanceMeasurement.struct_class = Types::PerformanceMeasurement
241
+
242
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
243
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
244
+
245
+ RoundTripTime.add_member(:p50, Shapes::ShapeRef.new(shape: Double, location_name: "P50"))
246
+ RoundTripTime.add_member(:p90, Shapes::ShapeRef.new(shape: Double, location_name: "P90"))
247
+ RoundTripTime.add_member(:p95, Shapes::ShapeRef.new(shape: Double, location_name: "P95"))
248
+ RoundTripTime.struct_class = Types::RoundTripTime
249
+
250
+ SetOfARNs.member = Shapes::ShapeRef.new(shape: Arn)
251
+
252
+ TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
253
+
254
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
255
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
256
+
257
+ TagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: MonitorArn, required: true, location: "uri", location_name: "ResourceArn"))
258
+ TagResourceInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
259
+ TagResourceInput.struct_class = Types::TagResourceInput
260
+
261
+ TagResourceOutput.struct_class = Types::TagResourceOutput
262
+
263
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
264
+ ThrottlingException.struct_class = Types::ThrottlingException
265
+
266
+ TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
267
+ TooManyRequestsException.struct_class = Types::TooManyRequestsException
268
+
269
+ UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: MonitorArn, required: true, location: "uri", location_name: "ResourceArn"))
270
+ UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location: "querystring", location_name: "tagKeys"))
271
+ UntagResourceInput.struct_class = Types::UntagResourceInput
272
+
273
+ UntagResourceOutput.struct_class = Types::UntagResourceOutput
274
+
275
+ UpdateMonitorInput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "MonitorName"))
276
+ UpdateMonitorInput.add_member(:resources_to_add, Shapes::ShapeRef.new(shape: SetOfARNs, location_name: "ResourcesToAdd"))
277
+ UpdateMonitorInput.add_member(:resources_to_remove, Shapes::ShapeRef.new(shape: SetOfARNs, location_name: "ResourcesToRemove"))
278
+ UpdateMonitorInput.add_member(:status, Shapes::ShapeRef.new(shape: MonitorConfigState, location_name: "Status"))
279
+ UpdateMonitorInput.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
280
+ UpdateMonitorInput.add_member(:max_city_networks_to_monitor, Shapes::ShapeRef.new(shape: MaxCityNetworksToMonitor, location_name: "MaxCityNetworksToMonitor"))
281
+ UpdateMonitorInput.struct_class = Types::UpdateMonitorInput
282
+
283
+ UpdateMonitorOutput.add_member(:monitor_arn, Shapes::ShapeRef.new(shape: MonitorArn, required: true, location_name: "MonitorArn"))
284
+ UpdateMonitorOutput.add_member(:status, Shapes::ShapeRef.new(shape: MonitorConfigState, required: true, location_name: "Status"))
285
+ UpdateMonitorOutput.struct_class = Types::UpdateMonitorOutput
286
+
287
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
288
+ ValidationException.struct_class = Types::ValidationException
289
+
290
+
291
+ # @api private
292
+ API = Seahorse::Model::Api.new.tap do |api|
293
+
294
+ api.version = "2021-06-03"
295
+
296
+ api.metadata = {
297
+ "apiVersion" => "2021-06-03",
298
+ "endpointPrefix" => "internetmonitor",
299
+ "jsonVersion" => "1.1",
300
+ "protocol" => "rest-json",
301
+ "serviceFullName" => "Amazon CloudWatch Internet Monitor",
302
+ "serviceId" => "InternetMonitor",
303
+ "signatureVersion" => "v4",
304
+ "signingName" => "internetmonitor",
305
+ "uid" => "internetmonitor-2021-06-03",
306
+ }
307
+
308
+ api.add_operation(:create_monitor, Seahorse::Model::Operation.new.tap do |o|
309
+ o.name = "CreateMonitor"
310
+ o.http_method = "POST"
311
+ o.http_request_uri = "/v20210603/Monitors"
312
+ o.input = Shapes::ShapeRef.new(shape: CreateMonitorInput)
313
+ o.output = Shapes::ShapeRef.new(shape: CreateMonitorOutput)
314
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
315
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
316
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
317
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
318
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
319
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
320
+ end)
321
+
322
+ api.add_operation(:delete_monitor, Seahorse::Model::Operation.new.tap do |o|
323
+ o.name = "DeleteMonitor"
324
+ o.http_method = "DELETE"
325
+ o.http_request_uri = "/v20210603/Monitors/{MonitorName}"
326
+ o.input = Shapes::ShapeRef.new(shape: DeleteMonitorInput)
327
+ o.output = Shapes::ShapeRef.new(shape: DeleteMonitorOutput)
328
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
329
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
330
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
331
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
332
+ end)
333
+
334
+ api.add_operation(:get_health_event, Seahorse::Model::Operation.new.tap do |o|
335
+ o.name = "GetHealthEvent"
336
+ o.http_method = "GET"
337
+ o.http_request_uri = "/v20210603/Monitors/{MonitorName}/HealthEvents/{EventId}"
338
+ o.input = Shapes::ShapeRef.new(shape: GetHealthEventInput)
339
+ o.output = Shapes::ShapeRef.new(shape: GetHealthEventOutput)
340
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
341
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
342
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
343
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
344
+ end)
345
+
346
+ api.add_operation(:get_monitor, Seahorse::Model::Operation.new.tap do |o|
347
+ o.name = "GetMonitor"
348
+ o.http_method = "GET"
349
+ o.http_request_uri = "/v20210603/Monitors/{MonitorName}"
350
+ o.input = Shapes::ShapeRef.new(shape: GetMonitorInput)
351
+ o.output = Shapes::ShapeRef.new(shape: GetMonitorOutput)
352
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
353
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
354
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
355
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
356
+ end)
357
+
358
+ api.add_operation(:list_health_events, Seahorse::Model::Operation.new.tap do |o|
359
+ o.name = "ListHealthEvents"
360
+ o.http_method = "GET"
361
+ o.http_request_uri = "/v20210603/Monitors/{MonitorName}/HealthEvents"
362
+ o.input = Shapes::ShapeRef.new(shape: ListHealthEventsInput)
363
+ o.output = Shapes::ShapeRef.new(shape: ListHealthEventsOutput)
364
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
365
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
366
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
367
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
368
+ o[:pager] = Aws::Pager.new(
369
+ limit_key: "max_results",
370
+ tokens: {
371
+ "next_token" => "next_token"
372
+ }
373
+ )
374
+ end)
375
+
376
+ api.add_operation(:list_monitors, Seahorse::Model::Operation.new.tap do |o|
377
+ o.name = "ListMonitors"
378
+ o.http_method = "GET"
379
+ o.http_request_uri = "/v20210603/Monitors"
380
+ o.input = Shapes::ShapeRef.new(shape: ListMonitorsInput)
381
+ o.output = Shapes::ShapeRef.new(shape: ListMonitorsOutput)
382
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
383
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
384
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
385
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
386
+ o[:pager] = Aws::Pager.new(
387
+ limit_key: "max_results",
388
+ tokens: {
389
+ "next_token" => "next_token"
390
+ }
391
+ )
392
+ end)
393
+
394
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
395
+ o.name = "ListTagsForResource"
396
+ o.http_method = "GET"
397
+ o.http_request_uri = "/tags/{ResourceArn}"
398
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceInput)
399
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceOutput)
400
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
401
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
402
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
403
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
404
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
405
+ end)
406
+
407
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
408
+ o.name = "TagResource"
409
+ o.http_method = "POST"
410
+ o.http_request_uri = "/tags/{ResourceArn}"
411
+ o.input = Shapes::ShapeRef.new(shape: TagResourceInput)
412
+ o.output = Shapes::ShapeRef.new(shape: TagResourceOutput)
413
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
414
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
415
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
416
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
417
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
418
+ end)
419
+
420
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
421
+ o.name = "UntagResource"
422
+ o.http_method = "DELETE"
423
+ o.http_request_uri = "/tags/{ResourceArn}"
424
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceInput)
425
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceOutput)
426
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
427
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
428
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
429
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
430
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
431
+ end)
432
+
433
+ api.add_operation(:update_monitor, Seahorse::Model::Operation.new.tap do |o|
434
+ o.name = "UpdateMonitor"
435
+ o.http_method = "PATCH"
436
+ o.http_request_uri = "/v20210603/Monitors/{MonitorName}"
437
+ o.input = Shapes::ShapeRef.new(shape: UpdateMonitorInput)
438
+ o.output = Shapes::ShapeRef.new(shape: UpdateMonitorOutput)
439
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
440
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
441
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
442
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
443
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
444
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
445
+ end)
446
+ end
447
+
448
+ end
449
+ end
File without changes
@@ -0,0 +1,54 @@
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::InternetMonitor
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_fips
19
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute endpoint
24
+ # Override the endpoint used to send this request
25
+ #
26
+ # @return [String]
27
+ #
28
+ EndpointParameters = Struct.new(
29
+ :region,
30
+ :use_fips,
31
+ :endpoint,
32
+ ) do
33
+ include Aws::Structure
34
+
35
+ # @api private
36
+ class << self
37
+ PARAM_MAP = {
38
+ 'Region' => :region,
39
+ 'UseFIPS' => :use_fips,
40
+ 'Endpoint' => :endpoint,
41
+ }.freeze
42
+ end
43
+
44
+ def initialize(options = {})
45
+ self[:region] = options[:region]
46
+ self[:use_fips] = options[:use_fips]
47
+ self[:use_fips] = false if self[:use_fips].nil?
48
+ if self[:use_fips].nil?
49
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
50
+ end
51
+ self[:endpoint] = options[:endpoint]
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,47 @@
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::InternetMonitor
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_fips = parameters.use_fips
15
+ endpoint = parameters.endpoint
16
+ if Aws::Endpoints::Matchers.set?(endpoint)
17
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
18
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
19
+ end
20
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
21
+ end
22
+ if Aws::Endpoints::Matchers.set?(region)
23
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
24
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
25
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
26
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
27
+ return Aws::Endpoints::Endpoint.new(url: "https://internetmonitor-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
28
+ end
29
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
30
+ end
31
+ return Aws::Endpoints::Endpoint.new(url: "https://internetmonitor.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://internetmonitor-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ return Aws::Endpoints::Endpoint.new(url: "https://internetmonitor.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
40
+ end
41
+ end
42
+ raise ArgumentError, "Invalid Configuration: Missing Region"
43
+ raise ArgumentError, 'No endpoint could be resolved'
44
+
45
+ end
46
+ end
47
+ end