paws.networking (version 0.1.6)

elbv2_deregister_targets: Deregisters the specified targets from the specified target group

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

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.

Request syntax

svc$deregister_targets(
  TargetGroupArn = "string",
  Targets = list(
    list(
      Id = "string",
      Port = 123,
      AvailabilityZone = "string"
    )
  )
)

Examples

Run this code
# NOT RUN {
# This example deregisters the specified instance from the specified
# target group.
# }
# NOT RUN {
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 DataCamp Workspace