Class CfnCluster
The AWS::ECS::Cluster resource creates an Amazon Elastic Container Service (Amazon ECS) cluster.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCluster : CfnResource, IInspectable, IClusterRef, IConstruct, IDependable, IEnvironmentAware, ITaggable
Syntax (vb)
Public Class CfnCluster Inherits CfnResource Implements IInspectable, IClusterRef, IConstruct, IDependable, IEnvironmentAware, ITaggable
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html
CloudformationResource: AWS::ECS::Cluster
ExampleMetadata: infused
Examples
new CfnCluster(this, "Cluster").With(new Mixins.ClusterSettings(new [] { new ClusterSettingsProperty { Name = "containerInsights", Value = "enhanced" } }));
Synopsis
Constructors
| CfnCluster(Construct, string, ICfnClusterProps?) | Create a new |
Properties
| AttrArn | The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CapacityProviders | The short name of one or more capacity providers to associate with the cluster. |
| CfnProperties | The |
| ClusterName | A user-generated string that you use to identify your cluster. |
| ClusterRef | A reference to a Cluster resource. |
| ClusterSettings | The settings to use when creating a cluster. |
| Configuration | The execute command and managed storage configuration for the cluster. |
| DefaultCapacityProviderStrategy | The default capacity provider strategy for the cluster. |
| ServiceConnectDefaults | Use this parameter to set a default Service Connect namespace. |
| Tags | Tag Manager which manages the tags for this resource. |
| TagsRaw | The metadata that you apply to the cluster to help you categorize and organize them. |
Methods
| ArnForCluster(IClusterRef) | The |
| FromClusterArn(Construct, string, string) | Creates a new IClusterRef from an ARN. |
| FromClusterName(Construct, string, string) | Creates a new IClusterRef from a clusterName. |
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnCluster(object) | Checks whether the given object is a CfnCluster. |
| RenderProperties(IDictionary<string, object>) | The |
Constructors
CfnCluster(Construct, string, ICfnClusterProps?)
Create a new AWS::ECS::Cluster.
public CfnCluster(Construct scope, string id, ICfnClusterProps? props = null)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnClusterProps
Resource properties.
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html
CloudformationResource: AWS::ECS::Cluster
ExampleMetadata: infused
Properties
AttrArn
The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster .
public virtual string AttrArn { get; }
Property Value
Remarks
CloudformationAttribute: Arn
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html
CloudformationResource: AWS::ECS::Cluster
ExampleMetadata: infused
CapacityProviders
The short name of one or more capacity providers to associate with the cluster.
public virtual string[]? CapacityProviders { get; set; }
Property Value
string[]
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html
CloudformationResource: AWS::ECS::Cluster
ExampleMetadata: infused
CfnProperties
The AWS::ECS::Cluster resource creates an Amazon Elastic Container Service (Amazon ECS) cluster.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html
CloudformationResource: AWS::ECS::Cluster
ExampleMetadata: infused
ClusterName
A user-generated string that you use to identify your cluster.
public virtual string? ClusterName { get; set; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html
CloudformationResource: AWS::ECS::Cluster
ExampleMetadata: infused
ClusterRef
A reference to a Cluster resource.
public virtual IClusterReference ClusterRef { get; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html
CloudformationResource: AWS::ECS::Cluster
ExampleMetadata: infused
ClusterSettings
The settings to use when creating a cluster.
public virtual object? ClusterSettings { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnCluster.IClusterSettingsProperty)[]
Configuration
The execute command and managed storage configuration for the cluster.
public virtual object? Configuration { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnCluster.IClusterConfigurationProperty
DefaultCapacityProviderStrategy
The default capacity provider strategy for the cluster.
public virtual object? DefaultCapacityProviderStrategy { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnCluster.ICapacityProviderStrategyItemProperty)[]
ServiceConnectDefaults
Use this parameter to set a default Service Connect namespace.
public virtual object? ServiceConnectDefaults { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnCluster.IServiceConnectDefaultsProperty
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html
CloudformationResource: AWS::ECS::Cluster
ExampleMetadata: infused
TagsRaw
The metadata that you apply to the cluster to help you categorize and organize them.
public virtual ICfnTag[]? TagsRaw { get; set; }
Property Value
ICfnTag[]
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html
CloudformationResource: AWS::ECS::Cluster
ExampleMetadata: infused
Methods
ArnForCluster(IClusterRef)
The AWS::ECS::Cluster resource creates an Amazon Elastic Container Service (Amazon ECS) cluster.
public static string ArnForCluster(IClusterRef resource)
Parameters
- resource IClusterRef
Returns
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html
CloudformationResource: AWS::ECS::Cluster
ExampleMetadata: infused
Examples
new CfnCluster(this, "Cluster").With(new Mixins.ClusterSettings(new [] { new ClusterSettingsProperty { Name = "containerInsights", Value = "enhanced" } }));
FromClusterArn(Construct, string, string)
Creates a new IClusterRef from an ARN.
public static IClusterRef FromClusterArn(Construct scope, string id, string arn)
Parameters
Returns
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html
CloudformationResource: AWS::ECS::Cluster
ExampleMetadata: infused
FromClusterName(Construct, string, string)
Creates a new IClusterRef from a clusterName.
public static IClusterRef FromClusterName(Construct scope, string id, string clusterName)
Parameters
Returns
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html
CloudformationResource: AWS::ECS::Cluster
ExampleMetadata: infused
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html
CloudformationResource: AWS::ECS::Cluster
ExampleMetadata: infused
IsCfnCluster(object)
Checks whether the given object is a CfnCluster.
public static bool IsCfnCluster(object x)
Parameters
- x object
Returns
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html
CloudformationResource: AWS::ECS::Cluster
ExampleMetadata: infused
RenderProperties(IDictionary<string, object>)
The AWS::ECS::Cluster resource creates an Amazon Elastic Container Service (Amazon ECS) cluster.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html
CloudformationResource: AWS::ECS::Cluster
ExampleMetadata: infused