get Virtual Service
The App Mesh Virtual Service data source allows details of an App Mesh Virtual Service to be retrieved by its name, mesh_name, and optionally the mesh_owner.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appmesh.AppmeshFunctions;
import com.pulumi.aws.appmesh.inputs.GetVirtualServiceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = AppmeshFunctions.getVirtualService(GetVirtualServiceArgs.builder()
.meshName("example-mesh")
.name("example.mesh.local")
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getVirtualService.
Parameters
argument
A collection of arguments for invoking getVirtualService.
suspend fun getVirtualService(meshName: String, meshOwner: String? = null, name: String, tags: Map<String, String>? = null): GetVirtualServiceResult
Return
A collection of values returned by getVirtualService.
Parameters
mesh Name
Name of the service mesh in which the virtual service exists.
mesh Owner
AWS account ID of the service mesh's owner.
name
Name of the virtual service.
tags
Map of tags.
See also
suspend fun getVirtualService(argument: suspend GetVirtualServicePlainArgsBuilder.() -> Unit): GetVirtualServiceResult
Return
A collection of values returned by getVirtualService.
Parameters
argument
Builder for com.pulumi.aws.appmesh.kotlin.inputs.GetVirtualServicePlainArgs.