{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-gamelift/json-schema/amazon-gamelift-describe-container-group-port-mappings-output-schema.json",
  "title": "DescribeContainerGroupPortMappingsOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-gamelift-operations-api-openapi.yml#/components/schemas/DescribeContainerGroupPortMappingsOutput",
  "type": "object",
  "properties": {
    "FleetId": {
      "type": "string",
      "description": "A unique identifier for the container fleet."
    },
    "FleetArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift Servers fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is arn:aws:gamelift:::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912. In a GameLift fleet ARN, the resource ID matches the FleetId value."
    },
    "Location": {
      "type": "string",
      "description": "The location of the fleet instance, expressed as an Amazon Web Services Region code, such as us-west-2."
    },
    "ContainerGroupDefinitionArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) that is assigned to the container group definition. The ARN value also identifies the specific container group definition version in use."
    },
    "ContainerGroupType": {
      "type": "string",
      "enum": [
        "GAME_SERVER",
        "PER_INSTANCE"
      ],
      "description": "The type of container group that was specified in the request. Valid values are GAME_SERVER or PER_INSTANCE."
    },
    "ComputeName": {
      "type": "string",
      "description": "A unique identifier for the compute resource running the game server container group. Returned when ContainerGroupType is GAME_SERVER."
    },
    "InstanceId": {
      "type": "string",
      "description": "A unique identifier for the fleet instance. For GAME_SERVER requests, this is the instance running the specified compute. For PER_INSTANCE requests, this is the instance specified in the request."
    },
    "ContainerGroupPortMappings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContainerGroupPortMapping"
      },
      "description": "A list of ContainerGroupPortMapping objects that describe the port mappings for each container in the container group."
    }
  },
  "$defs": {
    "ContainerGroupPortMapping": {
      "type": "object",
      "properties": {
        "ContainerName": {
          "type": "string",
          "description": "The name of the container, as defined in the container group definition."
        },
        "ContainerRuntimeId": {
          "type": "string",
          "description": "The runtime ID for the container that's running in a compute. This value is unique within the compute."
        },
        "ContainerPortMappings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ContainerPortMapping"
          },
          "description": "A list of ContainerPortMapping objects that describe the port mappings for this container."
        }
      }
    },
    "ContainerPortMapping": {
      "type": "object",
      "properties": {
        "ContainerPort": {
          "type": "integer",
          "description": "The port number on the container. This port is defined in the container group definition. Container port numbers must be unique within a container group definition."
        },
        "ConnectionPort": {
          "type": "integer",
          "description": "The port number on the fleet instance that maps to the container port. Connection ports are assigned by Amazon GameLift Servers when the container group is deployed to an instance."
        },
        "Protocol": {
          "type": "string",
          "enum": [
            "TCP",
            "UDP"
          ],
          "description": "The network protocol for the port mapping. Valid values are TCP or UDP."
        }
      }
    }
  }
}