Class VirtualService

All Implemented Interfaces:
IConstruct, IDependable, IResource, IVirtualService,, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:46.200Z") @Stability(Stable) public class VirtualService extends Resource implements IVirtualService
VirtualService represents a service inside an AppMesh.

It routes traffic either to a Virtual Node or to a Virtual Router.


 Mesh mesh;
 VirtualNode node = VirtualNode.Builder.create(this, "node")
 VirtualService virtualService = VirtualService.Builder.create(this, "service-1")

See Also:
  • Constructor Details

    • VirtualService

      protected VirtualService( objRef)
    • VirtualService

      protected VirtualService( initializationMode)
    • VirtualService

      @Stability(Stable) public VirtualService(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull VirtualServiceProps props)
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • fromVirtualServiceArn

      @Stability(Stable) @NotNull public static IVirtualService fromVirtualServiceArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String virtualServiceArn)
      Import an existing VirtualService given an ARN.

      scope - This parameter is required.
      id - This parameter is required.
      virtualServiceArn - This parameter is required.
    • fromVirtualServiceAttributes

      @Stability(Stable) @NotNull public static IVirtualService fromVirtualServiceAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull VirtualServiceAttributes attrs)
      Import an existing VirtualService given its attributes.

      scope - This parameter is required.
      id - This parameter is required.
      attrs - This parameter is required.
    • getMesh

      @Stability(Stable) @NotNull public IMesh getMesh()
      The Mesh which the VirtualService belongs to.
      Specified by:
      getMesh in interface IVirtualService
    • getVirtualServiceArn

      @Stability(Stable) @NotNull public String getVirtualServiceArn()
      The Amazon Resource Name (ARN) for the virtual service.
      Specified by:
      getVirtualServiceArn in interface IVirtualService
    • getVirtualServiceName

      @Stability(Stable) @NotNull public String getVirtualServiceName()
      The name of the VirtualService, it is recommended this follows the fully-qualified domain name format.
      Specified by:
      getVirtualServiceName in interface IVirtualService