setLoadBalancerListenerSslCertificate

Sets the certificate that terminates the specified listener's SSL connections. The specified certificate replaces any prior certificate that was used on the same load balancer and port.

For more information about updating your SSL certificate, see Replace the SSL Certificate for Your Load Balancer in the Classic Load Balancers Guide.

Samples


fun main() { 
   //sampleStart 
   // This example replaces the existing SSL certificate for the specified HTTPS listener.
elasticLoadBalancingClient.setLoadBalancerListenerSslCertificate {
    loadBalancerName = "my-load-balancer"
    loadBalancerPort = 443
    sslCertificateId = "arn:aws:iam::123456789012:server-certificate/new-server-cert"
} 
   //sampleEnd
}