Skip to content

Update Virtual Router

appmesh_update_virtual_router R Documentation

Updates an existing virtual router in a specified service mesh

Description

Updates an existing virtual router in a specified service mesh.

Usage

appmesh_update_virtual_router(clientToken, meshName, meshOwner, spec,
  virtualRouterName)

Arguments

clientToken

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.

meshName

[required] The name of the service mesh that the virtual router resides in.

meshOwner

The Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.

spec

[required] The new virtual router specification to apply. This overwrites the existing data.

virtualRouterName

[required] The name of the virtual router to update.

Value

A list with the following syntax:

list(
  virtualRouter = list(
    meshName = "string",
    metadata = list(
      arn = "string",
      createdAt = as.POSIXct(
        "2015-01-01"
      ),
      lastUpdatedAt = as.POSIXct(
        "2015-01-01"
      ),
      meshOwner = "string",
      resourceOwner = "string",
      uid = "string",
      version = 123
    ),
    spec = list(
      listeners = list(
        list(
          portMapping = list(
            port = 123,
            protocol = "http"|"tcp"|"http2"|"grpc"
          )
        )
      )
    ),
    status = list(
      status = "ACTIVE"|"INACTIVE"|"DELETED"
    ),
    virtualRouterName = "string"
  )
)

Request syntax

svc$update_virtual_router(
  clientToken = "string",
  meshName = "string",
  meshOwner = "string",
  spec = list(
    listeners = list(
      list(
        portMapping = list(
          port = 123,
          protocol = "http"|"tcp"|"http2"|"grpc"
        )
      )
    )
  ),
  virtualRouterName = "string"
)