Amazon.ElasticLoadBalancingV2.AmazonElasticLoadBalancingV2Client.CreateListener C# (CSharp) Method

CreateListener() public method

Creates a listener for the specified Application Load Balancer.

You can create up to 10 listeners per load balancer.

To update a listener, use ModifyListener. When you are finished with a listener, you can delete it using DeleteListener. If you are finished with both the listener and the load balancer, you can delete them both using DeleteLoadBalancer.

For more information, see Listeners for Your Application Load Balancers in the Application Load Balancers Guide.

/// The specified certificate does not exist. /// /// A listener with the specified port already exists. /// /// The specified configuration is not valid with this protocol. /// /// The requested configuration is not valid. /// /// The specified load balancer does not exist. /// /// The specified SSL policy does not exist. /// /// You've reached the limit on the number of load balancers per target group. /// /// The specified target group does not exist. /// /// You've reached the limit on the number of certificates per listener. /// /// You've reached the limit on the number of listeners per load balancer. /// /// You've reached the limit on the number of times a target can be registered with a /// load balancer. /// /// The specified protocol is not supported. ///
public CreateListener ( CreateListenerRequest request ) : CreateListenerResponse
request Amazon.ElasticLoadBalancingV2.Model.CreateListenerRequest Container for the necessary parameters to execute the CreateListener service method.
return Amazon.ElasticLoadBalancingV2.Model.CreateListenerResponse
        public CreateListenerResponse CreateListener(CreateListenerRequest request)
        {
            var marshaller = new CreateListenerRequestMarshaller();
            var unmarshaller = CreateListenerResponseUnmarshaller.Instance;

            return Invoke<CreateListenerRequest,CreateListenerResponse>(request, marshaller, unmarshaller);
        }
AmazonElasticLoadBalancingV2Client