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

DeleteTargetGroup() public method

Deletes the specified target group.

You can delete a target group if it is not referenced by any actions. Deleting a target group also deletes any associated health checks.

/// A specified resource is in use. ///
public DeleteTargetGroup ( DeleteTargetGroupRequest request ) : DeleteTargetGroupResponse
request Amazon.ElasticLoadBalancingV2.Model.DeleteTargetGroupRequest Container for the necessary parameters to execute the DeleteTargetGroup service method.
return DeleteTargetGroupResponse
        public DeleteTargetGroupResponse DeleteTargetGroup(DeleteTargetGroupRequest request)
        {
            var marshaller = new DeleteTargetGroupRequestMarshaller();
            var unmarshaller = DeleteTargetGroupResponseUnmarshaller.Instance;

            return Invoke<DeleteTargetGroupRequest,DeleteTargetGroupResponse>(request, marshaller, unmarshaller);
        }
AmazonElasticLoadBalancingV2Client