Example usage for com.amazonaws.services.cloudformation.model UpdateStackRequest withNotificationARNs

List of usage examples for com.amazonaws.services.cloudformation.model UpdateStackRequest withNotificationARNs

Introduction

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

Prototype


public UpdateStackRequest withNotificationARNs(java.util.Collection<String> notificationARNs) 

Source Link

Document

Amazon Simple Notification Service topic Amazon Resource Names (ARNs) that AWS CloudFormation associates with the stack.

Usage

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

License:Apache License

private UpdateStackResult updateStack() throws Exception {
    UpdateStackRequest req = new UpdateStackRequest().withStackName(stackName)
            .withCapabilities(Capability.CAPABILITY_IAM);

    if (null != this.destinationS3Uri) {
        req.withTemplateURL(generateExternalUrl(this.destinationS3Uri));
    } else {/*  w  w  w  .j  a v a2s. com*/
        req.withTemplateBody(templateBody);
    }

    req.withNotificationARNs(notificationArns);

    req.withParameters(parameters);
    req.withResourceTypes(resourceTypes);
    req.withTags(tags);

    try {
        return getService().updateStack(req);
    } catch (AmazonServiceException exc) {
        if ("No updates are to be performed.".equals(exc.getErrorMessage())) {
            return null;
        }

        throw exc;
    }
}