setLoadBalancerListenerSSLCertificate method

Future<void> setLoadBalancerListenerSSLCertificate({
  1. required String loadBalancerName,
  2. required int loadBalancerPort,
  3. required String sSLCertificateId,
})

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.

May throw CertificateNotFoundException. May throw AccessPointNotFoundException. May throw ListenerNotFoundException. May throw InvalidConfigurationRequestException. May throw UnsupportedProtocolException.

Parameter loadBalancerName : The name of the load balancer.

Parameter loadBalancerPort : The port that uses the specified SSL certificate.

Parameter sSLCertificateId : The Amazon Resource Name (ARN) of the SSL certificate.

Implementation

Future<void> setLoadBalancerListenerSSLCertificate({
  required String loadBalancerName,
  required int loadBalancerPort,
  required String sSLCertificateId,
}) async {
  ArgumentError.checkNotNull(loadBalancerName, 'loadBalancerName');
  ArgumentError.checkNotNull(loadBalancerPort, 'loadBalancerPort');
  ArgumentError.checkNotNull(sSLCertificateId, 'sSLCertificateId');
  final $request = <String, dynamic>{};
  $request['LoadBalancerName'] = loadBalancerName;
  $request['LoadBalancerPort'] = loadBalancerPort;
  $request['SSLCertificateId'] = sSLCertificateId;
  await _protocol.send(
    $request,
    action: 'SetLoadBalancerListenerSSLCertificate',
    version: '2012-06-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['SetLoadBalancerListenerSSLCertificateInput'],
    shapes: shapes,
    resultWrapper: 'SetLoadBalancerListenerSSLCertificateResult',
  );
}