Skip to content

Update Virtual Service

appmesh_update_virtual_service R Documentation

Updates an existing virtual service in a specified service mesh

Description

Updates an existing virtual service in a specified service mesh.

Usage

appmesh_update_virtual_service(clientToken, meshName, meshOwner, spec,
  virtualServiceName)

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 service 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 service specification to apply. This overwrites the existing data.

virtualServiceName

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

Value

A list with the following syntax:

list(
  virtualService = 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(
      provider = list(
        virtualNode = list(
          virtualNodeName = "string"
        ),
        virtualRouter = list(
          virtualRouterName = "string"
        )
      )
    ),
    status = list(
      status = "ACTIVE"|"INACTIVE"|"DELETED"
    ),
    virtualServiceName = "string"
  )
)

Request syntax

svc$update_virtual_service(
  clientToken = "string",
  meshName = "string",
  meshOwner = "string",
  spec = list(
    provider = list(
      virtualNode = list(
        virtualNodeName = "string"
      ),
      virtualRouter = list(
        virtualRouterName = "string"
      )
    )
  ),
  virtualServiceName = "string"
)