aws-native logo
AWS Native v0.55.0, Mar 28 23

aws-native.ecs.Cluster

Create an Elastic Container Service (ECS) cluster.

Create Cluster Resource

new Cluster(name: string, args?: ClusterArgs, opts?: CustomResourceOptions);
@overload
def Cluster(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            capacity_providers: Optional[Sequence[str]] = None,
            cluster_name: Optional[str] = None,
            cluster_settings: Optional[Sequence[ClusterSettingsArgs]] = None,
            configuration: Optional[ClusterConfigurationArgs] = None,
            default_capacity_provider_strategy: Optional[Sequence[ClusterCapacityProviderStrategyItemArgs]] = None,
            service_connect_defaults: Optional[ClusterServiceConnectDefaultsArgs] = None,
            tags: Optional[Sequence[ClusterTagArgs]] = None)
@overload
def Cluster(resource_name: str,
            args: Optional[ClusterArgs] = None,
            opts: Optional[ResourceOptions] = None)
func NewCluster(ctx *Context, name string, args *ClusterArgs, opts ...ResourceOption) (*Cluster, error)
public Cluster(string name, ClusterArgs? args = null, CustomResourceOptions? opts = null)
public Cluster(String name, ClusterArgs args)
public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
type: aws-native:ecs:Cluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ClusterArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ClusterArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ClusterArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ClusterArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ClusterArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Cluster Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Cluster resource accepts the following input properties:

CapacityProviders []string
ClusterName string

A user-generated string that you use to identify your cluster. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.

ClusterSettings []ClusterSettingsArgs
Configuration ClusterConfigurationArgs
DefaultCapacityProviderStrategy []ClusterCapacityProviderStrategyItemArgs
ServiceConnectDefaults ClusterServiceConnectDefaultsArgs
Tags []ClusterTagArgs
capacityProviders List<String>
clusterName String

A user-generated string that you use to identify your cluster. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.

clusterSettings List<ClusterSettingsArgs>
configuration ClusterConfigurationArgs
defaultCapacityProviderStrategy List<ClusterCapacityProviderStrategyItemArgs>
serviceConnectDefaults ClusterServiceConnectDefaultsArgs
tags List<ClusterTagArgs>
capacityProviders string[]
clusterName string

A user-generated string that you use to identify your cluster. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.

clusterSettings ClusterSettingsArgs[]
configuration ClusterConfigurationArgs
defaultCapacityProviderStrategy ClusterCapacityProviderStrategyItemArgs[]
serviceConnectDefaults ClusterServiceConnectDefaultsArgs
tags ClusterTagArgs[]
capacityProviders List<String>
clusterName String

A user-generated string that you use to identify your cluster. If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.

clusterSettings List<Property Map>
configuration Property Map
defaultCapacityProviderStrategy List<Property Map>
serviceConnectDefaults Property Map
tags List<Property Map>

Outputs

All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:

Arn string

The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.

Id string

The provider-assigned unique ID for this managed resource.

Arn string

The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.

Id string

The provider-assigned unique ID for this managed resource.

arn String

The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.

id String

The provider-assigned unique ID for this managed resource.

arn string

The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.

id string

The provider-assigned unique ID for this managed resource.

arn str

The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.

id str

The provider-assigned unique ID for this managed resource.

arn String

The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster.

id String

The provider-assigned unique ID for this managed resource.

Supporting Types

ClusterCapacityProviderStrategyItem

base Integer
capacityProvider String
weight Integer
base number
capacityProvider string
weight number
base Number
capacityProvider String
weight Number

ClusterConfiguration

ClusterExecuteCommandConfiguration

ClusterExecuteCommandLogConfiguration

ClusterServiceConnectDefaults

Namespace string

Service Connect Namespace Name or ARN default for all services or tasks within this cluster

Namespace string

Service Connect Namespace Name or ARN default for all services or tasks within this cluster

namespace String

Service Connect Namespace Name or ARN default for all services or tasks within this cluster

namespace string

Service Connect Namespace Name or ARN default for all services or tasks within this cluster

namespace str

Service Connect Namespace Name or ARN default for all services or tasks within this cluster

namespace String

Service Connect Namespace Name or ARN default for all services or tasks within this cluster

ClusterSettings

Name string
Value string
Name string
Value string
name String
value String
name string
value string
name str
value str
name String
value String

ClusterTag

Key string
Value string
Key string
Value string
key String
value String
key string
value string
key str
value str
key String
value String

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0