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

CreateTargetGroup() public method

Creates a target group.

To register targets with the target group, use RegisterTargets. To update the health check settings for the target group, use ModifyTargetGroup. To monitor the health of targets in the target group, use DescribeTargetHealth.

To route traffic to the targets in a target group, specify the target group in an action using CreateListener or CreateRule.

To delete a target group, use DeleteTargetGroup.

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

/// A target group with the specified name already exists. /// /// You've reached the limit on the number of target groups for your AWS account. ///
public CreateTargetGroup ( CreateTargetGroupRequest request ) : CreateTargetGroupResponse
request Amazon.ElasticLoadBalancingV2.Model.CreateTargetGroupRequest Container for the necessary parameters to execute the CreateTargetGroup service method.
return Amazon.ElasticLoadBalancingV2.Model.CreateTargetGroupResponse
        public CreateTargetGroupResponse CreateTargetGroup(CreateTargetGroupRequest request)
        {
            var marshaller = new CreateTargetGroupRequestMarshaller();
            var unmarshaller = CreateTargetGroupResponseUnmarshaller.Instance;

            return Invoke<CreateTargetGroupRequest,CreateTargetGroupResponse>(request, marshaller, unmarshaller);
        }
AmazonElasticLoadBalancingV2Client