Skip to content
v2.277.0

ServiceLoadBalancerAddressOptions Struct ​

Options for fetching a ServiceLoadBalancerAddress.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_eks as eks } from 'aws-cdk-lib';
const serviceLoadBalancerAddressOptions: eks.ServiceLoadBalancerAddressOptions = {
  namespace: 'namespace',
  timeout: cdk.Duration.minutes(30),
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_eks as eks

service_load_balancer_address_options = eks.ServiceLoadBalancerAddressOptions(
    namespace="namespace",
    timeout=cdk.Duration.minutes(30)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.eks.*;

ServiceLoadBalancerAddressOptions serviceLoadBalancerAddressOptions = ServiceLoadBalancerAddressOptions.builder()
        .namespace("namespace")
        .timeout(Duration.minutes(30))
        .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;
using Amazon.CDK.AWS.EKS;

var serviceLoadBalancerAddressOptions = new ServiceLoadBalancerAddressOptions {
    Namespace = "namespace",
    Timeout = Duration.Minutes(30)
};
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 cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

serviceLoadBalancerAddressOptions := &ServiceLoadBalancerAddressOptions{
	Namespace: jsii.String("namespace"),
	Timeout: cdk.Duration_Minutes(jsii.Number(30)),
}

Properties ​

namespaceoptionalstringnamespaceoptionalstrnamespaceoptionalStringNamespaceoptionalstringNamespaceoptional*string= 'default'#
The namespace the service belongs to.
timeoutoptionalDurationtimeoutoptionalDurationtimeoutoptionalDurationTimeoutoptionalDurationTimeoutoptionalDuration= Duration.minutes(5)#
Timeout for waiting on the load balancer address.