AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the SetLoadBalancerListenerSSLCertificate operation. 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.
Namespace: Amazon.ElasticLoadBalancing.Model
Assembly: AWSSDK.ElasticLoadBalancing.dll
Version: 3.x.y.z
public class SetLoadBalancerListenerSSLCertificateRequest : AmazonElasticLoadBalancingRequest IAmazonWebServiceRequest
The SetLoadBalancerListenerSSLCertificateRequest type exposes the following members
Name | Description | |
---|---|---|
SetLoadBalancerListenerSSLCertificateRequest() |
Empty constructor used to set properties independently even when a simple constructor is available |
|
SetLoadBalancerListenerSSLCertificateRequest(string, int, string) |
Instantiates SetLoadBalancerListenerSSLCertificateRequest with the parameterized properties |
Name | Type | Description | |
---|---|---|---|
LoadBalancerName | System.String |
Gets and sets the property LoadBalancerName. The name of the load balancer. |
|
LoadBalancerPort | System.Int32 |
Gets and sets the property LoadBalancerPort. The port that uses the specified SSL certificate. |
|
SSLCertificateId | System.String |
Gets and sets the property SSLCertificateId. The Amazon Resource Name (ARN) of the SSL certificate. |
This example replaces the existing SSL certificate for the specified HTTPS listener.
var client = new AmazonElasticLoadBalancingClient(); var response = client.SetLoadBalancerListenerSSLCertificate(new SetLoadBalancerListenerSSLCertificateRequest { LoadBalancerName = "my-load-balancer", LoadBalancerPort = 443, SSLCertificateId = "arn:aws:iam::123456789012:server-certificate/new-server-cert" });
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5