There are more AWS SDK examples available in the AWS Doc SDK Examples
Use RemoveListenerCertificates with a CLI
The following code examples show how to use RemoveListenerCertificates.
- CLI
 - 
            
- AWS CLI
 - 
             
                    
To remove a certificate from a secure listener
This example removes the specified certificate from the specified secure listener.
Command:
aws elbv2 remove-listener-certificates --listener-arnarn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2--certificatesCertificateArn=arn:aws:acm:us-west-2:123456789012:certificate/5cc54884-f4a3-4072-80be-05b9ba72f705- 
                    
For API details, see RemoveListenerCertificates
in AWS CLI Command Reference.  
 - 
                    
 
 - PowerShell
 - 
            
- Tools for PowerShell V4
 - 
             
                    
Example 1: This example removes specified certificate from the specified Target group.
Remove-ELB2ListenerCertificate -Certificate @{CertificateArn = 'arn:aws:acm:us-east-1:123456789012:certificate/19478bd5-491d-47d4-b1d7-5217feba1d97'} -ListenerArn 'arn:aws:elasticloadbalancing:us-east-1:123456789012:listener/app/test-alb/3651b4394dd9a24f/3873f123b98f7618'Output:
Confirm Are you sure you want to perform this action? Performing the operation "Remove-ELB2ListenerCertificate (RemoveListenerCertificates)" on target "arn:aws:elasticloadbalancing:us-east-1:123456789012:listener/app/test-alb/3651b4394dd9a24f/3873f123b98f7618". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y- 
                    
For API details, see RemoveListenerCertificates in AWS Tools for PowerShell Cmdlet Reference (V4).
 
 - 
                    
 - Tools for PowerShell V5
 - 
             
                    
Example 1: This example removes specified certificate from the specified Target group.
Remove-ELB2ListenerCertificate -Certificate @{CertificateArn = 'arn:aws:acm:us-east-1:123456789012:certificate/19478bd5-491d-47d4-b1d7-5217feba1d97'} -ListenerArn 'arn:aws:elasticloadbalancing:us-east-1:123456789012:listener/app/test-alb/3651b4394dd9a24f/3873f123b98f7618'Output:
Confirm Are you sure you want to perform this action? Performing the operation "Remove-ELB2ListenerCertificate (RemoveListenerCertificates)" on target "arn:aws:elasticloadbalancing:us-east-1:123456789012:listener/app/test-alb/3651b4394dd9a24f/3873f123b98f7618". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y- 
                    
For API details, see RemoveListenerCertificates in AWS Tools for PowerShell Cmdlet Reference (V5).
 
 -