elbv2_deregister_targets: Deregisters the specified targets from the specified target...

Description Usage Arguments Value Request syntax Examples

View source: R/elbv2_operations.R

Description

Deregisters the specified targets from the specified target group. After the targets are deregistered, they no longer receive traffic from the load balancer.

Usage

1
elbv2_deregister_targets(TargetGroupArn, Targets)

Arguments

TargetGroupArn

[required] The Amazon Resource Name (ARN) of the target group.

Targets

[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.

Value

An empty list.

Request syntax

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
svc$deregister_targets(
  TargetGroupArn = "string",
  Targets = list(
    list(
      Id = "string",
      Port = 123,
      AvailabilityZone = "string"
    )
  )
)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
# This example deregisters the specified instance from the specified
# target group.
svc$deregister_targets(
  TargetGroupArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:tar...",
  Targets = list(
    list(
      Id = "i-0f76fade"
    )
  )
)

## End(Not run)

paws.networking documentation built on Aug. 23, 2021, 9:07 a.m.