addListenerCertificates method
Future<AddListenerCertificatesOutput>
addListenerCertificates({
- required List<
Certificate> certificates, - required String listenerArn,
Adds the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener.
If the certificate in already in the certificate list, the call is successful but the certificate is not added again.
For more information, see HTTPS listeners in the Application Load Balancers Guide or TLS listeners in the Network Load Balancers Guide.
May throw ListenerNotFoundException. May throw TooManyCertificatesException. May throw CertificateNotFoundException.
Parameter certificates
:
The certificate to add. You can specify one certificate per call. Set
CertificateArn
to the certificate ARN but do not set
IsDefault
.
Parameter listenerArn
:
The Amazon Resource Name (ARN) of the listener.
Implementation
Future<AddListenerCertificatesOutput> addListenerCertificates({
required List<Certificate> certificates,
required String listenerArn,
}) async {
ArgumentError.checkNotNull(certificates, 'certificates');
ArgumentError.checkNotNull(listenerArn, 'listenerArn');
final $request = <String, dynamic>{};
$request['Certificates'] = certificates;
$request['ListenerArn'] = listenerArn;
final $result = await _protocol.send(
$request,
action: 'AddListenerCertificates',
version: '2015-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['AddListenerCertificatesInput'],
shapes: shapes,
resultWrapper: 'AddListenerCertificatesResult',
);
return AddListenerCertificatesOutput.fromXml($result);
}