Show / Hide Table of Contents

Class VirtualService

Provides an AWS App Mesh virtual service resource.

Example Usage

Virtual Node Provider

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var servicea = new Aws.AppMesh.VirtualService("servicea", new Aws.AppMesh.VirtualServiceArgs
    {
        MeshName = aws_appmesh_mesh.Simple.Id,
        Spec = new Aws.AppMesh.Inputs.VirtualServiceSpecArgs
        {
            Provider = new Aws.AppMesh.Inputs.VirtualServiceSpecProviderArgs
            {
                VirtualNode = new Aws.AppMesh.Inputs.VirtualServiceSpecProviderVirtualNodeArgs
                {
                    VirtualNodeName = aws_appmesh_virtual_node.Serviceb1.Name,
                },
            },
        },
    });
}

}

Virtual Router Provider

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var servicea = new Aws.AppMesh.VirtualService("servicea", new Aws.AppMesh.VirtualServiceArgs
    {
        MeshName = aws_appmesh_mesh.Simple.Id,
        Spec = new Aws.AppMesh.Inputs.VirtualServiceSpecArgs
        {
            Provider = new Aws.AppMesh.Inputs.VirtualServiceSpecProviderArgs
            {
                VirtualRouter = new Aws.AppMesh.Inputs.VirtualServiceSpecProviderVirtualRouterArgs
                {
                    VirtualRouterName = aws_appmesh_virtual_router.Serviceb.Name,
                },
            },
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
VirtualService
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.AppMesh
Assembly: Pulumi.Aws.dll
Syntax
public class VirtualService : CustomResource

Constructors

View Source

VirtualService(String, VirtualServiceArgs, CustomResourceOptions)

Create a VirtualService resource with the given unique name, arguments, and options.

Declaration
public VirtualService(string name, VirtualServiceArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

VirtualServiceArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Arn

The ARN of the virtual service.

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

CreatedDate

The creation date of the virtual service.

Declaration
public Output<string> CreatedDate { get; }
Property Value
Type Description
Output<System.String>
View Source

LastUpdatedDate

The last update date of the virtual service.

Declaration
public Output<string> LastUpdatedDate { get; }
Property Value
Type Description
Output<System.String>
View Source

MeshName

The name of the service mesh in which to create the virtual service.

Declaration
public Output<string> MeshName { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

The name to use for the virtual service.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Spec

The virtual service specification to apply.

Declaration
public Output<VirtualServiceSpec> Spec { get; }
Property Value
Type Description
Output<VirtualServiceSpec>
View Source

Tags

A map of tags to assign to the resource.

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>

Methods

View Source

Get(String, Input<String>, VirtualServiceState, CustomResourceOptions)

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

Declaration
public static VirtualService Get(string name, Input<string> id, VirtualServiceState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

VirtualServiceState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
VirtualService
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.