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.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.GameLift
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnContainerFleet.IpPermissionProperty : CfnContainerFleet.IIpPermissionProperty
Syntax (vb)
Public Class CfnContainerFleet.IpPermissionProperty Implements CfnContainerFleet.IIpPermissionProperty
Remarks
Processes are assigned an IP address/port number combination, which must fall into the fleet's allowed ranges.
For Amazon GameLift Servers Realtime fleets, Amazon GameLift Servers 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() | A range of IP addresses and port settings that allow inbound traffic to connect to processes on an instance in a fleet. |
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()
A range of IP addresses and port settings that allow inbound traffic to connect to processes on an instance in a fleet.
public IpPermissionProperty()
Remarks
Processes are assigned an IP address/port number combination, which must fall into the fleet's allowed ranges.
For Amazon GameLift Servers Realtime fleets, Amazon GameLift Servers 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
};
Properties
FromPort
A starting value for a range of allowed port numbers.
public double FromPort { get; set; }
Property Value
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
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
Remarks
ToPort
An ending value for a range of allowed port numbers.
public double ToPort { get; set; }
Property Value
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.