Example usage for com.amazonaws.services.autoscaling.model DeleteLifecycleHookRequest DeleteLifecycleHookRequest

List of usage examples for com.amazonaws.services.autoscaling.model DeleteLifecycleHookRequest DeleteLifecycleHookRequest

Introduction

In this page you can find the example usage for com.amazonaws.services.autoscaling.model DeleteLifecycleHookRequest DeleteLifecycleHookRequest.

Prototype

DeleteLifecycleHookRequest

Source Link

Usage

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
}