ElasticLoadBalancingProperty Struct
Indicates the current configuration of the load balancing capability on your EKS Auto Mode cluster.
For example, if the capability is enabled or disabled. For more information, see EKS Auto Mode load balancing capability in the Amazon EKS User Guide .
| Source | |
|---|---|
| Type last changed |
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 elasticLoadBalancingProperty: eks.CfnCluster.ElasticLoadBalancingProperty = {
enabled: false,
gatewayApi: {
crds: {
managed: 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
elastic_load_balancing_property = eks.CfnCluster.ElasticLoadBalancingProperty(
enabled=False,
gateway_api=eks.CfnCluster.GatewayApiProperty(
crds=eks.CfnCluster.GatewayApiCrdsProperty(
managed=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.*;
ElasticLoadBalancingProperty elasticLoadBalancingProperty = ElasticLoadBalancingProperty.builder()
.enabled(false)
.gatewayApi(GatewayApiProperty.builder()
.crds(GatewayApiCrdsProperty.builder()
.managed(false)
.build())
.build())
.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 elasticLoadBalancingProperty = new ElasticLoadBalancingProperty {
Enabled = false,
GatewayApi = new GatewayApiProperty {
Crds = new GatewayApiCrdsProperty {
Managed = 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"
elasticLoadBalancingProperty := &ElasticLoadBalancingProperty{
Enabled: jsii.Boolean(false),
GatewayApi: &GatewayApiProperty{
Crds: &GatewayApiCrdsProperty{
Managed: jsii.Boolean(false),
},
},
}
Properties
enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #Indicates if the load balancing capability is enabled on your EKS Auto Mode cluster.
If the load balancing capability is enabled, EKS Auto Mode will create and delete load balancers in your AWS account.
gatewayApioptionalIResolvable | CfnCluster.GatewayApiPropertygateway_apioptionaltyping.Union[IResolvable, GatewayApiProperty]gatewayApioptionalIResolvableGatewayApioptionalIResolvableGatewayApioptionalinterface{} #The Gateway API configuration for the load balancing capability of EKS Auto Mode.