Example usage for com.amazonaws.services.cloudformation.model CreateStackRequest withDisableRollback

List of usage examples for com.amazonaws.services.cloudformation.model CreateStackRequest withDisableRollback

Introduction

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

Prototype


public CreateStackRequest withDisableRollback(Boolean disableRollback) 

Source Link

Document

Set to true to disable rollback of the stack if stack creation failed.

Usage

From source file:br.com.ingenieux.mojo.cloudformation.PushStackMojo.java

License:Apache License

private CreateStackResult createStack() throws Exception {
    CreateStackRequest req = new CreateStackRequest().withStackName(stackName)
            .withCapabilities(Capability.CAPABILITY_IAM);

    if (null != this.destinationS3Uri) {
        req.withTemplateURL(generateExternalUrl(this.destinationS3Uri));
    } else {//from  ww w  .  j  a va2 s . co  m
        req.withTemplateBody(templateBody);
    }

    req.withNotificationARNs(notificationArns);

    req.withParameters(parameters);
    req.withResourceTypes(resourceTypes);
    req.withDisableRollback(disableRollback);
    req.withTags(tags);
    req.withTimeoutInMinutes(timeoutInMinutes);

    return getService().createStack(req);
}