use of com.amazonaws.services.autoscaling.model.DeleteLaunchConfigurationRequest in project incubator-gobblin by apache.
the class AWSSdkClient method deleteLaunchConfiguration.
/**
* Delete a launch configuration by its name
*
* @param launchConfigName Name of launch config to delete
*/
public void deleteLaunchConfiguration(String launchConfigName) {
final AmazonAutoScaling autoScaling = getAmazonAutoScalingClient();
final DeleteLaunchConfigurationRequest deleteLaunchConfigurationRequest = new DeleteLaunchConfigurationRequest().withLaunchConfigurationName(launchConfigName);
autoScaling.deleteLaunchConfiguration(deleteLaunchConfigurationRequest);
LOGGER.info("Deleted Launch Configuration: " + launchConfigName);
}
Aggregations