BlockStorageProperty Struct
Indicates the current configuration of the block storage capability on your EKS Auto Mode cluster.
For example, if the capability is enabled or disabled. If the block storage capability is enabled, EKS Auto Mode will create and delete EBS volumes in your AWS account. For more information, see EKS Auto Mode block storage capability in the Amazon EKS User Guide .
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks as eks } from 'aws-cdk-lib';
const blockStorageProperty: eks.CfnCluster.BlockStorageProperty = {
enabled: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_eks as eks
block_storage_property = eks.CfnCluster.BlockStorageProperty(
enabled=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.eks.*;
BlockStorageProperty blockStorageProperty = BlockStorageProperty.builder()
.enabled(false)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EKS;
var blockStorageProperty = new BlockStorageProperty {
Enabled = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
blockStorageProperty := &BlockStorageProperty{
Enabled: jsii.Boolean(false),
}
Properties
enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{}#Indicates if the block storage capability is enabled on your EKS Auto Mode cluster.
If the block storage capability is enabled, EKS Auto Mode will create and delete EBS volumes in your AWS account.