Skip to content

Commit

Permalink
Merge pull request #3569 from loivis/docs-api-gateway-vpc-link
Browse files Browse the repository at this point in the history
docs/r/api_gateway_vpc_link: target_arn -> target_arns
  • Loading branch information
bflad authored Mar 1, 2018
2 parents 1f60d23 + 3f28f4f commit 6f9518f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aws/resource_aws_api_gateway_vpc_link.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func resourceAwsApiGatewayVpcLinkRead(d *schema.ResourceData, meta interface{})

d.Set("name", resp.Name)
d.Set("description", resp.Description)
d.Set("target_arn", flattenStringList(resp.TargetArns))
d.Set("target_arns", flattenStringList(resp.TargetArns))
return nil
}

Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/api_gateway_vpc_link.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ resource "aws_lb" "example" {
resource "aws_api_gateway_vpc_link" "example" {
name = "example"
description = "example description"
target_arn = "${aws_lb.example.arn}"
target_arns = ["${aws_lb.example.arn}"]
}
```

Expand All @@ -36,7 +36,7 @@ The following arguments are supported:

* `name` - (Required) The name used to label and identify the VPC link.
* `description` - (Optional) The description of the VPC link.
* `target_arn` - (Required, ForceNew) The ARN of a network load balancer in the VPC targeted by the VPC link.
* `target_arns` - (Required, ForceNew) The list of network load balancer arns in the VPC targeted by the VPC link. Currently AWS only supports 1 target.

## Attributes Reference

Expand Down

0 comments on commit 6f9518f

Please sign in to comment.