AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.9.1 published on Tuesday, Jun 21, 2022 by Pulumi

getVirtualService

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

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var test = Output.Create(Aws.AppMesh.GetVirtualService.InvokeAsync(new Aws.AppMesh.GetVirtualServiceArgs
        {
            MeshName = "example-mesh",
            Name = "example.mesh.local",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/appmesh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := appmesh.LookupVirtualService(ctx, &appmesh.LookupVirtualServiceArgs{
			MeshName: "example-mesh",
			Name:     "example.mesh.local",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var test = Output.of(AppmeshFunctions.getVirtualService(GetVirtualServiceArgs.builder()
            .meshName("example-mesh")
            .name("example.mesh.local")
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

test = aws.appmesh.get_virtual_service(mesh_name="example-mesh",
    name="example.mesh.local")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = pulumi.output(aws.appmesh.getVirtualService({
    meshName: "example-mesh",
    name: "example.mesh.local",
}));
variables:
  test:
    Fn::Invoke:
      Function: aws:appmesh:getVirtualService
      Arguments:
        meshName: example-mesh
        name: example.mesh.local

Using getVirtualService

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getVirtualService(args: GetVirtualServiceArgs, opts?: InvokeOptions): Promise<GetVirtualServiceResult>
function getVirtualServiceOutput(args: GetVirtualServiceOutputArgs, opts?: InvokeOptions): Output<GetVirtualServiceResult>
def get_virtual_service(mesh_name: Optional[str] = None,
                        mesh_owner: Optional[str] = None,
                        name: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        opts: Optional[InvokeOptions] = None) -> GetVirtualServiceResult
def get_virtual_service_output(mesh_name: Optional[pulumi.Input[str]] = None,
                        mesh_owner: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetVirtualServiceResult]
func LookupVirtualService(ctx *Context, args *LookupVirtualServiceArgs, opts ...InvokeOption) (*LookupVirtualServiceResult, error)
func LookupVirtualServiceOutput(ctx *Context, args *LookupVirtualServiceOutputArgs, opts ...InvokeOption) LookupVirtualServiceResultOutput

> Note: This function is named LookupVirtualService in the Go SDK.

public static class GetVirtualService 
{
    public static Task<GetVirtualServiceResult> InvokeAsync(GetVirtualServiceArgs args, InvokeOptions? opts = null)
    public static Output<GetVirtualServiceResult> Invoke(GetVirtualServiceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVirtualServiceResult> getVirtualService(GetVirtualServiceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:appmesh/getVirtualService:getVirtualService
  Arguments:
    # Arguments dictionary

The following arguments are supported:

MeshName string

The name of the service mesh in which the virtual service exists.

Name string

The name of the virtual service.

MeshOwner string

The AWS account ID of the service mesh's owner.

Tags Dictionary<string, string>

A map of tags.

MeshName string

The name of the service mesh in which the virtual service exists.

Name string

The name of the virtual service.

MeshOwner string

The AWS account ID of the service mesh's owner.

Tags map[string]string

A map of tags.

meshName String

The name of the service mesh in which the virtual service exists.

name String

The name of the virtual service.

meshOwner String

The AWS account ID of the service mesh's owner.

tags Map<String,String>

A map of tags.

meshName string

The name of the service mesh in which the virtual service exists.

name string

The name of the virtual service.

meshOwner string

The AWS account ID of the service mesh's owner.

tags {[key: string]: string}

A map of tags.

mesh_name str

The name of the service mesh in which the virtual service exists.

name str

The name of the virtual service.

mesh_owner str

The AWS account ID of the service mesh's owner.

tags Mapping[str, str]

A map of tags.

meshName String

The name of the service mesh in which the virtual service exists.

name String

The name of the virtual service.

meshOwner String

The AWS account ID of the service mesh's owner.

tags Map<String>

A map of tags.

getVirtualService Result

The following output properties are available:

Arn string

The ARN of the virtual service.

CreatedDate string

The creation date of the virtual service.

Id string

The provider-assigned unique ID for this managed resource.

LastUpdatedDate string

The last update date of the virtual service.

MeshName string
MeshOwner string
Name string
ResourceOwner string

The resource owner's AWS account ID.

Specs List<GetVirtualServiceSpec>

The virtual service specification

Tags Dictionary<string, string>

A map of tags.

Arn string

The ARN of the virtual service.

CreatedDate string

The creation date of the virtual service.

Id string

The provider-assigned unique ID for this managed resource.

LastUpdatedDate string

The last update date of the virtual service.

MeshName string
MeshOwner string
Name string
ResourceOwner string

The resource owner's AWS account ID.

Specs []GetVirtualServiceSpec

The virtual service specification

Tags map[string]string

A map of tags.

arn String

The ARN of the virtual service.

createdDate String

The creation date of the virtual service.

id String

The provider-assigned unique ID for this managed resource.

lastUpdatedDate String

The last update date of the virtual service.

meshName String
meshOwner String
name String
resourceOwner String

The resource owner's AWS account ID.

specs List<GetVirtualServiceSpec>

The virtual service specification

tags Map<String,String>

A map of tags.

arn string

The ARN of the virtual service.

createdDate string

The creation date of the virtual service.

id string

The provider-assigned unique ID for this managed resource.

lastUpdatedDate string

The last update date of the virtual service.

meshName string
meshOwner string
name string
resourceOwner string

The resource owner's AWS account ID.

specs GetVirtualServiceSpec[]

The virtual service specification

tags {[key: string]: string}

A map of tags.

arn str

The ARN of the virtual service.

created_date str

The creation date of the virtual service.

id str

The provider-assigned unique ID for this managed resource.

last_updated_date str

The last update date of the virtual service.

mesh_name str
mesh_owner str
name str
resource_owner str

The resource owner's AWS account ID.

specs Sequence[GetVirtualServiceSpec]

The virtual service specification

tags Mapping[str, str]

A map of tags.

arn String

The ARN of the virtual service.

createdDate String

The creation date of the virtual service.

id String

The provider-assigned unique ID for this managed resource.

lastUpdatedDate String

The last update date of the virtual service.

meshName String
meshOwner String
name String
resourceOwner String

The resource owner's AWS account ID.

specs List<Property Map>

The virtual service specification

tags Map<String>

A map of tags.

Supporting Types

GetVirtualServiceSpec

Providers List<GetVirtualServiceSpecProvider>

The App Mesh object that is acting as the provider for a virtual service.

Providers []GetVirtualServiceSpecProvider

The App Mesh object that is acting as the provider for a virtual service.

providers List<GetVirtualServiceSpecProvider>

The App Mesh object that is acting as the provider for a virtual service.

providers GetVirtualServiceSpecProvider[]

The App Mesh object that is acting as the provider for a virtual service.

providers Sequence[GetVirtualServiceSpecProvider]

The App Mesh object that is acting as the provider for a virtual service.

providers List<Property Map>

The App Mesh object that is acting as the provider for a virtual service.

GetVirtualServiceSpecProvider

VirtualNodes List<GetVirtualServiceSpecProviderVirtualNode>

The virtual node associated with the virtual service.

VirtualRouters List<GetVirtualServiceSpecProviderVirtualRouter>

The virtual router associated with the virtual service.

VirtualNodes []GetVirtualServiceSpecProviderVirtualNode

The virtual node associated with the virtual service.

VirtualRouters []GetVirtualServiceSpecProviderVirtualRouter

The virtual router associated with the virtual service.

virtualNodes List<GetVirtualServiceSpecProviderVirtualNode>

The virtual node associated with the virtual service.

virtualRouters List<GetVirtualServiceSpecProviderVirtualRouter>

The virtual router associated with the virtual service.

virtualNodes GetVirtualServiceSpecProviderVirtualNode[]

The virtual node associated with the virtual service.

virtualRouters GetVirtualServiceSpecProviderVirtualRouter[]

The virtual router associated with the virtual service.

virtual_nodes Sequence[GetVirtualServiceSpecProviderVirtualNode]

The virtual node associated with the virtual service.

virtual_routers Sequence[GetVirtualServiceSpecProviderVirtualRouter]

The virtual router associated with the virtual service.

virtualNodes List<Property Map>

The virtual node associated with the virtual service.

virtualRouters List<Property Map>

The virtual router associated with the virtual service.

GetVirtualServiceSpecProviderVirtualNode

VirtualNodeName string

The name of the virtual node that is acting as a service provider.

VirtualNodeName string

The name of the virtual node that is acting as a service provider.

virtualNodeName String

The name of the virtual node that is acting as a service provider.

virtualNodeName string

The name of the virtual node that is acting as a service provider.

virtual_node_name str

The name of the virtual node that is acting as a service provider.

virtualNodeName String

The name of the virtual node that is acting as a service provider.

GetVirtualServiceSpecProviderVirtualRouter

VirtualRouterName string

The name of the virtual router that is acting as a service provider.

VirtualRouterName string

The name of the virtual router that is acting as a service provider.

virtualRouterName String

The name of the virtual router that is acting as a service provider.

virtualRouterName string

The name of the virtual router that is acting as a service provider.

virtual_router_name str

The name of the virtual router that is acting as a service provider.

virtualRouterName String

The name of the virtual router that is acting as a service provider.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.