Example usage for com.amazonaws.services.cloudformation.model DeleteStackRequest withStackName

List of usage examples for com.amazonaws.services.cloudformation.model DeleteStackRequest withStackName

Introduction

In this page you can find the example usage for com.amazonaws.services.cloudformation.model DeleteStackRequest withStackName.

Prototype


public DeleteStackRequest withStackName(String stackName) 

Source Link

Document

The name or the unique stack ID that is associated with the stack.

Usage

From source file:com.carrotgarden.maven.aws.cfn.CarrotCloudForm.java

License:BSD License

/**
 *//*from  w  w  w  .  ja va  2  s . co  m*/
public Stack stackDelete() throws Exception {

    final DeleteStackRequest request = new DeleteStackRequest();

    request.withStackName(name);

    amazonClient.deleteStack(request);

    final Stack stack = waitForStackDelete();

    return stack;

}