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

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

Introduction

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

Prototype


public CreateStackRequest withTags(java.util.Collection<Tag> tags) 

Source Link

Document

Key-value pairs to associate with this stack.

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 {/*  w  w  w. j a  v a2  s  .  c o 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);
}