aws-sdk-health 1.0.0.rc2

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,372 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module Health
10
+ # @api private
11
+ module ClientApi
12
+
13
+ include Seahorse::Model
14
+
15
+ AffectedEntity = Shapes::StructureShape.new(name: 'AffectedEntity')
16
+ DateTimeRange = Shapes::StructureShape.new(name: 'DateTimeRange')
17
+ DescribeAffectedEntitiesRequest = Shapes::StructureShape.new(name: 'DescribeAffectedEntitiesRequest')
18
+ DescribeAffectedEntitiesResponse = Shapes::StructureShape.new(name: 'DescribeAffectedEntitiesResponse')
19
+ DescribeEntityAggregatesRequest = Shapes::StructureShape.new(name: 'DescribeEntityAggregatesRequest')
20
+ DescribeEntityAggregatesResponse = Shapes::StructureShape.new(name: 'DescribeEntityAggregatesResponse')
21
+ DescribeEventAggregatesRequest = Shapes::StructureShape.new(name: 'DescribeEventAggregatesRequest')
22
+ DescribeEventAggregatesResponse = Shapes::StructureShape.new(name: 'DescribeEventAggregatesResponse')
23
+ DescribeEventDetailsFailedSet = Shapes::ListShape.new(name: 'DescribeEventDetailsFailedSet')
24
+ DescribeEventDetailsRequest = Shapes::StructureShape.new(name: 'DescribeEventDetailsRequest')
25
+ DescribeEventDetailsResponse = Shapes::StructureShape.new(name: 'DescribeEventDetailsResponse')
26
+ DescribeEventDetailsSuccessfulSet = Shapes::ListShape.new(name: 'DescribeEventDetailsSuccessfulSet')
27
+ DescribeEventTypesRequest = Shapes::StructureShape.new(name: 'DescribeEventTypesRequest')
28
+ DescribeEventTypesResponse = Shapes::StructureShape.new(name: 'DescribeEventTypesResponse')
29
+ DescribeEventsRequest = Shapes::StructureShape.new(name: 'DescribeEventsRequest')
30
+ DescribeEventsResponse = Shapes::StructureShape.new(name: 'DescribeEventsResponse')
31
+ EntityAggregate = Shapes::StructureShape.new(name: 'EntityAggregate')
32
+ EntityAggregateList = Shapes::ListShape.new(name: 'EntityAggregateList')
33
+ EntityFilter = Shapes::StructureShape.new(name: 'EntityFilter')
34
+ EntityList = Shapes::ListShape.new(name: 'EntityList')
35
+ Event = Shapes::StructureShape.new(name: 'Event')
36
+ EventAggregate = Shapes::StructureShape.new(name: 'EventAggregate')
37
+ EventAggregateList = Shapes::ListShape.new(name: 'EventAggregateList')
38
+ EventArnsList = Shapes::ListShape.new(name: 'EventArnsList')
39
+ EventDescription = Shapes::StructureShape.new(name: 'EventDescription')
40
+ EventDetails = Shapes::StructureShape.new(name: 'EventDetails')
41
+ EventDetailsErrorItem = Shapes::StructureShape.new(name: 'EventDetailsErrorItem')
42
+ EventFilter = Shapes::StructureShape.new(name: 'EventFilter')
43
+ EventList = Shapes::ListShape.new(name: 'EventList')
44
+ EventType = Shapes::StructureShape.new(name: 'EventType')
45
+ EventTypeCategoryList = Shapes::ListShape.new(name: 'EventTypeCategoryList')
46
+ EventTypeCodeList = Shapes::ListShape.new(name: 'EventTypeCodeList')
47
+ EventTypeFilter = Shapes::StructureShape.new(name: 'EventTypeFilter')
48
+ EventTypeList = Shapes::ListShape.new(name: 'EventTypeList')
49
+ InvalidPaginationToken = Shapes::StructureShape.new(name: 'InvalidPaginationToken')
50
+ UnsupportedLocale = Shapes::StructureShape.new(name: 'UnsupportedLocale')
51
+ accountId = Shapes::StringShape.new(name: 'accountId')
52
+ aggregateValue = Shapes::StringShape.new(name: 'aggregateValue')
53
+ availabilityZone = Shapes::StringShape.new(name: 'availabilityZone')
54
+ availabilityZones = Shapes::ListShape.new(name: 'availabilityZones')
55
+ count = Shapes::IntegerShape.new(name: 'count')
56
+ dateTimeRangeList = Shapes::ListShape.new(name: 'dateTimeRangeList')
57
+ entityArn = Shapes::StringShape.new(name: 'entityArn')
58
+ entityArnList = Shapes::ListShape.new(name: 'entityArnList')
59
+ entityStatusCode = Shapes::StringShape.new(name: 'entityStatusCode')
60
+ entityStatusCodeList = Shapes::ListShape.new(name: 'entityStatusCodeList')
61
+ entityValue = Shapes::StringShape.new(name: 'entityValue')
62
+ entityValueList = Shapes::ListShape.new(name: 'entityValueList')
63
+ eventAggregateField = Shapes::StringShape.new(name: 'eventAggregateField')
64
+ eventArn = Shapes::StringShape.new(name: 'eventArn')
65
+ eventArnList = Shapes::ListShape.new(name: 'eventArnList')
66
+ eventDescription = Shapes::StringShape.new(name: 'eventDescription')
67
+ eventMetadata = Shapes::MapShape.new(name: 'eventMetadata')
68
+ eventStatusCode = Shapes::StringShape.new(name: 'eventStatusCode')
69
+ eventStatusCodeList = Shapes::ListShape.new(name: 'eventStatusCodeList')
70
+ eventType = Shapes::StringShape.new(name: 'eventType')
71
+ eventTypeCategory = Shapes::StringShape.new(name: 'eventTypeCategory')
72
+ eventTypeCategoryList = Shapes::ListShape.new(name: 'eventTypeCategoryList')
73
+ eventTypeCode = Shapes::StringShape.new(name: 'eventTypeCode')
74
+ eventTypeList = Shapes::ListShape.new(name: 'eventTypeList')
75
+ locale = Shapes::StringShape.new(name: 'locale')
76
+ maxResults = Shapes::IntegerShape.new(name: 'maxResults')
77
+ metadataKey = Shapes::StringShape.new(name: 'metadataKey')
78
+ metadataValue = Shapes::StringShape.new(name: 'metadataValue')
79
+ nextToken = Shapes::StringShape.new(name: 'nextToken')
80
+ region = Shapes::StringShape.new(name: 'region')
81
+ regionList = Shapes::ListShape.new(name: 'regionList')
82
+ service = Shapes::StringShape.new(name: 'service')
83
+ serviceList = Shapes::ListShape.new(name: 'serviceList')
84
+ string = Shapes::StringShape.new(name: 'string')
85
+ tagFilter = Shapes::ListShape.new(name: 'tagFilter')
86
+ tagKey = Shapes::StringShape.new(name: 'tagKey')
87
+ tagSet = Shapes::MapShape.new(name: 'tagSet')
88
+ tagValue = Shapes::StringShape.new(name: 'tagValue')
89
+ timestamp = Shapes::TimestampShape.new(name: 'timestamp')
90
+
91
+ AffectedEntity.add_member(:entity_arn, Shapes::ShapeRef.new(shape: entityArn, location_name: "entityArn"))
92
+ AffectedEntity.add_member(:event_arn, Shapes::ShapeRef.new(shape: eventArn, location_name: "eventArn"))
93
+ AffectedEntity.add_member(:entity_value, Shapes::ShapeRef.new(shape: entityValue, location_name: "entityValue"))
94
+ AffectedEntity.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: accountId, location_name: "awsAccountId"))
95
+ AffectedEntity.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: timestamp, location_name: "lastUpdatedTime"))
96
+ AffectedEntity.add_member(:status_code, Shapes::ShapeRef.new(shape: entityStatusCode, location_name: "statusCode"))
97
+ AffectedEntity.add_member(:tags, Shapes::ShapeRef.new(shape: tagSet, location_name: "tags"))
98
+ AffectedEntity.struct_class = Types::AffectedEntity
99
+
100
+ DateTimeRange.add_member(:from, Shapes::ShapeRef.new(shape: timestamp, location_name: "from"))
101
+ DateTimeRange.add_member(:to, Shapes::ShapeRef.new(shape: timestamp, location_name: "to"))
102
+ DateTimeRange.struct_class = Types::DateTimeRange
103
+
104
+ DescribeAffectedEntitiesRequest.add_member(:filter, Shapes::ShapeRef.new(shape: EntityFilter, required: true, location_name: "filter"))
105
+ DescribeAffectedEntitiesRequest.add_member(:locale, Shapes::ShapeRef.new(shape: locale, location_name: "locale"))
106
+ DescribeAffectedEntitiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
107
+ DescribeAffectedEntitiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: maxResults, location_name: "maxResults"))
108
+ DescribeAffectedEntitiesRequest.struct_class = Types::DescribeAffectedEntitiesRequest
109
+
110
+ DescribeAffectedEntitiesResponse.add_member(:entities, Shapes::ShapeRef.new(shape: EntityList, location_name: "entities"))
111
+ DescribeAffectedEntitiesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
112
+ DescribeAffectedEntitiesResponse.struct_class = Types::DescribeAffectedEntitiesResponse
113
+
114
+ DescribeEntityAggregatesRequest.add_member(:event_arns, Shapes::ShapeRef.new(shape: EventArnsList, location_name: "eventArns"))
115
+ DescribeEntityAggregatesRequest.struct_class = Types::DescribeEntityAggregatesRequest
116
+
117
+ DescribeEntityAggregatesResponse.add_member(:entity_aggregates, Shapes::ShapeRef.new(shape: EntityAggregateList, location_name: "entityAggregates"))
118
+ DescribeEntityAggregatesResponse.struct_class = Types::DescribeEntityAggregatesResponse
119
+
120
+ DescribeEventAggregatesRequest.add_member(:filter, Shapes::ShapeRef.new(shape: EventFilter, location_name: "filter"))
121
+ DescribeEventAggregatesRequest.add_member(:aggregate_field, Shapes::ShapeRef.new(shape: eventAggregateField, required: true, location_name: "aggregateField"))
122
+ DescribeEventAggregatesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: maxResults, location_name: "maxResults"))
123
+ DescribeEventAggregatesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
124
+ DescribeEventAggregatesRequest.struct_class = Types::DescribeEventAggregatesRequest
125
+
126
+ DescribeEventAggregatesResponse.add_member(:event_aggregates, Shapes::ShapeRef.new(shape: EventAggregateList, location_name: "eventAggregates"))
127
+ DescribeEventAggregatesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
128
+ DescribeEventAggregatesResponse.struct_class = Types::DescribeEventAggregatesResponse
129
+
130
+ DescribeEventDetailsFailedSet.member = Shapes::ShapeRef.new(shape: EventDetailsErrorItem)
131
+
132
+ DescribeEventDetailsRequest.add_member(:event_arns, Shapes::ShapeRef.new(shape: eventArnList, required: true, location_name: "eventArns"))
133
+ DescribeEventDetailsRequest.add_member(:locale, Shapes::ShapeRef.new(shape: locale, location_name: "locale"))
134
+ DescribeEventDetailsRequest.struct_class = Types::DescribeEventDetailsRequest
135
+
136
+ DescribeEventDetailsResponse.add_member(:successful_set, Shapes::ShapeRef.new(shape: DescribeEventDetailsSuccessfulSet, location_name: "successfulSet"))
137
+ DescribeEventDetailsResponse.add_member(:failed_set, Shapes::ShapeRef.new(shape: DescribeEventDetailsFailedSet, location_name: "failedSet"))
138
+ DescribeEventDetailsResponse.struct_class = Types::DescribeEventDetailsResponse
139
+
140
+ DescribeEventDetailsSuccessfulSet.member = Shapes::ShapeRef.new(shape: EventDetails)
141
+
142
+ DescribeEventTypesRequest.add_member(:filter, Shapes::ShapeRef.new(shape: EventTypeFilter, location_name: "filter"))
143
+ DescribeEventTypesRequest.add_member(:locale, Shapes::ShapeRef.new(shape: locale, location_name: "locale"))
144
+ DescribeEventTypesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
145
+ DescribeEventTypesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: maxResults, location_name: "maxResults"))
146
+ DescribeEventTypesRequest.struct_class = Types::DescribeEventTypesRequest
147
+
148
+ DescribeEventTypesResponse.add_member(:event_types, Shapes::ShapeRef.new(shape: EventTypeList, location_name: "eventTypes"))
149
+ DescribeEventTypesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
150
+ DescribeEventTypesResponse.struct_class = Types::DescribeEventTypesResponse
151
+
152
+ DescribeEventsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: EventFilter, location_name: "filter"))
153
+ DescribeEventsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
154
+ DescribeEventsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: maxResults, location_name: "maxResults"))
155
+ DescribeEventsRequest.add_member(:locale, Shapes::ShapeRef.new(shape: locale, location_name: "locale"))
156
+ DescribeEventsRequest.struct_class = Types::DescribeEventsRequest
157
+
158
+ DescribeEventsResponse.add_member(:events, Shapes::ShapeRef.new(shape: EventList, location_name: "events"))
159
+ DescribeEventsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
160
+ DescribeEventsResponse.struct_class = Types::DescribeEventsResponse
161
+
162
+ EntityAggregate.add_member(:event_arn, Shapes::ShapeRef.new(shape: eventArn, location_name: "eventArn"))
163
+ EntityAggregate.add_member(:count, Shapes::ShapeRef.new(shape: count, location_name: "count"))
164
+ EntityAggregate.struct_class = Types::EntityAggregate
165
+
166
+ EntityAggregateList.member = Shapes::ShapeRef.new(shape: EntityAggregate)
167
+
168
+ EntityFilter.add_member(:event_arns, Shapes::ShapeRef.new(shape: eventArnList, required: true, location_name: "eventArns"))
169
+ EntityFilter.add_member(:entity_arns, Shapes::ShapeRef.new(shape: entityArnList, location_name: "entityArns"))
170
+ EntityFilter.add_member(:entity_values, Shapes::ShapeRef.new(shape: entityValueList, location_name: "entityValues"))
171
+ EntityFilter.add_member(:last_updated_times, Shapes::ShapeRef.new(shape: dateTimeRangeList, location_name: "lastUpdatedTimes"))
172
+ EntityFilter.add_member(:tags, Shapes::ShapeRef.new(shape: tagFilter, location_name: "tags"))
173
+ EntityFilter.add_member(:status_codes, Shapes::ShapeRef.new(shape: entityStatusCodeList, location_name: "statusCodes"))
174
+ EntityFilter.struct_class = Types::EntityFilter
175
+
176
+ EntityList.member = Shapes::ShapeRef.new(shape: AffectedEntity)
177
+
178
+ Event.add_member(:arn, Shapes::ShapeRef.new(shape: eventArn, location_name: "arn"))
179
+ Event.add_member(:service, Shapes::ShapeRef.new(shape: service, location_name: "service"))
180
+ Event.add_member(:event_type_code, Shapes::ShapeRef.new(shape: eventTypeCode, location_name: "eventTypeCode"))
181
+ Event.add_member(:event_type_category, Shapes::ShapeRef.new(shape: eventTypeCategory, location_name: "eventTypeCategory"))
182
+ Event.add_member(:region, Shapes::ShapeRef.new(shape: region, location_name: "region"))
183
+ Event.add_member(:availability_zone, Shapes::ShapeRef.new(shape: availabilityZone, location_name: "availabilityZone"))
184
+ Event.add_member(:start_time, Shapes::ShapeRef.new(shape: timestamp, location_name: "startTime"))
185
+ Event.add_member(:end_time, Shapes::ShapeRef.new(shape: timestamp, location_name: "endTime"))
186
+ Event.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: timestamp, location_name: "lastUpdatedTime"))
187
+ Event.add_member(:status_code, Shapes::ShapeRef.new(shape: eventStatusCode, location_name: "statusCode"))
188
+ Event.struct_class = Types::Event
189
+
190
+ EventAggregate.add_member(:aggregate_value, Shapes::ShapeRef.new(shape: aggregateValue, location_name: "aggregateValue"))
191
+ EventAggregate.add_member(:count, Shapes::ShapeRef.new(shape: count, location_name: "count"))
192
+ EventAggregate.struct_class = Types::EventAggregate
193
+
194
+ EventAggregateList.member = Shapes::ShapeRef.new(shape: EventAggregate)
195
+
196
+ EventArnsList.member = Shapes::ShapeRef.new(shape: eventArn)
197
+
198
+ EventDescription.add_member(:latest_description, Shapes::ShapeRef.new(shape: eventDescription, location_name: "latestDescription"))
199
+ EventDescription.struct_class = Types::EventDescription
200
+
201
+ EventDetails.add_member(:event, Shapes::ShapeRef.new(shape: Event, location_name: "event"))
202
+ EventDetails.add_member(:event_description, Shapes::ShapeRef.new(shape: EventDescription, location_name: "eventDescription"))
203
+ EventDetails.add_member(:event_metadata, Shapes::ShapeRef.new(shape: eventMetadata, location_name: "eventMetadata"))
204
+ EventDetails.struct_class = Types::EventDetails
205
+
206
+ EventDetailsErrorItem.add_member(:event_arn, Shapes::ShapeRef.new(shape: eventArn, location_name: "eventArn"))
207
+ EventDetailsErrorItem.add_member(:error_name, Shapes::ShapeRef.new(shape: string, location_name: "errorName"))
208
+ EventDetailsErrorItem.add_member(:error_message, Shapes::ShapeRef.new(shape: string, location_name: "errorMessage"))
209
+ EventDetailsErrorItem.struct_class = Types::EventDetailsErrorItem
210
+
211
+ EventFilter.add_member(:event_arns, Shapes::ShapeRef.new(shape: eventArnList, location_name: "eventArns"))
212
+ EventFilter.add_member(:event_type_codes, Shapes::ShapeRef.new(shape: eventTypeList, location_name: "eventTypeCodes"))
213
+ EventFilter.add_member(:services, Shapes::ShapeRef.new(shape: serviceList, location_name: "services"))
214
+ EventFilter.add_member(:regions, Shapes::ShapeRef.new(shape: regionList, location_name: "regions"))
215
+ EventFilter.add_member(:availability_zones, Shapes::ShapeRef.new(shape: availabilityZones, location_name: "availabilityZones"))
216
+ EventFilter.add_member(:start_times, Shapes::ShapeRef.new(shape: dateTimeRangeList, location_name: "startTimes"))
217
+ EventFilter.add_member(:end_times, Shapes::ShapeRef.new(shape: dateTimeRangeList, location_name: "endTimes"))
218
+ EventFilter.add_member(:last_updated_times, Shapes::ShapeRef.new(shape: dateTimeRangeList, location_name: "lastUpdatedTimes"))
219
+ EventFilter.add_member(:entity_arns, Shapes::ShapeRef.new(shape: entityArnList, location_name: "entityArns"))
220
+ EventFilter.add_member(:entity_values, Shapes::ShapeRef.new(shape: entityValueList, location_name: "entityValues"))
221
+ EventFilter.add_member(:event_type_categories, Shapes::ShapeRef.new(shape: eventTypeCategoryList, location_name: "eventTypeCategories"))
222
+ EventFilter.add_member(:tags, Shapes::ShapeRef.new(shape: tagFilter, location_name: "tags"))
223
+ EventFilter.add_member(:event_status_codes, Shapes::ShapeRef.new(shape: eventStatusCodeList, location_name: "eventStatusCodes"))
224
+ EventFilter.struct_class = Types::EventFilter
225
+
226
+ EventList.member = Shapes::ShapeRef.new(shape: Event)
227
+
228
+ EventType.add_member(:service, Shapes::ShapeRef.new(shape: service, location_name: "service"))
229
+ EventType.add_member(:code, Shapes::ShapeRef.new(shape: eventTypeCode, location_name: "code"))
230
+ EventType.add_member(:category, Shapes::ShapeRef.new(shape: eventTypeCategory, location_name: "category"))
231
+ EventType.struct_class = Types::EventType
232
+
233
+ EventTypeCategoryList.member = Shapes::ShapeRef.new(shape: eventTypeCategory)
234
+
235
+ EventTypeCodeList.member = Shapes::ShapeRef.new(shape: eventTypeCode)
236
+
237
+ EventTypeFilter.add_member(:event_type_codes, Shapes::ShapeRef.new(shape: EventTypeCodeList, location_name: "eventTypeCodes"))
238
+ EventTypeFilter.add_member(:services, Shapes::ShapeRef.new(shape: serviceList, location_name: "services"))
239
+ EventTypeFilter.add_member(:event_type_categories, Shapes::ShapeRef.new(shape: EventTypeCategoryList, location_name: "eventTypeCategories"))
240
+ EventTypeFilter.struct_class = Types::EventTypeFilter
241
+
242
+ EventTypeList.member = Shapes::ShapeRef.new(shape: EventType)
243
+
244
+ availabilityZones.member = Shapes::ShapeRef.new(shape: availabilityZone)
245
+
246
+ dateTimeRangeList.member = Shapes::ShapeRef.new(shape: DateTimeRange)
247
+
248
+ entityArnList.member = Shapes::ShapeRef.new(shape: entityArn)
249
+
250
+ entityStatusCodeList.member = Shapes::ShapeRef.new(shape: entityStatusCode)
251
+
252
+ entityValueList.member = Shapes::ShapeRef.new(shape: entityValue)
253
+
254
+ eventArnList.member = Shapes::ShapeRef.new(shape: eventArn)
255
+
256
+ eventMetadata.key = Shapes::ShapeRef.new(shape: metadataKey)
257
+ eventMetadata.value = Shapes::ShapeRef.new(shape: metadataValue)
258
+
259
+ eventStatusCodeList.member = Shapes::ShapeRef.new(shape: eventStatusCode)
260
+
261
+ eventTypeCategoryList.member = Shapes::ShapeRef.new(shape: eventTypeCategory)
262
+
263
+ eventTypeList.member = Shapes::ShapeRef.new(shape: eventType)
264
+
265
+ regionList.member = Shapes::ShapeRef.new(shape: region)
266
+
267
+ serviceList.member = Shapes::ShapeRef.new(shape: service)
268
+
269
+ tagFilter.member = Shapes::ShapeRef.new(shape: tagSet)
270
+
271
+ tagSet.key = Shapes::ShapeRef.new(shape: tagKey)
272
+ tagSet.value = Shapes::ShapeRef.new(shape: tagValue)
273
+
274
+
275
+ # @api private
276
+ API = Seahorse::Model::Api.new.tap do |api|
277
+
278
+ api.version = "2016-08-04"
279
+
280
+ api.metadata = {
281
+ "endpointPrefix" => "health",
282
+ "jsonVersion" => "1.1",
283
+ "protocol" => "json",
284
+ "serviceFullName" => "AWS Health APIs and Notifications",
285
+ "signatureVersion" => "v4",
286
+ "targetPrefix" => "AWSHealth_20160804",
287
+ }
288
+
289
+ api.add_operation(:describe_affected_entities, Seahorse::Model::Operation.new.tap do |o|
290
+ o.name = "DescribeAffectedEntities"
291
+ o.http_method = "POST"
292
+ o.http_request_uri = "/"
293
+ o.input = Shapes::ShapeRef.new(shape: DescribeAffectedEntitiesRequest)
294
+ o.output = Shapes::ShapeRef.new(shape: DescribeAffectedEntitiesResponse)
295
+ o.errors << Shapes::ShapeRef.new(shape: InvalidPaginationToken)
296
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLocale)
297
+ o[:pager] = Aws::Pager.new(
298
+ limit_key: "max_results",
299
+ tokens: {
300
+ "next_token" => "next_token"
301
+ }
302
+ )
303
+ end)
304
+
305
+ api.add_operation(:describe_entity_aggregates, Seahorse::Model::Operation.new.tap do |o|
306
+ o.name = "DescribeEntityAggregates"
307
+ o.http_method = "POST"
308
+ o.http_request_uri = "/"
309
+ o.input = Shapes::ShapeRef.new(shape: DescribeEntityAggregatesRequest)
310
+ o.output = Shapes::ShapeRef.new(shape: DescribeEntityAggregatesResponse)
311
+ end)
312
+
313
+ api.add_operation(:describe_event_aggregates, Seahorse::Model::Operation.new.tap do |o|
314
+ o.name = "DescribeEventAggregates"
315
+ o.http_method = "POST"
316
+ o.http_request_uri = "/"
317
+ o.input = Shapes::ShapeRef.new(shape: DescribeEventAggregatesRequest)
318
+ o.output = Shapes::ShapeRef.new(shape: DescribeEventAggregatesResponse)
319
+ o.errors << Shapes::ShapeRef.new(shape: InvalidPaginationToken)
320
+ o[:pager] = Aws::Pager.new(
321
+ limit_key: "max_results",
322
+ tokens: {
323
+ "next_token" => "next_token"
324
+ }
325
+ )
326
+ end)
327
+
328
+ api.add_operation(:describe_event_details, Seahorse::Model::Operation.new.tap do |o|
329
+ o.name = "DescribeEventDetails"
330
+ o.http_method = "POST"
331
+ o.http_request_uri = "/"
332
+ o.input = Shapes::ShapeRef.new(shape: DescribeEventDetailsRequest)
333
+ o.output = Shapes::ShapeRef.new(shape: DescribeEventDetailsResponse)
334
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLocale)
335
+ end)
336
+
337
+ api.add_operation(:describe_event_types, Seahorse::Model::Operation.new.tap do |o|
338
+ o.name = "DescribeEventTypes"
339
+ o.http_method = "POST"
340
+ o.http_request_uri = "/"
341
+ o.input = Shapes::ShapeRef.new(shape: DescribeEventTypesRequest)
342
+ o.output = Shapes::ShapeRef.new(shape: DescribeEventTypesResponse)
343
+ o.errors << Shapes::ShapeRef.new(shape: InvalidPaginationToken)
344
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLocale)
345
+ o[:pager] = Aws::Pager.new(
346
+ limit_key: "max_results",
347
+ tokens: {
348
+ "next_token" => "next_token"
349
+ }
350
+ )
351
+ end)
352
+
353
+ api.add_operation(:describe_events, Seahorse::Model::Operation.new.tap do |o|
354
+ o.name = "DescribeEvents"
355
+ o.http_method = "POST"
356
+ o.http_request_uri = "/"
357
+ o.input = Shapes::ShapeRef.new(shape: DescribeEventsRequest)
358
+ o.output = Shapes::ShapeRef.new(shape: DescribeEventsResponse)
359
+ o.errors << Shapes::ShapeRef.new(shape: InvalidPaginationToken)
360
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLocale)
361
+ o[:pager] = Aws::Pager.new(
362
+ limit_key: "max_results",
363
+ tokens: {
364
+ "next_token" => "next_token"
365
+ }
366
+ )
367
+ end)
368
+ end
369
+
370
+ end
371
+ end
372
+ end
File without changes
@@ -0,0 +1,23 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module Health
10
+ module Errors
11
+
12
+ extend Aws::Errors::DynamicErrors
13
+
14
+ # Raised when calling #load or #data on a resource class that can not be
15
+ # loaded. This can happen when:
16
+ #
17
+ # * A resource class has identifiers, but no data attributes.
18
+ # * Resource data is only available when making an API call that
19
+ # enumerates all resources of that type.
20
+ class ResourceNotLoadable < RuntimeError; end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,25 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module Health
10
+ class Resource
11
+
12
+ # @param options ({})
13
+ # @option options [Client] :client
14
+ def initialize(options = {})
15
+ @client = options[:client] || Client.new(options)
16
+ end
17
+
18
+ # @return [Client]
19
+ def client
20
+ @client
21
+ end
22
+
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,827 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module Health
10
+ module Types
11
+
12
+ # Information about an entity that is affected by a Health event.
13
+ # @!attribute [rw] entity_arn
14
+ # The unique identifier for the entity. Format:
15
+ # `arn:aws:health:entity-region:aws-account:entity/entity-id `.
16
+ # Example:
17
+ # `arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K`
18
+ # @return [String]
19
+ #
20
+ # @!attribute [rw] event_arn
21
+ # The unique identifier for the event. Format:
22
+ # `arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID `. Example:
23
+ # `arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331`
24
+ # @return [String]
25
+ #
26
+ # @!attribute [rw] entity_value
27
+ # The ID of the affected entity.
28
+ # @return [String]
29
+ #
30
+ # @!attribute [rw] aws_account_id
31
+ # The 12-digit AWS account number that contains the affected entity.
32
+ # @return [String]
33
+ #
34
+ # @!attribute [rw] last_updated_time
35
+ # The most recent time that the entity was updated.
36
+ # @return [Time]
37
+ #
38
+ # @!attribute [rw] status_code
39
+ # The most recent status of the entity affected by the event. The
40
+ # possible values are `IMPAIRED`, `UNIMPAIRED`, and `UNKNOWN`.
41
+ # @return [String]
42
+ #
43
+ # @!attribute [rw] tags
44
+ # A map of entity tags attached to the affected entity.
45
+ # @return [Hash<String,String>]
46
+ class AffectedEntity < Struct.new(
47
+ :entity_arn,
48
+ :event_arn,
49
+ :entity_value,
50
+ :aws_account_id,
51
+ :last_updated_time,
52
+ :status_code,
53
+ :tags)
54
+ include Aws::Structure
55
+ end
56
+
57
+ # A range of dates and times that is used by the EventFilter and
58
+ # EntityFilter objects. If `from` is set and `to` is set: match items
59
+ # where the timestamp (`startTime`, `endTime`, or `lastUpdatedTime`) is
60
+ # between `from` and `to` inclusive. If `from` is set and `to` is not
61
+ # set: match items where the timestamp value is equal to or after
62
+ # `from`. If `from` is not set and `to` is set: match items where the
63
+ # timestamp value is equal to or before `to`.
64
+ # @note When making an API call, pass DateTimeRange
65
+ # data as a hash:
66
+ #
67
+ # {
68
+ # from: Time.now,
69
+ # to: Time.now,
70
+ # }
71
+ # @!attribute [rw] from
72
+ # The starting date and time of a time range.
73
+ # @return [Time]
74
+ #
75
+ # @!attribute [rw] to
76
+ # The ending date and time of a time range.
77
+ # @return [Time]
78
+ class DateTimeRange < Struct.new(
79
+ :from,
80
+ :to)
81
+ include Aws::Structure
82
+ end
83
+
84
+ # @note When making an API call, pass DescribeAffectedEntitiesRequest
85
+ # data as a hash:
86
+ #
87
+ # {
88
+ # filter: { # required
89
+ # event_arns: ["eventArn"], # required
90
+ # entity_arns: ["entityArn"],
91
+ # entity_values: ["entityValue"],
92
+ # last_updated_times: [
93
+ # {
94
+ # from: Time.now,
95
+ # to: Time.now,
96
+ # },
97
+ # ],
98
+ # tags: [
99
+ # {
100
+ # "tagKey" => "tagValue",
101
+ # },
102
+ # ],
103
+ # status_codes: ["IMPAIRED"], # accepts IMPAIRED, UNIMPAIRED, UNKNOWN
104
+ # },
105
+ # locale: "locale",
106
+ # next_token: "nextToken",
107
+ # max_results: 1,
108
+ # }
109
+ # @!attribute [rw] filter
110
+ # Values to narrow the results returned. At least one event ARN is
111
+ # required.
112
+ # @return [Types::EntityFilter]
113
+ #
114
+ # @!attribute [rw] locale
115
+ # The locale (language) to return information in. The default is
116
+ # English.
117
+ # @return [String]
118
+ #
119
+ # @!attribute [rw] next_token
120
+ # If the results of a search are large, only a portion of the results
121
+ # are returned, and a `nextToken` pagination token is returned in the
122
+ # response. To retrieve the next batch of results, reissue the search
123
+ # request and include the returned token. When all results have been
124
+ # returned, the response does not contain a pagination token value.
125
+ # @return [String]
126
+ #
127
+ # @!attribute [rw] max_results
128
+ # The maximum number of items to return in one batch.
129
+ # @return [Integer]
130
+ class DescribeAffectedEntitiesRequest < Struct.new(
131
+ :filter,
132
+ :locale,
133
+ :next_token,
134
+ :max_results)
135
+ include Aws::Structure
136
+ end
137
+
138
+ # @!attribute [rw] entities
139
+ # The entities that match the filter criteria.
140
+ # @return [Array<Types::AffectedEntity>]
141
+ #
142
+ # @!attribute [rw] next_token
143
+ # If the results of a search are large, only a portion of the results
144
+ # are returned, and a `nextToken` pagination token is returned in the
145
+ # response. To retrieve the next batch of results, reissue the search
146
+ # request and include the returned token. When all results have been
147
+ # returned, the response does not contain a pagination token value.
148
+ # @return [String]
149
+ class DescribeAffectedEntitiesResponse < Struct.new(
150
+ :entities,
151
+ :next_token)
152
+ include Aws::Structure
153
+ end
154
+
155
+ # @note When making an API call, pass DescribeEntityAggregatesRequest
156
+ # data as a hash:
157
+ #
158
+ # {
159
+ # event_arns: ["eventArn"],
160
+ # }
161
+ # @!attribute [rw] event_arns
162
+ # A list of event ARNs (unique identifiers). For example:
163
+ # `"arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331",
164
+ # "arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz"`
165
+ # @return [Array<String>]
166
+ class DescribeEntityAggregatesRequest < Struct.new(
167
+ :event_arns)
168
+ include Aws::Structure
169
+ end
170
+
171
+ # @!attribute [rw] entity_aggregates
172
+ # The number of entities that are affected by each of the specified
173
+ # events.
174
+ # @return [Array<Types::EntityAggregate>]
175
+ class DescribeEntityAggregatesResponse < Struct.new(
176
+ :entity_aggregates)
177
+ include Aws::Structure
178
+ end
179
+
180
+ # @note When making an API call, pass DescribeEventAggregatesRequest
181
+ # data as a hash:
182
+ #
183
+ # {
184
+ # filter: {
185
+ # event_arns: ["eventArn"],
186
+ # event_type_codes: ["eventType"],
187
+ # services: ["service"],
188
+ # regions: ["region"],
189
+ # availability_zones: ["availabilityZone"],
190
+ # start_times: [
191
+ # {
192
+ # from: Time.now,
193
+ # to: Time.now,
194
+ # },
195
+ # ],
196
+ # end_times: [
197
+ # {
198
+ # from: Time.now,
199
+ # to: Time.now,
200
+ # },
201
+ # ],
202
+ # last_updated_times: [
203
+ # {
204
+ # from: Time.now,
205
+ # to: Time.now,
206
+ # },
207
+ # ],
208
+ # entity_arns: ["entityArn"],
209
+ # entity_values: ["entityValue"],
210
+ # event_type_categories: ["issue"], # accepts issue, accountNotification, scheduledChange
211
+ # tags: [
212
+ # {
213
+ # "tagKey" => "tagValue",
214
+ # },
215
+ # ],
216
+ # event_status_codes: ["open"], # accepts open, closed, upcoming
217
+ # },
218
+ # aggregate_field: "eventTypeCategory", # required, accepts eventTypeCategory
219
+ # max_results: 1,
220
+ # next_token: "nextToken",
221
+ # }
222
+ # @!attribute [rw] filter
223
+ # Values to narrow the results returned.
224
+ # @return [Types::EventFilter]
225
+ #
226
+ # @!attribute [rw] aggregate_field
227
+ # The only currently supported value is `eventTypeCategory`.
228
+ # @return [String]
229
+ #
230
+ # @!attribute [rw] max_results
231
+ # The maximum number of items to return in one batch.
232
+ # @return [Integer]
233
+ #
234
+ # @!attribute [rw] next_token
235
+ # If the results of a search are large, only a portion of the results
236
+ # are returned, and a `nextToken` pagination token is returned in the
237
+ # response. To retrieve the next batch of results, reissue the search
238
+ # request and include the returned token. When all results have been
239
+ # returned, the response does not contain a pagination token value.
240
+ # @return [String]
241
+ class DescribeEventAggregatesRequest < Struct.new(
242
+ :filter,
243
+ :aggregate_field,
244
+ :max_results,
245
+ :next_token)
246
+ include Aws::Structure
247
+ end
248
+
249
+ # @!attribute [rw] event_aggregates
250
+ # The number of events in each category that meet the optional filter
251
+ # criteria.
252
+ # @return [Array<Types::EventAggregate>]
253
+ #
254
+ # @!attribute [rw] next_token
255
+ # If the results of a search are large, only a portion of the results
256
+ # are returned, and a `nextToken` pagination token is returned in the
257
+ # response. To retrieve the next batch of results, reissue the search
258
+ # request and include the returned token. When all results have been
259
+ # returned, the response does not contain a pagination token value.
260
+ # @return [String]
261
+ class DescribeEventAggregatesResponse < Struct.new(
262
+ :event_aggregates,
263
+ :next_token)
264
+ include Aws::Structure
265
+ end
266
+
267
+ # @note When making an API call, pass DescribeEventDetailsRequest
268
+ # data as a hash:
269
+ #
270
+ # {
271
+ # event_arns: ["eventArn"], # required
272
+ # locale: "locale",
273
+ # }
274
+ # @!attribute [rw] event_arns
275
+ # A list of event ARNs (unique identifiers). For example:
276
+ # `"arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331",
277
+ # "arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz"`
278
+ # @return [Array<String>]
279
+ #
280
+ # @!attribute [rw] locale
281
+ # The locale (language) to return information in. The default is
282
+ # English.
283
+ # @return [String]
284
+ class DescribeEventDetailsRequest < Struct.new(
285
+ :event_arns,
286
+ :locale)
287
+ include Aws::Structure
288
+ end
289
+
290
+ # @!attribute [rw] successful_set
291
+ # Information about the events that could be retrieved.
292
+ # @return [Array<Types::EventDetails>]
293
+ #
294
+ # @!attribute [rw] failed_set
295
+ # Error messages for any events that could not be retrieved.
296
+ # @return [Array<Types::EventDetailsErrorItem>]
297
+ class DescribeEventDetailsResponse < Struct.new(
298
+ :successful_set,
299
+ :failed_set)
300
+ include Aws::Structure
301
+ end
302
+
303
+ # @note When making an API call, pass DescribeEventTypesRequest
304
+ # data as a hash:
305
+ #
306
+ # {
307
+ # filter: {
308
+ # event_type_codes: ["eventTypeCode"],
309
+ # services: ["service"],
310
+ # event_type_categories: ["issue"], # accepts issue, accountNotification, scheduledChange
311
+ # },
312
+ # locale: "locale",
313
+ # next_token: "nextToken",
314
+ # max_results: 1,
315
+ # }
316
+ # @!attribute [rw] filter
317
+ # Values to narrow the results returned.
318
+ # @return [Types::EventTypeFilter]
319
+ #
320
+ # @!attribute [rw] locale
321
+ # The locale (language) to return information in. The default is
322
+ # English.
323
+ # @return [String]
324
+ #
325
+ # @!attribute [rw] next_token
326
+ # If the results of a search are large, only a portion of the results
327
+ # are returned, and a `nextToken` pagination token is returned in the
328
+ # response. To retrieve the next batch of results, reissue the search
329
+ # request and include the returned token. When all results have been
330
+ # returned, the response does not contain a pagination token value.
331
+ # @return [String]
332
+ #
333
+ # @!attribute [rw] max_results
334
+ # The maximum number of items to return in one batch.
335
+ # @return [Integer]
336
+ class DescribeEventTypesRequest < Struct.new(
337
+ :filter,
338
+ :locale,
339
+ :next_token,
340
+ :max_results)
341
+ include Aws::Structure
342
+ end
343
+
344
+ # @!attribute [rw] event_types
345
+ # List of event types to be matched with.
346
+ # @return [Array<Types::EventType>]
347
+ #
348
+ # @!attribute [rw] next_token
349
+ # If the results of a search are large, only a portion of the results
350
+ # are returned, and a `nextToken` pagination token is returned in the
351
+ # response. To retrieve the next batch of results, reissue the search
352
+ # request and include the returned token. When all results have been
353
+ # returned, the response does not contain a pagination token value.
354
+ # @return [String]
355
+ class DescribeEventTypesResponse < Struct.new(
356
+ :event_types,
357
+ :next_token)
358
+ include Aws::Structure
359
+ end
360
+
361
+ # @note When making an API call, pass DescribeEventsRequest
362
+ # data as a hash:
363
+ #
364
+ # {
365
+ # filter: {
366
+ # event_arns: ["eventArn"],
367
+ # event_type_codes: ["eventType"],
368
+ # services: ["service"],
369
+ # regions: ["region"],
370
+ # availability_zones: ["availabilityZone"],
371
+ # start_times: [
372
+ # {
373
+ # from: Time.now,
374
+ # to: Time.now,
375
+ # },
376
+ # ],
377
+ # end_times: [
378
+ # {
379
+ # from: Time.now,
380
+ # to: Time.now,
381
+ # },
382
+ # ],
383
+ # last_updated_times: [
384
+ # {
385
+ # from: Time.now,
386
+ # to: Time.now,
387
+ # },
388
+ # ],
389
+ # entity_arns: ["entityArn"],
390
+ # entity_values: ["entityValue"],
391
+ # event_type_categories: ["issue"], # accepts issue, accountNotification, scheduledChange
392
+ # tags: [
393
+ # {
394
+ # "tagKey" => "tagValue",
395
+ # },
396
+ # ],
397
+ # event_status_codes: ["open"], # accepts open, closed, upcoming
398
+ # },
399
+ # next_token: "nextToken",
400
+ # max_results: 1,
401
+ # locale: "locale",
402
+ # }
403
+ # @!attribute [rw] filter
404
+ # Values to narrow the results returned.
405
+ # @return [Types::EventFilter]
406
+ #
407
+ # @!attribute [rw] next_token
408
+ # If the results of a search are large, only a portion of the results
409
+ # are returned, and a `nextToken` pagination token is returned in the
410
+ # response. To retrieve the next batch of results, reissue the search
411
+ # request and include the returned token. When all results have been
412
+ # returned, the response does not contain a pagination token value.
413
+ # @return [String]
414
+ #
415
+ # @!attribute [rw] max_results
416
+ # The maximum number of items to return in one batch.
417
+ # @return [Integer]
418
+ #
419
+ # @!attribute [rw] locale
420
+ # The locale (language) to return information in. The default is
421
+ # English.
422
+ # @return [String]
423
+ class DescribeEventsRequest < Struct.new(
424
+ :filter,
425
+ :next_token,
426
+ :max_results,
427
+ :locale)
428
+ include Aws::Structure
429
+ end
430
+
431
+ # @!attribute [rw] events
432
+ # The events that match the specified filter criteria.
433
+ # @return [Array<Types::Event>]
434
+ #
435
+ # @!attribute [rw] next_token
436
+ # If the results of a search are large, only a portion of the results
437
+ # are returned, and a `nextToken` pagination token is returned in the
438
+ # response. To retrieve the next batch of results, reissue the search
439
+ # request and include the returned token. When all results have been
440
+ # returned, the response does not contain a pagination token value.
441
+ # @return [String]
442
+ class DescribeEventsResponse < Struct.new(
443
+ :events,
444
+ :next_token)
445
+ include Aws::Structure
446
+ end
447
+
448
+ # The number of entities that are affected by one or more events.
449
+ # Returned by the DescribeEntityAggregates operation.
450
+ # @!attribute [rw] event_arn
451
+ # The unique identifier for the event. Format:
452
+ # `arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID `. Example:
453
+ # `arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331`
454
+ # @return [String]
455
+ #
456
+ # @!attribute [rw] count
457
+ # The number entities that match the criteria for the specified
458
+ # events.
459
+ # @return [Integer]
460
+ class EntityAggregate < Struct.new(
461
+ :event_arn,
462
+ :count)
463
+ include Aws::Structure
464
+ end
465
+
466
+ # The values to use to filter results from the DescribeAffectedEntities
467
+ # operation.
468
+ # @note When making an API call, pass EntityFilter
469
+ # data as a hash:
470
+ #
471
+ # {
472
+ # event_arns: ["eventArn"], # required
473
+ # entity_arns: ["entityArn"],
474
+ # entity_values: ["entityValue"],
475
+ # last_updated_times: [
476
+ # {
477
+ # from: Time.now,
478
+ # to: Time.now,
479
+ # },
480
+ # ],
481
+ # tags: [
482
+ # {
483
+ # "tagKey" => "tagValue",
484
+ # },
485
+ # ],
486
+ # status_codes: ["IMPAIRED"], # accepts IMPAIRED, UNIMPAIRED, UNKNOWN
487
+ # }
488
+ # @!attribute [rw] event_arns
489
+ # A list of event ARNs (unique identifiers). For example:
490
+ # `"arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331",
491
+ # "arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz"`
492
+ # @return [Array<String>]
493
+ #
494
+ # @!attribute [rw] entity_arns
495
+ # A list of entity ARNs (unique identifiers).
496
+ # @return [Array<String>]
497
+ #
498
+ # @!attribute [rw] entity_values
499
+ # A list of IDs for affected entities.
500
+ # @return [Array<String>]
501
+ #
502
+ # @!attribute [rw] last_updated_times
503
+ # A list of the most recent dates and times that the entity was
504
+ # updated.
505
+ # @return [Array<Types::DateTimeRange>]
506
+ #
507
+ # @!attribute [rw] tags
508
+ # A map of entity tags attached to the affected entity.
509
+ # @return [Array<Hash<String,String>>]
510
+ #
511
+ # @!attribute [rw] status_codes
512
+ # A list of entity status codes (`IMPAIRED`, `UNIMPAIRED`, or
513
+ # `UNKNOWN`).
514
+ # @return [Array<String>]
515
+ class EntityFilter < Struct.new(
516
+ :event_arns,
517
+ :entity_arns,
518
+ :entity_values,
519
+ :last_updated_times,
520
+ :tags,
521
+ :status_codes)
522
+ include Aws::Structure
523
+ end
524
+
525
+ # Summary information about an event, returned by the DescribeEvents
526
+ # operation. The DescribeEventDetails operation also returns this
527
+ # information, as well as the EventDescription and additional event
528
+ # metadata.
529
+ # @!attribute [rw] arn
530
+ # The unique identifier for the event. Format:
531
+ # `arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID `. Example:
532
+ # `arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331`
533
+ # @return [String]
534
+ #
535
+ # @!attribute [rw] service
536
+ # The AWS service that is affected by the event. For example, `EC2`,
537
+ # `RDS`.
538
+ # @return [String]
539
+ #
540
+ # @!attribute [rw] event_type_code
541
+ # The unique identifier for the event type. The format is
542
+ # `AWS_SERVICE_DESCRIPTION `; for example,
543
+ # `AWS_EC2_SYSTEM_MAINTENANCE_EVENT`.
544
+ # @return [String]
545
+ #
546
+ # @!attribute [rw] event_type_category
547
+ # The
548
+ # @return [String]
549
+ #
550
+ # @!attribute [rw] region
551
+ # The AWS region name of the event.
552
+ # @return [String]
553
+ #
554
+ # @!attribute [rw] availability_zone
555
+ # The AWS Availability Zone of the event. For example, us-east-1a.
556
+ # @return [String]
557
+ #
558
+ # @!attribute [rw] start_time
559
+ # The date and time that the event began.
560
+ # @return [Time]
561
+ #
562
+ # @!attribute [rw] end_time
563
+ # The date and time that the event ended.
564
+ # @return [Time]
565
+ #
566
+ # @!attribute [rw] last_updated_time
567
+ # The most recent date and time that the event was updated.
568
+ # @return [Time]
569
+ #
570
+ # @!attribute [rw] status_code
571
+ # The most recent status of the event. Possible values are `open`,
572
+ # `closed`, and `upcoming`.
573
+ # @return [String]
574
+ class Event < Struct.new(
575
+ :arn,
576
+ :service,
577
+ :event_type_code,
578
+ :event_type_category,
579
+ :region,
580
+ :availability_zone,
581
+ :start_time,
582
+ :end_time,
583
+ :last_updated_time,
584
+ :status_code)
585
+ include Aws::Structure
586
+ end
587
+
588
+ # The number of events of each issue type. Returned by the
589
+ # DescribeEventAggregates operation.
590
+ # @!attribute [rw] aggregate_value
591
+ # The issue type for the associated count.
592
+ # @return [String]
593
+ #
594
+ # @!attribute [rw] count
595
+ # The number of events of the associated issue type.
596
+ # @return [Integer]
597
+ class EventAggregate < Struct.new(
598
+ :aggregate_value,
599
+ :count)
600
+ include Aws::Structure
601
+ end
602
+
603
+ # The detailed description of the event. Included in the information
604
+ # returned by the DescribeEventDetails operation.
605
+ # @!attribute [rw] latest_description
606
+ # The most recent description of the event.
607
+ # @return [String]
608
+ class EventDescription < Struct.new(
609
+ :latest_description)
610
+ include Aws::Structure
611
+ end
612
+
613
+ # Detailed information about an event. A combination of an Event object,
614
+ # an EventDescription object, and additional metadata about the event.
615
+ # Returned by the DescribeEventDetails operation.
616
+ # @!attribute [rw] event
617
+ # Summary information about the event.
618
+ # @return [Types::Event]
619
+ #
620
+ # @!attribute [rw] event_description
621
+ # The most recent description of the event.
622
+ # @return [Types::EventDescription]
623
+ #
624
+ # @!attribute [rw] event_metadata
625
+ # Additional metadata about the event.
626
+ # @return [Hash<String,String>]
627
+ class EventDetails < Struct.new(
628
+ :event,
629
+ :event_description,
630
+ :event_metadata)
631
+ include Aws::Structure
632
+ end
633
+
634
+ # Error information returned when a DescribeEventDetails operation
635
+ # cannot find a specified event.
636
+ # @!attribute [rw] event_arn
637
+ # The unique identifier for the event. Format:
638
+ # `arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID `. Example:
639
+ # `arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331`
640
+ # @return [String]
641
+ #
642
+ # @!attribute [rw] error_name
643
+ # The name of the error.
644
+ # @return [String]
645
+ #
646
+ # @!attribute [rw] error_message
647
+ # A message that describes the error.
648
+ # @return [String]
649
+ class EventDetailsErrorItem < Struct.new(
650
+ :event_arn,
651
+ :error_name,
652
+ :error_message)
653
+ include Aws::Structure
654
+ end
655
+
656
+ # The values to use to filter results from the DescribeEvents and
657
+ # DescribeEventAggregates operations.
658
+ # @note When making an API call, pass EventFilter
659
+ # data as a hash:
660
+ #
661
+ # {
662
+ # event_arns: ["eventArn"],
663
+ # event_type_codes: ["eventType"],
664
+ # services: ["service"],
665
+ # regions: ["region"],
666
+ # availability_zones: ["availabilityZone"],
667
+ # start_times: [
668
+ # {
669
+ # from: Time.now,
670
+ # to: Time.now,
671
+ # },
672
+ # ],
673
+ # end_times: [
674
+ # {
675
+ # from: Time.now,
676
+ # to: Time.now,
677
+ # },
678
+ # ],
679
+ # last_updated_times: [
680
+ # {
681
+ # from: Time.now,
682
+ # to: Time.now,
683
+ # },
684
+ # ],
685
+ # entity_arns: ["entityArn"],
686
+ # entity_values: ["entityValue"],
687
+ # event_type_categories: ["issue"], # accepts issue, accountNotification, scheduledChange
688
+ # tags: [
689
+ # {
690
+ # "tagKey" => "tagValue",
691
+ # },
692
+ # ],
693
+ # event_status_codes: ["open"], # accepts open, closed, upcoming
694
+ # }
695
+ # @!attribute [rw] event_arns
696
+ # A list of event ARNs (unique identifiers). For example:
697
+ # `"arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331",
698
+ # "arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz"`
699
+ # @return [Array<String>]
700
+ #
701
+ # @!attribute [rw] event_type_codes
702
+ # A list of unique identifiers for event types. For example,
703
+ # `"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED"`
704
+ # @return [Array<String>]
705
+ #
706
+ # @!attribute [rw] services
707
+ # The AWS services associated with the event. For example, `EC2`,
708
+ # `RDS`.
709
+ # @return [Array<String>]
710
+ #
711
+ # @!attribute [rw] regions
712
+ # A list of AWS regions.
713
+ # @return [Array<String>]
714
+ #
715
+ # @!attribute [rw] availability_zones
716
+ # A list of AWS availability zones.
717
+ # @return [Array<String>]
718
+ #
719
+ # @!attribute [rw] start_times
720
+ # A list of dates and times that the event began.
721
+ # @return [Array<Types::DateTimeRange>]
722
+ #
723
+ # @!attribute [rw] end_times
724
+ # A list of dates and times that the event ended.
725
+ # @return [Array<Types::DateTimeRange>]
726
+ #
727
+ # @!attribute [rw] last_updated_times
728
+ # A list of dates and times that the event was last updated.
729
+ # @return [Array<Types::DateTimeRange>]
730
+ #
731
+ # @!attribute [rw] entity_arns
732
+ # A list of entity ARNs (unique identifiers).
733
+ # @return [Array<String>]
734
+ #
735
+ # @!attribute [rw] entity_values
736
+ # A list of entity identifiers, such as EC2 instance IDs
737
+ # (`i-34ab692e`) or EBS volumes (`vol-426ab23e`).
738
+ # @return [Array<String>]
739
+ #
740
+ # @!attribute [rw] event_type_categories
741
+ # A list of event type category codes (`issue`, `scheduledChange`, or
742
+ # `accountNotification`).
743
+ # @return [Array<String>]
744
+ #
745
+ # @!attribute [rw] tags
746
+ # A map of entity tags attached to the affected entity.
747
+ # @return [Array<Hash<String,String>>]
748
+ #
749
+ # @!attribute [rw] event_status_codes
750
+ # A list of event status codes.
751
+ # @return [Array<String>]
752
+ class EventFilter < Struct.new(
753
+ :event_arns,
754
+ :event_type_codes,
755
+ :services,
756
+ :regions,
757
+ :availability_zones,
758
+ :start_times,
759
+ :end_times,
760
+ :last_updated_times,
761
+ :entity_arns,
762
+ :entity_values,
763
+ :event_type_categories,
764
+ :tags,
765
+ :event_status_codes)
766
+ include Aws::Structure
767
+ end
768
+
769
+ # Metadata about a type of event that is reported by AWS Health. Data
770
+ # consists of the category (for example, `issue`, the service (for
771
+ # example, `EC2`), and the event type code (for example,
772
+ # `AWS_EC2_SYSTEM_MAINTENANCE_EVENT`).
773
+ # @!attribute [rw] service
774
+ # The AWS service that is affected by the event. For example, `EC2`,
775
+ # `RDS`.
776
+ # @return [String]
777
+ #
778
+ # @!attribute [rw] code
779
+ # The unique identifier for the event type. The format is
780
+ # `AWS_SERVICE_DESCRIPTION `; for example,
781
+ # `AWS_EC2_SYSTEM_MAINTENANCE_EVENT`.
782
+ # @return [String]
783
+ #
784
+ # @!attribute [rw] category
785
+ # A list of event type category codes (`issue`, `scheduledChange`, or
786
+ # `accountNotification`).
787
+ # @return [String]
788
+ class EventType < Struct.new(
789
+ :service,
790
+ :code,
791
+ :category)
792
+ include Aws::Structure
793
+ end
794
+
795
+ # The values to use to filter results from the DescribeEventTypes
796
+ # operation.
797
+ # @note When making an API call, pass EventTypeFilter
798
+ # data as a hash:
799
+ #
800
+ # {
801
+ # event_type_codes: ["eventTypeCode"],
802
+ # services: ["service"],
803
+ # event_type_categories: ["issue"], # accepts issue, accountNotification, scheduledChange
804
+ # }
805
+ # @!attribute [rw] event_type_codes
806
+ # A list of event type codes.
807
+ # @return [Array<String>]
808
+ #
809
+ # @!attribute [rw] services
810
+ # The AWS services associated with the event. For example, `EC2`,
811
+ # `RDS`.
812
+ # @return [Array<String>]
813
+ #
814
+ # @!attribute [rw] event_type_categories
815
+ # A list of event type category codes (`issue`, `scheduledChange`, or
816
+ # `accountNotification`).
817
+ # @return [Array<String>]
818
+ class EventTypeFilter < Struct.new(
819
+ :event_type_codes,
820
+ :services,
821
+ :event_type_categories)
822
+ include Aws::Structure
823
+ end
824
+
825
+ end
826
+ end
827
+ end