Skip to content
v2.278.0

VirtualRouterAttributes Struct ​

Interface with properties ncecessary to import a reusable VirtualRouter.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';

declare const mesh: appmesh.Mesh;
const virtualRouterAttributes: appmesh.VirtualRouterAttributes = {
  mesh: mesh,
  virtualRouterName: 'virtualRouterName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appmesh as appmesh

# mesh: appmesh.Mesh

virtual_router_attributes = appmesh.VirtualRouterAttributes(
    mesh=mesh,
    virtual_router_name="virtualRouterName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appmesh.*;

Mesh mesh;

VirtualRouterAttributes virtualRouterAttributes = VirtualRouterAttributes.builder()
        .mesh(mesh)
        .virtualRouterName("virtualRouterName")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;

Mesh mesh;

var virtualRouterAttributes = new VirtualRouterAttributes {
    Mesh = mesh,
    VirtualRouterName = "virtualRouterName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var mesh Mesh

virtualRouterAttributes := &VirtualRouterAttributes{
	Mesh: mesh,
	VirtualRouterName: jsii.String("virtualRouterName"),
}

Properties ​

meshIMeshmeshIMeshmeshIMeshMeshIMeshMeshIMesh required #
The Mesh which the VirtualRouter belongs to.
virtualRouterNamestringvirtual_router_namestrvirtualRouterNameStringVirtualRouterNamestringVirtualRouterName*string required #
The name of the VirtualRouter.