1. Packages
  2. AWS Classic
  3. API Docs
  4. appmesh
  5. VirtualService

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

aws.appmesh.VirtualService

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

    Provides an AWS App Mesh virtual service resource.

    Example Usage

    Virtual Node Provider

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const servicea = new aws.appmesh.VirtualService("servicea", {
        name: "servicea.simpleapp.local",
        meshName: simple.id,
        spec: {
            provider: {
                virtualNode: {
                    virtualNodeName: serviceb1.name,
                },
            },
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    servicea = aws.appmesh.VirtualService("servicea",
        name="servicea.simpleapp.local",
        mesh_name=simple["id"],
        spec=aws.appmesh.VirtualServiceSpecArgs(
            provider=aws.appmesh.VirtualServiceSpecProviderArgs(
                virtual_node=aws.appmesh.VirtualServiceSpecProviderVirtualNodeArgs(
                    virtual_node_name=serviceb1["name"],
                ),
            ),
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appmesh"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := appmesh.NewVirtualService(ctx, "servicea", &appmesh.VirtualServiceArgs{
    			Name:     pulumi.String("servicea.simpleapp.local"),
    			MeshName: pulumi.Any(simple.Id),
    			Spec: &appmesh.VirtualServiceSpecArgs{
    				Provider: &appmesh.VirtualServiceSpecProviderArgs{
    					VirtualNode: &appmesh.VirtualServiceSpecProviderVirtualNodeArgs{
    						VirtualNodeName: pulumi.Any(serviceb1.Name),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var servicea = new Aws.AppMesh.VirtualService("servicea", new()
        {
            Name = "servicea.simpleapp.local",
            MeshName = simple.Id,
            Spec = new Aws.AppMesh.Inputs.VirtualServiceSpecArgs
            {
                Provider = new Aws.AppMesh.Inputs.VirtualServiceSpecProviderArgs
                {
                    VirtualNode = new Aws.AppMesh.Inputs.VirtualServiceSpecProviderVirtualNodeArgs
                    {
                        VirtualNodeName = serviceb1.Name,
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.appmesh.VirtualService;
    import com.pulumi.aws.appmesh.VirtualServiceArgs;
    import com.pulumi.aws.appmesh.inputs.VirtualServiceSpecArgs;
    import com.pulumi.aws.appmesh.inputs.VirtualServiceSpecProviderArgs;
    import com.pulumi.aws.appmesh.inputs.VirtualServiceSpecProviderVirtualNodeArgs;
    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) {
            var servicea = new VirtualService("servicea", VirtualServiceArgs.builder()        
                .name("servicea.simpleapp.local")
                .meshName(simple.id())
                .spec(VirtualServiceSpecArgs.builder()
                    .provider(VirtualServiceSpecProviderArgs.builder()
                        .virtualNode(VirtualServiceSpecProviderVirtualNodeArgs.builder()
                            .virtualNodeName(serviceb1.name())
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      servicea:
        type: aws:appmesh:VirtualService
        properties:
          name: servicea.simpleapp.local
          meshName: ${simple.id}
          spec:
            provider:
              virtualNode:
                virtualNodeName: ${serviceb1.name}
    

    Virtual Router Provider

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const servicea = new aws.appmesh.VirtualService("servicea", {
        name: "servicea.simpleapp.local",
        meshName: simple.id,
        spec: {
            provider: {
                virtualRouter: {
                    virtualRouterName: serviceb.name,
                },
            },
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    servicea = aws.appmesh.VirtualService("servicea",
        name="servicea.simpleapp.local",
        mesh_name=simple["id"],
        spec=aws.appmesh.VirtualServiceSpecArgs(
            provider=aws.appmesh.VirtualServiceSpecProviderArgs(
                virtual_router=aws.appmesh.VirtualServiceSpecProviderVirtualRouterArgs(
                    virtual_router_name=serviceb["name"],
                ),
            ),
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appmesh"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := appmesh.NewVirtualService(ctx, "servicea", &appmesh.VirtualServiceArgs{
    			Name:     pulumi.String("servicea.simpleapp.local"),
    			MeshName: pulumi.Any(simple.Id),
    			Spec: &appmesh.VirtualServiceSpecArgs{
    				Provider: &appmesh.VirtualServiceSpecProviderArgs{
    					VirtualRouter: &appmesh.VirtualServiceSpecProviderVirtualRouterArgs{
    						VirtualRouterName: pulumi.Any(serviceb.Name),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var servicea = new Aws.AppMesh.VirtualService("servicea", new()
        {
            Name = "servicea.simpleapp.local",
            MeshName = simple.Id,
            Spec = new Aws.AppMesh.Inputs.VirtualServiceSpecArgs
            {
                Provider = new Aws.AppMesh.Inputs.VirtualServiceSpecProviderArgs
                {
                    VirtualRouter = new Aws.AppMesh.Inputs.VirtualServiceSpecProviderVirtualRouterArgs
                    {
                        VirtualRouterName = serviceb.Name,
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.appmesh.VirtualService;
    import com.pulumi.aws.appmesh.VirtualServiceArgs;
    import com.pulumi.aws.appmesh.inputs.VirtualServiceSpecArgs;
    import com.pulumi.aws.appmesh.inputs.VirtualServiceSpecProviderArgs;
    import com.pulumi.aws.appmesh.inputs.VirtualServiceSpecProviderVirtualRouterArgs;
    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) {
            var servicea = new VirtualService("servicea", VirtualServiceArgs.builder()        
                .name("servicea.simpleapp.local")
                .meshName(simple.id())
                .spec(VirtualServiceSpecArgs.builder()
                    .provider(VirtualServiceSpecProviderArgs.builder()
                        .virtualRouter(VirtualServiceSpecProviderVirtualRouterArgs.builder()
                            .virtualRouterName(serviceb.name())
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      servicea:
        type: aws:appmesh:VirtualService
        properties:
          name: servicea.simpleapp.local
          meshName: ${simple.id}
          spec:
            provider:
              virtualRouter:
                virtualRouterName: ${serviceb.name}
    

    Create VirtualService Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VirtualService(name: string, args: VirtualServiceArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualService(resource_name: str,
                       args: VirtualServiceArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualService(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       mesh_name: Optional[str] = None,
                       spec: Optional[VirtualServiceSpecArgs] = None,
                       mesh_owner: Optional[str] = None,
                       name: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None)
    func NewVirtualService(ctx *Context, name string, args VirtualServiceArgs, opts ...ResourceOption) (*VirtualService, error)
    public VirtualService(string name, VirtualServiceArgs args, CustomResourceOptions? opts = null)
    public VirtualService(String name, VirtualServiceArgs args)
    public VirtualService(String name, VirtualServiceArgs args, CustomResourceOptions options)
    
    type: aws:appmesh:VirtualService
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VirtualServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VirtualServiceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VirtualServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualServiceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var virtualServiceResource = new Aws.AppMesh.VirtualService("virtualServiceResource", new()
    {
        MeshName = "string",
        Spec = new Aws.AppMesh.Inputs.VirtualServiceSpecArgs
        {
            Provider = new Aws.AppMesh.Inputs.VirtualServiceSpecProviderArgs
            {
                VirtualNode = new Aws.AppMesh.Inputs.VirtualServiceSpecProviderVirtualNodeArgs
                {
                    VirtualNodeName = "string",
                },
                VirtualRouter = new Aws.AppMesh.Inputs.VirtualServiceSpecProviderVirtualRouterArgs
                {
                    VirtualRouterName = "string",
                },
            },
        },
        MeshOwner = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := appmesh.NewVirtualService(ctx, "virtualServiceResource", &appmesh.VirtualServiceArgs{
    	MeshName: pulumi.String("string"),
    	Spec: &appmesh.VirtualServiceSpecArgs{
    		Provider: &appmesh.VirtualServiceSpecProviderArgs{
    			VirtualNode: &appmesh.VirtualServiceSpecProviderVirtualNodeArgs{
    				VirtualNodeName: pulumi.String("string"),
    			},
    			VirtualRouter: &appmesh.VirtualServiceSpecProviderVirtualRouterArgs{
    				VirtualRouterName: pulumi.String("string"),
    			},
    		},
    	},
    	MeshOwner: pulumi.String("string"),
    	Name:      pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var virtualServiceResource = new VirtualService("virtualServiceResource", VirtualServiceArgs.builder()        
        .meshName("string")
        .spec(VirtualServiceSpecArgs.builder()
            .provider(VirtualServiceSpecProviderArgs.builder()
                .virtualNode(VirtualServiceSpecProviderVirtualNodeArgs.builder()
                    .virtualNodeName("string")
                    .build())
                .virtualRouter(VirtualServiceSpecProviderVirtualRouterArgs.builder()
                    .virtualRouterName("string")
                    .build())
                .build())
            .build())
        .meshOwner("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    virtual_service_resource = aws.appmesh.VirtualService("virtualServiceResource",
        mesh_name="string",
        spec=aws.appmesh.VirtualServiceSpecArgs(
            provider=aws.appmesh.VirtualServiceSpecProviderArgs(
                virtual_node=aws.appmesh.VirtualServiceSpecProviderVirtualNodeArgs(
                    virtual_node_name="string",
                ),
                virtual_router=aws.appmesh.VirtualServiceSpecProviderVirtualRouterArgs(
                    virtual_router_name="string",
                ),
            ),
        ),
        mesh_owner="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const virtualServiceResource = new aws.appmesh.VirtualService("virtualServiceResource", {
        meshName: "string",
        spec: {
            provider: {
                virtualNode: {
                    virtualNodeName: "string",
                },
                virtualRouter: {
                    virtualRouterName: "string",
                },
            },
        },
        meshOwner: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:appmesh:VirtualService
    properties:
        meshName: string
        meshOwner: string
        name: string
        spec:
            provider:
                virtualNode:
                    virtualNodeName: string
                virtualRouter:
                    virtualRouterName: string
        tags:
            string: string
    

    VirtualService Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The VirtualService resource accepts the following input properties:

    MeshName string
    Name of the service mesh in which to create the virtual service. Must be between 1 and 255 characters in length.
    Spec VirtualServiceSpec
    Virtual service specification to apply.
    MeshOwner string
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    Name string
    Name to use for the virtual service. Must be between 1 and 255 characters in length.
    Tags Dictionary<string, string>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    MeshName string
    Name of the service mesh in which to create the virtual service. Must be between 1 and 255 characters in length.
    Spec VirtualServiceSpecArgs
    Virtual service specification to apply.
    MeshOwner string
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    Name string
    Name to use for the virtual service. Must be between 1 and 255 characters in length.
    Tags map[string]string
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    meshName String
    Name of the service mesh in which to create the virtual service. Must be between 1 and 255 characters in length.
    spec VirtualServiceSpec
    Virtual service specification to apply.
    meshOwner String
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    name String
    Name to use for the virtual service. Must be between 1 and 255 characters in length.
    tags Map<String,String>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    meshName string
    Name of the service mesh in which to create the virtual service. Must be between 1 and 255 characters in length.
    spec VirtualServiceSpec
    Virtual service specification to apply.
    meshOwner string
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    name string
    Name to use for the virtual service. Must be between 1 and 255 characters in length.
    tags {[key: string]: string}
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    mesh_name str
    Name of the service mesh in which to create the virtual service. Must be between 1 and 255 characters in length.
    spec VirtualServiceSpecArgs
    Virtual service specification to apply.
    mesh_owner str
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    name str
    Name to use for the virtual service. Must be between 1 and 255 characters in length.
    tags Mapping[str, str]
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    meshName String
    Name of the service mesh in which to create the virtual service. Must be between 1 and 255 characters in length.
    spec Property Map
    Virtual service specification to apply.
    meshOwner String
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    name String
    Name to use for the virtual service. Must be between 1 and 255 characters in length.
    tags Map<String>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VirtualService resource produces the following output properties:

    Arn string
    ARN of the virtual service.
    CreatedDate string
    Creation date of the virtual service.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdatedDate string
    Last update date of the virtual service.
    ResourceOwner string
    Resource owner's AWS account ID.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    ARN of the virtual service.
    CreatedDate string
    Creation date of the virtual service.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdatedDate string
    Last update date of the virtual service.
    ResourceOwner string
    Resource owner's AWS account ID.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the virtual service.
    createdDate String
    Creation date of the virtual service.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdatedDate String
    Last update date of the virtual service.
    resourceOwner String
    Resource owner's AWS account ID.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    ARN of the virtual service.
    createdDate string
    Creation date of the virtual service.
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdatedDate string
    Last update date of the virtual service.
    resourceOwner string
    Resource owner's AWS account ID.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    ARN of the virtual service.
    created_date str
    Creation date of the virtual service.
    id str
    The provider-assigned unique ID for this managed resource.
    last_updated_date str
    Last update date of the virtual service.
    resource_owner str
    Resource owner's AWS account ID.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the virtual service.
    createdDate String
    Creation date of the virtual service.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdatedDate String
    Last update date of the virtual service.
    resourceOwner String
    Resource owner's AWS account ID.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up Existing VirtualService Resource

    Get an existing VirtualService resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VirtualServiceState, opts?: CustomResourceOptions): VirtualService
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            created_date: Optional[str] = None,
            last_updated_date: Optional[str] = None,
            mesh_name: Optional[str] = None,
            mesh_owner: Optional[str] = None,
            name: Optional[str] = None,
            resource_owner: Optional[str] = None,
            spec: Optional[VirtualServiceSpecArgs] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> VirtualService
    func GetVirtualService(ctx *Context, name string, id IDInput, state *VirtualServiceState, opts ...ResourceOption) (*VirtualService, error)
    public static VirtualService Get(string name, Input<string> id, VirtualServiceState? state, CustomResourceOptions? opts = null)
    public static VirtualService get(String name, Output<String> id, VirtualServiceState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    ARN of the virtual service.
    CreatedDate string
    Creation date of the virtual service.
    LastUpdatedDate string
    Last update date of the virtual service.
    MeshName string
    Name of the service mesh in which to create the virtual service. Must be between 1 and 255 characters in length.
    MeshOwner string
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    Name string
    Name to use for the virtual service. Must be between 1 and 255 characters in length.
    ResourceOwner string
    Resource owner's AWS account ID.
    Spec VirtualServiceSpec
    Virtual service specification to apply.
    Tags Dictionary<string, string>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    ARN of the virtual service.
    CreatedDate string
    Creation date of the virtual service.
    LastUpdatedDate string
    Last update date of the virtual service.
    MeshName string
    Name of the service mesh in which to create the virtual service. Must be between 1 and 255 characters in length.
    MeshOwner string
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    Name string
    Name to use for the virtual service. Must be between 1 and 255 characters in length.
    ResourceOwner string
    Resource owner's AWS account ID.
    Spec VirtualServiceSpecArgs
    Virtual service specification to apply.
    Tags map[string]string
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the virtual service.
    createdDate String
    Creation date of the virtual service.
    lastUpdatedDate String
    Last update date of the virtual service.
    meshName String
    Name of the service mesh in which to create the virtual service. Must be between 1 and 255 characters in length.
    meshOwner String
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    name String
    Name to use for the virtual service. Must be between 1 and 255 characters in length.
    resourceOwner String
    Resource owner's AWS account ID.
    spec VirtualServiceSpec
    Virtual service specification to apply.
    tags Map<String,String>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    ARN of the virtual service.
    createdDate string
    Creation date of the virtual service.
    lastUpdatedDate string
    Last update date of the virtual service.
    meshName string
    Name of the service mesh in which to create the virtual service. Must be between 1 and 255 characters in length.
    meshOwner string
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    name string
    Name to use for the virtual service. Must be between 1 and 255 characters in length.
    resourceOwner string
    Resource owner's AWS account ID.
    spec VirtualServiceSpec
    Virtual service specification to apply.
    tags {[key: string]: string}
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    ARN of the virtual service.
    created_date str
    Creation date of the virtual service.
    last_updated_date str
    Last update date of the virtual service.
    mesh_name str
    Name of the service mesh in which to create the virtual service. Must be between 1 and 255 characters in length.
    mesh_owner str
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    name str
    Name to use for the virtual service. Must be between 1 and 255 characters in length.
    resource_owner str
    Resource owner's AWS account ID.
    spec VirtualServiceSpecArgs
    Virtual service specification to apply.
    tags Mapping[str, str]
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the virtual service.
    createdDate String
    Creation date of the virtual service.
    lastUpdatedDate String
    Last update date of the virtual service.
    meshName String
    Name of the service mesh in which to create the virtual service. Must be between 1 and 255 characters in length.
    meshOwner String
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    name String
    Name to use for the virtual service. Must be between 1 and 255 characters in length.
    resourceOwner String
    Resource owner's AWS account ID.
    spec Property Map
    Virtual service specification to apply.
    tags Map<String>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Supporting Types

    VirtualServiceSpec, VirtualServiceSpecArgs

    Provider VirtualServiceSpecProvider
    App Mesh object that is acting as the provider for a virtual service. You can specify a single virtual node or virtual router.
    Provider VirtualServiceSpecProvider
    App Mesh object that is acting as the provider for a virtual service. You can specify a single virtual node or virtual router.
    provider VirtualServiceSpecProvider
    App Mesh object that is acting as the provider for a virtual service. You can specify a single virtual node or virtual router.
    provider VirtualServiceSpecProvider
    App Mesh object that is acting as the provider for a virtual service. You can specify a single virtual node or virtual router.
    provider VirtualServiceSpecProvider
    App Mesh object that is acting as the provider for a virtual service. You can specify a single virtual node or virtual router.
    provider Property Map
    App Mesh object that is acting as the provider for a virtual service. You can specify a single virtual node or virtual router.

    VirtualServiceSpecProvider, VirtualServiceSpecProviderArgs

    VirtualNode VirtualServiceSpecProviderVirtualNode
    Virtual node associated with a virtual service.
    VirtualRouter VirtualServiceSpecProviderVirtualRouter
    Virtual router associated with a virtual service.
    VirtualNode VirtualServiceSpecProviderVirtualNode
    Virtual node associated with a virtual service.
    VirtualRouter VirtualServiceSpecProviderVirtualRouter
    Virtual router associated with a virtual service.
    virtualNode VirtualServiceSpecProviderVirtualNode
    Virtual node associated with a virtual service.
    virtualRouter VirtualServiceSpecProviderVirtualRouter
    Virtual router associated with a virtual service.
    virtualNode VirtualServiceSpecProviderVirtualNode
    Virtual node associated with a virtual service.
    virtualRouter VirtualServiceSpecProviderVirtualRouter
    Virtual router associated with a virtual service.
    virtual_node VirtualServiceSpecProviderVirtualNode
    Virtual node associated with a virtual service.
    virtual_router VirtualServiceSpecProviderVirtualRouter
    Virtual router associated with a virtual service.
    virtualNode Property Map
    Virtual node associated with a virtual service.
    virtualRouter Property Map
    Virtual router associated with a virtual service.

    VirtualServiceSpecProviderVirtualNode, VirtualServiceSpecProviderVirtualNodeArgs

    VirtualNodeName string
    Name of the virtual node that is acting as a service provider. Must be between 1 and 255 characters in length.
    VirtualNodeName string
    Name of the virtual node that is acting as a service provider. Must be between 1 and 255 characters in length.
    virtualNodeName String
    Name of the virtual node that is acting as a service provider. Must be between 1 and 255 characters in length.
    virtualNodeName string
    Name of the virtual node that is acting as a service provider. Must be between 1 and 255 characters in length.
    virtual_node_name str
    Name of the virtual node that is acting as a service provider. Must be between 1 and 255 characters in length.
    virtualNodeName String
    Name of the virtual node that is acting as a service provider. Must be between 1 and 255 characters in length.

    VirtualServiceSpecProviderVirtualRouter, VirtualServiceSpecProviderVirtualRouterArgs

    VirtualRouterName string
    Name of the virtual router that is acting as a service provider. Must be between 1 and 255 characters in length.
    VirtualRouterName string
    Name of the virtual router that is acting as a service provider. Must be between 1 and 255 characters in length.
    virtualRouterName String
    Name of the virtual router that is acting as a service provider. Must be between 1 and 255 characters in length.
    virtualRouterName string
    Name of the virtual router that is acting as a service provider. Must be between 1 and 255 characters in length.
    virtual_router_name str
    Name of the virtual router that is acting as a service provider. Must be between 1 and 255 characters in length.
    virtualRouterName String
    Name of the virtual router that is acting as a service provider. Must be between 1 and 255 characters in length.

    Import

    Using pulumi import, import App Mesh virtual services using mesh_name together with the virtual service’s name. For example:

    $ pulumi import aws:appmesh/virtualService:VirtualService servicea simpleapp/servicea.simpleapp.local
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi