lib/aws-sdk-translate/endpoints.rb in aws-sdk-translate-1.50.0 vs lib/aws-sdk-translate/endpoints.rb in aws-sdk-translate-1.51.0
- old
+ new
@@ -219,9 +219,23 @@
endpoint: endpoint,
)
end
end
+ class TranslateDocument
+ def self.build(context)
+ unless context.config.regional_endpoint
+ endpoint = context.config.endpoint.to_s
+ end
+ Aws::Translate::EndpointParameters.new(
+ region: context.config.region,
+ use_dual_stack: context.config.use_dualstack_endpoint,
+ use_fips: context.config.use_fips_endpoint,
+ endpoint: endpoint,
+ )
+ end
+ end
+
class TranslateText
def self.build(context)
unless context.config.regional_endpoint
endpoint = context.config.endpoint.to_s
end