lib/aws-sdk-augmentedairuntime/endpoints.rb in aws-sdk-augmentedairuntime-1.48.0 vs lib/aws-sdk-augmentedairuntime/endpoints.rb in aws-sdk-augmentedairuntime-1.49.0

- old
+ new

@@ -10,62 +10,11 @@ module Aws::AugmentedAIRuntime # @api private module Endpoints - class DeleteHumanLoop - def self.build(context) - Aws::AugmentedAIRuntime::EndpointParameters.new( - region: context.config.region, - use_dual_stack: context.config.use_dualstack_endpoint, - use_fips: context.config.use_fips_endpoint, - endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, - ) - end - end - class DescribeHumanLoop - def self.build(context) - Aws::AugmentedAIRuntime::EndpointParameters.new( - region: context.config.region, - use_dual_stack: context.config.use_dualstack_endpoint, - use_fips: context.config.use_fips_endpoint, - endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, - ) - end + def self.parameters_for_operation(context) + Aws::AugmentedAIRuntime::EndpointParameters.create(context.config) end - - class ListHumanLoops - def self.build(context) - Aws::AugmentedAIRuntime::EndpointParameters.new( - region: context.config.region, - use_dual_stack: context.config.use_dualstack_endpoint, - use_fips: context.config.use_fips_endpoint, - endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, - ) - end - end - - class StartHumanLoop - def self.build(context) - Aws::AugmentedAIRuntime::EndpointParameters.new( - region: context.config.region, - use_dual_stack: context.config.use_dualstack_endpoint, - use_fips: context.config.use_fips_endpoint, - endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, - ) - end - end - - class StopHumanLoop - def self.build(context) - Aws::AugmentedAIRuntime::EndpointParameters.new( - region: context.config.region, - use_dual_stack: context.config.use_dualstack_endpoint, - use_fips: context.config.use_fips_endpoint, - endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s, - ) - end - end - end end