{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ecs/json-schema/amazon-ecs-update-express-gateway-service-response-schema.json",
  "title": "UpdateExpressGatewayServiceResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ecs-express-gateway-service-api-openapi.yml#/components/schemas/UpdateExpressGatewayServiceResponse",
  "type": "object",
  "properties": {
    "service": {
      "$ref": "#/$defs/UpdatedExpressGatewayService"
    }
  },
  "$defs": {
    "ExpressGatewayContainer": {
      "type": "object",
      "properties": {
        "image": {
          "type": "string",
          "description": "The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest. For Express services, the image typically contains a web application that listens on the specified container port. The image can be stored in Amazon ECR, Docker Hub, or any other container registry accessible to your execution role."
        },
        "containerPort": {
          "type": "integer",
          "description": "The port number on the container that receives traffic from the load balancer. Default is 80."
        },
        "awsLogsConfiguration": {
          "$ref": "#/$defs/ExpressGatewayServiceAwsLogsConfiguration"
        },
        "repositoryCredentials": {
          "$ref": "#/$defs/ExpressGatewayRepositoryCredentials"
        },
        "command": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The command that is passed to the container."
        },
        "environment": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/KeyValuePair"
          },
          "description": "The environment variables to pass to the container."
        },
        "secrets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Secret"
          },
          "description": "The secrets to pass to the container."
        }
      },
      "required": [
        "image"
      ]
    },
    "ExpressGatewayRepositoryCredentials": {
      "type": "object",
      "properties": {
        "credentialsParameter": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the secret containing the private repository credentials."
        }
      }
    },
    "ExpressGatewayScalingTarget": {
      "type": "object",
      "properties": {
        "minTaskCount": {
          "type": "integer",
          "description": "The minimum number of tasks to run in the Express service."
        },
        "maxTaskCount": {
          "type": "integer",
          "description": "The maximum number of tasks to run in the Express service."
        },
        "autoScalingMetric": {
          "type": "string",
          "enum": [
            "AVERAGE_CPU",
            "AVERAGE_MEMORY",
            "REQUEST_COUNT_PER_TARGET"
          ],
          "description": "The metric used for auto-scaling decisions. The default metric used for an Express service is CPUUtilization."
        },
        "autoScalingTargetValue": {
          "type": "integer",
          "description": "The target value for the auto-scaling metric. The default value for an Express service is 60."
        }
      }
    },
    "ExpressGatewayServiceAwsLogsConfiguration": {
      "type": "object",
      "properties": {
        "logGroup": {
          "type": "string",
          "description": "The name of the CloudWatch Logs log group to send container logs to."
        },
        "logStreamPrefix": {
          "type": "string",
          "description": "The prefix for the CloudWatch Logs log stream names. The default for an Express service is ecs."
        }
      },
      "required": [
        "logGroup",
        "logStreamPrefix"
      ]
    },
    "ExpressGatewayServiceConfiguration": {
      "type": "object",
      "properties": {
        "serviceRevisionArn": {
          "type": "string",
          "description": "The ARN of the service revision."
        },
        "executionRoleArn": {
          "type": "string",
          "description": "The ARN of the task execution role for the service revision."
        },
        "taskRoleArn": {
          "type": "string",
          "description": "The ARN of the task role for the service revision."
        },
        "taskDefinitionArn": {
          "type": "string",
          "description": "The ARN of the task definition used by this service revision. This is present for all Express services and reflects the task definition in use, whether managed by Amazon ECS or provided by the customer."
        },
        "cpu": {
          "type": "string",
          "description": "The CPU allocation for tasks in this service revision."
        },
        "memory": {
          "type": "string",
          "description": "The memory allocation for tasks in this service revision."
        },
        "cpuArchitecture": {
          "type": "string",
          "enum": [
            "X86_64",
            "ARM64"
          ],
          "description": "The CPU architecture that the task runs on. Valid values: X86_64 - The x86 64-bit architecture. ARM64 - The 64-bit ARM architecture. Different service revisions can report different architectures. This value isn't returned when the service uses a customer-provided task definition that doesn't specify a CPU architecture."
        },
        "networkConfiguration": {
          "$ref": "#/$defs/ExpressGatewayServiceNetworkConfiguration"
        },
        "healthCheckPath": {
          "type": "string",
          "description": "The health check path for this service revision."
        },
        "primaryContainer": {
          "$ref": "#/$defs/ExpressGatewayContainer"
        },
        "scalingTarget": {
          "$ref": "#/$defs/ExpressGatewayScalingTarget"
        },
        "ingressPaths": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/IngressPathSummary"
          },
          "description": "The entry point into this service revision."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The Unix timestamp for when this service revision was created."
        }
      }
    },
    "ExpressGatewayServiceNetworkConfiguration": {
      "type": "object",
      "properties": {
        "securityGroups": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IDs of the security groups associated with the Express service."
        },
        "subnets": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IDs of the subnets associated with the Express service."
        }
      }
    },
    "ExpressGatewayServiceStatus": {
      "type": "object",
      "properties": {
        "statusCode": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "DRAINING",
            "INACTIVE"
          ],
          "description": "The status of the Express service."
        },
        "statusReason": {
          "type": "string",
          "description": "Information about why the Express service is in the current status."
        }
      }
    },
    "IngressPathSummary": {
      "type": "object",
      "properties": {
        "accessType": {
          "type": "string",
          "enum": [
            "PUBLIC",
            "PRIVATE"
          ],
          "description": "The type of access to the endpoint for the Express service."
        },
        "endpoint": {
          "type": "string",
          "description": "The endpoint for access to the service."
        }
      },
      "required": [
        "accessType",
        "endpoint"
      ]
    },
    "KeyValuePair": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the key-value pair. For environment variables, this is the name of the environment variable."
        },
        "value": {
          "type": "string",
          "description": "The value of the key-value pair. For environment variables, this is the value of the environment variable."
        }
      }
    },
    "Secret": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the secret."
        },
        "valueFrom": {
          "type": "string",
          "description": "The secret to expose to the container. The supported values are either the full ARN of the Secrets Manager secret or the full ARN of the parameter in the SSM Parameter Store. For information about the require Identity and Access Management permissions, see Required IAM permissions for Amazon ECS secrets (for Secrets Manager) or Required IAM permissions for Amazon ECS secrets (for Systems Manager Parameter store) in the Amazon Elastic Container Service Developer Guide. If the SSM Parameter Store parameter exists in the same Region as the task you're launching, then you can use either the full A"
        }
      },
      "required": [
        "name",
        "valueFrom"
      ]
    },
    "UpdatedExpressGatewayService": {
      "type": "object",
      "properties": {
        "serviceArn": {
          "type": "string",
          "description": "The ARN of the Express service that is being updated."
        },
        "cluster": {
          "type": "string",
          "description": "The cluster associated with the Express service that is being updated."
        },
        "serviceName": {
          "type": "string",
          "description": "The name of the Express service that is being updated."
        },
        "status": {
          "$ref": "#/$defs/ExpressGatewayServiceStatus"
        },
        "targetConfiguration": {
          "$ref": "#/$defs/ExpressGatewayServiceConfiguration"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The Unix timestamp for when the Express service that is being updated was created."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The Unix timestamp for when the Express service that is being updated was most recently updated."
        }
      }
    }
  }
}