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,
       resourceId: Optional<String> } -> 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.

Type: Region

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:ecs:us-east-1:123456789012:cluster/my-cluster

Type: Optional<String>

Returns:

A Fugue.Core.AWS.ECS.Cluster value.

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