Equivalent of terraform destroy
.
A TerraformApply
task will be bound to TerraformPlan task
in order to retrieve most of its configuration.
Fields inherited from class | Fields |
---|---|
class AbstractTerraformTask |
JSON_FORMAT, NO_COLOR |
Constructor and description |
---|
TerraformDestroy
(TerraformPlanProvider plan, java.lang.String workspaceName) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
setAutoApprove(java.lang.Boolean state) Set auto-approve mode. |
|
void |
setTargets(java.util.List<java.lang.String> resourceNames) |
Set auto-approve mode. Once set it cannot be unset for the duration of the Gradle task graph execution.
state
- true
will auto-approve destruction.