Show / Hide Table of Contents

Class VirtualRouter

Provides an AWS App Mesh virtual router resource.

Breaking Changes

Because of backward incompatible API changes (read here and here), aws.appmesh.VirtualRouter resource definitions created with provider versions earlier than v2.3.0 will need to be modified:

  • Remove service service_names from the spec argument. AWS has created a aws.appmesh.VirtualService resource for each of service names. These resource can be imported using import.

  • Add a listener configuration block to the spec argument.

The state associated with existing resources will automatically be migrated.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var serviceb = new Aws.AppMesh.VirtualRouter("serviceb", new Aws.AppMesh.VirtualRouterArgs
    {
        MeshName = aws_appmesh_mesh.Simple.Id,
        Spec = new Aws.AppMesh.Inputs.VirtualRouterSpecArgs
        {
            Listener = new Aws.AppMesh.Inputs.VirtualRouterSpecListenerArgs
            {
                PortMapping = new Aws.AppMesh.Inputs.VirtualRouterSpecListenerPortMappingArgs
                {
                    Port = 8080,
                    Protocol = "http",
                },
            },
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
VirtualRouter
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 VirtualRouter : CustomResource

Constructors

View Source

VirtualRouter(String, VirtualRouterArgs, CustomResourceOptions)

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

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

The unique name of the resource

VirtualRouterArgs 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 router.

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

CreatedDate

The creation date of the virtual router.

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

LastUpdatedDate

The last update date of the virtual router.

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 router.

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

Name

The name to use for the virtual router.

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

Spec

The virtual router specification to apply.

Declaration
public Output<VirtualRouterSpec> Spec { get; }
Property Value
Type Description
Output<VirtualRouterSpec>
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>, VirtualRouterState, CustomResourceOptions)

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

Declaration
public static VirtualRouter Get(string name, Input<string> id, VirtualRouterState 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.

VirtualRouterState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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