aws-sdk-health 1.55.0 → 1.56.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-health/client.rb +64 -6
- data/lib/aws-sdk-health/client_api.rb +58 -1
- data/lib/aws-sdk-health/endpoints.rb +14 -0
- data/lib/aws-sdk-health/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-health/types.rb +145 -2
- data/lib/aws-sdk-health.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f1e95f3cf687b8da5d57e3a5c78366d3cb4be800a512b43ec52fc06c11d4dc0
|
4
|
+
data.tar.gz: fb87b376043ac4fb467a6c21cf20896b4e280f7a8808fbd1719397ec02d96cab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce1d3fa32841e4001d2028c12d975d3d9e373bb3f23959e9d02932f6e98215b8e6413c37586df6a6dcf90adda427539a59d2f453f58353e2a956c79d4c3c4d9d
|
7
|
+
data.tar.gz: 57721f1f63b61cbae2ad39792f8c15abbb05226f90cd38d16ed50201872c1377028210ec85ab602d865f84ccc3cdbe252ef3e8afd758997fca55b3d331463ccc
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.56.0 (2023-08-31)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Adds new API DescribeEntityAggregatesForOrganization that retrieves entity aggregates across your organization. Also adds support for resource status filtering in DescribeAffectedEntitiesForOrganization, resource status aggregates in the DescribeEntityAggregates response, and new resource statuses.
|
8
|
+
|
4
9
|
1.55.0 (2023-07-11)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.56.0
|
@@ -536,7 +536,7 @@ module Aws::Health
|
|
536
536
|
# "tagKey" => "tagValue",
|
537
537
|
# },
|
538
538
|
# ],
|
539
|
-
# status_codes: ["IMPAIRED"], # accepts IMPAIRED, UNIMPAIRED, UNKNOWN
|
539
|
+
# status_codes: ["IMPAIRED"], # accepts IMPAIRED, UNIMPAIRED, UNKNOWN, PENDING, RESOLVED
|
540
540
|
# },
|
541
541
|
# locale: "locale",
|
542
542
|
# next_token: "nextToken",
|
@@ -552,7 +552,7 @@ module Aws::Health
|
|
552
552
|
# resp.entities[0].entity_url #=> String
|
553
553
|
# resp.entities[0].aws_account_id #=> String
|
554
554
|
# resp.entities[0].last_updated_time #=> Time
|
555
|
-
# resp.entities[0].status_code #=> String, one of "IMPAIRED", "UNIMPAIRED", "UNKNOWN"
|
555
|
+
# resp.entities[0].status_code #=> String, one of "IMPAIRED", "UNIMPAIRED", "UNKNOWN", "PENDING", "RESOLVED"
|
556
556
|
# resp.entities[0].tags #=> Hash
|
557
557
|
# resp.entities[0].tags["tagKey"] #=> String
|
558
558
|
# resp.next_token #=> String
|
@@ -595,7 +595,7 @@ module Aws::Health
|
|
595
595
|
# [1]: https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html
|
596
596
|
# [2]: https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions
|
597
597
|
#
|
598
|
-
# @option params [
|
598
|
+
# @option params [Array<Types::EventAccountFilter>] :organization_entity_filters
|
599
599
|
# A JSON set of elements including the `awsAccountId` and the
|
600
600
|
# `eventArn`.
|
601
601
|
#
|
@@ -614,6 +614,10 @@ module Aws::Health
|
|
614
614
|
# The maximum number of items to return in one batch, between 10 and
|
615
615
|
# 100, inclusive.
|
616
616
|
#
|
617
|
+
# @option params [Array<Types::EntityAccountFilter>] :organization_entity_account_filters
|
618
|
+
# A JSON set of elements including the `awsAccountId`, `eventArn` and a
|
619
|
+
# set of `statusCodes`.
|
620
|
+
#
|
617
621
|
# @return [Types::DescribeAffectedEntitiesForOrganizationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
618
622
|
#
|
619
623
|
# * {Types::DescribeAffectedEntitiesForOrganizationResponse#entities #entities} => Array<Types::AffectedEntity>
|
@@ -625,7 +629,7 @@ module Aws::Health
|
|
625
629
|
# @example Request syntax with placeholder values
|
626
630
|
#
|
627
631
|
# resp = client.describe_affected_entities_for_organization({
|
628
|
-
# organization_entity_filters: [
|
632
|
+
# organization_entity_filters: [
|
629
633
|
# {
|
630
634
|
# event_arn: "eventArn", # required
|
631
635
|
# aws_account_id: "accountId",
|
@@ -634,6 +638,13 @@ module Aws::Health
|
|
634
638
|
# locale: "locale",
|
635
639
|
# next_token: "nextToken",
|
636
640
|
# max_results: 1,
|
641
|
+
# organization_entity_account_filters: [
|
642
|
+
# {
|
643
|
+
# event_arn: "eventArn", # required
|
644
|
+
# aws_account_id: "accountId",
|
645
|
+
# status_codes: ["IMPAIRED"], # accepts IMPAIRED, UNIMPAIRED, UNKNOWN, PENDING, RESOLVED
|
646
|
+
# },
|
647
|
+
# ],
|
637
648
|
# })
|
638
649
|
#
|
639
650
|
# @example Response structure
|
@@ -645,7 +656,7 @@ module Aws::Health
|
|
645
656
|
# resp.entities[0].entity_url #=> String
|
646
657
|
# resp.entities[0].aws_account_id #=> String
|
647
658
|
# resp.entities[0].last_updated_time #=> Time
|
648
|
-
# resp.entities[0].status_code #=> String, one of "IMPAIRED", "UNIMPAIRED", "UNKNOWN"
|
659
|
+
# resp.entities[0].status_code #=> String, one of "IMPAIRED", "UNIMPAIRED", "UNKNOWN", "PENDING", "RESOLVED"
|
649
660
|
# resp.entities[0].tags #=> Hash
|
650
661
|
# resp.entities[0].tags["tagKey"] #=> String
|
651
662
|
# resp.failed_set #=> Array
|
@@ -687,6 +698,8 @@ module Aws::Health
|
|
687
698
|
# resp.entity_aggregates #=> Array
|
688
699
|
# resp.entity_aggregates[0].event_arn #=> String
|
689
700
|
# resp.entity_aggregates[0].count #=> Integer
|
701
|
+
# resp.entity_aggregates[0].statuses #=> Hash
|
702
|
+
# resp.entity_aggregates[0].statuses["entityStatusCode"] #=> Integer
|
690
703
|
#
|
691
704
|
# @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates AWS API Documentation
|
692
705
|
#
|
@@ -697,6 +710,51 @@ module Aws::Health
|
|
697
710
|
req.send_request(options)
|
698
711
|
end
|
699
712
|
|
713
|
+
# Returns a list of entity aggregates for your Organizations that are
|
714
|
+
# affected by each of the specified events.
|
715
|
+
#
|
716
|
+
# @option params [required, Array<String>] :event_arns
|
717
|
+
# A list of event ARNs (unique identifiers). For example:
|
718
|
+
# `"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
|
719
|
+
# "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"`
|
720
|
+
#
|
721
|
+
# @option params [Array<String>] :aws_account_ids
|
722
|
+
# A list of 12-digit Amazon Web Services account numbers that contains
|
723
|
+
# the affected entities.
|
724
|
+
#
|
725
|
+
# @return [Types::DescribeEntityAggregatesForOrganizationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
726
|
+
#
|
727
|
+
# * {Types::DescribeEntityAggregatesForOrganizationResponse#organization_entity_aggregates #organization_entity_aggregates} => Array<Types::OrganizationEntityAggregate>
|
728
|
+
#
|
729
|
+
# @example Request syntax with placeholder values
|
730
|
+
#
|
731
|
+
# resp = client.describe_entity_aggregates_for_organization({
|
732
|
+
# event_arns: ["eventArn"], # required
|
733
|
+
# aws_account_ids: ["accountId"],
|
734
|
+
# })
|
735
|
+
#
|
736
|
+
# @example Response structure
|
737
|
+
#
|
738
|
+
# resp.organization_entity_aggregates #=> Array
|
739
|
+
# resp.organization_entity_aggregates[0].event_arn #=> String
|
740
|
+
# resp.organization_entity_aggregates[0].count #=> Integer
|
741
|
+
# resp.organization_entity_aggregates[0].statuses #=> Hash
|
742
|
+
# resp.organization_entity_aggregates[0].statuses["entityStatusCode"] #=> Integer
|
743
|
+
# resp.organization_entity_aggregates[0].accounts #=> Array
|
744
|
+
# resp.organization_entity_aggregates[0].accounts[0].account_id #=> String
|
745
|
+
# resp.organization_entity_aggregates[0].accounts[0].count #=> Integer
|
746
|
+
# resp.organization_entity_aggregates[0].accounts[0].statuses #=> Hash
|
747
|
+
# resp.organization_entity_aggregates[0].accounts[0].statuses["entityStatusCode"] #=> Integer
|
748
|
+
#
|
749
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregatesForOrganization AWS API Documentation
|
750
|
+
#
|
751
|
+
# @overload describe_entity_aggregates_for_organization(params = {})
|
752
|
+
# @param [Hash] params ({})
|
753
|
+
def describe_entity_aggregates_for_organization(params = {}, options = {})
|
754
|
+
req = build_request(:describe_entity_aggregates_for_organization, params)
|
755
|
+
req.send_request(options)
|
756
|
+
end
|
757
|
+
|
700
758
|
# Returns the number of events of each event type (issue, scheduled
|
701
759
|
# change, and account notification). If no filter is specified, the
|
702
760
|
# counts of all events in each category are returned.
|
@@ -1400,7 +1458,7 @@ module Aws::Health
|
|
1400
1458
|
params: params,
|
1401
1459
|
config: config)
|
1402
1460
|
context[:gem_name] = 'aws-sdk-health'
|
1403
|
-
context[:gem_version] = '1.
|
1461
|
+
context[:gem_version] = '1.56.0'
|
1404
1462
|
Seahorse::Client::Request.new(handlers, context)
|
1405
1463
|
end
|
1406
1464
|
|
@@ -13,6 +13,8 @@ module Aws::Health
|
|
13
13
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
|
+
AccountEntityAggregate = Shapes::StructureShape.new(name: 'AccountEntityAggregate')
|
17
|
+
AccountEntityAggregatesList = Shapes::ListShape.new(name: 'AccountEntityAggregatesList')
|
16
18
|
AffectedEntity = Shapes::StructureShape.new(name: 'AffectedEntity')
|
17
19
|
ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
|
18
20
|
DateTimeRange = Shapes::StructureShape.new(name: 'DateTimeRange')
|
@@ -23,6 +25,8 @@ module Aws::Health
|
|
23
25
|
DescribeAffectedEntitiesForOrganizationResponse = Shapes::StructureShape.new(name: 'DescribeAffectedEntitiesForOrganizationResponse')
|
24
26
|
DescribeAffectedEntitiesRequest = Shapes::StructureShape.new(name: 'DescribeAffectedEntitiesRequest')
|
25
27
|
DescribeAffectedEntitiesResponse = Shapes::StructureShape.new(name: 'DescribeAffectedEntitiesResponse')
|
28
|
+
DescribeEntityAggregatesForOrganizationRequest = Shapes::StructureShape.new(name: 'DescribeEntityAggregatesForOrganizationRequest')
|
29
|
+
DescribeEntityAggregatesForOrganizationResponse = Shapes::StructureShape.new(name: 'DescribeEntityAggregatesForOrganizationResponse')
|
26
30
|
DescribeEntityAggregatesRequest = Shapes::StructureShape.new(name: 'DescribeEntityAggregatesRequest')
|
27
31
|
DescribeEntityAggregatesResponse = Shapes::StructureShape.new(name: 'DescribeEntityAggregatesResponse')
|
28
32
|
DescribeEventAggregatesRequest = Shapes::StructureShape.new(name: 'DescribeEventAggregatesRequest')
|
@@ -42,6 +46,7 @@ module Aws::Health
|
|
42
46
|
DescribeEventsRequest = Shapes::StructureShape.new(name: 'DescribeEventsRequest')
|
43
47
|
DescribeEventsResponse = Shapes::StructureShape.new(name: 'DescribeEventsResponse')
|
44
48
|
DescribeHealthServiceStatusForOrganizationResponse = Shapes::StructureShape.new(name: 'DescribeHealthServiceStatusForOrganizationResponse')
|
49
|
+
EntityAccountFilter = Shapes::StructureShape.new(name: 'EntityAccountFilter')
|
45
50
|
EntityAggregate = Shapes::StructureShape.new(name: 'EntityAggregate')
|
46
51
|
EntityAggregateList = Shapes::ListShape.new(name: 'EntityAggregateList')
|
47
52
|
EntityFilter = Shapes::StructureShape.new(name: 'EntityFilter')
|
@@ -62,9 +67,14 @@ module Aws::Health
|
|
62
67
|
EventTypeFilter = Shapes::StructureShape.new(name: 'EventTypeFilter')
|
63
68
|
EventTypeList = Shapes::ListShape.new(name: 'EventTypeList')
|
64
69
|
InvalidPaginationToken = Shapes::StructureShape.new(name: 'InvalidPaginationToken')
|
70
|
+
OrganizationAccountIdsList = Shapes::ListShape.new(name: 'OrganizationAccountIdsList')
|
65
71
|
OrganizationAffectedEntitiesErrorItem = Shapes::StructureShape.new(name: 'OrganizationAffectedEntitiesErrorItem')
|
72
|
+
OrganizationEntityAccountFiltersList = Shapes::ListShape.new(name: 'OrganizationEntityAccountFiltersList')
|
73
|
+
OrganizationEntityAggregate = Shapes::StructureShape.new(name: 'OrganizationEntityAggregate')
|
74
|
+
OrganizationEntityAggregatesList = Shapes::ListShape.new(name: 'OrganizationEntityAggregatesList')
|
66
75
|
OrganizationEntityFiltersList = Shapes::ListShape.new(name: 'OrganizationEntityFiltersList')
|
67
76
|
OrganizationEvent = Shapes::StructureShape.new(name: 'OrganizationEvent')
|
77
|
+
OrganizationEventArnsList = Shapes::ListShape.new(name: 'OrganizationEventArnsList')
|
68
78
|
OrganizationEventDetailFiltersList = Shapes::ListShape.new(name: 'OrganizationEventDetailFiltersList')
|
69
79
|
OrganizationEventDetails = Shapes::StructureShape.new(name: 'OrganizationEventDetails')
|
70
80
|
OrganizationEventDetailsErrorItem = Shapes::StructureShape.new(name: 'OrganizationEventDetailsErrorItem')
|
@@ -83,6 +93,7 @@ module Aws::Health
|
|
83
93
|
entityArnList = Shapes::ListShape.new(name: 'entityArnList')
|
84
94
|
entityStatusCode = Shapes::StringShape.new(name: 'entityStatusCode')
|
85
95
|
entityStatusCodeList = Shapes::ListShape.new(name: 'entityStatusCodeList')
|
96
|
+
entityStatuses = Shapes::MapShape.new(name: 'entityStatuses')
|
86
97
|
entityUrl = Shapes::StringShape.new(name: 'entityUrl')
|
87
98
|
entityValue = Shapes::StringShape.new(name: 'entityValue')
|
88
99
|
entityValueList = Shapes::ListShape.new(name: 'entityValueList')
|
@@ -117,6 +128,13 @@ module Aws::Health
|
|
117
128
|
tagValue = Shapes::StringShape.new(name: 'tagValue')
|
118
129
|
timestamp = Shapes::TimestampShape.new(name: 'timestamp')
|
119
130
|
|
131
|
+
AccountEntityAggregate.add_member(:account_id, Shapes::ShapeRef.new(shape: eventArn, location_name: "accountId"))
|
132
|
+
AccountEntityAggregate.add_member(:count, Shapes::ShapeRef.new(shape: count, location_name: "count"))
|
133
|
+
AccountEntityAggregate.add_member(:statuses, Shapes::ShapeRef.new(shape: entityStatuses, location_name: "statuses"))
|
134
|
+
AccountEntityAggregate.struct_class = Types::AccountEntityAggregate
|
135
|
+
|
136
|
+
AccountEntityAggregatesList.member = Shapes::ShapeRef.new(shape: AccountEntityAggregate)
|
137
|
+
|
120
138
|
AffectedEntity.add_member(:entity_arn, Shapes::ShapeRef.new(shape: entityArn, location_name: "entityArn"))
|
121
139
|
AffectedEntity.add_member(:event_arn, Shapes::ShapeRef.new(shape: eventArn, location_name: "eventArn"))
|
122
140
|
AffectedEntity.add_member(:entity_value, Shapes::ShapeRef.new(shape: entityValue, location_name: "entityValue"))
|
@@ -146,10 +164,11 @@ module Aws::Health
|
|
146
164
|
|
147
165
|
DescribeAffectedEntitiesForOrganizationFailedSet.member = Shapes::ShapeRef.new(shape: OrganizationAffectedEntitiesErrorItem)
|
148
166
|
|
149
|
-
DescribeAffectedEntitiesForOrganizationRequest.add_member(:organization_entity_filters, Shapes::ShapeRef.new(shape: OrganizationEntityFiltersList,
|
167
|
+
DescribeAffectedEntitiesForOrganizationRequest.add_member(:organization_entity_filters, Shapes::ShapeRef.new(shape: OrganizationEntityFiltersList, deprecated: true, location_name: "organizationEntityFilters", metadata: {"deprecatedMessage"=>"This property is deprecated, use organizationEntityAccountFilters instead."}))
|
150
168
|
DescribeAffectedEntitiesForOrganizationRequest.add_member(:locale, Shapes::ShapeRef.new(shape: locale, location_name: "locale"))
|
151
169
|
DescribeAffectedEntitiesForOrganizationRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
|
152
170
|
DescribeAffectedEntitiesForOrganizationRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: maxResultsLowerRange, location_name: "maxResults"))
|
171
|
+
DescribeAffectedEntitiesForOrganizationRequest.add_member(:organization_entity_account_filters, Shapes::ShapeRef.new(shape: OrganizationEntityAccountFiltersList, location_name: "organizationEntityAccountFilters"))
|
153
172
|
DescribeAffectedEntitiesForOrganizationRequest.struct_class = Types::DescribeAffectedEntitiesForOrganizationRequest
|
154
173
|
|
155
174
|
DescribeAffectedEntitiesForOrganizationResponse.add_member(:entities, Shapes::ShapeRef.new(shape: EntityList, location_name: "entities"))
|
@@ -167,6 +186,13 @@ module Aws::Health
|
|
167
186
|
DescribeAffectedEntitiesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
|
168
187
|
DescribeAffectedEntitiesResponse.struct_class = Types::DescribeAffectedEntitiesResponse
|
169
188
|
|
189
|
+
DescribeEntityAggregatesForOrganizationRequest.add_member(:event_arns, Shapes::ShapeRef.new(shape: OrganizationEventArnsList, required: true, location_name: "eventArns"))
|
190
|
+
DescribeEntityAggregatesForOrganizationRequest.add_member(:aws_account_ids, Shapes::ShapeRef.new(shape: OrganizationAccountIdsList, location_name: "awsAccountIds"))
|
191
|
+
DescribeEntityAggregatesForOrganizationRequest.struct_class = Types::DescribeEntityAggregatesForOrganizationRequest
|
192
|
+
|
193
|
+
DescribeEntityAggregatesForOrganizationResponse.add_member(:organization_entity_aggregates, Shapes::ShapeRef.new(shape: OrganizationEntityAggregatesList, location_name: "organizationEntityAggregates"))
|
194
|
+
DescribeEntityAggregatesForOrganizationResponse.struct_class = Types::DescribeEntityAggregatesForOrganizationResponse
|
195
|
+
|
170
196
|
DescribeEntityAggregatesRequest.add_member(:event_arns, Shapes::ShapeRef.new(shape: EventArnsList, location_name: "eventArns"))
|
171
197
|
DescribeEntityAggregatesRequest.struct_class = Types::DescribeEntityAggregatesRequest
|
172
198
|
|
@@ -240,8 +266,14 @@ module Aws::Health
|
|
240
266
|
DescribeHealthServiceStatusForOrganizationResponse.add_member(:health_service_access_status_for_organization, Shapes::ShapeRef.new(shape: healthServiceAccessStatusForOrganization, location_name: "healthServiceAccessStatusForOrganization"))
|
241
267
|
DescribeHealthServiceStatusForOrganizationResponse.struct_class = Types::DescribeHealthServiceStatusForOrganizationResponse
|
242
268
|
|
269
|
+
EntityAccountFilter.add_member(:event_arn, Shapes::ShapeRef.new(shape: eventArn, required: true, location_name: "eventArn"))
|
270
|
+
EntityAccountFilter.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: accountId, location_name: "awsAccountId"))
|
271
|
+
EntityAccountFilter.add_member(:status_codes, Shapes::ShapeRef.new(shape: entityStatusCodeList, location_name: "statusCodes"))
|
272
|
+
EntityAccountFilter.struct_class = Types::EntityAccountFilter
|
273
|
+
|
243
274
|
EntityAggregate.add_member(:event_arn, Shapes::ShapeRef.new(shape: eventArn, location_name: "eventArn"))
|
244
275
|
EntityAggregate.add_member(:count, Shapes::ShapeRef.new(shape: count, location_name: "count"))
|
276
|
+
EntityAggregate.add_member(:statuses, Shapes::ShapeRef.new(shape: entityStatuses, location_name: "statuses"))
|
245
277
|
EntityAggregate.struct_class = Types::EntityAggregate
|
246
278
|
|
247
279
|
EntityAggregateList.member = Shapes::ShapeRef.new(shape: EntityAggregate)
|
@@ -330,12 +362,24 @@ module Aws::Health
|
|
330
362
|
InvalidPaginationToken.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
|
331
363
|
InvalidPaginationToken.struct_class = Types::InvalidPaginationToken
|
332
364
|
|
365
|
+
OrganizationAccountIdsList.member = Shapes::ShapeRef.new(shape: accountId)
|
366
|
+
|
333
367
|
OrganizationAffectedEntitiesErrorItem.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: accountId, location_name: "awsAccountId"))
|
334
368
|
OrganizationAffectedEntitiesErrorItem.add_member(:event_arn, Shapes::ShapeRef.new(shape: eventArn, location_name: "eventArn"))
|
335
369
|
OrganizationAffectedEntitiesErrorItem.add_member(:error_name, Shapes::ShapeRef.new(shape: string, location_name: "errorName"))
|
336
370
|
OrganizationAffectedEntitiesErrorItem.add_member(:error_message, Shapes::ShapeRef.new(shape: string, location_name: "errorMessage"))
|
337
371
|
OrganizationAffectedEntitiesErrorItem.struct_class = Types::OrganizationAffectedEntitiesErrorItem
|
338
372
|
|
373
|
+
OrganizationEntityAccountFiltersList.member = Shapes::ShapeRef.new(shape: EntityAccountFilter)
|
374
|
+
|
375
|
+
OrganizationEntityAggregate.add_member(:event_arn, Shapes::ShapeRef.new(shape: eventArn, location_name: "eventArn"))
|
376
|
+
OrganizationEntityAggregate.add_member(:count, Shapes::ShapeRef.new(shape: count, location_name: "count"))
|
377
|
+
OrganizationEntityAggregate.add_member(:statuses, Shapes::ShapeRef.new(shape: entityStatuses, location_name: "statuses"))
|
378
|
+
OrganizationEntityAggregate.add_member(:accounts, Shapes::ShapeRef.new(shape: AccountEntityAggregatesList, location_name: "accounts"))
|
379
|
+
OrganizationEntityAggregate.struct_class = Types::OrganizationEntityAggregate
|
380
|
+
|
381
|
+
OrganizationEntityAggregatesList.member = Shapes::ShapeRef.new(shape: OrganizationEntityAggregate)
|
382
|
+
|
339
383
|
OrganizationEntityFiltersList.member = Shapes::ShapeRef.new(shape: EventAccountFilter)
|
340
384
|
|
341
385
|
OrganizationEvent.add_member(:arn, Shapes::ShapeRef.new(shape: eventArn, location_name: "arn"))
|
@@ -350,6 +394,8 @@ module Aws::Health
|
|
350
394
|
OrganizationEvent.add_member(:status_code, Shapes::ShapeRef.new(shape: eventStatusCode, location_name: "statusCode"))
|
351
395
|
OrganizationEvent.struct_class = Types::OrganizationEvent
|
352
396
|
|
397
|
+
OrganizationEventArnsList.member = Shapes::ShapeRef.new(shape: eventArn)
|
398
|
+
|
353
399
|
OrganizationEventDetailFiltersList.member = Shapes::ShapeRef.new(shape: EventAccountFilter)
|
354
400
|
|
355
401
|
OrganizationEventDetails.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: accountId, location_name: "awsAccountId"))
|
@@ -394,6 +440,9 @@ module Aws::Health
|
|
394
440
|
|
395
441
|
entityStatusCodeList.member = Shapes::ShapeRef.new(shape: entityStatusCode)
|
396
442
|
|
443
|
+
entityStatuses.key = Shapes::ShapeRef.new(shape: entityStatusCode)
|
444
|
+
entityStatuses.value = Shapes::ShapeRef.new(shape: count)
|
445
|
+
|
397
446
|
entityValueList.member = Shapes::ShapeRef.new(shape: entityValue)
|
398
447
|
|
399
448
|
eventArnList.member = Shapes::ShapeRef.new(shape: eventArn)
|
@@ -490,6 +539,14 @@ module Aws::Health
|
|
490
539
|
o.output = Shapes::ShapeRef.new(shape: DescribeEntityAggregatesResponse)
|
491
540
|
end)
|
492
541
|
|
542
|
+
api.add_operation(:describe_entity_aggregates_for_organization, Seahorse::Model::Operation.new.tap do |o|
|
543
|
+
o.name = "DescribeEntityAggregatesForOrganization"
|
544
|
+
o.http_method = "POST"
|
545
|
+
o.http_request_uri = "/"
|
546
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeEntityAggregatesForOrganizationRequest)
|
547
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeEntityAggregatesForOrganizationResponse)
|
548
|
+
end)
|
549
|
+
|
493
550
|
api.add_operation(:describe_event_aggregates, Seahorse::Model::Operation.new.tap do |o|
|
494
551
|
o.name = "DescribeEventAggregates"
|
495
552
|
o.http_method = "POST"
|
@@ -68,6 +68,20 @@ module Aws::Health
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
+
class DescribeEntityAggregatesForOrganization
|
72
|
+
def self.build(context)
|
73
|
+
unless context.config.regional_endpoint
|
74
|
+
endpoint = context.config.endpoint.to_s
|
75
|
+
end
|
76
|
+
Aws::Health::EndpointParameters.new(
|
77
|
+
region: context.config.region,
|
78
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
79
|
+
use_fips: context.config.use_fips_endpoint,
|
80
|
+
endpoint: endpoint,
|
81
|
+
)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
71
85
|
class DescribeEventAggregates
|
72
86
|
def self.build(context)
|
73
87
|
unless context.config.regional_endpoint
|
@@ -64,6 +64,8 @@ module Aws::Health
|
|
64
64
|
Aws::Health::Endpoints::DescribeAffectedEntitiesForOrganization.build(context)
|
65
65
|
when :describe_entity_aggregates
|
66
66
|
Aws::Health::Endpoints::DescribeEntityAggregates.build(context)
|
67
|
+
when :describe_entity_aggregates_for_organization
|
68
|
+
Aws::Health::Endpoints::DescribeEntityAggregatesForOrganization.build(context)
|
67
69
|
when :describe_event_aggregates
|
68
70
|
Aws::Health::Endpoints::DescribeEventAggregates.build(context)
|
69
71
|
when :describe_event_details
|
data/lib/aws-sdk-health/types.rb
CHANGED
@@ -10,6 +10,34 @@
|
|
10
10
|
module Aws::Health
|
11
11
|
module Types
|
12
12
|
|
13
|
+
# The number of entities in an account that are impacted by a specific
|
14
|
+
# event aggregated by the entity status codes.
|
15
|
+
#
|
16
|
+
# @!attribute [rw] account_id
|
17
|
+
# The 12-digit Amazon Web Services account numbers that contains the
|
18
|
+
# affected entities.
|
19
|
+
# @return [String]
|
20
|
+
#
|
21
|
+
# @!attribute [rw] count
|
22
|
+
# The number of entities that match the filter criteria for the
|
23
|
+
# specified events.
|
24
|
+
# @return [Integer]
|
25
|
+
#
|
26
|
+
# @!attribute [rw] statuses
|
27
|
+
# The number of affected entities aggregated by the entity status
|
28
|
+
# codes.
|
29
|
+
# @return [Hash<String,Integer>]
|
30
|
+
#
|
31
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/AccountEntityAggregate AWS API Documentation
|
32
|
+
#
|
33
|
+
class AccountEntityAggregate < Struct.new(
|
34
|
+
:account_id,
|
35
|
+
:count,
|
36
|
+
:statuses)
|
37
|
+
SENSITIVE = []
|
38
|
+
include Aws::Structure
|
39
|
+
end
|
40
|
+
|
13
41
|
# Information about an entity that is affected by a Health event.
|
14
42
|
#
|
15
43
|
# @!attribute [rw] entity_arn
|
@@ -221,13 +249,19 @@ module Aws::Health
|
|
221
249
|
# 100, inclusive.
|
222
250
|
# @return [Integer]
|
223
251
|
#
|
252
|
+
# @!attribute [rw] organization_entity_account_filters
|
253
|
+
# A JSON set of elements including the `awsAccountId`, `eventArn` and
|
254
|
+
# a set of `statusCodes`.
|
255
|
+
# @return [Array<Types::EntityAccountFilter>]
|
256
|
+
#
|
224
257
|
# @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganizationRequest AWS API Documentation
|
225
258
|
#
|
226
259
|
class DescribeAffectedEntitiesForOrganizationRequest < Struct.new(
|
227
260
|
:organization_entity_filters,
|
228
261
|
:locale,
|
229
262
|
:next_token,
|
230
|
-
:max_results
|
263
|
+
:max_results,
|
264
|
+
:organization_entity_account_filters)
|
231
265
|
SENSITIVE = []
|
232
266
|
include Aws::Structure
|
233
267
|
end
|
@@ -316,6 +350,39 @@ module Aws::Health
|
|
316
350
|
include Aws::Structure
|
317
351
|
end
|
318
352
|
|
353
|
+
# @!attribute [rw] event_arns
|
354
|
+
# A list of event ARNs (unique identifiers). For example:
|
355
|
+
# `"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
|
356
|
+
# "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"`
|
357
|
+
# @return [Array<String>]
|
358
|
+
#
|
359
|
+
# @!attribute [rw] aws_account_ids
|
360
|
+
# A list of 12-digit Amazon Web Services account numbers that contains
|
361
|
+
# the affected entities.
|
362
|
+
# @return [Array<String>]
|
363
|
+
#
|
364
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregatesForOrganizationRequest AWS API Documentation
|
365
|
+
#
|
366
|
+
class DescribeEntityAggregatesForOrganizationRequest < Struct.new(
|
367
|
+
:event_arns,
|
368
|
+
:aws_account_ids)
|
369
|
+
SENSITIVE = []
|
370
|
+
include Aws::Structure
|
371
|
+
end
|
372
|
+
|
373
|
+
# @!attribute [rw] organization_entity_aggregates
|
374
|
+
# The list of entity aggregates for each of the specified accounts
|
375
|
+
# that are affected by each of the specified events.
|
376
|
+
# @return [Array<Types::OrganizationEntityAggregate>]
|
377
|
+
#
|
378
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregatesForOrganizationResponse AWS API Documentation
|
379
|
+
#
|
380
|
+
class DescribeEntityAggregatesForOrganizationResponse < Struct.new(
|
381
|
+
:organization_entity_aggregates)
|
382
|
+
SENSITIVE = []
|
383
|
+
include Aws::Structure
|
384
|
+
end
|
385
|
+
|
319
386
|
# @!attribute [rw] event_arns
|
320
387
|
# A list of event ARNs (unique identifiers). For example:
|
321
388
|
# `"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
|
@@ -657,6 +724,38 @@ module Aws::Health
|
|
657
724
|
include Aws::Structure
|
658
725
|
end
|
659
726
|
|
727
|
+
# A JSON set of elements including the `awsAccountId`, `eventArn` and a
|
728
|
+
# set of `statusCodes`.
|
729
|
+
#
|
730
|
+
# @!attribute [rw] event_arn
|
731
|
+
# The unique identifier for the event. The event ARN has the
|
732
|
+
# `arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
|
733
|
+
# ` format.
|
734
|
+
#
|
735
|
+
# For example, an event ARN might look like the following:
|
736
|
+
#
|
737
|
+
# `arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456`
|
738
|
+
# @return [String]
|
739
|
+
#
|
740
|
+
# @!attribute [rw] aws_account_id
|
741
|
+
# The 12-digit Amazon Web Services account numbers that contains the
|
742
|
+
# affected entities.
|
743
|
+
# @return [String]
|
744
|
+
#
|
745
|
+
# @!attribute [rw] status_codes
|
746
|
+
# A list of entity status codes.
|
747
|
+
# @return [Array<String>]
|
748
|
+
#
|
749
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EntityAccountFilter AWS API Documentation
|
750
|
+
#
|
751
|
+
class EntityAccountFilter < Struct.new(
|
752
|
+
:event_arn,
|
753
|
+
:aws_account_id,
|
754
|
+
:status_codes)
|
755
|
+
SENSITIVE = []
|
756
|
+
include Aws::Structure
|
757
|
+
end
|
758
|
+
|
660
759
|
# The number of entities that are affected by one or more events.
|
661
760
|
# Returned by the [DescribeEntityAggregates][1] operation.
|
662
761
|
#
|
@@ -679,11 +778,17 @@ module Aws::Health
|
|
679
778
|
# events.
|
680
779
|
# @return [Integer]
|
681
780
|
#
|
781
|
+
# @!attribute [rw] statuses
|
782
|
+
# The number of affected entities aggregated by the entity status
|
783
|
+
# codes.
|
784
|
+
# @return [Hash<String,Integer>]
|
785
|
+
#
|
682
786
|
# @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EntityAggregate AWS API Documentation
|
683
787
|
#
|
684
788
|
class EntityAggregate < Struct.new(
|
685
789
|
:event_arn,
|
686
|
-
:count
|
790
|
+
:count,
|
791
|
+
:statuses)
|
687
792
|
SENSITIVE = []
|
688
793
|
include Aws::Structure
|
689
794
|
end
|
@@ -1226,6 +1331,44 @@ module Aws::Health
|
|
1226
1331
|
include Aws::Structure
|
1227
1332
|
end
|
1228
1333
|
|
1334
|
+
# The aggregate results of entities affected by the specified event in
|
1335
|
+
# your organization. The results are aggregated by the entity status
|
1336
|
+
# codes for the specified set of accountsIDs.
|
1337
|
+
#
|
1338
|
+
# @!attribute [rw] event_arn
|
1339
|
+
# A list of event ARNs (unique identifiers). For example:
|
1340
|
+
# `"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
|
1341
|
+
# "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"`
|
1342
|
+
# @return [String]
|
1343
|
+
#
|
1344
|
+
# @!attribute [rw] count
|
1345
|
+
# The number of entities for the organization that match the filter
|
1346
|
+
# criteria for the specified events.
|
1347
|
+
# @return [Integer]
|
1348
|
+
#
|
1349
|
+
# @!attribute [rw] statuses
|
1350
|
+
# The number of affected entities aggregated by the entitiy status
|
1351
|
+
# codes.
|
1352
|
+
# @return [Hash<String,Integer>]
|
1353
|
+
#
|
1354
|
+
# @!attribute [rw] accounts
|
1355
|
+
# A list of entity aggregates for each of the specified accounts in
|
1356
|
+
# your organization that are affected by a specific event. If there
|
1357
|
+
# are no `awsAccountIds` provided in the request, this field will be
|
1358
|
+
# empty in the response.
|
1359
|
+
# @return [Array<Types::AccountEntityAggregate>]
|
1360
|
+
#
|
1361
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/OrganizationEntityAggregate AWS API Documentation
|
1362
|
+
#
|
1363
|
+
class OrganizationEntityAggregate < Struct.new(
|
1364
|
+
:event_arn,
|
1365
|
+
:count,
|
1366
|
+
:statuses,
|
1367
|
+
:accounts)
|
1368
|
+
SENSITIVE = []
|
1369
|
+
include Aws::Structure
|
1370
|
+
end
|
1371
|
+
|
1229
1372
|
# Summary information about an event, returned by the
|
1230
1373
|
# [DescribeEventsForOrganization][1] operation.
|
1231
1374
|
#
|
data/lib/aws-sdk-health.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-health
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.56.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|