Table of Contents

Module Members



Create a reference to an externally managed Stack.

Example usage:

stack: CloudFormation.Stack.external("my-external-stack", AWS.Us-west-2)

Type Signature

 fun (String, Region) -> Stack
Argument: stackID
Type: String
Argument: region

the region in which the stack exists

Type: Region


A reference to the specified stack

Type: Stack



new Stack (Constructor)

Call this constructor to create a new Fugue.Core.AWS.CloudFormation.Stack.

Example usage:

import Fugue.AWS.CloudFormation as CF
import Fugue.AWS as AWS

cf-stack: CF.Stack.new {
            stackName: "example-stack",
            region: AWS.Us-west-2,
            template: CF.URL("http://www.mytemplate.com")

Type Signature

 fun { stackName: String,
       description: Optional<String>,
       parameters: Optional<List<Parameter>>,
       disableRollback: Optional<Bool>,
       notificationARNs: Optional<List<Topic>>,
       timeoutInMinutes: Optional<Int>,
       capabilities: Optional<List<Capability>>,
       tags: Optional<List<Tag>>,
       onFailure: Optional<OnFailure>,
       stackPolicy: Optional<BodyOrURL>,
       region: Region,
       resourceTypes: Optional<List<String>>,
       template: BodyOrURL,
       resourceId: Optional<String> } -> Stack
Argument: stackName

The name of the stack. Unique by region.

Type: String

Argument: description

A string description of the resource

Type: Optional<String>

Argument: parameters

An optional list of Parameters

Type: Optional<List<Parameter>>

Argument: disableRollback

Set to true to disable rollback of the stack if creation fails. disableRollback and onFailure cannot both be true at once.

Type: Optional<Bool>

Argument: notificationARNs

SNS Topics to which to publish stack related events.

Type: Optional<List<Topic>>

Argument: timeoutInMinutes

The number of minutes to wait before stack creation fails

Type: Optional<Int>

Argument: capabilities

An optional list of Capabilitys to be used by CloudFormation in the creation of this stack

Type: Optional<List<Capability>>

Argument: tags

An optional list of Tags

Type: Optional<List<Tag>>

Argument: onFailure

Specifies what action to take if stack creation fails

Type: Optional<OnFailure>

Argument: stackPolicy

A string or URL containing the stack policy

Type: Optional<BodyOrURL>

Argument: region

The AWS region in which to create the stack

Type: Region

Argument: resourceTypes

An optional list of string resource types, such as “AWS::EC2::Instance”. If the list of resource types doesn’t include a resource being created, stack creation fails

Type: Optional<List<String>>

Argument: template

A string or URL containing the stack template

Type: BodyOrURL

Argument: resourceId

Resource ID of the resource to import with Fugue Import. This field is only honored on fugue run. The resource ID is the ARN. Mutable. Example: arn:aws:cloudformation:us-east-1:123456789012:stack/MyProductionStack/abc9dbf0-43c2-11e3-a6e8-50fa526be49c

Type: Optional<String>


A Fugue.Core.AWS.CloudFormation.Stack value

Type: Stack