Search in sources :

Example 1 with DeleteLaunchConfigurationRequest

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);
}
Also used : AmazonAutoScaling(com.amazonaws.services.autoscaling.AmazonAutoScaling) DeleteLaunchConfigurationRequest(com.amazonaws.services.autoscaling.model.DeleteLaunchConfigurationRequest)

Aggregations

AmazonAutoScaling (com.amazonaws.services.autoscaling.AmazonAutoScaling)1 DeleteLaunchConfigurationRequest (com.amazonaws.services.autoscaling.model.DeleteLaunchConfigurationRequest)1