aws-sdk-health 1.20.0 → 1.25.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,13 @@ module Aws::Health
12
12
  include Seahorse::Model
13
13
 
14
14
  AffectedEntity = Shapes::StructureShape.new(name: 'AffectedEntity')
15
+ ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
15
16
  DateTimeRange = Shapes::StructureShape.new(name: 'DateTimeRange')
17
+ DescribeAffectedAccountsForOrganizationRequest = Shapes::StructureShape.new(name: 'DescribeAffectedAccountsForOrganizationRequest')
18
+ DescribeAffectedAccountsForOrganizationResponse = Shapes::StructureShape.new(name: 'DescribeAffectedAccountsForOrganizationResponse')
19
+ DescribeAffectedEntitiesForOrganizationFailedSet = Shapes::ListShape.new(name: 'DescribeAffectedEntitiesForOrganizationFailedSet')
20
+ DescribeAffectedEntitiesForOrganizationRequest = Shapes::StructureShape.new(name: 'DescribeAffectedEntitiesForOrganizationRequest')
21
+ DescribeAffectedEntitiesForOrganizationResponse = Shapes::StructureShape.new(name: 'DescribeAffectedEntitiesForOrganizationResponse')
16
22
  DescribeAffectedEntitiesRequest = Shapes::StructureShape.new(name: 'DescribeAffectedEntitiesRequest')
17
23
  DescribeAffectedEntitiesResponse = Shapes::StructureShape.new(name: 'DescribeAffectedEntitiesResponse')
18
24
  DescribeEntityAggregatesRequest = Shapes::StructureShape.new(name: 'DescribeEntityAggregatesRequest')
@@ -20,18 +26,26 @@ module Aws::Health
20
26
  DescribeEventAggregatesRequest = Shapes::StructureShape.new(name: 'DescribeEventAggregatesRequest')
21
27
  DescribeEventAggregatesResponse = Shapes::StructureShape.new(name: 'DescribeEventAggregatesResponse')
22
28
  DescribeEventDetailsFailedSet = Shapes::ListShape.new(name: 'DescribeEventDetailsFailedSet')
29
+ DescribeEventDetailsForOrganizationFailedSet = Shapes::ListShape.new(name: 'DescribeEventDetailsForOrganizationFailedSet')
30
+ DescribeEventDetailsForOrganizationRequest = Shapes::StructureShape.new(name: 'DescribeEventDetailsForOrganizationRequest')
31
+ DescribeEventDetailsForOrganizationResponse = Shapes::StructureShape.new(name: 'DescribeEventDetailsForOrganizationResponse')
32
+ DescribeEventDetailsForOrganizationSuccessfulSet = Shapes::ListShape.new(name: 'DescribeEventDetailsForOrganizationSuccessfulSet')
23
33
  DescribeEventDetailsRequest = Shapes::StructureShape.new(name: 'DescribeEventDetailsRequest')
24
34
  DescribeEventDetailsResponse = Shapes::StructureShape.new(name: 'DescribeEventDetailsResponse')
25
35
  DescribeEventDetailsSuccessfulSet = Shapes::ListShape.new(name: 'DescribeEventDetailsSuccessfulSet')
26
36
  DescribeEventTypesRequest = Shapes::StructureShape.new(name: 'DescribeEventTypesRequest')
27
37
  DescribeEventTypesResponse = Shapes::StructureShape.new(name: 'DescribeEventTypesResponse')
38
+ DescribeEventsForOrganizationRequest = Shapes::StructureShape.new(name: 'DescribeEventsForOrganizationRequest')
39
+ DescribeEventsForOrganizationResponse = Shapes::StructureShape.new(name: 'DescribeEventsForOrganizationResponse')
28
40
  DescribeEventsRequest = Shapes::StructureShape.new(name: 'DescribeEventsRequest')
29
41
  DescribeEventsResponse = Shapes::StructureShape.new(name: 'DescribeEventsResponse')
42
+ DescribeHealthServiceStatusForOrganizationResponse = Shapes::StructureShape.new(name: 'DescribeHealthServiceStatusForOrganizationResponse')
30
43
  EntityAggregate = Shapes::StructureShape.new(name: 'EntityAggregate')
31
44
  EntityAggregateList = Shapes::ListShape.new(name: 'EntityAggregateList')
32
45
  EntityFilter = Shapes::StructureShape.new(name: 'EntityFilter')
33
46
  EntityList = Shapes::ListShape.new(name: 'EntityList')
34
47
  Event = Shapes::StructureShape.new(name: 'Event')
48
+ EventAccountFilter = Shapes::StructureShape.new(name: 'EventAccountFilter')
35
49
  EventAggregate = Shapes::StructureShape.new(name: 'EventAggregate')
36
50
  EventAggregateList = Shapes::ListShape.new(name: 'EventAggregateList')
37
51
  EventArnsList = Shapes::ListShape.new(name: 'EventArnsList')
@@ -46,11 +60,21 @@ module Aws::Health
46
60
  EventTypeFilter = Shapes::StructureShape.new(name: 'EventTypeFilter')
47
61
  EventTypeList = Shapes::ListShape.new(name: 'EventTypeList')
48
62
  InvalidPaginationToken = Shapes::StructureShape.new(name: 'InvalidPaginationToken')
63
+ OrganizationAffectedEntitiesErrorItem = Shapes::StructureShape.new(name: 'OrganizationAffectedEntitiesErrorItem')
64
+ OrganizationEntityFiltersList = Shapes::ListShape.new(name: 'OrganizationEntityFiltersList')
65
+ OrganizationEvent = Shapes::StructureShape.new(name: 'OrganizationEvent')
66
+ OrganizationEventDetailFiltersList = Shapes::ListShape.new(name: 'OrganizationEventDetailFiltersList')
67
+ OrganizationEventDetails = Shapes::StructureShape.new(name: 'OrganizationEventDetails')
68
+ OrganizationEventDetailsErrorItem = Shapes::StructureShape.new(name: 'OrganizationEventDetailsErrorItem')
69
+ OrganizationEventFilter = Shapes::StructureShape.new(name: 'OrganizationEventFilter')
70
+ OrganizationEventList = Shapes::ListShape.new(name: 'OrganizationEventList')
49
71
  UnsupportedLocale = Shapes::StructureShape.new(name: 'UnsupportedLocale')
50
72
  accountId = Shapes::StringShape.new(name: 'accountId')
73
+ affectedAccountsList = Shapes::ListShape.new(name: 'affectedAccountsList')
51
74
  aggregateValue = Shapes::StringShape.new(name: 'aggregateValue')
52
75
  availabilityZone = Shapes::StringShape.new(name: 'availabilityZone')
53
76
  availabilityZones = Shapes::ListShape.new(name: 'availabilityZones')
77
+ awsAccountIdsList = Shapes::ListShape.new(name: 'awsAccountIdsList')
54
78
  count = Shapes::IntegerShape.new(name: 'count')
55
79
  dateTimeRangeList = Shapes::ListShape.new(name: 'dateTimeRangeList')
56
80
  entityArn = Shapes::StringShape.new(name: 'entityArn')
@@ -65,6 +89,7 @@ module Aws::Health
65
89
  eventArnList = Shapes::ListShape.new(name: 'eventArnList')
66
90
  eventDescription = Shapes::StringShape.new(name: 'eventDescription')
67
91
  eventMetadata = Shapes::MapShape.new(name: 'eventMetadata')
92
+ eventScopeCode = Shapes::StringShape.new(name: 'eventScopeCode')
68
93
  eventStatusCode = Shapes::StringShape.new(name: 'eventStatusCode')
69
94
  eventStatusCodeList = Shapes::ListShape.new(name: 'eventStatusCodeList')
70
95
  eventType = Shapes::StringShape.new(name: 'eventType')
@@ -72,6 +97,7 @@ module Aws::Health
72
97
  eventTypeCategoryList = Shapes::ListShape.new(name: 'eventTypeCategoryList')
73
98
  eventTypeCode = Shapes::StringShape.new(name: 'eventTypeCode')
74
99
  eventTypeList = Shapes::ListShape.new(name: 'eventTypeList')
100
+ healthServiceAccessStatusForOrganization = Shapes::StringShape.new(name: 'healthServiceAccessStatusForOrganization')
75
101
  locale = Shapes::StringShape.new(name: 'locale')
76
102
  maxResults = Shapes::IntegerShape.new(name: 'maxResults')
77
103
  metadataKey = Shapes::StringShape.new(name: 'metadataKey')
@@ -98,10 +124,36 @@ module Aws::Health
98
124
  AffectedEntity.add_member(:tags, Shapes::ShapeRef.new(shape: tagSet, location_name: "tags"))
99
125
  AffectedEntity.struct_class = Types::AffectedEntity
100
126
 
127
+ ConcurrentModificationException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
128
+ ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
129
+
101
130
  DateTimeRange.add_member(:from, Shapes::ShapeRef.new(shape: timestamp, location_name: "from"))
102
131
  DateTimeRange.add_member(:to, Shapes::ShapeRef.new(shape: timestamp, location_name: "to"))
103
132
  DateTimeRange.struct_class = Types::DateTimeRange
104
133
 
134
+ DescribeAffectedAccountsForOrganizationRequest.add_member(:event_arn, Shapes::ShapeRef.new(shape: eventArn, required: true, location_name: "eventArn"))
135
+ DescribeAffectedAccountsForOrganizationRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
136
+ DescribeAffectedAccountsForOrganizationRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: maxResults, location_name: "maxResults"))
137
+ DescribeAffectedAccountsForOrganizationRequest.struct_class = Types::DescribeAffectedAccountsForOrganizationRequest
138
+
139
+ DescribeAffectedAccountsForOrganizationResponse.add_member(:affected_accounts, Shapes::ShapeRef.new(shape: affectedAccountsList, location_name: "affectedAccounts"))
140
+ DescribeAffectedAccountsForOrganizationResponse.add_member(:event_scope_code, Shapes::ShapeRef.new(shape: eventScopeCode, location_name: "eventScopeCode"))
141
+ DescribeAffectedAccountsForOrganizationResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
142
+ DescribeAffectedAccountsForOrganizationResponse.struct_class = Types::DescribeAffectedAccountsForOrganizationResponse
143
+
144
+ DescribeAffectedEntitiesForOrganizationFailedSet.member = Shapes::ShapeRef.new(shape: OrganizationAffectedEntitiesErrorItem)
145
+
146
+ DescribeAffectedEntitiesForOrganizationRequest.add_member(:organization_entity_filters, Shapes::ShapeRef.new(shape: OrganizationEntityFiltersList, required: true, location_name: "organizationEntityFilters"))
147
+ DescribeAffectedEntitiesForOrganizationRequest.add_member(:locale, Shapes::ShapeRef.new(shape: locale, location_name: "locale"))
148
+ DescribeAffectedEntitiesForOrganizationRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
149
+ DescribeAffectedEntitiesForOrganizationRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: maxResults, location_name: "maxResults"))
150
+ DescribeAffectedEntitiesForOrganizationRequest.struct_class = Types::DescribeAffectedEntitiesForOrganizationRequest
151
+
152
+ DescribeAffectedEntitiesForOrganizationResponse.add_member(:entities, Shapes::ShapeRef.new(shape: EntityList, location_name: "entities"))
153
+ DescribeAffectedEntitiesForOrganizationResponse.add_member(:failed_set, Shapes::ShapeRef.new(shape: DescribeAffectedEntitiesForOrganizationFailedSet, location_name: "failedSet"))
154
+ DescribeAffectedEntitiesForOrganizationResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
155
+ DescribeAffectedEntitiesForOrganizationResponse.struct_class = Types::DescribeAffectedEntitiesForOrganizationResponse
156
+
105
157
  DescribeAffectedEntitiesRequest.add_member(:filter, Shapes::ShapeRef.new(shape: EntityFilter, required: true, location_name: "filter"))
106
158
  DescribeAffectedEntitiesRequest.add_member(:locale, Shapes::ShapeRef.new(shape: locale, location_name: "locale"))
107
159
  DescribeAffectedEntitiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
@@ -130,6 +182,18 @@ module Aws::Health
130
182
 
131
183
  DescribeEventDetailsFailedSet.member = Shapes::ShapeRef.new(shape: EventDetailsErrorItem)
132
184
 
185
+ DescribeEventDetailsForOrganizationFailedSet.member = Shapes::ShapeRef.new(shape: OrganizationEventDetailsErrorItem)
186
+
187
+ DescribeEventDetailsForOrganizationRequest.add_member(:organization_event_detail_filters, Shapes::ShapeRef.new(shape: OrganizationEventDetailFiltersList, required: true, location_name: "organizationEventDetailFilters"))
188
+ DescribeEventDetailsForOrganizationRequest.add_member(:locale, Shapes::ShapeRef.new(shape: locale, location_name: "locale"))
189
+ DescribeEventDetailsForOrganizationRequest.struct_class = Types::DescribeEventDetailsForOrganizationRequest
190
+
191
+ DescribeEventDetailsForOrganizationResponse.add_member(:successful_set, Shapes::ShapeRef.new(shape: DescribeEventDetailsForOrganizationSuccessfulSet, location_name: "successfulSet"))
192
+ DescribeEventDetailsForOrganizationResponse.add_member(:failed_set, Shapes::ShapeRef.new(shape: DescribeEventDetailsForOrganizationFailedSet, location_name: "failedSet"))
193
+ DescribeEventDetailsForOrganizationResponse.struct_class = Types::DescribeEventDetailsForOrganizationResponse
194
+
195
+ DescribeEventDetailsForOrganizationSuccessfulSet.member = Shapes::ShapeRef.new(shape: OrganizationEventDetails)
196
+
133
197
  DescribeEventDetailsRequest.add_member(:event_arns, Shapes::ShapeRef.new(shape: eventArnList, required: true, location_name: "eventArns"))
134
198
  DescribeEventDetailsRequest.add_member(:locale, Shapes::ShapeRef.new(shape: locale, location_name: "locale"))
135
199
  DescribeEventDetailsRequest.struct_class = Types::DescribeEventDetailsRequest
@@ -150,6 +214,16 @@ module Aws::Health
150
214
  DescribeEventTypesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
151
215
  DescribeEventTypesResponse.struct_class = Types::DescribeEventTypesResponse
152
216
 
217
+ DescribeEventsForOrganizationRequest.add_member(:filter, Shapes::ShapeRef.new(shape: OrganizationEventFilter, location_name: "filter"))
218
+ DescribeEventsForOrganizationRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
219
+ DescribeEventsForOrganizationRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: maxResults, location_name: "maxResults"))
220
+ DescribeEventsForOrganizationRequest.add_member(:locale, Shapes::ShapeRef.new(shape: locale, location_name: "locale"))
221
+ DescribeEventsForOrganizationRequest.struct_class = Types::DescribeEventsForOrganizationRequest
222
+
223
+ DescribeEventsForOrganizationResponse.add_member(:events, Shapes::ShapeRef.new(shape: OrganizationEventList, location_name: "events"))
224
+ DescribeEventsForOrganizationResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
225
+ DescribeEventsForOrganizationResponse.struct_class = Types::DescribeEventsForOrganizationResponse
226
+
153
227
  DescribeEventsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: EventFilter, location_name: "filter"))
154
228
  DescribeEventsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
155
229
  DescribeEventsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: maxResults, location_name: "maxResults"))
@@ -160,6 +234,9 @@ module Aws::Health
160
234
  DescribeEventsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
161
235
  DescribeEventsResponse.struct_class = Types::DescribeEventsResponse
162
236
 
237
+ DescribeHealthServiceStatusForOrganizationResponse.add_member(:health_service_access_status_for_organization, Shapes::ShapeRef.new(shape: healthServiceAccessStatusForOrganization, location_name: "healthServiceAccessStatusForOrganization"))
238
+ DescribeHealthServiceStatusForOrganizationResponse.struct_class = Types::DescribeHealthServiceStatusForOrganizationResponse
239
+
163
240
  EntityAggregate.add_member(:event_arn, Shapes::ShapeRef.new(shape: eventArn, location_name: "eventArn"))
164
241
  EntityAggregate.add_member(:count, Shapes::ShapeRef.new(shape: count, location_name: "count"))
165
242
  EntityAggregate.struct_class = Types::EntityAggregate
@@ -186,8 +263,13 @@ module Aws::Health
186
263
  Event.add_member(:end_time, Shapes::ShapeRef.new(shape: timestamp, location_name: "endTime"))
187
264
  Event.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: timestamp, location_name: "lastUpdatedTime"))
188
265
  Event.add_member(:status_code, Shapes::ShapeRef.new(shape: eventStatusCode, location_name: "statusCode"))
266
+ Event.add_member(:event_scope_code, Shapes::ShapeRef.new(shape: eventScopeCode, location_name: "eventScopeCode"))
189
267
  Event.struct_class = Types::Event
190
268
 
269
+ EventAccountFilter.add_member(:event_arn, Shapes::ShapeRef.new(shape: eventArn, required: true, location_name: "eventArn"))
270
+ EventAccountFilter.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: accountId, location_name: "awsAccountId"))
271
+ EventAccountFilter.struct_class = Types::EventAccountFilter
272
+
191
273
  EventAggregate.add_member(:aggregate_value, Shapes::ShapeRef.new(shape: aggregateValue, location_name: "aggregateValue"))
192
274
  EventAggregate.add_member(:count, Shapes::ShapeRef.new(shape: count, location_name: "count"))
193
275
  EventAggregate.struct_class = Types::EventAggregate
@@ -245,11 +327,64 @@ module Aws::Health
245
327
  InvalidPaginationToken.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
246
328
  InvalidPaginationToken.struct_class = Types::InvalidPaginationToken
247
329
 
330
+ OrganizationAffectedEntitiesErrorItem.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: accountId, location_name: "awsAccountId"))
331
+ OrganizationAffectedEntitiesErrorItem.add_member(:event_arn, Shapes::ShapeRef.new(shape: eventArn, location_name: "eventArn"))
332
+ OrganizationAffectedEntitiesErrorItem.add_member(:error_name, Shapes::ShapeRef.new(shape: string, location_name: "errorName"))
333
+ OrganizationAffectedEntitiesErrorItem.add_member(:error_message, Shapes::ShapeRef.new(shape: string, location_name: "errorMessage"))
334
+ OrganizationAffectedEntitiesErrorItem.struct_class = Types::OrganizationAffectedEntitiesErrorItem
335
+
336
+ OrganizationEntityFiltersList.member = Shapes::ShapeRef.new(shape: EventAccountFilter)
337
+
338
+ OrganizationEvent.add_member(:arn, Shapes::ShapeRef.new(shape: eventArn, location_name: "arn"))
339
+ OrganizationEvent.add_member(:service, Shapes::ShapeRef.new(shape: service, location_name: "service"))
340
+ OrganizationEvent.add_member(:event_type_code, Shapes::ShapeRef.new(shape: eventTypeCode, location_name: "eventTypeCode"))
341
+ OrganizationEvent.add_member(:event_type_category, Shapes::ShapeRef.new(shape: eventTypeCategory, location_name: "eventTypeCategory"))
342
+ OrganizationEvent.add_member(:event_scope_code, Shapes::ShapeRef.new(shape: eventScopeCode, location_name: "eventScopeCode"))
343
+ OrganizationEvent.add_member(:region, Shapes::ShapeRef.new(shape: region, location_name: "region"))
344
+ OrganizationEvent.add_member(:start_time, Shapes::ShapeRef.new(shape: timestamp, location_name: "startTime"))
345
+ OrganizationEvent.add_member(:end_time, Shapes::ShapeRef.new(shape: timestamp, location_name: "endTime"))
346
+ OrganizationEvent.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: timestamp, location_name: "lastUpdatedTime"))
347
+ OrganizationEvent.add_member(:status_code, Shapes::ShapeRef.new(shape: eventStatusCode, location_name: "statusCode"))
348
+ OrganizationEvent.struct_class = Types::OrganizationEvent
349
+
350
+ OrganizationEventDetailFiltersList.member = Shapes::ShapeRef.new(shape: EventAccountFilter)
351
+
352
+ OrganizationEventDetails.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: accountId, location_name: "awsAccountId"))
353
+ OrganizationEventDetails.add_member(:event, Shapes::ShapeRef.new(shape: Event, location_name: "event"))
354
+ OrganizationEventDetails.add_member(:event_description, Shapes::ShapeRef.new(shape: EventDescription, location_name: "eventDescription"))
355
+ OrganizationEventDetails.add_member(:event_metadata, Shapes::ShapeRef.new(shape: eventMetadata, location_name: "eventMetadata"))
356
+ OrganizationEventDetails.struct_class = Types::OrganizationEventDetails
357
+
358
+ OrganizationEventDetailsErrorItem.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: accountId, location_name: "awsAccountId"))
359
+ OrganizationEventDetailsErrorItem.add_member(:event_arn, Shapes::ShapeRef.new(shape: eventArn, location_name: "eventArn"))
360
+ OrganizationEventDetailsErrorItem.add_member(:error_name, Shapes::ShapeRef.new(shape: string, location_name: "errorName"))
361
+ OrganizationEventDetailsErrorItem.add_member(:error_message, Shapes::ShapeRef.new(shape: string, location_name: "errorMessage"))
362
+ OrganizationEventDetailsErrorItem.struct_class = Types::OrganizationEventDetailsErrorItem
363
+
364
+ OrganizationEventFilter.add_member(:event_type_codes, Shapes::ShapeRef.new(shape: eventTypeList, location_name: "eventTypeCodes"))
365
+ OrganizationEventFilter.add_member(:aws_account_ids, Shapes::ShapeRef.new(shape: awsAccountIdsList, location_name: "awsAccountIds"))
366
+ OrganizationEventFilter.add_member(:services, Shapes::ShapeRef.new(shape: serviceList, location_name: "services"))
367
+ OrganizationEventFilter.add_member(:regions, Shapes::ShapeRef.new(shape: regionList, location_name: "regions"))
368
+ OrganizationEventFilter.add_member(:start_time, Shapes::ShapeRef.new(shape: DateTimeRange, location_name: "startTime"))
369
+ OrganizationEventFilter.add_member(:end_time, Shapes::ShapeRef.new(shape: DateTimeRange, location_name: "endTime"))
370
+ OrganizationEventFilter.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: DateTimeRange, location_name: "lastUpdatedTime"))
371
+ OrganizationEventFilter.add_member(:entity_arns, Shapes::ShapeRef.new(shape: entityArnList, location_name: "entityArns"))
372
+ OrganizationEventFilter.add_member(:entity_values, Shapes::ShapeRef.new(shape: entityValueList, location_name: "entityValues"))
373
+ OrganizationEventFilter.add_member(:event_type_categories, Shapes::ShapeRef.new(shape: eventTypeCategoryList, location_name: "eventTypeCategories"))
374
+ OrganizationEventFilter.add_member(:event_status_codes, Shapes::ShapeRef.new(shape: eventStatusCodeList, location_name: "eventStatusCodes"))
375
+ OrganizationEventFilter.struct_class = Types::OrganizationEventFilter
376
+
377
+ OrganizationEventList.member = Shapes::ShapeRef.new(shape: OrganizationEvent)
378
+
248
379
  UnsupportedLocale.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
249
380
  UnsupportedLocale.struct_class = Types::UnsupportedLocale
250
381
 
382
+ affectedAccountsList.member = Shapes::ShapeRef.new(shape: accountId)
383
+
251
384
  availabilityZones.member = Shapes::ShapeRef.new(shape: availabilityZone)
252
385
 
386
+ awsAccountIdsList.member = Shapes::ShapeRef.new(shape: accountId)
387
+
253
388
  dateTimeRangeList.member = Shapes::ShapeRef.new(shape: DateTimeRange)
254
389
 
255
390
  entityArnList.member = Shapes::ShapeRef.new(shape: entityArn)
@@ -297,6 +432,21 @@ module Aws::Health
297
432
  "uid" => "health-2016-08-04",
298
433
  }
299
434
 
435
+ api.add_operation(:describe_affected_accounts_for_organization, Seahorse::Model::Operation.new.tap do |o|
436
+ o.name = "DescribeAffectedAccountsForOrganization"
437
+ o.http_method = "POST"
438
+ o.http_request_uri = "/"
439
+ o.input = Shapes::ShapeRef.new(shape: DescribeAffectedAccountsForOrganizationRequest)
440
+ o.output = Shapes::ShapeRef.new(shape: DescribeAffectedAccountsForOrganizationResponse)
441
+ o.errors << Shapes::ShapeRef.new(shape: InvalidPaginationToken)
442
+ o[:pager] = Aws::Pager.new(
443
+ limit_key: "max_results",
444
+ tokens: {
445
+ "next_token" => "next_token"
446
+ }
447
+ )
448
+ end)
449
+
300
450
  api.add_operation(:describe_affected_entities, Seahorse::Model::Operation.new.tap do |o|
301
451
  o.name = "DescribeAffectedEntities"
302
452
  o.http_method = "POST"
@@ -313,6 +463,22 @@ module Aws::Health
313
463
  )
314
464
  end)
315
465
 
466
+ api.add_operation(:describe_affected_entities_for_organization, Seahorse::Model::Operation.new.tap do |o|
467
+ o.name = "DescribeAffectedEntitiesForOrganization"
468
+ o.http_method = "POST"
469
+ o.http_request_uri = "/"
470
+ o.input = Shapes::ShapeRef.new(shape: DescribeAffectedEntitiesForOrganizationRequest)
471
+ o.output = Shapes::ShapeRef.new(shape: DescribeAffectedEntitiesForOrganizationResponse)
472
+ o.errors << Shapes::ShapeRef.new(shape: InvalidPaginationToken)
473
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLocale)
474
+ o[:pager] = Aws::Pager.new(
475
+ limit_key: "max_results",
476
+ tokens: {
477
+ "next_token" => "next_token"
478
+ }
479
+ )
480
+ end)
481
+
316
482
  api.add_operation(:describe_entity_aggregates, Seahorse::Model::Operation.new.tap do |o|
317
483
  o.name = "DescribeEntityAggregates"
318
484
  o.http_method = "POST"
@@ -345,6 +511,15 @@ module Aws::Health
345
511
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedLocale)
346
512
  end)
347
513
 
514
+ api.add_operation(:describe_event_details_for_organization, Seahorse::Model::Operation.new.tap do |o|
515
+ o.name = "DescribeEventDetailsForOrganization"
516
+ o.http_method = "POST"
517
+ o.http_request_uri = "/"
518
+ o.input = Shapes::ShapeRef.new(shape: DescribeEventDetailsForOrganizationRequest)
519
+ o.output = Shapes::ShapeRef.new(shape: DescribeEventDetailsForOrganizationResponse)
520
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLocale)
521
+ end)
522
+
348
523
  api.add_operation(:describe_event_types, Seahorse::Model::Operation.new.tap do |o|
349
524
  o.name = "DescribeEventTypes"
350
525
  o.http_method = "POST"
@@ -376,6 +551,48 @@ module Aws::Health
376
551
  }
377
552
  )
378
553
  end)
554
+
555
+ api.add_operation(:describe_events_for_organization, Seahorse::Model::Operation.new.tap do |o|
556
+ o.name = "DescribeEventsForOrganization"
557
+ o.http_method = "POST"
558
+ o.http_request_uri = "/"
559
+ o.input = Shapes::ShapeRef.new(shape: DescribeEventsForOrganizationRequest)
560
+ o.output = Shapes::ShapeRef.new(shape: DescribeEventsForOrganizationResponse)
561
+ o.errors << Shapes::ShapeRef.new(shape: InvalidPaginationToken)
562
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLocale)
563
+ o[:pager] = Aws::Pager.new(
564
+ limit_key: "max_results",
565
+ tokens: {
566
+ "next_token" => "next_token"
567
+ }
568
+ )
569
+ end)
570
+
571
+ api.add_operation(:describe_health_service_status_for_organization, Seahorse::Model::Operation.new.tap do |o|
572
+ o.name = "DescribeHealthServiceStatusForOrganization"
573
+ o.http_method = "POST"
574
+ o.http_request_uri = "/"
575
+ o.input = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
576
+ o.output = Shapes::ShapeRef.new(shape: DescribeHealthServiceStatusForOrganizationResponse)
577
+ end)
578
+
579
+ api.add_operation(:disable_health_service_access_for_organization, Seahorse::Model::Operation.new.tap do |o|
580
+ o.name = "DisableHealthServiceAccessForOrganization"
581
+ o.http_method = "POST"
582
+ o.http_request_uri = "/"
583
+ o.input = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
584
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
585
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
586
+ end)
587
+
588
+ api.add_operation(:enable_health_service_access_for_organization, Seahorse::Model::Operation.new.tap do |o|
589
+ o.name = "EnableHealthServiceAccessForOrganization"
590
+ o.http_method = "POST"
591
+ o.http_request_uri = "/"
592
+ o.input = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
593
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
594
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
595
+ end)
379
596
  end
380
597
 
381
598
  end
@@ -6,10 +6,50 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Health
9
+
10
+ # When Health returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::Health::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all Health errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::Health::Errors::ServiceError
18
+ # # rescues all Health API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {ConcurrentModificationException}
29
+ # * {InvalidPaginationToken}
30
+ # * {UnsupportedLocale}
31
+ #
32
+ # Additionally, error classes are dynamically generated for service errors based on the error code
33
+ # if they are not defined above.
9
34
  module Errors
10
35
 
11
36
  extend Aws::Errors::DynamicErrors
12
37
 
38
+ class ConcurrentModificationException < ServiceError
39
+
40
+ # @param [Seahorse::Client::RequestContext] context
41
+ # @param [String] message
42
+ # @param [Aws::Health::Types::ConcurrentModificationException] data
43
+ def initialize(context, message, data = Aws::EmptyStructure.new)
44
+ super(context, message, data)
45
+ end
46
+
47
+ # @return [String]
48
+ def message
49
+ @message || @data[:message]
50
+ end
51
+ end
52
+
13
53
  class InvalidPaginationToken < ServiceError
14
54
 
15
55
  # @param [Seahorse::Client::RequestContext] context
@@ -23,7 +63,6 @@ module Aws::Health
23
63
  def message
24
64
  @message || @data[:message]
25
65
  end
26
-
27
66
  end
28
67
 
29
68
  class UnsupportedLocale < ServiceError
@@ -39,7 +78,6 @@ module Aws::Health
39
78
  def message
40
79
  @message || @data[:message]
41
80
  end
42
-
43
81
  end
44
82
 
45
83
  end
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Health
9
+
9
10
  class Resource
10
11
 
11
12
  # @param options ({})
@@ -29,6 +29,7 @@ module Aws::Health
29
29
  # @return [String]
30
30
  #
31
31
  # @!attribute [rw] entity_url
32
+ # The URL of the affected entity.
32
33
  # @return [String]
33
34
  #
34
35
  # @!attribute [rw] aws_account_id
@@ -62,6 +63,20 @@ module Aws::Health
62
63
  include Aws::Structure
63
64
  end
64
65
 
66
+ # EnableHealthServiceAccessForOrganization is already in progress. Wait
67
+ # for the action to complete before trying again. To get the current
68
+ # status, use the DescribeHealthServiceStatusForOrganization operation.
69
+ #
70
+ # @!attribute [rw] message
71
+ # @return [String]
72
+ #
73
+ # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/ConcurrentModificationException AWS API Documentation
74
+ #
75
+ class ConcurrentModificationException < Struct.new(
76
+ :message)
77
+ include Aws::Structure
78
+ end
79
+
65
80
  # A range of dates and times that is used by the EventFilter and
66
81
  # EntityFilter objects. If `from` is set and `to` is set: match items
67
82
  # where the timestamp (`startTime`, `endTime`, or `lastUpdatedTime`) is
@@ -94,6 +109,144 @@ module Aws::Health
94
109
  include Aws::Structure
95
110
  end
96
111
 
112
+ # @note When making an API call, you may pass DescribeAffectedAccountsForOrganizationRequest
113
+ # data as a hash:
114
+ #
115
+ # {
116
+ # event_arn: "eventArn", # required
117
+ # next_token: "nextToken",
118
+ # max_results: 1,
119
+ # }
120
+ #
121
+ # @!attribute [rw] event_arn
122
+ # The unique identifier for the event. Format:
123
+ # `arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
124
+ # `. Example: `Example:
125
+ # arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456`
126
+ # @return [String]
127
+ #
128
+ # @!attribute [rw] next_token
129
+ # If the results of a search are large, only a portion of the results
130
+ # are returned, and a `nextToken` pagination token is returned in the
131
+ # response. To retrieve the next batch of results, reissue the search
132
+ # request and include the returned token. When all results have been
133
+ # returned, the response does not contain a pagination token value.
134
+ # @return [String]
135
+ #
136
+ # @!attribute [rw] max_results
137
+ # The maximum number of items to return in one batch, between 10 and
138
+ # 100, inclusive.
139
+ # @return [Integer]
140
+ #
141
+ # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganizationRequest AWS API Documentation
142
+ #
143
+ class DescribeAffectedAccountsForOrganizationRequest < Struct.new(
144
+ :event_arn,
145
+ :next_token,
146
+ :max_results)
147
+ include Aws::Structure
148
+ end
149
+
150
+ # @!attribute [rw] affected_accounts
151
+ # A JSON set of elements of the affected accounts.
152
+ # @return [Array<String>]
153
+ #
154
+ # @!attribute [rw] event_scope_code
155
+ # @return [String]
156
+ #
157
+ # @!attribute [rw] next_token
158
+ # If the results of a search are large, only a portion of the results
159
+ # are returned, and a `nextToken` pagination token is returned in the
160
+ # response. To retrieve the next batch of results, reissue the search
161
+ # request and include the returned token. When all results have been
162
+ # returned, the response does not contain a pagination token value.
163
+ # @return [String]
164
+ #
165
+ # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganizationResponse AWS API Documentation
166
+ #
167
+ class DescribeAffectedAccountsForOrganizationResponse < Struct.new(
168
+ :affected_accounts,
169
+ :event_scope_code,
170
+ :next_token)
171
+ include Aws::Structure
172
+ end
173
+
174
+ # @note When making an API call, you may pass DescribeAffectedEntitiesForOrganizationRequest
175
+ # data as a hash:
176
+ #
177
+ # {
178
+ # organization_entity_filters: [ # required
179
+ # {
180
+ # event_arn: "eventArn", # required
181
+ # aws_account_id: "accountId",
182
+ # },
183
+ # ],
184
+ # locale: "locale",
185
+ # next_token: "nextToken",
186
+ # max_results: 1,
187
+ # }
188
+ #
189
+ # @!attribute [rw] organization_entity_filters
190
+ # A JSON set of elements including the `awsAccountId` and the
191
+ # `eventArn`.
192
+ # @return [Array<Types::EventAccountFilter>]
193
+ #
194
+ # @!attribute [rw] locale
195
+ # The locale (language) to return information in. English (en) is the
196
+ # default and the only supported value at this time.
197
+ # @return [String]
198
+ #
199
+ # @!attribute [rw] next_token
200
+ # If the results of a search are large, only a portion of the results
201
+ # are returned, and a `nextToken` pagination token is returned in the
202
+ # response. To retrieve the next batch of results, reissue the search
203
+ # request and include the returned token. When all results have been
204
+ # returned, the response does not contain a pagination token value.
205
+ # @return [String]
206
+ #
207
+ # @!attribute [rw] max_results
208
+ # The maximum number of items to return in one batch, between 10 and
209
+ # 100, inclusive.
210
+ # @return [Integer]
211
+ #
212
+ # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganizationRequest AWS API Documentation
213
+ #
214
+ class DescribeAffectedEntitiesForOrganizationRequest < Struct.new(
215
+ :organization_entity_filters,
216
+ :locale,
217
+ :next_token,
218
+ :max_results)
219
+ include Aws::Structure
220
+ end
221
+
222
+ # @!attribute [rw] entities
223
+ # A JSON set of elements including the `awsAccountId` and its
224
+ # `entityArn`, `entityValue` and its `entityArn`, `lastUpdatedTime`,
225
+ # `statusCode`, and `tags`.
226
+ # @return [Array<Types::AffectedEntity>]
227
+ #
228
+ # @!attribute [rw] failed_set
229
+ # A JSON set of elements of the failed response, including the
230
+ # `awsAccountId`, `errorMessage`, `errorName`, and `eventArn`.
231
+ # @return [Array<Types::OrganizationAffectedEntitiesErrorItem>]
232
+ #
233
+ # @!attribute [rw] next_token
234
+ # If the results of a search are large, only a portion of the results
235
+ # are returned, and a `nextToken` pagination token is returned in the
236
+ # response. To retrieve the next batch of results, reissue the search
237
+ # request and include the returned token. When all results have been
238
+ # returned, the response does not contain a pagination token value.
239
+ # @return [String]
240
+ #
241
+ # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganizationResponse AWS API Documentation
242
+ #
243
+ class DescribeAffectedEntitiesForOrganizationResponse < Struct.new(
244
+ :entities,
245
+ :failed_set,
246
+ :next_token)
247
+ include Aws::Structure
248
+ end
249
+
97
250
  # @note When making an API call, you may pass DescribeAffectedEntitiesRequest
98
251
  # data as a hash:
99
252
  #
@@ -300,6 +453,53 @@ module Aws::Health
300
453
  include Aws::Structure
301
454
  end
302
455
 
456
+ # @note When making an API call, you may pass DescribeEventDetailsForOrganizationRequest
457
+ # data as a hash:
458
+ #
459
+ # {
460
+ # organization_event_detail_filters: [ # required
461
+ # {
462
+ # event_arn: "eventArn", # required
463
+ # aws_account_id: "accountId",
464
+ # },
465
+ # ],
466
+ # locale: "locale",
467
+ # }
468
+ #
469
+ # @!attribute [rw] organization_event_detail_filters
470
+ # A set of JSON elements that includes the `awsAccountId` and the
471
+ # `eventArn`.
472
+ # @return [Array<Types::EventAccountFilter>]
473
+ #
474
+ # @!attribute [rw] locale
475
+ # The locale (language) to return information in. English (en) is the
476
+ # default and the only supported value at this time.
477
+ # @return [String]
478
+ #
479
+ # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganizationRequest AWS API Documentation
480
+ #
481
+ class DescribeEventDetailsForOrganizationRequest < Struct.new(
482
+ :organization_event_detail_filters,
483
+ :locale)
484
+ include Aws::Structure
485
+ end
486
+
487
+ # @!attribute [rw] successful_set
488
+ # Information about the events that could be retrieved.
489
+ # @return [Array<Types::OrganizationEventDetails>]
490
+ #
491
+ # @!attribute [rw] failed_set
492
+ # Error messages for any events that could not be retrieved.
493
+ # @return [Array<Types::OrganizationEventDetailsErrorItem>]
494
+ #
495
+ # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganizationResponse AWS API Documentation
496
+ #
497
+ class DescribeEventDetailsForOrganizationResponse < Struct.new(
498
+ :successful_set,
499
+ :failed_set)
500
+ include Aws::Structure
501
+ end
502
+
303
503
  # @note When making an API call, you may pass DescribeEventDetailsRequest
304
504
  # data as a hash:
305
505
  #
@@ -414,6 +614,89 @@ module Aws::Health
414
614
  include Aws::Structure
415
615
  end
416
616
 
617
+ # @note When making an API call, you may pass DescribeEventsForOrganizationRequest
618
+ # data as a hash:
619
+ #
620
+ # {
621
+ # filter: {
622
+ # event_type_codes: ["eventType"],
623
+ # aws_account_ids: ["accountId"],
624
+ # services: ["service"],
625
+ # regions: ["region"],
626
+ # start_time: {
627
+ # from: Time.now,
628
+ # to: Time.now,
629
+ # },
630
+ # end_time: {
631
+ # from: Time.now,
632
+ # to: Time.now,
633
+ # },
634
+ # last_updated_time: {
635
+ # from: Time.now,
636
+ # to: Time.now,
637
+ # },
638
+ # entity_arns: ["entityArn"],
639
+ # entity_values: ["entityValue"],
640
+ # event_type_categories: ["issue"], # accepts issue, accountNotification, scheduledChange, investigation
641
+ # event_status_codes: ["open"], # accepts open, closed, upcoming
642
+ # },
643
+ # next_token: "nextToken",
644
+ # max_results: 1,
645
+ # locale: "locale",
646
+ # }
647
+ #
648
+ # @!attribute [rw] filter
649
+ # Values to narrow the results returned.
650
+ # @return [Types::OrganizationEventFilter]
651
+ #
652
+ # @!attribute [rw] next_token
653
+ # If the results of a search are large, only a portion of the results
654
+ # are returned, and a `nextToken` pagination token is returned in the
655
+ # response. To retrieve the next batch of results, reissue the search
656
+ # request and include the returned token. When all results have been
657
+ # returned, the response does not contain a pagination token value.
658
+ # @return [String]
659
+ #
660
+ # @!attribute [rw] max_results
661
+ # The maximum number of items to return in one batch, between 10 and
662
+ # 100, inclusive.
663
+ # @return [Integer]
664
+ #
665
+ # @!attribute [rw] locale
666
+ # The locale (language) to return information in. English (en) is the
667
+ # default and the only supported value at this time.
668
+ # @return [String]
669
+ #
670
+ # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganizationRequest AWS API Documentation
671
+ #
672
+ class DescribeEventsForOrganizationRequest < Struct.new(
673
+ :filter,
674
+ :next_token,
675
+ :max_results,
676
+ :locale)
677
+ include Aws::Structure
678
+ end
679
+
680
+ # @!attribute [rw] events
681
+ # The events that match the specified filter criteria.
682
+ # @return [Array<Types::OrganizationEvent>]
683
+ #
684
+ # @!attribute [rw] next_token
685
+ # If the results of a search are large, only a portion of the results
686
+ # are returned, and a `nextToken` pagination token is returned in the
687
+ # response. To retrieve the next batch of results, reissue the search
688
+ # request and include the returned token. When all results have been
689
+ # returned, the response does not contain a pagination token value.
690
+ # @return [String]
691
+ #
692
+ # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganizationResponse AWS API Documentation
693
+ #
694
+ class DescribeEventsForOrganizationResponse < Struct.new(
695
+ :events,
696
+ :next_token)
697
+ include Aws::Structure
698
+ end
699
+
417
700
  # @note When making an API call, you may pass DescribeEventsRequest
418
701
  # data as a hash:
419
702
  #
@@ -509,6 +792,20 @@ module Aws::Health
509
792
  include Aws::Structure
510
793
  end
511
794
 
795
+ # @!attribute [rw] health_service_access_status_for_organization
796
+ # Information about the status of enabling or disabling AWS Health
797
+ # Organizational View in your organization.
798
+ #
799
+ # Valid values are `ENABLED | DISABLED | PENDING`.
800
+ # @return [String]
801
+ #
802
+ # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeHealthServiceStatusForOrganizationResponse AWS API Documentation
803
+ #
804
+ class DescribeHealthServiceStatusForOrganizationResponse < Struct.new(
805
+ :health_service_access_status_for_organization)
806
+ include Aws::Structure
807
+ end
808
+
512
809
  # The number of entities that are affected by one or more events.
513
810
  # Returned by the DescribeEntityAggregates operation.
514
811
  #
@@ -596,10 +893,7 @@ module Aws::Health
596
893
  include Aws::Structure
597
894
  end
598
895
 
599
- # Summary information about an event, returned by the DescribeEvents
600
- # operation. The DescribeEventDetails operation also returns this
601
- # information, as well as the EventDescription and additional event
602
- # metadata.
896
+ # Summary information about an AWS Health event.
603
897
  #
604
898
  # @!attribute [rw] arn
605
899
  # The unique identifier for the event. Format:
@@ -649,6 +943,9 @@ module Aws::Health
649
943
  # `closed`, and `upcoming`.
650
944
  # @return [String]
651
945
  #
946
+ # @!attribute [rw] event_scope_code
947
+ # @return [String]
948
+ #
652
949
  # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/Event AWS API Documentation
653
950
  #
654
951
  class Event < Struct.new(
@@ -661,7 +958,40 @@ module Aws::Health
661
958
  :start_time,
662
959
  :end_time,
663
960
  :last_updated_time,
664
- :status_code)
961
+ :status_code,
962
+ :event_scope_code)
963
+ include Aws::Structure
964
+ end
965
+
966
+ # The values used to filter results from the
967
+ # DescribeEventDetailsForOrganization and
968
+ # DescribeAffectedEntitiesForOrganization operations.
969
+ #
970
+ # @note When making an API call, you may pass EventAccountFilter
971
+ # data as a hash:
972
+ #
973
+ # {
974
+ # event_arn: "eventArn", # required
975
+ # aws_account_id: "accountId",
976
+ # }
977
+ #
978
+ # @!attribute [rw] event_arn
979
+ # The unique identifier for the event. Format:
980
+ # `arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
981
+ # `. Example: `Example:
982
+ # arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456`
983
+ # @return [String]
984
+ #
985
+ # @!attribute [rw] aws_account_id
986
+ # The 12-digit AWS account numbers that contains the affected
987
+ # entities.
988
+ # @return [String]
989
+ #
990
+ # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EventAccountFilter AWS API Documentation
991
+ #
992
+ class EventAccountFilter < Struct.new(
993
+ :event_arn,
994
+ :aws_account_id)
665
995
  include Aws::Structure
666
996
  end
667
997
 
@@ -799,7 +1129,7 @@ module Aws::Health
799
1129
  #
800
1130
  # @!attribute [rw] event_type_codes
801
1131
  # A list of unique identifiers for event types. For example,
802
- # `"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED"`
1132
+ # `"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".`
803
1133
  # @return [Array<String>]
804
1134
  #
805
1135
  # @!attribute [rw] services
@@ -945,6 +1275,285 @@ module Aws::Health
945
1275
  include Aws::Structure
946
1276
  end
947
1277
 
1278
+ # Error information returned when a
1279
+ # DescribeAffectedEntitiesForOrganization operation cannot find or
1280
+ # process a specific entity.
1281
+ #
1282
+ # @!attribute [rw] aws_account_id
1283
+ # The 12-digit AWS account numbers that contains the affected
1284
+ # entities.
1285
+ # @return [String]
1286
+ #
1287
+ # @!attribute [rw] event_arn
1288
+ # The unique identifier for the event. Format:
1289
+ # `arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
1290
+ # `. Example: `Example:
1291
+ # arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456`
1292
+ # @return [String]
1293
+ #
1294
+ # @!attribute [rw] error_name
1295
+ # The name of the error.
1296
+ # @return [String]
1297
+ #
1298
+ # @!attribute [rw] error_message
1299
+ # The unique identifier for the event type. The format is
1300
+ # `AWS_SERVICE_DESCRIPTION`. For example,
1301
+ # `AWS_EC2_SYSTEM_MAINTENANCE_EVENT`.
1302
+ # @return [String]
1303
+ #
1304
+ # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/OrganizationAffectedEntitiesErrorItem AWS API Documentation
1305
+ #
1306
+ class OrganizationAffectedEntitiesErrorItem < Struct.new(
1307
+ :aws_account_id,
1308
+ :event_arn,
1309
+ :error_name,
1310
+ :error_message)
1311
+ include Aws::Structure
1312
+ end
1313
+
1314
+ # Summary information about an event, returned by the
1315
+ # DescribeEventsForOrganization operation.
1316
+ #
1317
+ # @!attribute [rw] arn
1318
+ # The unique identifier for the event. Format:
1319
+ # `arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
1320
+ # `. Example: `Example:
1321
+ # arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456`
1322
+ # @return [String]
1323
+ #
1324
+ # @!attribute [rw] service
1325
+ # The AWS service that is affected by the event. For example, EC2,
1326
+ # RDS.
1327
+ # @return [String]
1328
+ #
1329
+ # @!attribute [rw] event_type_code
1330
+ # The unique identifier for the event type. The format is
1331
+ # `AWS_SERVICE_DESCRIPTION`. For example,
1332
+ # `AWS_EC2_SYSTEM_MAINTENANCE_EVENT`.
1333
+ # @return [String]
1334
+ #
1335
+ # @!attribute [rw] event_type_category
1336
+ # The category of the event type.
1337
+ # @return [String]
1338
+ #
1339
+ # @!attribute [rw] event_scope_code
1340
+ # @return [String]
1341
+ #
1342
+ # @!attribute [rw] region
1343
+ # The AWS Region name of the event.
1344
+ # @return [String]
1345
+ #
1346
+ # @!attribute [rw] start_time
1347
+ # The date and time that the event began.
1348
+ # @return [Time]
1349
+ #
1350
+ # @!attribute [rw] end_time
1351
+ # The date and time that the event ended.
1352
+ # @return [Time]
1353
+ #
1354
+ # @!attribute [rw] last_updated_time
1355
+ # The most recent date and time that the event was updated.
1356
+ # @return [Time]
1357
+ #
1358
+ # @!attribute [rw] status_code
1359
+ # The most recent status of the event. Possible values are `open`,
1360
+ # `closed`, and `upcoming`.
1361
+ # @return [String]
1362
+ #
1363
+ # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/OrganizationEvent AWS API Documentation
1364
+ #
1365
+ class OrganizationEvent < Struct.new(
1366
+ :arn,
1367
+ :service,
1368
+ :event_type_code,
1369
+ :event_type_category,
1370
+ :event_scope_code,
1371
+ :region,
1372
+ :start_time,
1373
+ :end_time,
1374
+ :last_updated_time,
1375
+ :status_code)
1376
+ include Aws::Structure
1377
+ end
1378
+
1379
+ # Detailed information about an event. A combination of an Event object,
1380
+ # an EventDescription object, and additional metadata about the event.
1381
+ # Returned by the DescribeEventDetailsForOrganization operation.
1382
+ #
1383
+ # @!attribute [rw] aws_account_id
1384
+ # The 12-digit AWS account numbers that contains the affected
1385
+ # entities.
1386
+ # @return [String]
1387
+ #
1388
+ # @!attribute [rw] event
1389
+ # Summary information about an AWS Health event.
1390
+ # @return [Types::Event]
1391
+ #
1392
+ # @!attribute [rw] event_description
1393
+ # The detailed description of the event. Included in the information
1394
+ # returned by the DescribeEventDetails operation.
1395
+ # @return [Types::EventDescription]
1396
+ #
1397
+ # @!attribute [rw] event_metadata
1398
+ # Additional metadata about the event.
1399
+ # @return [Hash<String,String>]
1400
+ #
1401
+ # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/OrganizationEventDetails AWS API Documentation
1402
+ #
1403
+ class OrganizationEventDetails < Struct.new(
1404
+ :aws_account_id,
1405
+ :event,
1406
+ :event_description,
1407
+ :event_metadata)
1408
+ include Aws::Structure
1409
+ end
1410
+
1411
+ # Error information returned when a DescribeEventDetailsForOrganization
1412
+ # operation cannot find a specified event.
1413
+ #
1414
+ # @!attribute [rw] aws_account_id
1415
+ # Error information returned when a
1416
+ # DescribeEventDetailsForOrganization operation cannot find a
1417
+ # specified event.
1418
+ # @return [String]
1419
+ #
1420
+ # @!attribute [rw] event_arn
1421
+ # The unique identifier for the event. Format:
1422
+ # `arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
1423
+ # `. Example: `Example:
1424
+ # arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456`
1425
+ # @return [String]
1426
+ #
1427
+ # @!attribute [rw] error_name
1428
+ # The name of the error.
1429
+ # @return [String]
1430
+ #
1431
+ # @!attribute [rw] error_message
1432
+ # A message that describes the error.
1433
+ # @return [String]
1434
+ #
1435
+ # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/OrganizationEventDetailsErrorItem AWS API Documentation
1436
+ #
1437
+ class OrganizationEventDetailsErrorItem < Struct.new(
1438
+ :aws_account_id,
1439
+ :event_arn,
1440
+ :error_name,
1441
+ :error_message)
1442
+ include Aws::Structure
1443
+ end
1444
+
1445
+ # The values to filter results from the DescribeEventsForOrganization
1446
+ # operation.
1447
+ #
1448
+ # @note When making an API call, you may pass OrganizationEventFilter
1449
+ # data as a hash:
1450
+ #
1451
+ # {
1452
+ # event_type_codes: ["eventType"],
1453
+ # aws_account_ids: ["accountId"],
1454
+ # services: ["service"],
1455
+ # regions: ["region"],
1456
+ # start_time: {
1457
+ # from: Time.now,
1458
+ # to: Time.now,
1459
+ # },
1460
+ # end_time: {
1461
+ # from: Time.now,
1462
+ # to: Time.now,
1463
+ # },
1464
+ # last_updated_time: {
1465
+ # from: Time.now,
1466
+ # to: Time.now,
1467
+ # },
1468
+ # entity_arns: ["entityArn"],
1469
+ # entity_values: ["entityValue"],
1470
+ # event_type_categories: ["issue"], # accepts issue, accountNotification, scheduledChange, investigation
1471
+ # event_status_codes: ["open"], # accepts open, closed, upcoming
1472
+ # }
1473
+ #
1474
+ # @!attribute [rw] event_type_codes
1475
+ # A list of unique identifiers for event types. For example,
1476
+ # `"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".`
1477
+ # @return [Array<String>]
1478
+ #
1479
+ # @!attribute [rw] aws_account_ids
1480
+ # A list of 12-digit AWS account numbers that contains the affected
1481
+ # entities.
1482
+ # @return [Array<String>]
1483
+ #
1484
+ # @!attribute [rw] services
1485
+ # The AWS services associated with the event. For example, `EC2`,
1486
+ # `RDS`.
1487
+ # @return [Array<String>]
1488
+ #
1489
+ # @!attribute [rw] regions
1490
+ # A list of AWS Regions.
1491
+ # @return [Array<String>]
1492
+ #
1493
+ # @!attribute [rw] start_time
1494
+ # A range of dates and times that is used by the EventFilter and
1495
+ # EntityFilter objects. If `from` is set and `to` is set: match items
1496
+ # where the timestamp (`startTime`, `endTime`, or `lastUpdatedTime`)
1497
+ # is between `from` and `to` inclusive. If `from` is set and `to` is
1498
+ # not set: match items where the timestamp value is equal to or after
1499
+ # `from`. If `from` is not set and `to` is set: match items where the
1500
+ # timestamp value is equal to or before `to`.
1501
+ # @return [Types::DateTimeRange]
1502
+ #
1503
+ # @!attribute [rw] end_time
1504
+ # A range of dates and times that is used by the EventFilter and
1505
+ # EntityFilter objects. If `from` is set and `to` is set: match items
1506
+ # where the timestamp (`startTime`, `endTime`, or `lastUpdatedTime`)
1507
+ # is between `from` and `to` inclusive. If `from` is set and `to` is
1508
+ # not set: match items where the timestamp value is equal to or after
1509
+ # `from`. If `from` is not set and `to` is set: match items where the
1510
+ # timestamp value is equal to or before `to`.
1511
+ # @return [Types::DateTimeRange]
1512
+ #
1513
+ # @!attribute [rw] last_updated_time
1514
+ # A range of dates and times that is used by the EventFilter and
1515
+ # EntityFilter objects. If `from` is set and `to` is set: match items
1516
+ # where the timestamp (`startTime`, `endTime`, or `lastUpdatedTime`)
1517
+ # is between `from` and `to` inclusive. If `from` is set and `to` is
1518
+ # not set: match items where the timestamp value is equal to or after
1519
+ # `from`. If `from` is not set and `to` is set: match items where the
1520
+ # timestamp value is equal to or before `to`.
1521
+ # @return [Types::DateTimeRange]
1522
+ #
1523
+ # @!attribute [rw] entity_arns
1524
+ # REPLACEME
1525
+ # @return [Array<String>]
1526
+ #
1527
+ # @!attribute [rw] entity_values
1528
+ # A list of entity identifiers, such as EC2 instance IDs (i-34ab692e)
1529
+ # or EBS volumes (vol-426ab23e).
1530
+ # @return [Array<String>]
1531
+ #
1532
+ # @!attribute [rw] event_type_categories
1533
+ # REPLACEME
1534
+ # @return [Array<String>]
1535
+ #
1536
+ # @!attribute [rw] event_status_codes
1537
+ # A list of event status codes.
1538
+ # @return [Array<String>]
1539
+ #
1540
+ # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/OrganizationEventFilter AWS API Documentation
1541
+ #
1542
+ class OrganizationEventFilter < Struct.new(
1543
+ :event_type_codes,
1544
+ :aws_account_ids,
1545
+ :services,
1546
+ :regions,
1547
+ :start_time,
1548
+ :end_time,
1549
+ :last_updated_time,
1550
+ :entity_arns,
1551
+ :entity_values,
1552
+ :event_type_categories,
1553
+ :event_status_codes)
1554
+ include Aws::Structure
1555
+ end
1556
+
948
1557
  # The specified locale is not supported.
949
1558
  #
950
1559
  # @!attribute [rw] message