aws-sdk-apprunner 1.18.0 → 1.20.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 +12 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-apprunner/client.rb +37 -1
- data/lib/aws-sdk-apprunner/client_api.rb +8 -0
- data/lib/aws-sdk-apprunner/endpoint_parameters.rb +3 -0
- data/lib/aws-sdk-apprunner/endpoint_provider.rb +35 -96
- data/lib/aws-sdk-apprunner/types.rb +44 -695
- data/lib/aws-sdk-apprunner.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: 824175fa0d58cb18e1506a2436cda103e8b01b5793cb2a867127660dcfaf9d1e
|
4
|
+
data.tar.gz: d91323ac79a36f91b48d15458159c7bd01d2e8e6f364cb4a15c1739c08ba477a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6125866b8437d5a754d5bda2e2a03fbbac5d2fb58d617cf29c47b9fdd74888a3c5cfc90bda5a64e9d92c455e29b563fc686aeb10b271470bcae13fd5cfd05420
|
7
|
+
data.tar.gz: 10d07e87b22ed2cf334cfcd91927eaa0fd3eb980f76f051422eea0c11d784fe468745614e3c0f36e2bf2154f71928f7651ca92c2b8383b9cd5c7c6330b008a48
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.20.0 (2023-01-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
10
|
+
|
11
|
+
1.19.0 (2023-01-05)
|
12
|
+
------------------
|
13
|
+
|
14
|
+
* Feature - This release adds support of securely referencing secrets and configuration data that are stored in Secrets Manager and SSM Parameter Store by adding them as environment secrets in your App Runner service.
|
15
|
+
|
4
16
|
1.18.0 (2022-10-31)
|
5
17
|
------------------
|
6
18
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.20.0
|
@@ -784,6 +784,9 @@ module Aws::AppRunner
|
|
784
784
|
# runtime_environment_variables: {
|
785
785
|
# "RuntimeEnvironmentVariablesKey" => "RuntimeEnvironmentVariablesValue",
|
786
786
|
# },
|
787
|
+
# runtime_environment_secrets: {
|
788
|
+
# "RuntimeEnvironmentSecretsName" => "RuntimeEnvironmentSecretsValue",
|
789
|
+
# },
|
787
790
|
# },
|
788
791
|
# },
|
789
792
|
# },
|
@@ -795,6 +798,9 @@ module Aws::AppRunner
|
|
795
798
|
# },
|
796
799
|
# start_command: "StartCommand",
|
797
800
|
# port: "String",
|
801
|
+
# runtime_environment_secrets: {
|
802
|
+
# "RuntimeEnvironmentSecretsName" => "RuntimeEnvironmentSecretsValue",
|
803
|
+
# },
|
798
804
|
# },
|
799
805
|
# image_repository_type: "ECR", # required, accepts ECR, ECR_PUBLIC
|
800
806
|
# },
|
@@ -862,11 +868,15 @@ module Aws::AppRunner
|
|
862
868
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.port #=> String
|
863
869
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables #=> Hash
|
864
870
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
|
871
|
+
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets #=> Hash
|
872
|
+
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
|
865
873
|
# resp.service.source_configuration.image_repository.image_identifier #=> String
|
866
874
|
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables #=> Hash
|
867
875
|
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
|
868
876
|
# resp.service.source_configuration.image_repository.image_configuration.start_command #=> String
|
869
877
|
# resp.service.source_configuration.image_repository.image_configuration.port #=> String
|
878
|
+
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_secrets #=> Hash
|
879
|
+
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
|
870
880
|
# resp.service.source_configuration.image_repository.image_repository_type #=> String, one of "ECR", "ECR_PUBLIC"
|
871
881
|
# resp.service.source_configuration.auto_deployments_enabled #=> Boolean
|
872
882
|
# resp.service.source_configuration.authentication_configuration.connection_arn #=> String
|
@@ -1201,11 +1211,15 @@ module Aws::AppRunner
|
|
1201
1211
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.port #=> String
|
1202
1212
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables #=> Hash
|
1203
1213
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
|
1214
|
+
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets #=> Hash
|
1215
|
+
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
|
1204
1216
|
# resp.service.source_configuration.image_repository.image_identifier #=> String
|
1205
1217
|
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables #=> Hash
|
1206
1218
|
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
|
1207
1219
|
# resp.service.source_configuration.image_repository.image_configuration.start_command #=> String
|
1208
1220
|
# resp.service.source_configuration.image_repository.image_configuration.port #=> String
|
1221
|
+
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_secrets #=> Hash
|
1222
|
+
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
|
1209
1223
|
# resp.service.source_configuration.image_repository.image_repository_type #=> String, one of "ECR", "ECR_PUBLIC"
|
1210
1224
|
# resp.service.source_configuration.auto_deployments_enabled #=> Boolean
|
1211
1225
|
# resp.service.source_configuration.authentication_configuration.connection_arn #=> String
|
@@ -1517,11 +1531,15 @@ module Aws::AppRunner
|
|
1517
1531
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.port #=> String
|
1518
1532
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables #=> Hash
|
1519
1533
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
|
1534
|
+
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets #=> Hash
|
1535
|
+
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
|
1520
1536
|
# resp.service.source_configuration.image_repository.image_identifier #=> String
|
1521
1537
|
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables #=> Hash
|
1522
1538
|
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
|
1523
1539
|
# resp.service.source_configuration.image_repository.image_configuration.start_command #=> String
|
1524
1540
|
# resp.service.source_configuration.image_repository.image_configuration.port #=> String
|
1541
|
+
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_secrets #=> Hash
|
1542
|
+
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
|
1525
1543
|
# resp.service.source_configuration.image_repository.image_repository_type #=> String, one of "ECR", "ECR_PUBLIC"
|
1526
1544
|
# resp.service.source_configuration.auto_deployments_enabled #=> Boolean
|
1527
1545
|
# resp.service.source_configuration.authentication_configuration.connection_arn #=> String
|
@@ -2203,11 +2221,15 @@ module Aws::AppRunner
|
|
2203
2221
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.port #=> String
|
2204
2222
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables #=> Hash
|
2205
2223
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
|
2224
|
+
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets #=> Hash
|
2225
|
+
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
|
2206
2226
|
# resp.service.source_configuration.image_repository.image_identifier #=> String
|
2207
2227
|
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables #=> Hash
|
2208
2228
|
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
|
2209
2229
|
# resp.service.source_configuration.image_repository.image_configuration.start_command #=> String
|
2210
2230
|
# resp.service.source_configuration.image_repository.image_configuration.port #=> String
|
2231
|
+
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_secrets #=> Hash
|
2232
|
+
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
|
2211
2233
|
# resp.service.source_configuration.image_repository.image_repository_type #=> String, one of "ECR", "ECR_PUBLIC"
|
2212
2234
|
# resp.service.source_configuration.auto_deployments_enabled #=> Boolean
|
2213
2235
|
# resp.service.source_configuration.authentication_configuration.connection_arn #=> String
|
@@ -2283,11 +2305,15 @@ module Aws::AppRunner
|
|
2283
2305
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.port #=> String
|
2284
2306
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables #=> Hash
|
2285
2307
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
|
2308
|
+
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets #=> Hash
|
2309
|
+
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
|
2286
2310
|
# resp.service.source_configuration.image_repository.image_identifier #=> String
|
2287
2311
|
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables #=> Hash
|
2288
2312
|
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
|
2289
2313
|
# resp.service.source_configuration.image_repository.image_configuration.start_command #=> String
|
2290
2314
|
# resp.service.source_configuration.image_repository.image_configuration.port #=> String
|
2315
|
+
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_secrets #=> Hash
|
2316
|
+
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
|
2291
2317
|
# resp.service.source_configuration.image_repository.image_repository_type #=> String, one of "ECR", "ECR_PUBLIC"
|
2292
2318
|
# resp.service.source_configuration.auto_deployments_enabled #=> Boolean
|
2293
2319
|
# resp.service.source_configuration.authentication_configuration.connection_arn #=> String
|
@@ -2504,6 +2530,9 @@ module Aws::AppRunner
|
|
2504
2530
|
# runtime_environment_variables: {
|
2505
2531
|
# "RuntimeEnvironmentVariablesKey" => "RuntimeEnvironmentVariablesValue",
|
2506
2532
|
# },
|
2533
|
+
# runtime_environment_secrets: {
|
2534
|
+
# "RuntimeEnvironmentSecretsName" => "RuntimeEnvironmentSecretsValue",
|
2535
|
+
# },
|
2507
2536
|
# },
|
2508
2537
|
# },
|
2509
2538
|
# },
|
@@ -2515,6 +2544,9 @@ module Aws::AppRunner
|
|
2515
2544
|
# },
|
2516
2545
|
# start_command: "StartCommand",
|
2517
2546
|
# port: "String",
|
2547
|
+
# runtime_environment_secrets: {
|
2548
|
+
# "RuntimeEnvironmentSecretsName" => "RuntimeEnvironmentSecretsValue",
|
2549
|
+
# },
|
2518
2550
|
# },
|
2519
2551
|
# image_repository_type: "ECR", # required, accepts ECR, ECR_PUBLIC
|
2520
2552
|
# },
|
@@ -2573,11 +2605,15 @@ module Aws::AppRunner
|
|
2573
2605
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.port #=> String
|
2574
2606
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables #=> Hash
|
2575
2607
|
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
|
2608
|
+
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets #=> Hash
|
2609
|
+
# resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
|
2576
2610
|
# resp.service.source_configuration.image_repository.image_identifier #=> String
|
2577
2611
|
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables #=> Hash
|
2578
2612
|
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
|
2579
2613
|
# resp.service.source_configuration.image_repository.image_configuration.start_command #=> String
|
2580
2614
|
# resp.service.source_configuration.image_repository.image_configuration.port #=> String
|
2615
|
+
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_secrets #=> Hash
|
2616
|
+
# resp.service.source_configuration.image_repository.image_configuration.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
|
2581
2617
|
# resp.service.source_configuration.image_repository.image_repository_type #=> String, one of "ECR", "ECR_PUBLIC"
|
2582
2618
|
# resp.service.source_configuration.auto_deployments_enabled #=> Boolean
|
2583
2619
|
# resp.service.source_configuration.authentication_configuration.connection_arn #=> String
|
@@ -2679,7 +2715,7 @@ module Aws::AppRunner
|
|
2679
2715
|
params: params,
|
2680
2716
|
config: config)
|
2681
2717
|
context[:gem_name] = 'aws-sdk-apprunner'
|
2682
|
-
context[:gem_version] = '1.
|
2718
|
+
context[:gem_version] = '1.20.0'
|
2683
2719
|
Seahorse::Client::Request.new(handlers, context)
|
2684
2720
|
end
|
2685
2721
|
|
@@ -147,6 +147,9 @@ module Aws::AppRunner
|
|
147
147
|
ResumeServiceResponse = Shapes::StructureShape.new(name: 'ResumeServiceResponse')
|
148
148
|
RoleArn = Shapes::StringShape.new(name: 'RoleArn')
|
149
149
|
Runtime = Shapes::StringShape.new(name: 'Runtime')
|
150
|
+
RuntimeEnvironmentSecrets = Shapes::MapShape.new(name: 'RuntimeEnvironmentSecrets')
|
151
|
+
RuntimeEnvironmentSecretsName = Shapes::StringShape.new(name: 'RuntimeEnvironmentSecretsName')
|
152
|
+
RuntimeEnvironmentSecretsValue = Shapes::StringShape.new(name: 'RuntimeEnvironmentSecretsValue')
|
150
153
|
RuntimeEnvironmentVariables = Shapes::MapShape.new(name: 'RuntimeEnvironmentVariables')
|
151
154
|
RuntimeEnvironmentVariablesKey = Shapes::StringShape.new(name: 'RuntimeEnvironmentVariablesKey')
|
152
155
|
RuntimeEnvironmentVariablesValue = Shapes::StringShape.new(name: 'RuntimeEnvironmentVariablesValue')
|
@@ -247,6 +250,7 @@ module Aws::AppRunner
|
|
247
250
|
CodeConfigurationValues.add_member(:start_command, Shapes::ShapeRef.new(shape: StartCommand, location_name: "StartCommand"))
|
248
251
|
CodeConfigurationValues.add_member(:port, Shapes::ShapeRef.new(shape: String, location_name: "Port"))
|
249
252
|
CodeConfigurationValues.add_member(:runtime_environment_variables, Shapes::ShapeRef.new(shape: RuntimeEnvironmentVariables, location_name: "RuntimeEnvironmentVariables"))
|
253
|
+
CodeConfigurationValues.add_member(:runtime_environment_secrets, Shapes::ShapeRef.new(shape: RuntimeEnvironmentSecrets, location_name: "RuntimeEnvironmentSecrets"))
|
250
254
|
CodeConfigurationValues.struct_class = Types::CodeConfigurationValues
|
251
255
|
|
252
256
|
CodeRepository.add_member(:repository_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "RepositoryUrl"))
|
@@ -444,6 +448,7 @@ module Aws::AppRunner
|
|
444
448
|
ImageConfiguration.add_member(:runtime_environment_variables, Shapes::ShapeRef.new(shape: RuntimeEnvironmentVariables, location_name: "RuntimeEnvironmentVariables"))
|
445
449
|
ImageConfiguration.add_member(:start_command, Shapes::ShapeRef.new(shape: StartCommand, location_name: "StartCommand"))
|
446
450
|
ImageConfiguration.add_member(:port, Shapes::ShapeRef.new(shape: String, location_name: "Port"))
|
451
|
+
ImageConfiguration.add_member(:runtime_environment_secrets, Shapes::ShapeRef.new(shape: RuntimeEnvironmentSecrets, location_name: "RuntimeEnvironmentSecrets"))
|
447
452
|
ImageConfiguration.struct_class = Types::ImageConfiguration
|
448
453
|
|
449
454
|
ImageRepository.add_member(:image_identifier, Shapes::ShapeRef.new(shape: ImageIdentifier, required: true, location_name: "ImageIdentifier"))
|
@@ -594,6 +599,9 @@ module Aws::AppRunner
|
|
594
599
|
ResumeServiceResponse.add_member(:operation_id, Shapes::ShapeRef.new(shape: UUID, location_name: "OperationId"))
|
595
600
|
ResumeServiceResponse.struct_class = Types::ResumeServiceResponse
|
596
601
|
|
602
|
+
RuntimeEnvironmentSecrets.key = Shapes::ShapeRef.new(shape: RuntimeEnvironmentSecretsName)
|
603
|
+
RuntimeEnvironmentSecrets.value = Shapes::ShapeRef.new(shape: RuntimeEnvironmentSecretsValue)
|
604
|
+
|
597
605
|
RuntimeEnvironmentVariables.key = Shapes::ShapeRef.new(shape: RuntimeEnvironmentVariablesKey)
|
598
606
|
RuntimeEnvironmentVariables.value = Shapes::ShapeRef.new(shape: RuntimeEnvironmentVariablesValue)
|
599
607
|
|
@@ -50,6 +50,9 @@ module Aws::AppRunner
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
+
if self[:region].nil?
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
+
end
|
53
56
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
57
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
58
|
if self[:use_dual_stack].nil?
|
@@ -9,104 +9,43 @@
|
|
9
9
|
|
10
10
|
module Aws::AppRunner
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
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://apprunner-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
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://apprunner-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
+
end
|
37
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
41
|
+
return Aws::Endpoints::Endpoint.new(url: "https://apprunner.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
42
|
+
end
|
43
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
44
|
+
end
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://apprunner.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
21
46
|
end
|
22
|
-
|
23
|
-
end
|
47
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
48
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
49
|
end
|
28
|
-
|
29
|
-
# @api private
|
30
|
-
RULES = <<-JSON
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
-
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
|
33
|
-
dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
|
34
|
-
cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
|
35
|
-
dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJ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