Skip to content

Commit bd629ff

Browse files
[V2] Create update-vpc-link.rst (#9974)
Co-authored-by: Sowjanya Pandruju <[email protected]>
1 parent 31fbeeb commit bd629ff

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
**Example 1: To update an existing VPC link name**
2+
3+
The following ``update-vpc-link`` example updates the name of the specified VPC link. ::
4+
5+
aws apigateway update-vpc-link \
6+
--vpc-link-id ab3de6 \
7+
--patch-operations op=replace,path=/name,value=my-vpc-link
8+
9+
Output::
10+
11+
{
12+
"id": "ab3de6",
13+
"name": "my-vpc-link",
14+
"targetArns": [
15+
"arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/net/my-lb/12a456s89aaa12345"
16+
],
17+
"status": "AVAILABLE",
18+
"statusMessage": "Your vpc link is ready for use",
19+
"tags": {}
20+
}
21+
22+
For more information, see `Updating existing VPC link <https://docs.aws.amazon.com/cli/latest/reference/apigateway/update-vpc-link.html>`__ in the *AWS CLI Command Reference*.
23+
24+
25+
**Example 2: To update an existing VPC link name and description**
26+
27+
The following ``update-vpc-link`` example updates name of the specified VPC link. ::
28+
29+
aws apigateway update-vpc-link \
30+
--vpc-link-id ab3de6 \
31+
--patch-operations op=replace,path=/name,value=my-vpc-link op=replace,path=/description,value="My custom description"
32+
33+
Output::
34+
35+
{
36+
"id": "ab3de6",
37+
"name": "my-vpc-link",
38+
"description": "My custom description",
39+
"targetArns": [
40+
"arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/net/my-lb/12a456s89aaa12345"
41+
],
42+
"status": "AVAILABLE",
43+
"statusMessage": "Your vpc link is ready for use",
44+
"tags": {}
45+
}
46+
47+
For more information, see `Updating existing VPC link <https://docs.aws.amazon.com/cli/latest/reference/apigateway/update-vpc-link.html>`__ in the *AWS CLI Command Reference*.

0 commit comments

Comments
 (0)