aws-sdk-health 1.23.0 → 1.28.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f3411be511a96168fa1b5b1c7096b92a34626d424d3e5e0c74bfa4c95bbd5c2
4
- data.tar.gz: db52bd64404b1476391bc7dbbca52f753340c5b51be25a0e1be0d907487e5dd0
3
+ metadata.gz: 1d471d435fbec6b47f325f65c663d948c34ce267b6a002245f4d4e68af2a7e9f
4
+ data.tar.gz: 4a9fc5891f2c3bcbb9461a3c8e1f973972daa06e94e3e24b3a9fb0886d4be111
5
5
  SHA512:
6
- metadata.gz: 67a7fa743b16b980ce69e39958b678ad5c3fda456fc86ca8a9b6c2db8d7a5ef62a0d3892e404a554be85a84a03f6fb8440f100e678024bac3d8321069ed6a671
7
- data.tar.gz: 354f91964db36da58642942a160f38ef5d54843000a14b807903d9167a0d44c33b9f689b10ec3207d12f631602876cc007d97aafbbc5582a7a26118aa5f2360e
6
+ metadata.gz: cd1fafd95f921c88370f8b3d1613f088b6d8152cc757ed2f2213a55adffc0464b63afc9f4acb64c72393b78d2484c14ee591c79a6df4dd4d45c40a05d80e1c8f
7
+ data.tar.gz: 7f8fc7b1e4aa458244aed80e5e25db1b79724da712fc4d59cf5093e68df5eb46698c104f36dff441b0232e3ff9ca04cf74f30f92daecc163897992baffac0776
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-health/customizations'
45
47
  # @service
46
48
  module Aws::Health
47
49
 
48
- GEM_VERSION = '1.23.0'
50
+ GEM_VERSION = '1.28.0'
49
51
 
50
52
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
29
32
 
@@ -69,6 +72,7 @@ module Aws::Health
69
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
72
76
  add_plugin(Aws::Plugins::SignatureV4)
73
77
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
74
78
 
@@ -161,7 +165,7 @@ module Aws::Health
161
165
  # @option options [String] :endpoint
162
166
  # The client endpoint is normally constructed from the `:region`
163
167
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be a valid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
169
  #
166
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -176,7 +180,7 @@ module Aws::Health
176
180
  # requests fetching endpoints information. Defaults to 60 sec.
177
181
  #
178
182
  # @option options [Boolean] :endpoint_discovery (false)
179
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
180
184
  #
181
185
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
182
186
  # The log formatter.
@@ -319,13 +323,24 @@ module Aws::Health
319
323
  # @!group API Operations
320
324
 
321
325
  # Returns a list of accounts in the organization from AWS Organizations
322
- # that are affected by the provided event.
326
+ # that are affected by the provided event. For more information about
327
+ # the different types of AWS Health events, see [Event][1].
323
328
  #
324
329
  # Before you can call this operation, you must first enable AWS Health
325
330
  # to work with AWS Organizations. To do this, call the
326
- # EnableHealthServiceAccessForOrganization operation from your
331
+ # [EnableHealthServiceAccessForOrganization][2] operation from your
327
332
  # organization's master account.
328
333
  #
334
+ # <note markdown="1"> This API operation uses pagination. Specify the `nextToken` parameter
335
+ # in the next request to return more results.
336
+ #
337
+ # </note>
338
+ #
339
+ #
340
+ #
341
+ # [1]: https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html
342
+ # [2]: https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html
343
+ #
329
344
  # @option params [required, String] :event_arn
330
345
  # The unique identifier for the event. Format:
331
346
  # `arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
@@ -346,6 +361,7 @@ module Aws::Health
346
361
  # @return [Types::DescribeAffectedAccountsForOrganizationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
347
362
  #
348
363
  # * {Types::DescribeAffectedAccountsForOrganizationResponse#affected_accounts #affected_accounts} => Array&lt;String&gt;
364
+ # * {Types::DescribeAffectedAccountsForOrganizationResponse#event_scope_code #event_scope_code} => String
349
365
  # * {Types::DescribeAffectedAccountsForOrganizationResponse#next_token #next_token} => String
350
366
  #
351
367
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
@@ -362,6 +378,7 @@ module Aws::Health
362
378
  #
363
379
  # resp.affected_accounts #=> Array
364
380
  # resp.affected_accounts[0] #=> String
381
+ # resp.event_scope_code #=> String, one of "PUBLIC", "ACCOUNT_SPECIFIC", "NONE"
365
382
  # resp.next_token #=> String
366
383
  #
367
384
  # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganization AWS API Documentation
@@ -383,6 +400,11 @@ module Aws::Health
383
400
  # At least one event ARN is required. Results are sorted by the
384
401
  # `lastUpdatedTime` of the entity, starting with the most recent.
385
402
  #
403
+ # <note markdown="1"> This API operation uses pagination. Specify the `nextToken` parameter
404
+ # in the next request to return more results.
405
+ #
406
+ # </note>
407
+ #
386
408
  # @option params [required, Types::EntityFilter] :filter
387
409
  # Values to narrow the results returned. At least one event ARN is
388
410
  # required.
@@ -463,14 +485,24 @@ module Aws::Health
463
485
  # individual customer resources, groups of customer resources, or any
464
486
  # other construct, depending on the AWS service.
465
487
  #
466
- # At least one event ARN and account ID are required. Results are sorted
467
- # by the `lastUpdatedTime` of the entity, starting with the most recent.
488
+ # At least one event Amazon Resource Name (ARN) and account ID are
489
+ # required. Results are sorted by the `lastUpdatedTime` of the entity,
490
+ # starting with the most recent.
468
491
  #
469
492
  # Before you can call this operation, you must first enable AWS Health
470
493
  # to work with AWS Organizations. To do this, call the
471
- # EnableHealthServiceAccessForOrganization operation from your
494
+ # [EnableHealthServiceAccessForOrganization][1] operation from your
472
495
  # organization's master account.
473
496
  #
497
+ # <note markdown="1"> This API operation uses pagination. Specify the `nextToken` parameter
498
+ # in the next request to return more results.
499
+ #
500
+ # </note>
501
+ #
502
+ #
503
+ #
504
+ # [1]: https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html
505
+ #
474
506
  # @option params [required, Array<Types::EventAccountFilter>] :organization_entity_filters
475
507
  # A JSON set of elements including the `awsAccountId` and the
476
508
  # `eventArn`.
@@ -504,7 +536,7 @@ module Aws::Health
504
536
  # organization_entity_filters: [ # required
505
537
  # {
506
538
  # event_arn: "eventArn", # required
507
- # aws_account_id: "accountId", # required
539
+ # aws_account_id: "accountId",
508
540
  # },
509
541
  # ],
510
542
  # locale: "locale",
@@ -578,6 +610,11 @@ module Aws::Health
578
610
  # change, and account notification). If no filter is specified, the
579
611
  # counts of all events in each category are returned.
580
612
  #
613
+ # <note markdown="1"> This API operation uses pagination. Specify the `nextToken` parameter
614
+ # in the next request to return more results.
615
+ #
616
+ # </note>
617
+ #
581
618
  # @option params [Types::EventFilter] :filter
582
619
  # Values to narrow the results returned.
583
620
  #
@@ -661,15 +698,20 @@ module Aws::Health
661
698
  end
662
699
 
663
700
  # Returns detailed information about one or more specified events.
664
- # Information includes standard event data (region, service, and so on,
665
- # as returned by DescribeEvents), a detailed event description, and
701
+ # Information includes standard event data (Region, service, and so on,
702
+ # as returned by [DescribeEvents][1]), a detailed event description, and
666
703
  # possible additional metadata that depends upon the nature of the
667
- # event. Affected entities are not included; to retrieve those, use the
668
- # DescribeAffectedEntities operation.
704
+ # event. Affected entities are not included. To retrieve those, use the
705
+ # [DescribeAffectedEntities][2] operation.
669
706
  #
670
707
  # If a specified event cannot be retrieved, an error message is returned
671
708
  # for that event.
672
709
  #
710
+ #
711
+ #
712
+ # [1]: https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html
713
+ # [2]: https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html
714
+ #
673
715
  # @option params [required, Array<String>] :event_arns
674
716
  # A list of event ARNs (unique identifiers). For example:
675
717
  # `"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456",
@@ -704,6 +746,7 @@ module Aws::Health
704
746
  # resp.successful_set[0].event.end_time #=> Time
705
747
  # resp.successful_set[0].event.last_updated_time #=> Time
706
748
  # resp.successful_set[0].event.status_code #=> String, one of "open", "closed", "upcoming"
749
+ # resp.successful_set[0].event.event_scope_code #=> String, one of "PUBLIC", "ACCOUNT_SPECIFIC", "NONE"
707
750
  # resp.successful_set[0].event_description.latest_description #=> String
708
751
  # resp.successful_set[0].event_metadata #=> Hash
709
752
  # resp.successful_set[0].event_metadata["metadataKey"] #=> String
@@ -724,16 +767,40 @@ module Aws::Health
724
767
  # Returns detailed information about one or more specified events for
725
768
  # one or more accounts in your organization. Information includes
726
769
  # standard event data (Region, service, and so on, as returned by
727
- # DescribeEventsForOrganization, a detailed event description, and
770
+ # [DescribeEventsForOrganization][1]), a detailed event description, and
728
771
  # possible additional metadata that depends upon the nature of the
729
772
  # event. Affected entities are not included; to retrieve those, use the
730
- # DescribeAffectedEntitiesForOrganization operation.
773
+ # [DescribeAffectedEntitiesForOrganization][2] operation.
731
774
  #
732
775
  # Before you can call this operation, you must first enable AWS Health
733
776
  # to work with AWS Organizations. To do this, call the
734
- # EnableHealthServiceAccessForOrganization operation from your
777
+ # [EnableHealthServiceAccessForOrganization][3] operation from your
735
778
  # organization's master account.
736
779
  #
780
+ # When you call the `DescribeEventDetailsForOrganization` operation, you
781
+ # specify the `organizationEventDetailFilters` object in the request.
782
+ # Depending on the AWS Health event type, note the following
783
+ # differences:
784
+ #
785
+ # * If the event is public, the `awsAccountId` parameter must be empty.
786
+ # If you specify an account ID for a public event, then an error
787
+ # message is returned. That's because the event might apply to all
788
+ # AWS accounts and isn't specific to an account in your organization.
789
+ #
790
+ # * If the event is specific to an account, then you must specify the
791
+ # `awsAccountId` parameter in the request. If you don't specify an
792
+ # account ID, an error message returns because the event is specific
793
+ # to an AWS account in your organization.
794
+ #
795
+ # For more information, see [Event][4].
796
+ #
797
+ #
798
+ #
799
+ # [1]: https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventsForOrganization.html
800
+ # [2]: https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html
801
+ # [3]: https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html
802
+ # [4]: https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html
803
+ #
737
804
  # @option params [required, Array<Types::EventAccountFilter>] :organization_event_detail_filters
738
805
  # A set of JSON elements that includes the `awsAccountId` and the
739
806
  # `eventArn`.
@@ -753,7 +820,7 @@ module Aws::Health
753
820
  # organization_event_detail_filters: [ # required
754
821
  # {
755
822
  # event_arn: "eventArn", # required
756
- # aws_account_id: "accountId", # required
823
+ # aws_account_id: "accountId",
757
824
  # },
758
825
  # ],
759
826
  # locale: "locale",
@@ -773,6 +840,7 @@ module Aws::Health
773
840
  # resp.successful_set[0].event.end_time #=> Time
774
841
  # resp.successful_set[0].event.last_updated_time #=> Time
775
842
  # resp.successful_set[0].event.status_code #=> String, one of "open", "closed", "upcoming"
843
+ # resp.successful_set[0].event.event_scope_code #=> String, one of "PUBLIC", "ACCOUNT_SPECIFIC", "NONE"
776
844
  # resp.successful_set[0].event_description.latest_description #=> String
777
845
  # resp.successful_set[0].event_metadata #=> Hash
778
846
  # resp.successful_set[0].event_metadata["metadataKey"] #=> String
@@ -795,6 +863,11 @@ module Aws::Health
795
863
  # filter criteria are specified, all event types are returned, in no
796
864
  # particular order.
797
865
  #
866
+ # <note markdown="1"> This API operation uses pagination. Specify the `nextToken` parameter
867
+ # in the next request to return more results.
868
+ #
869
+ # </note>
870
+ #
798
871
  # @option params [Types::EventTypeFilter] :filter
799
872
  # Values to narrow the results returned.
800
873
  #
@@ -854,10 +927,31 @@ module Aws::Health
854
927
  # criteria. Events are returned in a summary form and do not include the
855
928
  # detailed description, any additional metadata that depends on the
856
929
  # event type, or any affected resources. To retrieve that information,
857
- # use the DescribeEventDetails and DescribeAffectedEntities operations.
930
+ # use the [DescribeEventDetails][1] and [DescribeAffectedEntities][2]
931
+ # operations.
858
932
  #
859
933
  # If no filter criteria are specified, all events are returned. Results
860
- # are sorted by `lastModifiedTime`, starting with the most recent.
934
+ # are sorted by `lastModifiedTime`, starting with the most recent event.
935
+ #
936
+ # <note markdown="1"> * When you call the `DescribeEvents` operation and specify an entity
937
+ # for the `entityValues` parameter, AWS Health might return public
938
+ # events that aren't specific to that resource. For example, if you
939
+ # call `DescribeEvents` and specify an ID for an Amazon Elastic
940
+ # Compute Cloud (Amazon EC2) instance, AWS Health might return events
941
+ # that aren't specific to that resource or service. To get events
942
+ # that are specific to a service, use the `services` parameter in the
943
+ # `filter` object. For more information, see [Event][3].
944
+ #
945
+ # * This API operation uses pagination. Specify the `nextToken`
946
+ # parameter in the next request to return more results.
947
+ #
948
+ # </note>
949
+ #
950
+ #
951
+ #
952
+ # [1]: https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html
953
+ # [2]: https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html
954
+ # [3]: https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html
861
955
  #
862
956
  # @option params [Types::EventFilter] :filter
863
957
  # Values to narrow the results returned.
@@ -939,6 +1033,7 @@ module Aws::Health
939
1033
  # resp.events[0].end_time #=> Time
940
1034
  # resp.events[0].last_updated_time #=> Time
941
1035
  # resp.events[0].status_code #=> String, one of "open", "closed", "upcoming"
1036
+ # resp.events[0].event_scope_code #=> String, one of "PUBLIC", "ACCOUNT_SPECIFIC", "NONE"
942
1037
  # resp.next_token #=> String
943
1038
  #
944
1039
  # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents AWS API Documentation
@@ -951,22 +1046,42 @@ module Aws::Health
951
1046
  end
952
1047
 
953
1048
  # Returns information about events across your organization in AWS
954
- # Organizations, meeting the specified filter criteria. Events are
955
- # returned in a summary form and do not include the accounts impacted,
956
- # detailed description, any additional metadata that depends on the
957
- # event type, or any affected resources. To retrieve that information,
958
- # use the DescribeAffectedAccountsForOrganization,
959
- # DescribeEventDetailsForOrganization, and
960
- # DescribeAffectedEntitiesForOrganization operations.
1049
+ # Organizations. You can use the`filters` parameter to specify the
1050
+ # events that you want to return. Events are returned in a summary form
1051
+ # and don't include the affected accounts, detailed description, any
1052
+ # additional metadata that depends on the event type, or any affected
1053
+ # resources. To retrieve that information, use the following operations:
961
1054
  #
962
- # If no filter criteria are specified, all events across your
963
- # organization are returned. Results are sorted by `lastModifiedTime`,
964
- # starting with the most recent.
1055
+ # * [DescribeAffectedAccountsForOrganization][1]
965
1056
  #
966
- # Before you can call this operation, you must first enable Health to
967
- # work with AWS Organizations. To do this, call the
968
- # EnableHealthServiceAccessForOrganization operation from your
969
- # organization's master account.
1057
+ # * [DescribeEventDetailsForOrganization][2]
1058
+ #
1059
+ # * [DescribeAffectedEntitiesForOrganization][3]
1060
+ #
1061
+ # If you don't specify a `filter`, the `DescribeEventsForOrganizations`
1062
+ # returns all events across your organization. Results are sorted by
1063
+ # `lastModifiedTime`, starting with the most recent event.
1064
+ #
1065
+ # For more information about the different types of AWS Health events,
1066
+ # see [Event][4].
1067
+ #
1068
+ # Before you can call this operation, you must first enable AWS Health
1069
+ # to work with AWS Organizations. To do this, call the
1070
+ # [EnableHealthServiceAccessForOrganization][5] operation from your
1071
+ # organization's master AWS account.
1072
+ #
1073
+ # <note markdown="1"> This API operation uses pagination. Specify the `nextToken` parameter
1074
+ # in the next request to return more results.
1075
+ #
1076
+ # </note>
1077
+ #
1078
+ #
1079
+ #
1080
+ # [1]: https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedAccountsForOrganization.html
1081
+ # [2]: https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html
1082
+ # [3]: https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html
1083
+ # [4]: https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html
1084
+ # [5]: https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html
970
1085
  #
971
1086
  # @option params [Types::OrganizationEventFilter] :filter
972
1087
  # Values to narrow the results returned.
@@ -1030,6 +1145,7 @@ module Aws::Health
1030
1145
  # resp.events[0].service #=> String
1031
1146
  # resp.events[0].event_type_code #=> String
1032
1147
  # resp.events[0].event_type_category #=> String, one of "issue", "accountNotification", "scheduledChange", "investigation"
1148
+ # resp.events[0].event_scope_code #=> String, one of "PUBLIC", "ACCOUNT_SPECIFIC", "NONE"
1033
1149
  # resp.events[0].region #=> String
1034
1150
  # resp.events[0].start_time #=> Time
1035
1151
  # resp.events[0].end_time #=> Time
@@ -1068,12 +1184,33 @@ module Aws::Health
1068
1184
  req.send_request(options)
1069
1185
  end
1070
1186
 
1071
- # Calling this operation disables Health from working with AWS
1072
- # Organizations. This does not remove the Service Linked Role (SLR) from
1073
- # the the master account in your organization. Use the IAM console, API,
1074
- # or AWS CLI to remove the SLR if desired. To call this operation, you
1075
- # must sign in as an IAM user, assume an IAM role, or sign in as the
1076
- # root user (not recommended) in the organization's master account.
1187
+ # Disables AWS Health from working with AWS Organizations. To call this
1188
+ # operation, you must sign in as an AWS Identity and Access Management
1189
+ # (IAM) user, assume an IAM role, or sign in as the root user (not
1190
+ # recommended) in the organization's master AWS account. For more
1191
+ # information, see [Aggregating AWS Health events][1] in the *AWS Health
1192
+ # User Guide*.
1193
+ #
1194
+ # This operation doesn't remove the service-linked role (SLR) from the
1195
+ # AWS master account in your organization. You must use the IAM console,
1196
+ # API, or AWS Command Line Interface (AWS CLI) to remove the SLR. For
1197
+ # more information, see [Deleting a Service-Linked Role][2] in the *IAM
1198
+ # User Guide*.
1199
+ #
1200
+ # <note markdown="1"> You can also disable the organizational feature by using the
1201
+ # Organizations [DisableAWSServiceAccess][3] API operation. After you
1202
+ # call this operation, AWS Health stops aggregating events for all other
1203
+ # AWS accounts in your organization. If you call the AWS Health API
1204
+ # operations for organizational view, AWS Health returns an error. AWS
1205
+ # Health continues to aggregate health events for your AWS account.
1206
+ #
1207
+ # </note>
1208
+ #
1209
+ #
1210
+ #
1211
+ # [1]: https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html
1212
+ # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role
1213
+ # [3]: https://docs.aws.amazon.com/organizations/latest/APIReference/API_DisableAWSServiceAccess.html
1077
1214
  #
1078
1215
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1079
1216
  #
@@ -1087,13 +1224,18 @@ module Aws::Health
1087
1224
  end
1088
1225
 
1089
1226
  # Calling this operation enables AWS Health to work with AWS
1090
- # Organizations. This applies a Service Linked Role (SLR) to the master
1091
- # account in the organization. To learn more about the steps in this
1092
- # process, visit enabling service access for AWS Health in AWS
1093
- # Organizations. To call this operation, you must sign in as an IAM
1094
- # user, assume an IAM role, or sign in as the root user (not
1227
+ # Organizations. This applies a service-linked role (SLR) to the master
1228
+ # account in the organization. To call this operation, you must sign in
1229
+ # as an IAM user, assume an IAM role, or sign in as the root user (not
1095
1230
  # recommended) in the organization's master account.
1096
1231
  #
1232
+ # For more information, see [Aggregating AWS Health events][1] in the
1233
+ # *AWS Health User Guide*.
1234
+ #
1235
+ #
1236
+ #
1237
+ # [1]: https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html
1238
+ #
1097
1239
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1098
1240
  #
1099
1241
  # @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EnableHealthServiceAccessForOrganization AWS API Documentation
@@ -1118,7 +1260,7 @@ module Aws::Health
1118
1260
  params: params,
1119
1261
  config: config)
1120
1262
  context[:gem_name] = 'aws-sdk-health'
1121
- context[:gem_version] = '1.23.0'
1263
+ context[:gem_version] = '1.28.0'
1122
1264
  Seahorse::Client::Request.new(handlers, context)
1123
1265
  end
1124
1266
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -89,6 +91,7 @@ module Aws::Health
89
91
  eventArnList = Shapes::ListShape.new(name: 'eventArnList')
90
92
  eventDescription = Shapes::StringShape.new(name: 'eventDescription')
91
93
  eventMetadata = Shapes::MapShape.new(name: 'eventMetadata')
94
+ eventScopeCode = Shapes::StringShape.new(name: 'eventScopeCode')
92
95
  eventStatusCode = Shapes::StringShape.new(name: 'eventStatusCode')
93
96
  eventStatusCodeList = Shapes::ListShape.new(name: 'eventStatusCodeList')
94
97
  eventType = Shapes::StringShape.new(name: 'eventType')
@@ -136,6 +139,7 @@ module Aws::Health
136
139
  DescribeAffectedAccountsForOrganizationRequest.struct_class = Types::DescribeAffectedAccountsForOrganizationRequest
137
140
 
138
141
  DescribeAffectedAccountsForOrganizationResponse.add_member(:affected_accounts, Shapes::ShapeRef.new(shape: affectedAccountsList, location_name: "affectedAccounts"))
142
+ DescribeAffectedAccountsForOrganizationResponse.add_member(:event_scope_code, Shapes::ShapeRef.new(shape: eventScopeCode, location_name: "eventScopeCode"))
139
143
  DescribeAffectedAccountsForOrganizationResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "nextToken"))
140
144
  DescribeAffectedAccountsForOrganizationResponse.struct_class = Types::DescribeAffectedAccountsForOrganizationResponse
141
145
 
@@ -261,10 +265,11 @@ module Aws::Health
261
265
  Event.add_member(:end_time, Shapes::ShapeRef.new(shape: timestamp, location_name: "endTime"))
262
266
  Event.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: timestamp, location_name: "lastUpdatedTime"))
263
267
  Event.add_member(:status_code, Shapes::ShapeRef.new(shape: eventStatusCode, location_name: "statusCode"))
268
+ Event.add_member(:event_scope_code, Shapes::ShapeRef.new(shape: eventScopeCode, location_name: "eventScopeCode"))
264
269
  Event.struct_class = Types::Event
265
270
 
266
271
  EventAccountFilter.add_member(:event_arn, Shapes::ShapeRef.new(shape: eventArn, required: true, location_name: "eventArn"))
267
- EventAccountFilter.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: accountId, required: true, location_name: "awsAccountId"))
272
+ EventAccountFilter.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: accountId, location_name: "awsAccountId"))
268
273
  EventAccountFilter.struct_class = Types::EventAccountFilter
269
274
 
270
275
  EventAggregate.add_member(:aggregate_value, Shapes::ShapeRef.new(shape: aggregateValue, location_name: "aggregateValue"))
@@ -336,6 +341,7 @@ module Aws::Health
336
341
  OrganizationEvent.add_member(:service, Shapes::ShapeRef.new(shape: service, location_name: "service"))
337
342
  OrganizationEvent.add_member(:event_type_code, Shapes::ShapeRef.new(shape: eventTypeCode, location_name: "eventTypeCode"))
338
343
  OrganizationEvent.add_member(:event_type_category, Shapes::ShapeRef.new(shape: eventTypeCategory, location_name: "eventTypeCategory"))
344
+ OrganizationEvent.add_member(:event_scope_code, Shapes::ShapeRef.new(shape: eventScopeCode, location_name: "eventScopeCode"))
339
345
  OrganizationEvent.add_member(:region, Shapes::ShapeRef.new(shape: region, location_name: "region"))
340
346
  OrganizationEvent.add_member(:start_time, Shapes::ShapeRef.new(shape: timestamp, location_name: "startTime"))
341
347
  OrganizationEvent.add_member(:end_time, Shapes::ShapeRef.new(shape: timestamp, location_name: "endTime"))