aws-sdk-health 1.49.0 → 1.50.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 +16 -15
- data/lib/aws-sdk-health/endpoint_provider.rb +18 -57
- data/lib/aws-sdk-health/types.rb +27 -18
- 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: f7ff570685ea1893d0cdd6056d4ad6bf699dd4223f97b3218d7b14621663bf04
|
4
|
+
data.tar.gz: 383a6bca6510d4cf34009648bee1cc66362179fff8060ebaa9a0af3857620d44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c3455da090a8304b6207b88b9ead97a74e2c2f864a799b70dec6bfbb3e3559014511c320e1a93583ff07a90f6119248e67d17aa2856e106b1cb35f51b31795d
|
7
|
+
data.tar.gz: 5821496cb98285b590ffde81e6b353299ed3b97b30ef418c46c0d05f0ba4a82698333b386127c7cc93fb02726058063904cc45e758717bca06f759d6fbe3d873
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.50.0
|
@@ -452,10 +452,9 @@ module Aws::Health
|
|
452
452
|
# Returns a list of entities that have been affected by the specified
|
453
453
|
# events, based on the specified filter criteria. Entities can refer to
|
454
454
|
# individual customer resources, groups of customer resources, or any
|
455
|
-
# other construct, depending on the Amazon Web
|
456
|
-
#
|
457
|
-
#
|
458
|
-
# this.
|
455
|
+
# other construct, depending on the Amazon Web Service. Events that have
|
456
|
+
# impact beyond that of the affected entities, or where the extent of
|
457
|
+
# impact is unknown, include at least one entity indicating this.
|
459
458
|
#
|
460
459
|
# At least one event ARN is required.
|
461
460
|
#
|
@@ -551,7 +550,7 @@ module Aws::Health
|
|
551
550
|
# events for one or more accounts in your organization in Organizations,
|
552
551
|
# based on the filter criteria. Entities can refer to individual
|
553
552
|
# customer resources, groups of customer resources, or any other
|
554
|
-
# construct, depending on the Amazon Web
|
553
|
+
# construct, depending on the Amazon Web Service.
|
555
554
|
#
|
556
555
|
# At least one event Amazon Resource Name (ARN) and account ID are
|
557
556
|
# required.
|
@@ -952,8 +951,8 @@ module Aws::Health
|
|
952
951
|
|
953
952
|
# Returns the event types that meet the specified filter criteria. You
|
954
953
|
# can use this API operation to find information about the Health event,
|
955
|
-
# such as the category, Amazon Web
|
956
|
-
#
|
954
|
+
# such as the category, Amazon Web Service, and event code. The metadata
|
955
|
+
# for each event appears in the [EventType][1] object.
|
957
956
|
#
|
958
957
|
# If you don't specify a filter criteria, the API operation returns all
|
959
958
|
# event types, in no particular order.
|
@@ -985,6 +984,11 @@ module Aws::Health
|
|
985
984
|
# The maximum number of items to return in one batch, between 10 and
|
986
985
|
# 100, inclusive.
|
987
986
|
#
|
987
|
+
# <note markdown="1"> If you don't specify the `maxResults` parameter, this operation
|
988
|
+
# returns a maximum of 30 items by default.
|
989
|
+
#
|
990
|
+
# </note>
|
991
|
+
#
|
988
992
|
# @return [Types::DescribeEventTypesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
989
993
|
#
|
990
994
|
# * {Types::DescribeEventTypesResponse#event_types #event_types} => Array<Types::EventType>
|
@@ -1263,8 +1267,7 @@ module Aws::Health
|
|
1263
1267
|
|
1264
1268
|
# This operation provides status information on enabling or disabling
|
1265
1269
|
# Health to work with your organization. To call this operation, you
|
1266
|
-
# must
|
1267
|
-
# root user (not recommended) in the organization's management account.
|
1270
|
+
# must use the organization's management account.
|
1268
1271
|
#
|
1269
1272
|
# @return [Types::DescribeHealthServiceStatusForOrganizationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1270
1273
|
#
|
@@ -1284,11 +1287,9 @@ module Aws::Health
|
|
1284
1287
|
end
|
1285
1288
|
|
1286
1289
|
# Disables Health from working with Organizations. To call this
|
1287
|
-
# operation, you must sign in
|
1288
|
-
#
|
1289
|
-
#
|
1290
|
-
# information, see [Aggregating Health events][1] in the *Health User
|
1291
|
-
# Guide*.
|
1290
|
+
# operation, you must sign in to the organization's management account.
|
1291
|
+
# For more information, see [Aggregating Health events][1] in the
|
1292
|
+
# *Health User Guide*.
|
1292
1293
|
#
|
1293
1294
|
# This operation doesn't remove the service-linked role from the
|
1294
1295
|
# management account in your organization. You must use the IAM console,
|
@@ -1379,7 +1380,7 @@ module Aws::Health
|
|
1379
1380
|
params: params,
|
1380
1381
|
config: config)
|
1381
1382
|
context[:gem_name] = 'aws-sdk-health'
|
1382
|
-
context[:gem_version] = '1.
|
1383
|
+
context[:gem_version] = '1.50.0'
|
1383
1384
|
Seahorse::Client::Request.new(handlers, context)
|
1384
1385
|
end
|
1385
1386
|
|
@@ -14,84 +14,45 @@ module Aws::Health
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.
|
19
|
-
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
26
20
|
end
|
27
|
-
if Aws::Endpoints::Matchers.
|
28
|
-
|
29
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
-
return Aws::Endpoints::Endpoint.new(url: "https://health-fips.#{region}.api.aws", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"us-east-1"}]})
|
31
|
-
end
|
32
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
-
end
|
34
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
-
return Aws::Endpoints::Endpoint.new(url: "https://health-fips.#{region}.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"us-east-1"}]})
|
37
|
-
end
|
38
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
-
end
|
40
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
-
return Aws::Endpoints::Endpoint.new(url: "https://health.#{region}.api.aws", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"us-east-1"}]})
|
43
|
-
end
|
44
|
-
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
|
-
end
|
46
|
-
return Aws::Endpoints::Endpoint.new(url: "https://global.health.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"us-east-1"}]})
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
47
23
|
end
|
48
|
-
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
49
28
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
50
29
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
51
|
-
return Aws::Endpoints::Endpoint.new(url: "https://health-fips.#{region}
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://health-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
52
31
|
end
|
53
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
54
33
|
end
|
55
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
56
35
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
57
|
-
return Aws::Endpoints::Endpoint.new(url: "https://health-fips.#{region}
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://health-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
58
37
|
end
|
59
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
60
39
|
end
|
61
40
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
62
41
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
63
|
-
return Aws::Endpoints::Endpoint.new(url: "https://health.#{region}
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://health.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
64
43
|
end
|
65
44
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
66
45
|
end
|
67
|
-
|
68
|
-
|
69
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
70
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
71
|
-
return Aws::Endpoints::Endpoint.new(url: "https://health-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
46
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "aws-global")
|
47
|
+
return Aws::Endpoints::Endpoint.new(url: "https://global.health.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"us-east-1"}]})
|
72
48
|
end
|
73
|
-
|
74
|
-
|
75
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
76
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
77
|
-
return Aws::Endpoints::Endpoint.new(url: "https://health-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
49
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "aws-cn-global")
|
50
|
+
return Aws::Endpoints::Endpoint.new(url: "https://global.health.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"cn-northwest-1"}]})
|
78
51
|
end
|
79
|
-
|
80
|
-
end
|
81
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
82
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
83
|
-
return Aws::Endpoints::Endpoint.new(url: "https://health.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
84
|
-
end
|
85
|
-
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
86
|
-
end
|
87
|
-
if Aws::Endpoints::Matchers.string_equals?(region, "aws-global")
|
88
|
-
return Aws::Endpoints::Endpoint.new(url: "https://global.health.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"us-east-1"}]})
|
89
|
-
end
|
90
|
-
if Aws::Endpoints::Matchers.string_equals?(region, "aws-cn-global")
|
91
|
-
return Aws::Endpoints::Endpoint.new(url: "https://global.health.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"health", "signingRegion"=>"cn-northwest-1"}]})
|
52
|
+
return Aws::Endpoints::Endpoint.new(url: "https://health.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
92
53
|
end
|
93
|
-
return Aws::Endpoints::Endpoint.new(url: "https://health.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
94
54
|
end
|
55
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
95
56
|
raise ArgumentError, 'No endpoint could be resolved'
|
96
57
|
|
97
58
|
end
|
data/lib/aws-sdk-health/types.rb
CHANGED
@@ -164,7 +164,7 @@ module Aws::Health
|
|
164
164
|
#
|
165
165
|
# @!attribute [rw] event_scope_code
|
166
166
|
# This parameter specifies if the Health event is a public Amazon Web
|
167
|
-
#
|
167
|
+
# Service event or an account-specific event.
|
168
168
|
#
|
169
169
|
# * If the `eventScopeCode` value is `PUBLIC`, then the
|
170
170
|
# `affectedAccounts` value is always empty.
|
@@ -490,6 +490,11 @@ module Aws::Health
|
|
490
490
|
# @!attribute [rw] max_results
|
491
491
|
# The maximum number of items to return in one batch, between 10 and
|
492
492
|
# 100, inclusive.
|
493
|
+
#
|
494
|
+
# <note markdown="1"> If you don't specify the `maxResults` parameter, this operation
|
495
|
+
# returns a maximum of 30 items by default.
|
496
|
+
#
|
497
|
+
# </note>
|
493
498
|
# @return [Integer]
|
494
499
|
#
|
495
500
|
# @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypesRequest AWS API Documentation
|
@@ -769,8 +774,8 @@ module Aws::Health
|
|
769
774
|
# @return [String]
|
770
775
|
#
|
771
776
|
# @!attribute [rw] service
|
772
|
-
# The Amazon Web
|
773
|
-
#
|
777
|
+
# The Amazon Web Service that is affected by the event. For example,
|
778
|
+
# `EC2`, `RDS`.
|
774
779
|
# @return [String]
|
775
780
|
#
|
776
781
|
# @!attribute [rw] event_type_code
|
@@ -813,7 +818,7 @@ module Aws::Health
|
|
813
818
|
#
|
814
819
|
# @!attribute [rw] event_scope_code
|
815
820
|
# This parameter specifies if the Health event is a public Amazon Web
|
816
|
-
#
|
821
|
+
# Service event or an account-specific event.
|
817
822
|
#
|
818
823
|
# * If the `eventScopeCode` value is `PUBLIC`, then the
|
819
824
|
# `affectedAccounts` value is always empty.
|
@@ -1010,8 +1015,8 @@ module Aws::Health
|
|
1010
1015
|
# @return [Array<String>]
|
1011
1016
|
#
|
1012
1017
|
# @!attribute [rw] services
|
1013
|
-
# The Amazon Web Services
|
1014
|
-
#
|
1018
|
+
# The Amazon Web Services associated with the event. For example,
|
1019
|
+
# `EC2`, `RDS`.
|
1015
1020
|
# @return [Array<String>]
|
1016
1021
|
#
|
1017
1022
|
# @!attribute [rw] regions
|
@@ -1102,8 +1107,8 @@ module Aws::Health
|
|
1102
1107
|
# [2]: https://docs.aws.amazon.com/health/latest/ug/cloudwatch-events-health.html
|
1103
1108
|
#
|
1104
1109
|
# @!attribute [rw] service
|
1105
|
-
# The Amazon Web
|
1106
|
-
#
|
1110
|
+
# The Amazon Web Service that is affected by the event. For example,
|
1111
|
+
# `EC2`, `RDS`.
|
1107
1112
|
# @return [String]
|
1108
1113
|
#
|
1109
1114
|
# @!attribute [rw] code
|
@@ -1140,8 +1145,8 @@ module Aws::Health
|
|
1140
1145
|
# @return [Array<String>]
|
1141
1146
|
#
|
1142
1147
|
# @!attribute [rw] services
|
1143
|
-
# The Amazon Web Services
|
1144
|
-
#
|
1148
|
+
# The Amazon Web Services associated with the event. For example,
|
1149
|
+
# `EC2`, `RDS`.
|
1145
1150
|
# @return [Array<String>]
|
1146
1151
|
#
|
1147
1152
|
# @!attribute [rw] event_type_categories
|
@@ -1201,9 +1206,13 @@ module Aws::Health
|
|
1201
1206
|
# @return [String]
|
1202
1207
|
#
|
1203
1208
|
# @!attribute [rw] error_message
|
1204
|
-
#
|
1205
|
-
#
|
1206
|
-
#
|
1209
|
+
# A message that describes the error. Follow the error message and
|
1210
|
+
# retry your request.
|
1211
|
+
#
|
1212
|
+
# For example, the `InvalidAccountInputError` error message appears if
|
1213
|
+
# you call the `DescribeAffectedEntitiesForOrganization` operation and
|
1214
|
+
# specify the `AccountSpecific` value for the `EventScopeCode`
|
1215
|
+
# parameter, but don't specify an Amazon Web Services account.
|
1207
1216
|
# @return [String]
|
1208
1217
|
#
|
1209
1218
|
# @see http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/OrganizationAffectedEntitiesErrorItem AWS API Documentation
|
@@ -1235,8 +1244,8 @@ module Aws::Health
|
|
1235
1244
|
# @return [String]
|
1236
1245
|
#
|
1237
1246
|
# @!attribute [rw] service
|
1238
|
-
# The Amazon Web
|
1239
|
-
#
|
1247
|
+
# The Amazon Web Service that is affected by the event, such as EC2
|
1248
|
+
# and RDS.
|
1240
1249
|
# @return [String]
|
1241
1250
|
#
|
1242
1251
|
# @!attribute [rw] event_type_code
|
@@ -1253,7 +1262,7 @@ module Aws::Health
|
|
1253
1262
|
#
|
1254
1263
|
# @!attribute [rw] event_scope_code
|
1255
1264
|
# This parameter specifies if the Health event is a public Amazon Web
|
1256
|
-
#
|
1265
|
+
# Service event or an account-specific event.
|
1257
1266
|
#
|
1258
1267
|
# * If the `eventScopeCode` value is `PUBLIC`, then the
|
1259
1268
|
# `affectedAccounts` value is always empty.
|
@@ -1456,8 +1465,8 @@ module Aws::Health
|
|
1456
1465
|
# @return [Array<String>]
|
1457
1466
|
#
|
1458
1467
|
# @!attribute [rw] services
|
1459
|
-
# The Amazon Web Services
|
1460
|
-
#
|
1468
|
+
# The Amazon Web Services associated with the event. For example,
|
1469
|
+
# `EC2`, `RDS`.
|
1461
1470
|
# @return [Array<String>]
|
1462
1471
|
#
|
1463
1472
|
# @!attribute [rw] regions
|
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.50.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-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|