Class NetworkTargetProps
Properties to define a network load balancer target group.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class NetworkTargetProps : Object, INetworkTargetProps
Syntax (vb)
Public Class NetworkTargetProps
Inherits Object
Implements INetworkTargetProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS.Patterns;
var networkTargetProps = new NetworkTargetProps {
ContainerPort = 123,
// the properties below are optional
Listener = "listener"
};
Synopsis
Constructors
Network |
Properties
Container |
The port number of the container. |
Listener | Name of the listener the target group attached to. |
Constructors
NetworkTargetProps()
public NetworkTargetProps()
Properties
ContainerPort
The port number of the container.
public double ContainerPort { get; set; }
Property Value
System.
Remarks
Only applicable when using application/network load balancers.
Listener
Name of the listener the target group attached to.
public string Listener { get; set; }
Property Value
System.
Remarks
Default: - default listener (first added listener)