List of usage examples for com.amazonaws.services.autoscaling.model DeleteLifecycleHookRequest DeleteLifecycleHookRequest
DeleteLifecycleHookRequest
From source file:com.pinterest.arcee.autoscaling.AwsAutoScaleGroupManager.java
License:Apache License
@Override public void deleteLifecycleHook(String groupName) throws Exception { List<String> lifecycleHooks = getLifecycleHookIds(groupName); for (String hookId : lifecycleHooks) { DeleteLifecycleHookRequest request = new DeleteLifecycleHookRequest(); request.setLifecycleHookName(hookId); request.setAutoScalingGroupName(groupName); aasClient.deleteLifecycleHook(request); }// w ww . j a v a 2 s .c om }