class LaunchConfigurationHandler {

    public void removeOldLaunchConfiguration(LaunchConfiguration oldLaunchConfiguration, AmazonAutoScalingClient autoScalingClient,
            CloudContext cloudContext) {
        autoScalingClient.deleteLaunchConfiguration(
                new DeleteLaunchConfigurationRequest().withLaunchConfigurationName(oldLaunchConfiguration.getLaunchConfigurationName()));
        CloudResource cloudResource = CloudResource.builder()
                .name(oldLaunchConfiguration.getLaunchConfigurationName())
                .type(ResourceType.AWS_LAUNCHCONFIGURATION)
                .build();
        resourceNotifier.notifyDeletion(cloudResource, cloudContext);
    }

}