Class Backend
Contains static factory methods to create backends.
Inheritance
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class Backend : DeputyBase
Syntax (vb)
Public MustInherit Class Backend
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
Mesh mesh;
VirtualRouter router;
Service service;
var node = new VirtualNode(this, "node", new VirtualNodeProps {
Mesh = mesh,
ServiceDiscovery = ServiceDiscovery.CloudMap(service),
Listeners = new [] { VirtualNodeListener.Http(new HttpVirtualNodeListenerOptions {
Port = 8080,
HealthCheck = HealthCheck.Http(new HttpHealthCheckOptions {
HealthyThreshold = 3,
Interval = Duration.Seconds(5),
Path = "/ping",
Timeout = Duration.Seconds(2),
UnhealthyThreshold = 2
}),
Timeout = new HttpTimeout {
Idle = Duration.Seconds(5)
}
}) },
AccessLog = AccessLog.FromFilePath("/dev/stdout")
});
var virtualService = new VirtualService(this, "service-1", new VirtualServiceProps {
VirtualServiceProvider = VirtualServiceProvider.VirtualRouter(router),
VirtualServiceName = "service1.domain.local"
});
node.AddBackend(Backend.VirtualService(virtualService));
Synopsis
Constructors
Backend() | |
Backend(By |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Backend(Deputy |
Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(Construct) | Return backend config. |
Virtual |
Construct a Virtual Service backend. |
Constructors
Backend()
protected Backend()
Backend(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Backend(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
Backend(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Backend(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
Methods
Bind(Construct)
Return backend config.
public abstract IBackendConfig Bind(Construct scope)
Parameters
- scope Constructs.
Construct
Returns
VirtualService(IVirtualService, IVirtualServiceBackendOptions)
Construct a Virtual Service backend.
public static Backend VirtualService(IVirtualService virtualService, IVirtualServiceBackendOptions props = null)
Parameters
- virtualService IVirtual
Service - props IVirtual
Service Backend Options
Returns