Class ClusterSetting
- java.lang.Object
-
- software.amazon.awssdk.services.ecs.model.ClusterSetting
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ClusterSetting.Builder,ClusterSetting>
@Generated("software.amazon.awssdk:codegen") public final class ClusterSetting extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ClusterSetting.Builder,ClusterSetting>
The settings to use when creating a cluster. This parameter is used to turn on CloudWatch Container Insights with enhanced observability or CloudWatch Container Insights for a cluster.
Container Insights with enhanced observability provides all the Container Insights metrics, plus additional task and container metrics. This version supports enhanced observability for Amazon ECS clusters using the Amazon EC2 and Fargate launch types. After you configure Container Insights with enhanced observability on Amazon ECS, Container Insights auto-collects detailed infrastructure telemetry from the cluster level down to the container level in your environment and displays these critical performance data in curated dashboards removing the heavy lifting in observability set-up.
For more information, see Monitor Amazon ECS containers using Container Insights with enhanced observability in the Amazon Elastic Container Service Developer Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceClusterSetting.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClusterSetting.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ClusterSettingNamename()The name of the cluster setting.StringnameAsString()The name of the cluster setting.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ClusterSetting.Builder>serializableBuilderClass()ClusterSetting.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringvalue()The value to set for the cluster setting.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final ClusterSettingName name()
The name of the cluster setting. The value is
containerInsights.If the service returns an enum value that is not available in the current SDK version,
namewill returnClusterSettingName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The name of the cluster setting. The value is
containerInsights. - See Also:
ClusterSettingName
-
nameAsString
public final String nameAsString()
The name of the cluster setting. The value is
containerInsights.If the service returns an enum value that is not available in the current SDK version,
namewill returnClusterSettingName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The name of the cluster setting. The value is
containerInsights. - See Also:
ClusterSettingName
-
value
public final String value()
The value to set for the cluster setting. The supported values are
enhanced,enabled, anddisabled.To use Container Insights with enhanced observability, set the
containerInsightsaccount setting toenhanced.To use Container Insights, set the
containerInsightsaccount setting toenabled.If a cluster value is specified, it will override the
containerInsightsvalue set with PutAccountSetting or PutAccountSettingDefault.- Returns:
- The value to set for the cluster setting. The supported values are
enhanced,enabled, anddisabled.To use Container Insights with enhanced observability, set the
containerInsightsaccount setting toenhanced.To use Container Insights, set the
containerInsightsaccount setting toenabled.If a cluster value is specified, it will override the
containerInsightsvalue set with PutAccountSetting or PutAccountSettingDefault.
-
toBuilder
public ClusterSetting.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ClusterSetting.Builder,ClusterSetting>
-
builder
public static ClusterSetting.Builder builder()
-
serializableBuilderClass
public static Class<? extends ClusterSetting.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-