CfnVirtualRouterProps

class aws_cdk.aws_appmesh.CfnVirtualRouterProps(*, mesh_name, mesh_owner=None, spec, tags=None, virtual_router_name=None)

Bases: object

Properties for defining a AWS::AppMesh::VirtualRouter.

Parameters
  • mesh_name (str) – AWS::AppMesh::VirtualRouter.MeshName.

  • mesh_owner (Optional[str]) – AWS::AppMesh::VirtualRouter.MeshOwner.

  • spec (Union[IResolvable, VirtualRouterSpecProperty]) – AWS::AppMesh::VirtualRouter.Spec.

  • tags (Optional[Sequence[CfnTag]]) – AWS::AppMesh::VirtualRouter.Tags.

  • virtual_router_name (Optional[str]) – AWS::AppMesh::VirtualRouter.VirtualRouterName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualrouter.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_appmesh as appmesh

cfn_virtual_router_props = appmesh.CfnVirtualRouterProps(
    mesh_name="meshName",
    spec=appmesh.CfnVirtualRouter.VirtualRouterSpecProperty(
        listeners=[appmesh.CfnVirtualRouter.VirtualRouterListenerProperty(
            port_mapping=appmesh.CfnVirtualRouter.PortMappingProperty(
                port=123,
                protocol="protocol"
            )
        )]
    ),

    # the properties below are optional
    mesh_owner="meshOwner",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    virtual_router_name="virtualRouterName"
)

Attributes

mesh_name

AWS::AppMesh::VirtualRouter.MeshName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualrouter.html#cfn-appmesh-virtualrouter-meshname

Return type

str

mesh_owner

AWS::AppMesh::VirtualRouter.MeshOwner.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualrouter.html#cfn-appmesh-virtualrouter-meshowner

Return type

Optional[str]

spec

AWS::AppMesh::VirtualRouter.Spec.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualrouter.html#cfn-appmesh-virtualrouter-spec

Return type

Union[IResolvable, VirtualRouterSpecProperty]

tags

AWS::AppMesh::VirtualRouter.Tags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualrouter.html#cfn-appmesh-virtualrouter-tags

Return type

Optional[List[CfnTag]]

virtual_router_name

AWS::AppMesh::VirtualRouter.VirtualRouterName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualrouter.html#cfn-appmesh-virtualrouter-virtualroutername

Return type

Optional[str]