lib/aws-sdk-applicationautoscaling/endpoints.rb in aws-sdk-applicationautoscaling-1.96.0 vs lib/aws-sdk-applicationautoscaling/endpoints.rb in aws-sdk-applicationautoscaling-1.97.0

- old
+ new

@@ -10,150 +10,11 @@ module Aws::ApplicationAutoScaling # @api private module Endpoints - class DeleteScalingPolicy - def self.build(context) - Aws::ApplicationAutoScaling::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 DeleteScheduledAction - def self.build(context) - Aws::ApplicationAutoScaling::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::ApplicationAutoScaling::EndpointParameters.create(context.config) end - - class DeregisterScalableTarget - def self.build(context) - Aws::ApplicationAutoScaling::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 DescribeScalableTargets - def self.build(context) - Aws::ApplicationAutoScaling::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 DescribeScalingActivities - def self.build(context) - Aws::ApplicationAutoScaling::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 DescribeScalingPolicies - def self.build(context) - Aws::ApplicationAutoScaling::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 DescribeScheduledActions - def self.build(context) - Aws::ApplicationAutoScaling::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 ListTagsForResource - def self.build(context) - Aws::ApplicationAutoScaling::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 PutScalingPolicy - def self.build(context) - Aws::ApplicationAutoScaling::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 PutScheduledAction - def self.build(context) - Aws::ApplicationAutoScaling::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 RegisterScalableTarget - def self.build(context) - Aws::ApplicationAutoScaling::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 TagResource - def self.build(context) - Aws::ApplicationAutoScaling::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 UntagResource - def self.build(context) - Aws::ApplicationAutoScaling::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