CmdID / aws / aws appmesh
aws appmesh update-virtual-router
Updates an existing virtual router in a specified service mesh. AWS CLI reference
1 example 5 options Its page in the AWS CLI reference
Examples
To update a virtual router
The following update-virtual-router example uses a JSON input file to update a virtual router listener port.
aws appmesh update-virtual-router --cli-input-json file://update-virtual-router.jsonIdentifyContents of update-virtual-router.json:
{
"meshName": "app1",
"spec": {
"listeners": [
{
"portMapping": {
"port": 8080,
"protocol": "http"
}
}
]
},
"virtualRouterName": "vrServiceB"
}
Its output
{
"virtualRouter": {
"meshName": "app1",
"metadata": {
"arn": "arn:aws:appmesh:us-west-2:123456789012:mesh/app1/virtualRouter/vrServiceB",
"createdAt": 1563810546.59,
"lastUpdatedAt": 1563819431.352,
"uid": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"version": 2
},
"spec": {
"listeners": [
{
"portMapping": {
"port": 8080,
"protocol": "http"
}
}
]
},
"status": {
"status": "ACTIVE"
},
"virtualRouterName": "vrServiceB"
}
}For more information, see Virtual Routers in the AWS App Mesh User Guide.
Options
--client-tokenUnique, case-sensitive identifier that you provide to ensure the idempotency of the request.--mesh-nameThe name of the service mesh that the virtual router resides in.--mesh-ownerThe Amazon Web Services IAM account ID of the service mesh owner.--specThe new virtual router specification to apply.--virtual-router-nameThe name of the virtual router to update.