Class CfnCluster.ClusterLoggingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eks.CfnCluster.ClusterLoggingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.ClusterLoggingProperty>
- Enclosing interface:
CfnCluster.ClusterLoggingProperty
@Stability(Stable)
public static final class CfnCluster.ClusterLoggingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.ClusterLoggingProperty>
A builder for
CfnCluster.ClusterLoggingProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.enabledTypes
(List<? extends Object> enabledTypes) Sets the value ofCfnCluster.ClusterLoggingProperty.getEnabledTypes()
enabledTypes
(IResolvable enabledTypes) Sets the value ofCfnCluster.ClusterLoggingProperty.getEnabledTypes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabledTypes
@Stability(Stable) public CfnCluster.ClusterLoggingProperty.Builder enabledTypes(IResolvable enabledTypes) Sets the value ofCfnCluster.ClusterLoggingProperty.getEnabledTypes()
- Parameters:
enabledTypes
- The enabled control plane logs for your cluster. All log types are disabled if the array is empty.When updating a resource, you must include this
EnabledTypes
property if the previous CloudFormation template of the resource had it.- Returns:
this
-
enabledTypes
@Stability(Stable) public CfnCluster.ClusterLoggingProperty.Builder enabledTypes(List<? extends Object> enabledTypes) Sets the value ofCfnCluster.ClusterLoggingProperty.getEnabledTypes()
- Parameters:
enabledTypes
- The enabled control plane logs for your cluster. All log types are disabled if the array is empty.When updating a resource, you must include this
EnabledTypes
property if the previous CloudFormation template of the resource had it.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.ClusterLoggingProperty>
- Returns:
- a new instance of
CfnCluster.ClusterLoggingProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-