use of com.netflix.titus.api.connector.cloud.InstanceLaunchConfiguration in project titus-control-plane by Netflix.
the class AwsInstanceCloudConnector method getInstanceLaunchConfiguration.
@Override
public Observable<List<InstanceLaunchConfiguration>> getInstanceLaunchConfiguration(List<String> launchConfigurationIds) {
if (launchConfigurationIds.isEmpty()) {
return Observable.just(Collections.emptyList());
}
DescribeLaunchConfigurationsRequest request = new DescribeLaunchConfigurationsRequest().withLaunchConfigurationNames(launchConfigurationIds);
Observable<DescribeLaunchConfigurationsResult> observable = toObservable(request, autoScalingClient::describeLaunchConfigurationsAsync);
return observable.map(response -> toInstanceLaunchConfigurations(response.getLaunchConfigurations())).timeout(configuration.getAwsRequestTimeoutMs(), TimeUnit.MILLISECONDS);
}
Aggregations