lib/aws-sdk-migrationhubstrategyrecommendations/endpoints.rb in aws-sdk-migrationhubstrategyrecommendations-1.28.0 vs lib/aws-sdk-migrationhubstrategyrecommendations/endpoints.rb in aws-sdk-migrationhubstrategyrecommendations-1.29.0

- old
+ new

@@ -12,311 +12,245 @@ # @api private module Endpoints class GetApplicationComponentDetails def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 GetApplicationComponentStrategies def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 GetAssessment def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 GetImportFileTask def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 GetLatestAssessmentId def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 GetPortfolioPreferences def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 GetPortfolioSummary def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 GetRecommendationReportDetails def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 GetServerDetails def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 GetServerStrategies def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 ListAnalyzableServers def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 ListApplicationComponents def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 ListCollectors def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 ListImportFileTask def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 ListServers def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 PutPortfolioPreferences def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 StartAssessment def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 StartImportFileTask def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 StartRecommendationReportGeneration def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 StopAssessment def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 UpdateApplicationComponentConfig def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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 UpdateServerConfig def self.build(context) - unless context.config.regional_endpoint - endpoint = context.config.endpoint.to_s - end Aws::MigrationHubStrategyRecommendations::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