{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-migration-hub/json-schema/amazon-migration-hub-create-service-response-schema.json",
  "title": "CreateServiceResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-migration-hub-services-api-openapi.yml#/components/schemas/CreateServiceResponse",
  "type": "object",
  "properties": {
    "ServiceId": {
      "type": "string",
      "description": "The unique identifier of the service."
    },
    "Name": {
      "type": "string",
      "description": "The name of the service."
    },
    "Arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the service."
    },
    "OwnerAccountId": {
      "type": "string",
      "description": "The Amazon Web Services account ID of the service owner."
    },
    "CreatedByAccountId": {
      "type": "string",
      "description": "The Amazon Web Services account ID of the service creator."
    },
    "Description": {
      "type": "string",
      "description": "The description of the created service."
    },
    "EnvironmentId": {
      "type": "string",
      "description": "The unique identifier of the environment."
    },
    "ApplicationId": {
      "type": "string",
      "description": "The ID of the application that the created service belongs to."
    },
    "VpcId": {
      "type": "string",
      "description": "The ID of the VPC."
    },
    "EndpointType": {
      "type": "string",
      "description": "The endpoint type of the service."
    },
    "UrlEndpoint": {
      "$ref": "#/$defs/UrlEndpointInput"
    },
    "LambdaEndpoint": {
      "$ref": "#/$defs/LambdaEndpointInput"
    },
    "State": {
      "type": "string",
      "description": "The current state of the service."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags assigned to the created service. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.."
    },
    "LastUpdatedTime": {
      "type": "string",
      "format": "date-time",
      "description": "A timestamp that indicates when the service was last updated."
    },
    "CreatedTime": {
      "type": "string",
      "format": "date-time",
      "description": "A timestamp that indicates when the service is created."
    }
  },
  "$defs": {
    "LambdaEndpointInput": {
      "type": "object",
      "properties": {
        "Arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Lambda function or alias."
        }
      },
      "required": [
        "Arn"
      ]
    },
    "UrlEndpointInput": {
      "type": "object",
      "properties": {
        "Url": {
          "type": "string",
          "description": "The URL to route traffic to. The URL must be an rfc3986-formatted URL. If the host is a domain name, the name must be resolvable over the public internet. If the scheme is https, the top level domain of the host must be listed in the IANA root zone database."
        },
        "HealthUrl": {
          "type": "string",
          "description": "The health check URL of the URL endpoint type. If the URL is a public endpoint, the HealthUrl must also be a public endpoint. If the URL is a private endpoint inside a virtual private cloud (VPC), the health URL must also be a private endpoint, and the host must be the same as the URL."
        }
      },
      "required": [
        "Url"
      ]
    }
  }
}