Amazon Fargate · Schema

PortMapping

Port mapping for a container

ComputeContainersECSEKSMicroservicesServerless

Properties

Name Type Description
containerPort integer Container port
hostPort integer Host port
protocol string Protocol
View JSON Schema on GitHub

JSON Schema

amazon-fargate-port-mapping-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-fargate/refs/heads/main/json-schema/amazon-fargate-port-mapping-schema.json",
  "title": "PortMapping",
  "description": "Port mapping for a container",
  "type": "object",
  "properties": {
    "containerPort": {
      "type": "integer",
      "description": "Container port",
      "example": 80
    },
    "hostPort": {
      "type": "integer",
      "description": "Host port",
      "example": 80
    },
    "protocol": {
      "type": "string",
      "description": "Protocol",
      "example": "tcp",
      "enum": [
        "tcp",
        "udp"
      ]
    }
  }
}