Amazon GameLift · JSON Structure

Gamelift Ip Permission Structure

A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an instance in a fleet. New game sessions are assigned an IP address/port number combination, which must fall into the fleet's allowed ranges. Fleets with custom game builds must have permissions explicitly set. For Realtime Servers fleets, Amazon GameLift automatically opens two port ranges, one for TCP messaging and one for UDP.

Type: object Properties: 4 Required: 4
Cloud ComputingGame ServersGamingMultiplayerMatchmakingFlexMatchFleetIQ

IpPermission is a JSON Structure definition published by Amazon GameLift, describing 4 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

FromPort ToPort IpRange Protocol

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-gamelift/refs/heads/main/json-structure/gamelift-ip-permission-structure.json",
  "name": "IpPermission",
  "description": "A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an instance in a fleet. New game sessions are assigned an IP address/port number combination, which must fall into the fleet's allowed ranges. Fleets with custom game builds must have permissions explicitly set. For Realtime Servers fleets, Amazon GameLift automatically opens two port ranges, one for TCP messaging and one for UDP.",
  "type": "object",
  "properties": {
    "FromPort": {
      "allOf": [
        {
          "$ref": "#/components/schemas/PortNumber"
        },
        {
          "description": "<p>A starting value for a range of allowed port numbers.</p> <p>For fleets using Linux builds, only ports <code>22</code> and <code>1026-60000</code> are valid.</p> <p>For fleets using Windows builds, only ports <code>1026-60000</code> are valid.</p>"
        }
      ]
    },
    "ToPort": {
      "allOf": [
        {
          "$ref": "#/components/schemas/PortNumber"
        },
        {
          "description": "<p>An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be equal to or greater than <code>FromPort</code>.</p> <p>For fleets using Linux builds, only ports <code>22</code> and <code>1026-60000</code> are valid.</p> <p>For fleets using Windows builds, only ports <code>1026-60000</code> are valid.</p>"
        }
      ]
    },
    "IpRange": {
      "allOf": [
        {
          "$ref": "#/components/schemas/NonBlankString"
        },
        {
          "description": "A range of allowed IP addresses. This value must be expressed in CIDR notation. Example: \"<code>000.000.000.000/[subnet mask]</code>\" or optionally the shortened version \"<code>0.0.0.0/[subnet mask]</code>\"."
        }
      ]
    },
    "Protocol": {
      "allOf": [
        {
          "$ref": "#/components/schemas/IpProtocol"
        },
        {
          "description": "The network communication protocol used by the fleet."
        }
      ]
    }
  },
  "required": [
    "FromPort",
    "ToPort",
    "IpRange",
    "Protocol"
  ]
}