Class ServiceConnect
ServiceConnect ValueObjectClass having by ContainerDefinition.
Inheritance
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ServiceConnect : DeputyBase
Syntax (vb)
Public Class ServiceConnect
Inherits DeputyBase
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;
AppProtocol appProtocol;
var serviceConnect = new ServiceConnect(NetworkMode.NONE, new PortMapping {
ContainerPort = 123,
// the properties below are optional
AppProtocol = appProtocol,
ContainerPortRange = "containerPortRange",
HostPort = 123,
Name = "name",
Protocol = Protocol.TCP
});
Synopsis
Constructors
ServiceConnect(NetworkMode, IPortMapping) | |
ServiceConnect(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ServiceConnect(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Networkmode | The networking mode to use for the containers in the task. |
Portmapping | Port mappings allow containers to access ports on the host container instance to send or receive traffic. |
Methods
IsServiceConnect() | Judge parameters can be serviceconnect logick. |
Validate() | Judge serviceconnect parametes are valid. |
Constructors
ServiceConnect(NetworkMode, IPortMapping)
public ServiceConnect(NetworkMode networkmode, IPortMapping pm)
Parameters
- networkmode NetworkMode
- pm IPortMapping
ServiceConnect(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ServiceConnect(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ServiceConnect(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ServiceConnect(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Networkmode
The networking mode to use for the containers in the task.
public virtual NetworkMode Networkmode { get; }
Property Value
Portmapping
Port mappings allow containers to access ports on the host container instance to send or receive traffic.
public virtual IPortMapping Portmapping { get; }
Property Value
Methods
IsServiceConnect()
Judge parameters can be serviceconnect logick.
public virtual bool IsServiceConnect()
Returns
System.Boolean
Remarks
If parameters can be serviceConnect return true.
Validate()
Judge serviceconnect parametes are valid.
public virtual void Validate()
Remarks
If invalid, throw Error.