Deregisters the specified targets from the specified target group. After the targets are deregistered, they no longer receive traffic from the load balancer.
elbv2_deregister_targets(TargetGroupArn, Targets)
[required] The Amazon Resource Name (ARN) of the target group.
[required] The targets. If you specified a port override when you registered a target, you must specify both the target ID and the port when you deregister it.
svc$deregister_targets( TargetGroupArn = "string", Targets = list( list( Id = "string", Port = 123, AvailabilityZone = "string" ) ) )
# NOT RUN {
# This example deregisters the specified instance from the specified
# target group.
svc$deregister_targets(
TargetGroupArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targe...",
Targets = list(
list(
Id = "i-0f76fade"
)
)
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab