lib/aws-sdk-costoptimizationhub/endpoints.rb in aws-sdk-costoptimizationhub-1.17.0 vs lib/aws-sdk-costoptimizationhub/endpoints.rb in aws-sdk-costoptimizationhub-1.18.0
- old
+ new
@@ -10,84 +10,11 @@
module Aws::CostOptimizationHub
# @api private
module Endpoints
- class GetPreferences
- def self.build(context)
- Aws::CostOptimizationHub::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 GetRecommendation
- def self.build(context)
- Aws::CostOptimizationHub::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::CostOptimizationHub::EndpointParameters.create(context.config)
end
-
- class ListEnrollmentStatuses
- def self.build(context)
- Aws::CostOptimizationHub::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 ListRecommendationSummaries
- def self.build(context)
- Aws::CostOptimizationHub::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 ListRecommendations
- def self.build(context)
- Aws::CostOptimizationHub::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 UpdateEnrollmentStatus
- def self.build(context)
- Aws::CostOptimizationHub::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 UpdatePreferences
- def self.build(context)
- Aws::CostOptimizationHub::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