lib/aws-sdk-timestreamquery/endpoints.rb in aws-sdk-timestreamquery-1.40.0 vs lib/aws-sdk-timestreamquery/endpoints.rb in aws-sdk-timestreamquery-1.41.0

- old
+ new

@@ -12,213 +12,168 @@ # @api private module Endpoints class CancelQuery def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::TimestreamQuery::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, - endpoint: endpoint, + endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, ) end end class CreateScheduledQuery def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::TimestreamQuery::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, - endpoint: endpoint, + endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, ) end end class DeleteScheduledQuery def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::TimestreamQuery::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, - endpoint: endpoint, + endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, ) end end class DescribeAccountSettings def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::TimestreamQuery::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, - endpoint: endpoint, + endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, ) end end class DescribeEndpoints def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::TimestreamQuery::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, - endpoint: endpoint, + endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, ) end end class DescribeScheduledQuery def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::TimestreamQuery::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, - endpoint: endpoint, + endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, ) end end class ExecuteScheduledQuery def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::TimestreamQuery::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, - endpoint: endpoint, + endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, ) end end class ListScheduledQueries def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::TimestreamQuery::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, - endpoint: endpoint, + endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, ) end end class ListTagsForResource def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::TimestreamQuery::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, - endpoint: endpoint, + endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, ) end end class PrepareQuery def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::TimestreamQuery::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, - endpoint: endpoint, + endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, ) end end class Query def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::TimestreamQuery::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, - endpoint: endpoint, + endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, ) end end class TagResource def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::TimestreamQuery::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, - endpoint: endpoint, + endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, ) end end class UntagResource def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::TimestreamQuery::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, - endpoint: endpoint, + endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, ) end end class UpdateAccountSettings def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::TimestreamQuery::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, - endpoint: endpoint, + endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, ) end end class UpdateScheduledQuery def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::TimestreamQuery::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, - endpoint: endpoint, + endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, ) end end end