# frozen_string_literal: true # WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::Translate module Endpoints class CreateParallelData 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 DeleteParallelData 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 DeleteTerminology 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 DescribeTextTranslationJob 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 GetParallelData 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 GetTerminology 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 ImportTerminology 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 ListLanguages 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 ListParallelData 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 ListTagsForResource 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 ListTerminologies 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 ListTextTranslationJobs 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 StartTextTranslationJob 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 StopTextTranslationJob 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 TagResource 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 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 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 UntagResource 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 UpdateParallelData 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 end end