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_namesfrom thespecargument. AWS has created aaws.appmesh.VirtualServiceresource for each of service names. These resource can be imported usingimport.Add a
listenerconfiguration block to thespecargument.
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",
},
},
},
});
}
}
Inherited Members
Namespace: Pulumi.Aws.AppMesh
Assembly: Pulumi.Aws.dll
Syntax
public class VirtualRouter : CustomResource
Constructors
View SourceVirtualRouter(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 SourceArn
The ARN of the virtual router.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
CreatedDate
The creation date of the virtual router.
Declaration
public Output<string> CreatedDate { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LastUpdatedDate
The last update date of the virtual router.
Declaration
public Output<string> LastUpdatedDate { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
Name
The name to use for the virtual router.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Spec
The virtual router specification to apply.
Declaration
public Output<VirtualRouterSpec> Spec { get; }
Property Value
| Type | Description |
|---|---|
| Output<VirtualRouterSpec> |
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 SourceGet(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 |