aws-sdk-lambda 1.135.0 → 1.137.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +20 -284
- data/lib/aws-sdk-lambda/client_api.rb +0 -125
- data/lib/aws-sdk-lambda/endpoint_parameters.rb +9 -6
- data/lib/aws-sdk-lambda/endpoints.rb +2 -801
- data/lib/aws-sdk-lambda/errors.rb +0 -21
- data/lib/aws-sdk-lambda/plugins/endpoints.rb +1 -152
- data/lib/aws-sdk-lambda/types.rb +3 -225
- data/lib/aws-sdk-lambda.rb +1 -1
- data/sig/client.rbs +0 -55
- data/sig/errors.rbs +0 -4
- data/sig/types.rbs +0 -63
- metadata +4 -4
@@ -52,15 +52,18 @@ module Aws::Lambda
|
|
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
|