# 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::Polly # @api private module Endpoints class DeleteLexicon def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Polly::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 DescribeVoices def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Polly::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 GetLexicon def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Polly::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 GetSpeechSynthesisTask def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Polly::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 ListLexicons def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Polly::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 ListSpeechSynthesisTasks def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Polly::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 PutLexicon def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Polly::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 StartSpeechSynthesisTask def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Polly::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 SynthesizeSpeech def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Polly::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