Show / Hide Table of Contents

Class Cluster

Provides an ECS cluster.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var foo = new Aws.Ecs.Cluster("foo", new Aws.Ecs.ClusterArgs
    {
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Cluster
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ecs
Assembly: Pulumi.Aws.dll
Syntax
public class Cluster : CustomResource

Constructors

View Source

Cluster(String, ClusterArgs, CustomResourceOptions)

Create a Cluster resource with the given unique name, arguments, and options.

Declaration
public Cluster(string name, ClusterArgs args = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ClusterArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Arn

The Amazon Resource Name (ARN) that identifies the cluster

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

CapacityProviders

List of short names of one or more capacity providers to associate with the cluster. Valid values also include FARGATE and FARGATE_SPOT.

Declaration
public Output<ImmutableArray<string>> CapacityProviders { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

DefaultCapacityProviderStrategies

The capacity provider strategy to use by default for the cluster. Can be one or more. Defined below.

Declaration
public Output<ImmutableArray<ClusterDefaultCapacityProviderStrategy>> DefaultCapacityProviderStrategies { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<ClusterDefaultCapacityProviderStrategy>>
View Source

Name

The name of the cluster (up to 255 letters, numbers, hyphens, and underscores)

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Settings

Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster. Defined below.

Declaration
public Output<ImmutableArray<ClusterSetting>> Settings { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<ClusterSetting>>
View Source

Tags

Key-value map of resource tags

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>

Methods

View Source

Get(String, Input<String>, ClusterState, CustomResourceOptions)

Get an existing Cluster resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Cluster Get(string name, Input<string> id, ClusterState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ClusterState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Cluster
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.