setSubnets
Enables the Availability Zones for the specified public subnets for the specified Application Load Balancer, Network Load Balancer or Gateway Load Balancer. The specified subnets replace the previously enabled subnets.
Samples
fun main() {
//sampleStart
// This example enables the Availability Zones for the specified subnets for the specified load
// balancer.
val resp = elasticLoadBalancingV2Client.setSubnets {
loadBalancerArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"
subnets = listOf<String>(
"subnet-8360a9e7",
"subnet-b7d581c0"
)
}
//sampleEnd
}