AWS Classic
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:
- 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.
- Mapping[str, str]
A map of tags.
getVirtualService Result
The following output properties are available:
- Arn string
The ARN of the virtual service.
- Created
Date string The creation date of the virtual service.
- Id string
The provider-assigned unique ID for this managed resource.
- Last
Updated stringDate The last update date of the virtual service.
- Mesh
Name string - Mesh
Owner string - Name string
- Resource
Owner string The resource owner's AWS account ID.
- Specs
List<Get
Virtual Service Spec> The virtual service specification
- Dictionary<string, string>
A map of tags.
- Arn string
The ARN of the virtual service.
- Created
Date string The creation date of the virtual service.
- Id string
The provider-assigned unique ID for this managed resource.
- Last
Updated stringDate The last update date of the virtual service.
- Mesh
Name string - Mesh
Owner string - Name string
- Resource
Owner string The resource owner's AWS account ID.
- Specs
[]Get
Virtual Service Spec The virtual service specification
- map[string]string
A map of tags.
- arn String
The ARN of the virtual service.
- created
Date String The creation date of the virtual service.
- id String
The provider-assigned unique ID for this managed resource.
- last
Updated StringDate The last update date of the virtual service.
- mesh
Name String - mesh
Owner String - name String
- resource
Owner String The resource owner's AWS account ID.
- specs
List<Get
Virtual Service Spec> The virtual service specification
- Map<String,String>
A map of tags.
- arn string
The ARN of the virtual service.
- created
Date string The creation date of the virtual service.
- id string
The provider-assigned unique ID for this managed resource.
- last
Updated stringDate The last update date of the virtual service.
- mesh
Name string - mesh
Owner string - name string
- resource
Owner string The resource owner's AWS account ID.
- specs
Get
Virtual Service Spec[] The virtual service specification
- {[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_ strdate 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[Get
Virtual Service Spec] The virtual service specification
- Mapping[str, str]
A map of tags.
- arn String
The ARN of the virtual service.
- created
Date String The creation date of the virtual service.
- id String
The provider-assigned unique ID for this managed resource.
- last
Updated StringDate The last update date of the virtual service.
- mesh
Name String - mesh
Owner String - name String
- resource
Owner String The resource owner's AWS account ID.
- specs List<Property Map>
The virtual service specification
- Map<String>
A map of tags.
Supporting Types
GetVirtualServiceSpec
- Providers
List<Get
Virtual Service Spec Provider> The App Mesh object that is acting as the provider for a virtual service.
- Providers
[]Get
Virtual Service Spec Provider The App Mesh object that is acting as the provider for a virtual service.
- providers
List<Get
Virtual Service Spec Provider> The App Mesh object that is acting as the provider for a virtual service.
- providers
Get
Virtual Service Spec Provider[] The App Mesh object that is acting as the provider for a virtual service.
- providers
Sequence[Get
Virtual Service Spec Provider] 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
- Virtual
Nodes List<GetVirtual Service Spec Provider Virtual Node> The virtual node associated with the virtual service.
- Virtual
Routers List<GetVirtual Service Spec Provider Virtual Router> The virtual router associated with the virtual service.
- Virtual
Nodes []GetVirtual Service Spec Provider Virtual Node The virtual node associated with the virtual service.
- Virtual
Routers []GetVirtual Service Spec Provider Virtual Router The virtual router associated with the virtual service.
- virtual
Nodes List<GetVirtual Service Spec Provider Virtual Node> The virtual node associated with the virtual service.
- virtual
Routers List<GetVirtual Service Spec Provider Virtual Router> The virtual router associated with the virtual service.
- virtual
Nodes GetVirtual Service Spec Provider Virtual Node[] The virtual node associated with the virtual service.
- virtual
Routers GetVirtual Service Spec Provider Virtual Router[] The virtual router associated with the virtual service.
- virtual_
nodes Sequence[GetVirtual Service Spec Provider Virtual Node] The virtual node associated with the virtual service.
- virtual_
routers Sequence[GetVirtual Service Spec Provider Virtual Router] The virtual router associated with the virtual service.
- virtual
Nodes List<Property Map> The virtual node associated with the virtual service.
- virtual
Routers List<Property Map> The virtual router associated with the virtual service.
GetVirtualServiceSpecProviderVirtualNode
- Virtual
Node stringName The name of the virtual node that is acting as a service provider.
- Virtual
Node stringName The name of the virtual node that is acting as a service provider.
- virtual
Node StringName The name of the virtual node that is acting as a service provider.
- virtual
Node stringName The name of the virtual node that is acting as a service provider.
- virtual_
node_ strname The name of the virtual node that is acting as a service provider.
- virtual
Node StringName The name of the virtual node that is acting as a service provider.
GetVirtualServiceSpecProviderVirtualRouter
- Virtual
Router stringName The name of the virtual router that is acting as a service provider.
- Virtual
Router stringName The name of the virtual router that is acting as a service provider.
- virtual
Router StringName The name of the virtual router that is acting as a service provider.
- virtual
Router stringName The name of the virtual router that is acting as a service provider.
- virtual_
router_ strname The name of the virtual router that is acting as a service provider.
- virtual
Router StringName 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.