lib/aws-sdk-opensearchservice/plugins/endpoints.rb in aws-sdk-opensearchservice-1.56.0 vs lib/aws-sdk-opensearchservice/plugins/endpoints.rb in aws-sdk-opensearchservice-1.57.0

- old
+ new

@@ -25,11 +25,11 @@ # @api private class Handler < Seahorse::Client::Handler def call(context) unless context[:discovered_endpoint] - params = parameters_for_operation(context) + params = Aws::OpenSearchService::Endpoints.parameters_for_operation(context) endpoint = context.config.endpoint_provider.resolve_endpoint(params) context.http_request.endpoint = endpoint.url apply_endpoint_headers(context, endpoint.headers) @@ -63,140 +63,9 @@ .compact .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) } .join(',') context.http_request.headers[key] = value - end - end - - def parameters_for_operation(context) - case context.operation_name - when :accept_inbound_connection - Aws::OpenSearchService::Endpoints::AcceptInboundConnection.build(context) - when :add_data_source - Aws::OpenSearchService::Endpoints::AddDataSource.build(context) - when :add_tags - Aws::OpenSearchService::Endpoints::AddTags.build(context) - when :associate_package - Aws::OpenSearchService::Endpoints::AssociatePackage.build(context) - when :authorize_vpc_endpoint_access - Aws::OpenSearchService::Endpoints::AuthorizeVpcEndpointAccess.build(context) - when :cancel_domain_config_change - Aws::OpenSearchService::Endpoints::CancelDomainConfigChange.build(context) - when :cancel_service_software_update - Aws::OpenSearchService::Endpoints::CancelServiceSoftwareUpdate.build(context) - when :create_domain - Aws::OpenSearchService::Endpoints::CreateDomain.build(context) - when :create_outbound_connection - Aws::OpenSearchService::Endpoints::CreateOutboundConnection.build(context) - when :create_package - Aws::OpenSearchService::Endpoints::CreatePackage.build(context) - when :create_vpc_endpoint - Aws::OpenSearchService::Endpoints::CreateVpcEndpoint.build(context) - when :delete_data_source - Aws::OpenSearchService::Endpoints::DeleteDataSource.build(context) - when :delete_domain - Aws::OpenSearchService::Endpoints::DeleteDomain.build(context) - when :delete_inbound_connection - Aws::OpenSearchService::Endpoints::DeleteInboundConnection.build(context) - when :delete_outbound_connection - Aws::OpenSearchService::Endpoints::DeleteOutboundConnection.build(context) - when :delete_package - Aws::OpenSearchService::Endpoints::DeletePackage.build(context) - when :delete_vpc_endpoint - Aws::OpenSearchService::Endpoints::DeleteVpcEndpoint.build(context) - when :describe_domain - Aws::OpenSearchService::Endpoints::DescribeDomain.build(context) - when :describe_domain_auto_tunes - Aws::OpenSearchService::Endpoints::DescribeDomainAutoTunes.build(context) - when :describe_domain_change_progress - Aws::OpenSearchService::Endpoints::DescribeDomainChangeProgress.build(context) - when :describe_domain_config - Aws::OpenSearchService::Endpoints::DescribeDomainConfig.build(context) - when :describe_domain_health - Aws::OpenSearchService::Endpoints::DescribeDomainHealth.build(context) - when :describe_domain_nodes - Aws::OpenSearchService::Endpoints::DescribeDomainNodes.build(context) - when :describe_domains - Aws::OpenSearchService::Endpoints::DescribeDomains.build(context) - when :describe_dry_run_progress - Aws::OpenSearchService::Endpoints::DescribeDryRunProgress.build(context) - when :describe_inbound_connections - Aws::OpenSearchService::Endpoints::DescribeInboundConnections.build(context) - when :describe_instance_type_limits - Aws::OpenSearchService::Endpoints::DescribeInstanceTypeLimits.build(context) - when :describe_outbound_connections - Aws::OpenSearchService::Endpoints::DescribeOutboundConnections.build(context) - when :describe_packages - Aws::OpenSearchService::Endpoints::DescribePackages.build(context) - when :describe_reserved_instance_offerings - Aws::OpenSearchService::Endpoints::DescribeReservedInstanceOfferings.build(context) - when :describe_reserved_instances - Aws::OpenSearchService::Endpoints::DescribeReservedInstances.build(context) - when :describe_vpc_endpoints - Aws::OpenSearchService::Endpoints::DescribeVpcEndpoints.build(context) - when :dissociate_package - Aws::OpenSearchService::Endpoints::DissociatePackage.build(context) - when :get_compatible_versions - Aws::OpenSearchService::Endpoints::GetCompatibleVersions.build(context) - when :get_data_source - Aws::OpenSearchService::Endpoints::GetDataSource.build(context) - when :get_domain_maintenance_status - Aws::OpenSearchService::Endpoints::GetDomainMaintenanceStatus.build(context) - when :get_package_version_history - Aws::OpenSearchService::Endpoints::GetPackageVersionHistory.build(context) - when :get_upgrade_history - Aws::OpenSearchService::Endpoints::GetUpgradeHistory.build(context) - when :get_upgrade_status - Aws::OpenSearchService::Endpoints::GetUpgradeStatus.build(context) - when :list_data_sources - Aws::OpenSearchService::Endpoints::ListDataSources.build(context) - when :list_domain_maintenances - Aws::OpenSearchService::Endpoints::ListDomainMaintenances.build(context) - when :list_domain_names - Aws::OpenSearchService::Endpoints::ListDomainNames.build(context) - when :list_domains_for_package - Aws::OpenSearchService::Endpoints::ListDomainsForPackage.build(context) - when :list_instance_type_details - Aws::OpenSearchService::Endpoints::ListInstanceTypeDetails.build(context) - when :list_packages_for_domain - Aws::OpenSearchService::Endpoints::ListPackagesForDomain.build(context) - when :list_scheduled_actions - Aws::OpenSearchService::Endpoints::ListScheduledActions.build(context) - when :list_tags - Aws::OpenSearchService::Endpoints::ListTags.build(context) - when :list_versions - Aws::OpenSearchService::Endpoints::ListVersions.build(context) - when :list_vpc_endpoint_access - Aws::OpenSearchService::Endpoints::ListVpcEndpointAccess.build(context) - when :list_vpc_endpoints - Aws::OpenSearchService::Endpoints::ListVpcEndpoints.build(context) - when :list_vpc_endpoints_for_domain - Aws::OpenSearchService::Endpoints::ListVpcEndpointsForDomain.build(context) - when :purchase_reserved_instance_offering - Aws::OpenSearchService::Endpoints::PurchaseReservedInstanceOffering.build(context) - when :reject_inbound_connection - Aws::OpenSearchService::Endpoints::RejectInboundConnection.build(context) - when :remove_tags - Aws::OpenSearchService::Endpoints::RemoveTags.build(context) - when :revoke_vpc_endpoint_access - Aws::OpenSearchService::Endpoints::RevokeVpcEndpointAccess.build(context) - when :start_domain_maintenance - Aws::OpenSearchService::Endpoints::StartDomainMaintenance.build(context) - when :start_service_software_update - Aws::OpenSearchService::Endpoints::StartServiceSoftwareUpdate.build(context) - when :update_data_source - Aws::OpenSearchService::Endpoints::UpdateDataSource.build(context) - when :update_domain_config - Aws::OpenSearchService::Endpoints::UpdateDomainConfig.build(context) - when :update_package - Aws::OpenSearchService::Endpoints::UpdatePackage.build(context) - when :update_scheduled_action - Aws::OpenSearchService::Endpoints::UpdateScheduledAction.build(context) - when :update_vpc_endpoint - Aws::OpenSearchService::Endpoints::UpdateVpcEndpoint.build(context) - when :upgrade_domain - Aws::OpenSearchService::Endpoints::UpgradeDomain.build(context) end end end def add_handlers(handlers, _config)