aws-sdk-resiliencehub 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-resiliencehub/client.rb +1421 -154
- data/lib/aws-sdk-resiliencehub/client_api.rb +410 -0
- data/lib/aws-sdk-resiliencehub/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-resiliencehub/endpoints.rb +182 -0
- data/lib/aws-sdk-resiliencehub/plugins/endpoints.rb +26 -0
- data/lib/aws-sdk-resiliencehub/types.rb +1775 -340
- data/lib/aws-sdk-resiliencehub.rb +1 -1
- metadata +2 -2
@@ -14,36 +14,39 @@ module Aws::ResilienceHub
|
|
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.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
|
19
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
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: {})
|
26
|
-
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
-
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"))
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://resiliencehub-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
-
end
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://resiliencehub-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
-
end
|
37
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
38
20
|
end
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
-
|
41
|
-
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
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))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
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://resiliencehub-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
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://resiliencehub-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
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://resiliencehub.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
42
45
|
end
|
43
|
-
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://resiliencehub.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://resiliencehub.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
48
|
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
51
|
|
49
52
|
end
|
@@ -39,6 +39,34 @@ module Aws::ResilienceHub
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
+
class CreateAppVersionAppComponent
|
43
|
+
def self.build(context)
|
44
|
+
unless context.config.regional_endpoint
|
45
|
+
endpoint = context.config.endpoint.to_s
|
46
|
+
end
|
47
|
+
Aws::ResilienceHub::EndpointParameters.new(
|
48
|
+
region: context.config.region,
|
49
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
50
|
+
use_fips: context.config.use_fips_endpoint,
|
51
|
+
endpoint: endpoint,
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class CreateAppVersionResource
|
57
|
+
def self.build(context)
|
58
|
+
unless context.config.regional_endpoint
|
59
|
+
endpoint = context.config.endpoint.to_s
|
60
|
+
end
|
61
|
+
Aws::ResilienceHub::EndpointParameters.new(
|
62
|
+
region: context.config.region,
|
63
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
+
use_fips: context.config.use_fips_endpoint,
|
65
|
+
endpoint: endpoint,
|
66
|
+
)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
42
70
|
class CreateRecommendationTemplate
|
43
71
|
def self.build(context)
|
44
72
|
unless context.config.regional_endpoint
|
@@ -95,6 +123,48 @@ module Aws::ResilienceHub
|
|
95
123
|
end
|
96
124
|
end
|
97
125
|
|
126
|
+
class DeleteAppInputSource
|
127
|
+
def self.build(context)
|
128
|
+
unless context.config.regional_endpoint
|
129
|
+
endpoint = context.config.endpoint.to_s
|
130
|
+
end
|
131
|
+
Aws::ResilienceHub::EndpointParameters.new(
|
132
|
+
region: context.config.region,
|
133
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
134
|
+
use_fips: context.config.use_fips_endpoint,
|
135
|
+
endpoint: endpoint,
|
136
|
+
)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
class DeleteAppVersionAppComponent
|
141
|
+
def self.build(context)
|
142
|
+
unless context.config.regional_endpoint
|
143
|
+
endpoint = context.config.endpoint.to_s
|
144
|
+
end
|
145
|
+
Aws::ResilienceHub::EndpointParameters.new(
|
146
|
+
region: context.config.region,
|
147
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
148
|
+
use_fips: context.config.use_fips_endpoint,
|
149
|
+
endpoint: endpoint,
|
150
|
+
)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
class DeleteAppVersionResource
|
155
|
+
def self.build(context)
|
156
|
+
unless context.config.regional_endpoint
|
157
|
+
endpoint = context.config.endpoint.to_s
|
158
|
+
end
|
159
|
+
Aws::ResilienceHub::EndpointParameters.new(
|
160
|
+
region: context.config.region,
|
161
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
162
|
+
use_fips: context.config.use_fips_endpoint,
|
163
|
+
endpoint: endpoint,
|
164
|
+
)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
98
168
|
class DeleteRecommendationTemplate
|
99
169
|
def self.build(context)
|
100
170
|
unless context.config.regional_endpoint
|
@@ -151,6 +221,48 @@ module Aws::ResilienceHub
|
|
151
221
|
end
|
152
222
|
end
|
153
223
|
|
224
|
+
class DescribeAppVersion
|
225
|
+
def self.build(context)
|
226
|
+
unless context.config.regional_endpoint
|
227
|
+
endpoint = context.config.endpoint.to_s
|
228
|
+
end
|
229
|
+
Aws::ResilienceHub::EndpointParameters.new(
|
230
|
+
region: context.config.region,
|
231
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
232
|
+
use_fips: context.config.use_fips_endpoint,
|
233
|
+
endpoint: endpoint,
|
234
|
+
)
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
238
|
+
class DescribeAppVersionAppComponent
|
239
|
+
def self.build(context)
|
240
|
+
unless context.config.regional_endpoint
|
241
|
+
endpoint = context.config.endpoint.to_s
|
242
|
+
end
|
243
|
+
Aws::ResilienceHub::EndpointParameters.new(
|
244
|
+
region: context.config.region,
|
245
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
246
|
+
use_fips: context.config.use_fips_endpoint,
|
247
|
+
endpoint: endpoint,
|
248
|
+
)
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
class DescribeAppVersionResource
|
253
|
+
def self.build(context)
|
254
|
+
unless context.config.regional_endpoint
|
255
|
+
endpoint = context.config.endpoint.to_s
|
256
|
+
end
|
257
|
+
Aws::ResilienceHub::EndpointParameters.new(
|
258
|
+
region: context.config.region,
|
259
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
260
|
+
use_fips: context.config.use_fips_endpoint,
|
261
|
+
endpoint: endpoint,
|
262
|
+
)
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
154
266
|
class DescribeAppVersionResourcesResolutionStatus
|
155
267
|
def self.build(context)
|
156
268
|
unless context.config.regional_endpoint
|
@@ -277,6 +389,34 @@ module Aws::ResilienceHub
|
|
277
389
|
end
|
278
390
|
end
|
279
391
|
|
392
|
+
class ListAppInputSources
|
393
|
+
def self.build(context)
|
394
|
+
unless context.config.regional_endpoint
|
395
|
+
endpoint = context.config.endpoint.to_s
|
396
|
+
end
|
397
|
+
Aws::ResilienceHub::EndpointParameters.new(
|
398
|
+
region: context.config.region,
|
399
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
400
|
+
use_fips: context.config.use_fips_endpoint,
|
401
|
+
endpoint: endpoint,
|
402
|
+
)
|
403
|
+
end
|
404
|
+
end
|
405
|
+
|
406
|
+
class ListAppVersionAppComponents
|
407
|
+
def self.build(context)
|
408
|
+
unless context.config.regional_endpoint
|
409
|
+
endpoint = context.config.endpoint.to_s
|
410
|
+
end
|
411
|
+
Aws::ResilienceHub::EndpointParameters.new(
|
412
|
+
region: context.config.region,
|
413
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
414
|
+
use_fips: context.config.use_fips_endpoint,
|
415
|
+
endpoint: endpoint,
|
416
|
+
)
|
417
|
+
end
|
418
|
+
end
|
419
|
+
|
280
420
|
class ListAppVersionResourceMappings
|
281
421
|
def self.build(context)
|
282
422
|
unless context.config.regional_endpoint
|
@@ -543,6 +683,48 @@ module Aws::ResilienceHub
|
|
543
683
|
end
|
544
684
|
end
|
545
685
|
|
686
|
+
class UpdateAppVersion
|
687
|
+
def self.build(context)
|
688
|
+
unless context.config.regional_endpoint
|
689
|
+
endpoint = context.config.endpoint.to_s
|
690
|
+
end
|
691
|
+
Aws::ResilienceHub::EndpointParameters.new(
|
692
|
+
region: context.config.region,
|
693
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
694
|
+
use_fips: context.config.use_fips_endpoint,
|
695
|
+
endpoint: endpoint,
|
696
|
+
)
|
697
|
+
end
|
698
|
+
end
|
699
|
+
|
700
|
+
class UpdateAppVersionAppComponent
|
701
|
+
def self.build(context)
|
702
|
+
unless context.config.regional_endpoint
|
703
|
+
endpoint = context.config.endpoint.to_s
|
704
|
+
end
|
705
|
+
Aws::ResilienceHub::EndpointParameters.new(
|
706
|
+
region: context.config.region,
|
707
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
708
|
+
use_fips: context.config.use_fips_endpoint,
|
709
|
+
endpoint: endpoint,
|
710
|
+
)
|
711
|
+
end
|
712
|
+
end
|
713
|
+
|
714
|
+
class UpdateAppVersionResource
|
715
|
+
def self.build(context)
|
716
|
+
unless context.config.regional_endpoint
|
717
|
+
endpoint = context.config.endpoint.to_s
|
718
|
+
end
|
719
|
+
Aws::ResilienceHub::EndpointParameters.new(
|
720
|
+
region: context.config.region,
|
721
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
722
|
+
use_fips: context.config.use_fips_endpoint,
|
723
|
+
endpoint: endpoint,
|
724
|
+
)
|
725
|
+
end
|
726
|
+
end
|
727
|
+
|
546
728
|
class UpdateResiliencyPolicy
|
547
729
|
def self.build(context)
|
548
730
|
unless context.config.regional_endpoint
|
@@ -60,6 +60,10 @@ module Aws::ResilienceHub
|
|
60
60
|
Aws::ResilienceHub::Endpoints::AddDraftAppVersionResourceMappings.build(context)
|
61
61
|
when :create_app
|
62
62
|
Aws::ResilienceHub::Endpoints::CreateApp.build(context)
|
63
|
+
when :create_app_version_app_component
|
64
|
+
Aws::ResilienceHub::Endpoints::CreateAppVersionAppComponent.build(context)
|
65
|
+
when :create_app_version_resource
|
66
|
+
Aws::ResilienceHub::Endpoints::CreateAppVersionResource.build(context)
|
63
67
|
when :create_recommendation_template
|
64
68
|
Aws::ResilienceHub::Endpoints::CreateRecommendationTemplate.build(context)
|
65
69
|
when :create_resiliency_policy
|
@@ -68,6 +72,12 @@ module Aws::ResilienceHub
|
|
68
72
|
Aws::ResilienceHub::Endpoints::DeleteApp.build(context)
|
69
73
|
when :delete_app_assessment
|
70
74
|
Aws::ResilienceHub::Endpoints::DeleteAppAssessment.build(context)
|
75
|
+
when :delete_app_input_source
|
76
|
+
Aws::ResilienceHub::Endpoints::DeleteAppInputSource.build(context)
|
77
|
+
when :delete_app_version_app_component
|
78
|
+
Aws::ResilienceHub::Endpoints::DeleteAppVersionAppComponent.build(context)
|
79
|
+
when :delete_app_version_resource
|
80
|
+
Aws::ResilienceHub::Endpoints::DeleteAppVersionResource.build(context)
|
71
81
|
when :delete_recommendation_template
|
72
82
|
Aws::ResilienceHub::Endpoints::DeleteRecommendationTemplate.build(context)
|
73
83
|
when :delete_resiliency_policy
|
@@ -76,6 +86,12 @@ module Aws::ResilienceHub
|
|
76
86
|
Aws::ResilienceHub::Endpoints::DescribeApp.build(context)
|
77
87
|
when :describe_app_assessment
|
78
88
|
Aws::ResilienceHub::Endpoints::DescribeAppAssessment.build(context)
|
89
|
+
when :describe_app_version
|
90
|
+
Aws::ResilienceHub::Endpoints::DescribeAppVersion.build(context)
|
91
|
+
when :describe_app_version_app_component
|
92
|
+
Aws::ResilienceHub::Endpoints::DescribeAppVersionAppComponent.build(context)
|
93
|
+
when :describe_app_version_resource
|
94
|
+
Aws::ResilienceHub::Endpoints::DescribeAppVersionResource.build(context)
|
79
95
|
when :describe_app_version_resources_resolution_status
|
80
96
|
Aws::ResilienceHub::Endpoints::DescribeAppVersionResourcesResolutionStatus.build(context)
|
81
97
|
when :describe_app_version_template
|
@@ -94,6 +110,10 @@ module Aws::ResilienceHub
|
|
94
110
|
Aws::ResilienceHub::Endpoints::ListAppComponentCompliances.build(context)
|
95
111
|
when :list_app_component_recommendations
|
96
112
|
Aws::ResilienceHub::Endpoints::ListAppComponentRecommendations.build(context)
|
113
|
+
when :list_app_input_sources
|
114
|
+
Aws::ResilienceHub::Endpoints::ListAppInputSources.build(context)
|
115
|
+
when :list_app_version_app_components
|
116
|
+
Aws::ResilienceHub::Endpoints::ListAppVersionAppComponents.build(context)
|
97
117
|
when :list_app_version_resource_mappings
|
98
118
|
Aws::ResilienceHub::Endpoints::ListAppVersionResourceMappings.build(context)
|
99
119
|
when :list_app_version_resources
|
@@ -132,6 +152,12 @@ module Aws::ResilienceHub
|
|
132
152
|
Aws::ResilienceHub::Endpoints::UntagResource.build(context)
|
133
153
|
when :update_app
|
134
154
|
Aws::ResilienceHub::Endpoints::UpdateApp.build(context)
|
155
|
+
when :update_app_version
|
156
|
+
Aws::ResilienceHub::Endpoints::UpdateAppVersion.build(context)
|
157
|
+
when :update_app_version_app_component
|
158
|
+
Aws::ResilienceHub::Endpoints::UpdateAppVersionAppComponent.build(context)
|
159
|
+
when :update_app_version_resource
|
160
|
+
Aws::ResilienceHub::Endpoints::UpdateAppVersionResource.build(context)
|
135
161
|
when :update_resiliency_policy
|
136
162
|
Aws::ResilienceHub::Endpoints::UpdateResiliencyPolicy.build(context)
|
137
163
|
end
|