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,
},
},
},
});
}
}
Inherited Members
Namespace: Pulumi.Aws.AppMesh
Assembly: Pulumi.Aws.dll
Syntax
public class VirtualService : CustomResource
Constructors
View SourceVirtualService(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 SourceArn
The ARN of the virtual service.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
CreatedDate
The creation date of the virtual service.
Declaration
public Output<string> CreatedDate { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LastUpdatedDate
The last update date of the virtual service.
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 service.
Declaration
public Output<string> MeshName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name to use for the virtual service.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Spec
The virtual service specification to apply.
Declaration
public Output<VirtualServiceSpec> Spec { get; }
Property Value
| Type | Description |
|---|---|
| Output<VirtualServiceSpec> |
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>, 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 |