lib/aws-sdk-computeoptimizer/endpoints.rb in aws-sdk-computeoptimizer-1.68.0 vs lib/aws-sdk-computeoptimizer/endpoints.rb in aws-sdk-computeoptimizer-1.69.0
- old
+ new
@@ -10,293 +10,11 @@
module Aws::ComputeOptimizer
# @api private
module Endpoints
- class DeleteRecommendationPreferences
- def self.build(context)
- Aws::ComputeOptimizer::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 DescribeRecommendationExportJobs
- def self.build(context)
- Aws::ComputeOptimizer::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::ComputeOptimizer::EndpointParameters.create(context.config)
end
-
- class ExportAutoScalingGroupRecommendations
- def self.build(context)
- Aws::ComputeOptimizer::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 ExportEBSVolumeRecommendations
- def self.build(context)
- Aws::ComputeOptimizer::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 ExportEC2InstanceRecommendations
- def self.build(context)
- Aws::ComputeOptimizer::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 ExportECSServiceRecommendations
- def self.build(context)
- Aws::ComputeOptimizer::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 ExportLambdaFunctionRecommendations
- def self.build(context)
- Aws::ComputeOptimizer::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 ExportLicenseRecommendations
- def self.build(context)
- Aws::ComputeOptimizer::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 ExportRDSDatabaseRecommendations
- def self.build(context)
- Aws::ComputeOptimizer::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 GetAutoScalingGroupRecommendations
- def self.build(context)
- Aws::ComputeOptimizer::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 GetEBSVolumeRecommendations
- def self.build(context)
- Aws::ComputeOptimizer::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 GetEC2InstanceRecommendations
- def self.build(context)
- Aws::ComputeOptimizer::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 GetEC2RecommendationProjectedMetrics
- def self.build(context)
- Aws::ComputeOptimizer::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 GetECSServiceRecommendationProjectedMetrics
- def self.build(context)
- Aws::ComputeOptimizer::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 GetECSServiceRecommendations
- def self.build(context)
- Aws::ComputeOptimizer::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 GetEffectiveRecommendationPreferences
- def self.build(context)
- Aws::ComputeOptimizer::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 GetEnrollmentStatus
- def self.build(context)
- Aws::ComputeOptimizer::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 GetEnrollmentStatusesForOrganization
- def self.build(context)
- Aws::ComputeOptimizer::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 GetLambdaFunctionRecommendations
- def self.build(context)
- Aws::ComputeOptimizer::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 GetLicenseRecommendations
- def self.build(context)
- Aws::ComputeOptimizer::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 GetRDSDatabaseRecommendationProjectedMetrics
- def self.build(context)
- Aws::ComputeOptimizer::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 GetRDSDatabaseRecommendations
- def self.build(context)
- Aws::ComputeOptimizer::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 GetRecommendationPreferences
- def self.build(context)
- Aws::ComputeOptimizer::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 GetRecommendationSummaries
- def self.build(context)
- Aws::ComputeOptimizer::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 PutRecommendationPreferences
- def self.build(context)
- Aws::ComputeOptimizer::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::ComputeOptimizer::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