aws-sdk-databasemigrationservice 1.88.0 → 1.111.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 +115 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-databasemigrationservice/client.rb +803 -85
- data/lib/aws-sdk-databasemigrationservice/client_api.rb +272 -6
- data/lib/aws-sdk-databasemigrationservice/endpoint_parameters.rb +9 -6
- data/lib/aws-sdk-databasemigrationservice/endpoint_provider.rb +4 -4
- data/lib/aws-sdk-databasemigrationservice/endpoints.rb +2 -1482
- data/lib/aws-sdk-databasemigrationservice/errors.rb +16 -0
- data/lib/aws-sdk-databasemigrationservice/plugins/endpoints.rb +23 -226
- data/lib/aws-sdk-databasemigrationservice/types.rb +821 -76
- data/lib/aws-sdk-databasemigrationservice.rb +16 -12
- data/sig/client.rbs +2779 -0
- data/sig/errors.rbs +95 -0
- data/sig/resource.rbs +83 -0
- data/sig/types.rbs +2923 -0
- data/sig/waiters.rbs +153 -0
- metadata +16 -11
@@ -52,15 +52,18 @@ module Aws::DatabaseMigrationService
|
|
52
52
|
self[:region] = options[:region]
|
53
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
-
if self[:use_dual_stack].nil?
|
56
|
-
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
-
end
|
58
55
|
self[:use_fips] = options[:use_fips]
|
59
56
|
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
-
if self[:use_fips].nil?
|
61
|
-
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
-
end
|
63
57
|
self[:endpoint] = options[:endpoint]
|
64
58
|
end
|
59
|
+
|
60
|
+
def self.create(config, options={})
|
61
|
+
new({
|
62
|
+
region: config.region,
|
63
|
+
use_dual_stack: config.use_dualstack_endpoint,
|
64
|
+
use_fips: config.use_fips_endpoint,
|
65
|
+
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
66
|
+
}.merge(options))
|
67
|
+
end
|
65
68
|
end
|
66
69
|
end
|
@@ -32,14 +32,14 @@ module Aws::DatabaseMigrationService
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
36
|
-
if Aws::Endpoints::Matchers.string_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
|
37
37
|
return Aws::Endpoints::Endpoint.new(url: "https://dms.#{region}.amazonaws.com", headers: {}, properties: {})
|
38
38
|
end
|
39
|
-
if Aws::Endpoints::Matchers.string_equals?(
|
39
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso")
|
40
40
|
return Aws::Endpoints::Endpoint.new(url: "https://dms.#{region}.c2s.ic.gov", headers: {}, properties: {})
|
41
41
|
end
|
42
|
-
if Aws::Endpoints::Matchers.string_equals?(
|
42
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-b")
|
43
43
|
return Aws::Endpoints::Endpoint.new(url: "https://dms.#{region}.sc2s.sgov.gov", headers: {}, properties: {})
|
44
44
|
end
|
45
45
|
return Aws::Endpoints::Endpoint.new(url: "https://dms-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|