Fugue.AWS.ECS.Cluster

Module Members

external

(Function)

Create a reference to an externally defined Cluster.

Example usage:

cluster: ECS.Cluster.external("default", AWS.Us-west-2)

Type Signature

 fun (String, Region) -> Cluster
Argument: name

The name of the target cluster.

Type: String

Argument: region

The region containing the target cluster.

Type: Region

Returns:

A reference to the specified cluster.

Type: Cluster

new

(Function)

new Cluster (Constructor)

Call this constructor to create a new Fugue.Core.AWS.ECS.Cluster value.

Example usage:

cluster: ECS.Cluster.new {
  name: "my-cluster",
  region: AWS.Us-west-2,
}

Type Signature

 fun { name: String,
       region: Region} -> Cluster
Argument: name

The name of the cluster. Must be 1-255 characters and consist of letters, numbers, underscores, and dashes.

Type: String

Argument: region

The region in which to create the cluster.

@return

Type: Region

Returns:
Type: Cluster

region

(Function)

Return the region for a given cluster. Works on externals.

Type Signature

 fun (Cluster) -> Region
Argument: cluster

The cluster whose region to return.

Type: Cluster

Returns:

Region containing the cluster.

Type: Region