{
  "$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-input-schema.json",
  "title": "DescribeContainerGroupPortMappingsInput",
  "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/DescribeContainerGroupPortMappingsInput",
  "type": "object",
  "properties": {
    "FleetId": {
      "type": "string",
      "description": "A unique identifier for the container fleet. You can use either the fleet ID or ARN value."
    },
    "ContainerGroupType": {
      "type": "string",
      "enum": [
        "GAME_SERVER",
        "PER_INSTANCE"
      ],
      "description": "The type of container group to retrieve port mappings for. GAME_SERVER -- Get port mappings for a game server container group. PER_INSTANCE -- Get port mappings for a per-instance container group."
    },
    "ComputeName": {
      "type": "string",
      "description": "A unique identifier for the compute resource for which to retrieve port mappings. For a container fleet, a compute represents a game server container group running on a fleet instance. You can use either the compute name or ARN value. When ContainerGroupType is GAME_SERVER, this parameter is required. When ContainerGroupType is PER_INSTANCE, do not provide this parameter. If you provide a compute name with PER_INSTANCE, the request fails with an InvalidRequestException."
    },
    "InstanceId": {
      "type": "string",
      "description": "A unique identifier for the fleet instance to retrieve port mappings for. When ContainerGroupType is PER_INSTANCE, this parameter is required. When ContainerGroupType is GAME_SERVER, this parameter is optional. If you provide an instance ID, it must match the instance that's running the specified compute. If the instance ID doesn't match, the request fails with an InvalidRequestException."
    },
    "ContainerName": {
      "type": "string",
      "description": "A container name to filter the results. When provided, the operation returns port mappings for the specified container only. If no container with the specified name exists in the container group, the request fails with a NotFoundException. If not provided, the operation returns port mappings for all containers in the container group."
    }
  },
  "required": [
    "FleetId",
    "ContainerGroupType"
  ]
}