Class CfnCluster.ClusterSettingsProperty
The settings to use when creating a cluster.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ClusterSettingsProperty : Object, CfnCluster.IClusterSettingsProperty
Syntax (vb)
Public Class ClusterSettingsProperty
Inherits Object
Implements CfnCluster.IClusterSettingsProperty
Remarks
This parameter is used to turn on CloudWatch Container Insights for a cluster.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var clusterSettingsProperty = new ClusterSettingsProperty {
Name = "name",
Value = "value"
};
Synopsis
Constructors
ClusterSettingsProperty() |
Properties
Name | The name of the cluster setting. |
Value | The value to set for the cluster setting. The supported values are |
Constructors
ClusterSettingsProperty()
public ClusterSettingsProperty()
Properties
Name
The name of the cluster setting.
public string Name { get; set; }
Property Value
System.String
Remarks
The value is containerInsights
.
Value
The value to set for the cluster setting. The supported values are enabled
and disabled
.
public string Value { get; set; }
Property Value
System.String
Remarks
If you set name
to containerInsights
and value
to enabled
, CloudWatch Container Insights will be on for the cluster, otherwise it will be off unless the containerInsights
account setting is turned on. If a cluster value is specified, it will override the containerInsights
value set with PutAccountSetting or PutAccountSettingDefault .