{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-gamelift/json-schema/amazon-gamelift-update-container-fleet-input-schema.json",
  "title": "UpdateContainerFleetInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-gamelift-container-fleet-api-openapi.yml#/components/schemas/UpdateContainerFleetInput",
  "type": "object",
  "properties": {
    "FleetId": {
      "type": "string",
      "description": "A unique identifier for the container fleet to update. You can use either the fleet ID or ARN value."
    },
    "GameServerContainerGroupDefinitionName": {
      "type": "string",
      "description": "The name or ARN value of a new game server container group definition to deploy on the fleet. If you're updating the fleet to a specific version of a container group definition, use the ARN value and include the version number. If you're updating the fleet to the latest version of a container group definition, you can use the name value. You can't remove a fleet's game server container group definition, you can only update or replace it with another definition. Update a container group definition by calling UpdateContainerGroupDefinition. This operation creates a ContainerGroupDefinition resou"
    },
    "PerInstanceContainerGroupDefinitionName": {
      "type": "string",
      "description": "The name or ARN value of a new per-instance container group definition to deploy on the fleet. If you're updating the fleet to a specific version of a container group definition, use the ARN value and include the version number. If you're updating the fleet to the latest version of a container group definition, you can use the name value. Update a container group definition by calling UpdateContainerGroupDefinition. This operation creates a ContainerGroupDefinition resource with an incremented version. To remove a fleet's per-instance container group definition, leave this parameter empty and "
    },
    "GameServerContainerGroupsPerInstance": {
      "type": "integer",
      "description": "The number of times to replicate the game server container group on each fleet instance. By default, Amazon GameLift Servers calculates the maximum number of game server container groups that can fit on each instance. You can remove this property value to use the calculated value, or set it manually. If you set this number manually, Amazon GameLift Servers uses your value as long as it's less than the calculated maximum."
    },
    "InstanceConnectionPortRange": {
      "$ref": "#/$defs/ConnectionPortRange"
    },
    "InstanceInboundPermissionAuthorizations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/IpPermission"
      },
      "description": "A set of ports to add to the container fleet's inbound permissions. The port range must not overlap with the Amazon GameLift Servers reserved port range 4092-4191. This range is reserved for internal Amazon GameLift Servers services."
    },
    "InstanceInboundPermissionRevocations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/IpPermission"
      },
      "description": "A set of ports to remove from the container fleet's inbound permissions."
    },
    "DeploymentConfiguration": {
      "$ref": "#/$defs/DeploymentConfiguration"
    },
    "Description": {
      "type": "string",
      "description": "A meaningful description of the container fleet."
    },
    "MetricGroups": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The name of an Amazon Web Services CloudWatch metric group to add this fleet to."
    },
    "NewGameSessionProtectionPolicy": {
      "type": "string",
      "enum": [
        "NoProtection",
        "FullProtection"
      ],
      "description": "The game session protection policy to apply to all new game sessions that are started in this fleet. Game sessions that already exist are not affected."
    },
    "GameSessionCreationLimitPolicy": {
      "$ref": "#/$defs/GameSessionCreationLimitPolicy"
    },
    "LogConfiguration": {
      "$ref": "#/$defs/LogConfiguration"
    },
    "RemoveAttributes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "PER_INSTANCE_CONTAINER_GROUP_DEFINITION"
        ]
      },
      "description": "If set, this update removes a fleet's per-instance container group definition. You can't remove a fleet's game server container group definition."
    }
  },
  "required": [
    "FleetId"
  ],
  "$defs": {
    "ConnectionPortRange": {
      "type": "object",
      "properties": {
        "FromPort": {
          "type": "integer",
          "description": "Starting value for the port range."
        },
        "ToPort": {
          "type": "integer",
          "description": "Ending value for the port. Port numbers are end-inclusive. This value must be equal to or greater than FromPort."
        }
      },
      "required": [
        "FromPort",
        "ToPort"
      ]
    },
    "DeploymentConfiguration": {
      "type": "object",
      "properties": {
        "ProtectionStrategy": {
          "type": "string",
          "enum": [
            "WITH_PROTECTION",
            "IGNORE_PROTECTION"
          ],
          "description": "Determines how fleet deployment activity affects active game sessions on the fleet. A protected game session can't be terminated while it's active; a fleet sets the default protection for its new game sessions with NewGameSessionProtectionPolicy. WITH_PROTECTION -- The deployment honors game session protection, and delays actions that would interrupt a protected active game session until the game session ends. IGNORE_PROTECTION -- The deployment replaces containers regardless of game session activity, including active game sessions. This option is useful during development and testing. This se"
        },
        "MinimumHealthyPercentage": {
          "type": "integer",
          "description": "Sets the minimum percentage of the fleet's game server container groups to keep healthy during deployment activity. A low value favors deployment speed; a high value favors game server availability. For example, if the fleet runs 20 game server container groups and this value is 75, Amazon GameLift Servers keeps at least 15 of them healthy, so it replaces no more than 5 at a time. Default value: 75"
        },
        "ImpairmentStrategy": {
          "type": "string",
          "enum": [
            "MAINTAIN",
            "ROLLBACK"
          ],
          "description": "Determines what actions to take if a deployment fails validation. If the fleet is multi-location, this strategy applies across all fleet locations. ROLLBACK -- Returns all of the fleet's containers to the last successful deployment. MAINTAIN -- Keeps the containers that failed validation in place so that you can inspect them, and returns all other containers to the last successful deployment. Use this option when you're deploying a container image that you want to be able to debug on failure. Default value: MAINTAIN"
        }
      }
    },
    "GameSessionCreationLimitPolicy": {
      "type": "object",
      "properties": {
        "NewGameSessionsPerCreator": {
          "type": "integer",
          "description": "A policy that puts limits on the number of game sessions that a player can create within a specified span of time. With this policy, you can control players' ability to consume available resources. The policy evaluates when a player tries to create a new game session. On receiving a CreateGameSession request, Amazon GameLift Servers checks that the player (identified by CreatorId) has created fewer than the game session limit in the specified time period."
        },
        "PolicyPeriodInMinutes": {
          "type": "integer",
          "description": "The time span used in evaluating the resource creation limit policy."
        }
      }
    },
    "IpPermission": {
      "type": "object",
      "properties": {
        "FromPort": {
          "type": "integer",
          "description": "A starting value for a range of allowed port numbers. For fleets using Linux builds, only ports 22 and 1026-60000 are valid. For fleets using Windows builds, only ports 1026-60000 are valid."
        },
        "ToPort": {
          "type": "integer",
          "description": "An ending value for a range of allowed port numbers. 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."
        },
        "IpRange": {
          "type": "string",
          "description": "A range of allowed IP addresses. 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": {
          "type": "string",
          "enum": [
            "TCP",
            "UDP"
          ],
          "description": "The network communication protocol used by the fleet."
        }
      },
      "required": [
        "FromPort",
        "ToPort",
        "IpRange",
        "Protocol"
      ]
    },
    "LogConfiguration": {
      "type": "object",
      "properties": {
        "LogDestination": {
          "type": "string",
          "enum": [
            "NONE",
            "CLOUDWATCH",
            "S3"
          ],
          "description": "The type of log collection to use for a fleet. CLOUDWATCH -- (default value) Send logs to an Amazon CloudWatch log group that you define. Each container emits a log stream, which is organized in the log group. S3 -- Store logs in an Amazon S3 bucket that you define. This bucket must reside in the fleet's home Amazon Web Services Region. NONE -- Don't collect container logs."
        },
        "S3BucketName": {
          "type": "string",
          "description": "If log destination is S3, logs are sent to the specified Amazon S3 bucket name."
        },
        "LogGroupArn": {
          "type": "string",
          "description": "If log destination is CLOUDWATCH, logs are sent to the specified log group in Amazon CloudWatch."
        }
      }
    }
  }
}