{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-migration-hub/json-schema/amazon-migration-hub-get-service-response-schema.json",
  "title": "GetServiceResponse",
  "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/GetServiceResponse",
  "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 service."
    },
    "EnvironmentId": {
      "type": "string",
      "description": "The unique identifier of the environment."
    },
    "ApplicationId": {
      "type": "string",
      "description": "The ID of the application."
    },
    "VpcId": {
      "type": "string",
      "description": "The ID of the virtual private cloud (VPC)."
    },
    "EndpointType": {
      "type": "string",
      "description": "The endpoint type of the service."
    },
    "UrlEndpoint": {
      "$ref": "#/$defs/UrlEndpointConfig"
    },
    "LambdaEndpoint": {
      "$ref": "#/$defs/LambdaEndpointConfig"
    },
    "State": {
      "type": "string",
      "description": "The current state of the service."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags assigned to the service. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair."
    },
    "Error": {
      "$ref": "#/$defs/ErrorResponse"
    },
    "LastUpdatedTime": {
      "type": "string",
      "format": "date-time",
      "description": "A timestamp that indicates when the service was last updated."
    },
    "CreatedTime": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of when the service is created."
    }
  },
  "$defs": {
    "ErrorResponse": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "description": "The error code associated with the error."
        },
        "Message": {
          "type": "string",
          "description": "The message associated with the error."
        },
        "AccountId": {
          "type": "string",
          "description": "The Amazon Web Services account ID of the resource owner."
        },
        "ResourceIdentifier": {
          "type": "string",
          "description": "The ID of the resource."
        },
        "ResourceType": {
          "type": "string",
          "description": "The type of resource."
        },
        "AdditionalDetails": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Additional details about the error."
        }
      }
    },
    "LambdaEndpointConfig": {
      "type": "object",
      "properties": {
        "Arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Lambda endpoint."
        }
      }
    },
    "UrlEndpointConfig": {
      "type": "object",
      "properties": {
        "Url": {
          "type": "string",
          "description": "The HTTP URL endpoint."
        },
        "HealthUrl": {
          "type": "string",
          "description": "The health check URL of the URL endpoint type."
        }
      }
    }
  }
}