VirtualServiceProvider

class aws_cdk.aws_appmesh.VirtualServiceProvider

Bases: object

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

Example:

# router is of type VirtualRouter


appmesh.VirtualService(self, "virtual-service",
    virtual_service_name="my-service.default.svc.cluster.local",  # optional
    virtual_service_provider=appmesh.VirtualServiceProvider.virtual_router(router)
)

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