Skip to content
v2.278.0

KubeApiServerConfigProperty Struct ​

The configuration for the Kubernetes API server on an Amazon EKS cluster.

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 kubeApiServerConfigProperty: eks.CfnCluster.KubeApiServerConfigProperty = {
  eventTtl: 'eventTtl',
  serviceNodePortRange: {
    maxPort: 123,
    minPort: 123,
  },
};
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

kube_api_server_config_property = eks.CfnCluster.KubeApiServerConfigProperty(
    event_ttl="eventTtl",
    service_node_port_range=eks.CfnCluster.ServiceNodePortRangeProperty(
        max_port=123,
        min_port=123
    )
)
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.*;

KubeApiServerConfigProperty kubeApiServerConfigProperty = KubeApiServerConfigProperty.builder()
        .eventTtl("eventTtl")
        .serviceNodePortRange(ServiceNodePortRangeProperty.builder()
                .maxPort(123)
                .minPort(123)
                .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 kubeApiServerConfigProperty = new KubeApiServerConfigProperty {
    EventTtl = "eventTtl",
    ServiceNodePortRange = new ServiceNodePortRangeProperty {
        MaxPort = 123,
        MinPort = 123
    }
};
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"

kubeApiServerConfigProperty := &KubeApiServerConfigProperty{
	EventTtl: jsii.String("eventTtl"),
	ServiceNodePortRange: &ServiceNodePortRangeProperty{
		MaxPort: jsii.Number(123),
		MinPort: jsii.Number(123),
	},
}

Properties ​

eventTtloptionalstringevent_ttloptionalstreventTtloptionalStringEventTtloptionalstringEventTtloptional*string #
The duration that Kubernetes events are retained (e.g., 30m, 1h).
serviceNodePortRangeoptionalIResolvable | CfnCluster.ServiceNodePortRangePropertyservice_node_port_rangeoptionaltyping.Union[IResolvable, ServiceNodePortRangeProperty]serviceNodePortRangeoptionalIResolvableServiceNodePortRangeoptionalIResolvableServiceNodePortRangeoptionalinterface{} #
The port range for Kubernetes NodePort services.