VirtualServiceProvider

class aws_cdk.aws_appmesh.VirtualServiceProvider

Bases: object

Represents the properties needed to define the provider for a VirtualService.

ExampleMetadata:

infused

Example:

# mesh: appmesh.Mesh


node = appmesh.VirtualNode(self, "node",
    mesh=mesh,
    service_discovery=appmesh.ServiceDiscovery.dns("node")
)

virtual_service = appmesh.VirtualService(self, "service-1",
    virtual_service_provider=appmesh.VirtualServiceProvider.virtual_node(node),
    virtual_service_name="service1.domain.local"
)

node.add_backend(appmesh.Backend.virtual_service(virtual_service))

Methods

abstract bind(_construct)

Enforces mutual exclusivity for VirtualService provider types.

Parameters:

_construct (Construct) –

Return type:

VirtualServiceProviderConfig

Static Methods

classmethod none(mesh)

Returns an Empty Provider for a VirtualService.

This provides no routing capabilities and should only be used as a placeholder

Parameters:

mesh (IMesh) –

Return type:

VirtualServiceProvider

classmethod virtual_node(virtual_node)

Returns a VirtualNode based Provider for a VirtualService.

Parameters:

virtual_node (IVirtualNode) –

Return type:

VirtualServiceProvider

classmethod virtual_router(virtual_router)

Returns a VirtualRouter based Provider for a VirtualService.

Parameters:

virtual_router (IVirtualRouter) –

Return type:

VirtualServiceProvider