Elastic Load Balancing
API Reference (API Version 2015-12-01)

AddListenerCertificates

Adds the specified SSL server certificate to the certificate list for the specified HTTPS listener.

If the certificate in already in the certificate list, the call is successful but the certificate is not added again.

To get the certificate list for a listener, use DescribeListenerCertificates. To remove certificates from the certificate list for a listener, use RemoveListenerCertificates. To replace the default certificate for a listener, use ModifyListener.

For more information, see SSL Certificates in the Application Load Balancers Guide.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

Certificates.member.N

The certificate to add. You can specify one certificate per call. Set CertificateArn to the certificate ARN but do not set IsDefault.

Type: Array of Certificate objects

Required: Yes

ListenerArn

The Amazon Resource Name (ARN) of the listener.

Type: String

Required: Yes

Response Elements

The following element is returned by the service.

Certificates.member.N

Information about the certificates in the certificate list.

Type: Array of Certificate objects

Errors

For information about the errors that are common to all actions, see Common Errors.

CertificateNotFound

The specified certificate does not exist.

HTTP Status Code: 400

ListenerNotFound

The specified listener does not exist.

HTTP Status Code: 400

TooManyCertificates

You've reached the limit on the number of certificates per load balancer.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: