public void ElasticLoadBalancingV2ModifyTargetGroupAttributes() { #region elbv2-modify-target-group-attributes-1 var response = client.ModifyTargetGroupAttributes(new ModifyTargetGroupAttributesRequest { Attributes = new List <TargetGroupAttribute> { new TargetGroupAttribute { Key = "deregistration_delay.timeout_seconds", Value = "600" } }, TargetGroupArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067" }); List <TargetGroupAttribute> attributes = response.Attributes; #endregion }
private Amazon.ElasticLoadBalancingV2.Model.ModifyTargetGroupAttributesResponse CallAWSServiceOperation(IAmazonElasticLoadBalancingV2 client, Amazon.ElasticLoadBalancingV2.Model.ModifyTargetGroupAttributesRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Elastic Load Balancing V2", "ModifyTargetGroupAttributes"); try { #if DESKTOP return(client.ModifyTargetGroupAttributes(request)); #elif CORECLR return(client.ModifyTargetGroupAttributesAsync(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; } }