Class CfnContainerFleet.IpPermissionProperty
A range of IP addresses and port settings that allow inbound traffic to connect to processes on an instance in a fleet.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.GameLift
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class IpPermissionProperty : Object, CfnContainerFleet.IIpPermissionProperty
Syntax (vb)
Public Class IpPermissionProperty
Inherits Object
Implements CfnContainerFleet.IIpPermissionProperty
Remarks
Processes are assigned an IP address/port number combination, which must fall into the fleet's allowed ranges.
For Realtime Servers fleets, Amazon GameLift automatically opens two port ranges, one for TCP messaging and one for UDP.
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;
var ipPermissionProperty = new IpPermissionProperty {
FromPort = 123,
IpRange = "ipRange",
Protocol = "protocol",
ToPort = 123
};
Synopsis
Constructors
IpPermissionProperty() |
Properties
FromPort | A starting value for a range of allowed port numbers. |
IpRange | A range of allowed IP addresses. |
Protocol | The network communication protocol used by the fleet. |
ToPort | An ending value for a range of allowed port numbers. |
Constructors
IpPermissionProperty()
public IpPermissionProperty()
Properties
FromPort
A starting value for a range of allowed port numbers.
public double FromPort { get; set; }
Property Value
System.Double
Remarks
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.
IpRange
A range of allowed IP addresses.
public string IpRange { get; set; }
Property Value
System.String
Remarks
This value must be expressed in CIDR notation. Example: " 000.000.000.000/[subnet mask]
" or optionally the shortened version " 0.0.0.0/[subnet mask]
".
Protocol
The network communication protocol used by the fleet.
public string Protocol { get; set; }
Property Value
System.String
Remarks
ToPort
An ending value for a range of allowed port numbers.
public double ToPort { get; set; }
Property Value
System.Double
Remarks
Port numbers are end-inclusive. This value must be equal to or greater than FromPort
.
For fleets using Linux builds, only ports 22
and 1026-60000
are valid.
For fleets using Windows builds, only ports 1026-60000
are valid.