public void ElasticLoadBalancingDetachLoadBalancerFromSubnets()
        {
            #region elb-detach-load-balancer-from-subnets-1

            var response = client.DetachLoadBalancerFromSubnets(new DetachLoadBalancerFromSubnetsRequest
            {
                LoadBalancerName = "my-load-balancer",
                Subnets          = new List <string> {
                    "subnet-0ecac448"
                }
            });

            List <string> subnets = response.Subnets;

            #endregion
        }
Beispiel #2
0
 private Amazon.ElasticLoadBalancing.Model.DetachLoadBalancerFromSubnetsResponse CallAWSServiceOperation(IAmazonElasticLoadBalancing client, Amazon.ElasticLoadBalancing.Model.DetachLoadBalancerFromSubnetsRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Elastic Load Balancing", "DetachLoadBalancerFromSubnets");
     try
     {
         #if DESKTOP
         return(client.DetachLoadBalancerFromSubnets(request));
         #elif CORECLR
         return(client.DetachLoadBalancerFromSubnetsAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }