AWS SDK Version 3 for .NET
API Reference

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 DeleteLoadBalancerListeners operation. Deletes the specified listeners from the specified load balancer.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ElasticLoadBalancing.AmazonElasticLoadBalancingRequest
      Amazon.ElasticLoadBalancing.Model.DeleteLoadBalancerListenersRequest

Namespace: Amazon.ElasticLoadBalancing.Model
Assembly: AWSSDK.ElasticLoadBalancing.dll
Version: 3.x.y.z

Syntax

C#
public class DeleteLoadBalancerListenersRequest : AmazonElasticLoadBalancingRequest
         IAmazonWebServiceRequest

The DeleteLoadBalancerListenersRequest type exposes the following members

Constructors

NameDescription
Public Method DeleteLoadBalancerListenersRequest()

Empty constructor used to set properties independently even when a simple constructor is available

Public Method DeleteLoadBalancerListenersRequest(string, List<Int32>)

Instantiates DeleteLoadBalancerListenersRequest with the parameterized properties

Properties

NameTypeDescription
Public Property LoadBalancerName System.String

Gets and sets the property LoadBalancerName.

The name of the load balancer.

Public Property LoadBalancerPorts System.Collections.Generic.List<System.Int32>

Gets and sets the property LoadBalancerPorts.

The client port numbers of the listeners.

Examples

This example deletes the listener for the specified port from the specified load balancer.

To delete a listener from your load balancer


var response = client.DeleteLoadBalancerListeners(new DeleteLoadBalancerListenersRequest 
{
    LoadBalancerName = "my-load-balancer",
    LoadBalancerPorts = new List {
        80
    }
});


            

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms