public void ElasticLoadBalancingV2ModifyTargetGroup()
        {
            #region elbv2-modify-target-group-1

            var response = client.ModifyTargetGroup(new ModifyTargetGroupRequest
            {
                HealthCheckPort     = "443",
                HealthCheckProtocol = "HTTPS",
                TargetGroupArn      = "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-https-targets/2453ed029918f21f"
            });

            List <TargetGroup> targetGroups = response.TargetGroups;

            #endregion
        }
Пример #2
0
 private Amazon.ElasticLoadBalancingV2.Model.ModifyTargetGroupResponse CallAWSServiceOperation(IAmazonElasticLoadBalancingV2 client, Amazon.ElasticLoadBalancingV2.Model.ModifyTargetGroupRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Elastic Load Balancing V2", "ModifyTargetGroup");
     try
     {
         #if DESKTOP
         return(client.ModifyTargetGroup(request));
         #elif CORECLR
         return(client.ModifyTargetGroupAsync(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;
     }
 }