Class PortProps
(experimental) Properties to create a port range.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.GameLift.Alpha
Assembly: Amazon.CDK.AWS.GameLift.Alpha.dll
Syntax (csharp)
public class PortProps : Object, IPortProps
Syntax (vb)
Public Class PortProps
Inherits Object
Implements IPortProps
Remarks
Stability: Experimental
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.GameLift.Alpha;
var portProps = new PortProps {
FromPort = 123,
Protocol = Protocol.TCP,
// the properties below are optional
ToPort = 123
};
Synopsis
Constructors
PortProps() |
Properties
FromPort | (experimental) A starting value for a range of allowed port numbers. |
Protocol | (experimental) The protocol for the range. |
ToPort | (experimental) An ending value for a range of allowed port numbers. |
Constructors
PortProps()
public PortProps()
Properties
FromPort
(experimental) A starting value for a range of allowed port numbers.
public double FromPort { get; set; }
Property Value
System.Double
Remarks
For fleets using Windows and Linux builds, only ports 1026-60000 are valid.
Stability: Experimental
Protocol
(experimental) The protocol for the range.
public Protocol Protocol { get; set; }
Property Value
Remarks
Stability: Experimental
ToPort
(experimental) An ending value for a range of allowed port numbers.
public Nullable<double> ToPort { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Port numbers are end-inclusive.
This value must be higher than fromPort
.
For fleets using Windows and Linux builds, only ports 1026-60000 are valid.
Default: the fromPort
value
Stability: Experimental