{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-describe-airecommendation-job-response-schema.json",
  "title": "DescribeAIRecommendationJobResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-ai-recommendation-job-api-openapi.yml#/components/schemas/DescribeAIRecommendationJobResponse",
  "type": "object",
  "properties": {
    "AIRecommendationJobName": {
      "type": "string",
      "description": "The name of the AI recommendation job."
    },
    "AIRecommendationJobArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the AI recommendation job."
    },
    "AIRecommendationJobStatus": {
      "type": "string",
      "enum": [
        "InProgress",
        "Completed",
        "Failed",
        "Stopping",
        "Stopped"
      ],
      "description": "The status of the AI recommendation job."
    },
    "FailureReason": {
      "type": "string",
      "description": "If the recommendation job failed, the reason it failed."
    },
    "ModelSource": {
      "$ref": "#/$defs/AIModelSource"
    },
    "OutputConfig": {
      "$ref": "#/$defs/AIRecommendationOutputResult"
    },
    "InferenceSpecification": {
      "$ref": "#/$defs/AIRecommendationInferenceSpecification"
    },
    "AIWorkloadConfigIdentifier": {
      "type": "string",
      "description": "The name or Amazon Resource Name (ARN) of the AI workload configuration used for this recommendation job."
    },
    "OptimizeModel": {
      "type": "boolean",
      "description": "Whether model optimization techniques were allowed."
    },
    "PerformanceTarget": {
      "$ref": "#/$defs/AIRecommendationPerformanceTarget"
    },
    "Recommendations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AIRecommendation"
      },
      "description": "The list of optimization recommendations generated by the job. Each recommendation includes optimization details, deployment configuration, expected performance metrics, and the associated benchmark job ARN."
    },
    "RoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM role used by the recommendation job."
    },
    "ComputeSpec": {
      "$ref": "#/$defs/AIRecommendationComputeSpec"
    },
    "AdapterSource": {
      "$ref": "#/$defs/AIAdapterSource"
    },
    "CreationTime": {
      "type": "string",
      "format": "date-time",
      "description": "A timestamp that indicates when the recommendation job was created."
    },
    "StartTime": {
      "type": "string",
      "format": "date-time",
      "description": "A timestamp that indicates when the recommendation job started running."
    },
    "EndTime": {
      "type": "string",
      "format": "date-time",
      "description": "A timestamp that indicates when the recommendation job completed."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The tags associated with the recommendation job."
    }
  },
  "required": [
    "AIRecommendationJobName",
    "AIRecommendationJobArn",
    "AIRecommendationJobStatus",
    "ModelSource",
    "OutputConfig",
    "AIWorkloadConfigIdentifier",
    "RoleArn",
    "CreationTime"
  ],
  "$defs": {
    "AIAdapterModelPackageEntry": {
      "type": "object",
      "properties": {
        "AdapterId": {
          "type": "string",
          "description": "A unique identifier for the adapter. This ID is used as the inference component name when the adapter is deployed. The ID must start and end with an alphanumeric character, can contain hyphens between alphanumeric characters, and can be up to 63 characters long."
        },
        "ModelPackageArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the model package that contains the LoRA adapter artifacts."
        }
      },
      "required": [
        "AdapterId",
        "ModelPackageArn"
      ]
    },
    "AIAdapterS3Entry": {
      "type": "object",
      "properties": {
        "AdapterId": {
          "type": "string",
          "description": "A unique identifier for the adapter. This ID is used as the inference component name when the adapter is deployed. The ID must start and end with an alphanumeric character, can contain hyphens between alphanumeric characters, and can be up to 63 characters long."
        },
        "S3Uri": {
          "type": "string",
          "description": "The Amazon S3 URI of the directory that contains the LoRA adapter artifacts in PEFT format."
        }
      },
      "required": [
        "AdapterId",
        "S3Uri"
      ]
    },
    "AIAdapterSource": {
      "type": "object",
      "properties": {
        "ModelPackageArns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AIAdapterModelPackageEntry"
          },
          "description": "A list of LoRA adapters identified by their model package ARNs. Use this when your adapters were produced by a SageMaker AI fine-tuning workflow that registers model packages."
        },
        "S3Uris": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AIAdapterS3Entry"
          },
          "description": "A list of LoRA adapters identified by their Amazon S3 URIs. Use this when your adapters are stored as raw artifacts in Amazon S3."
        }
      },
      "description": "Exactly one member is set."
    },
    "AICapacityReservationConfig": {
      "type": "object",
      "properties": {
        "CapacityReservationPreference": {
          "type": "string",
          "enum": [
            "capacity-reservations-only"
          ],
          "description": "The capacity reservation preference. The only valid value is capacity-reservations-only."
        },
        "MlReservationArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of ML reservation ARNs to use."
        }
      }
    },
    "AIMlflowConfig": {
      "type": "object",
      "properties": {
        "MlflowResourceArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the SageMaker managed MLflow resource."
        },
        "MlflowExperimentName": {
          "type": "string",
          "description": "The MLflow experiment name used for tracking."
        },
        "MlflowRunName": {
          "type": "string",
          "description": "The MLflow run name used for tracking."
        }
      },
      "required": [
        "MlflowResourceArn"
      ]
    },
    "AIModelSource": {
      "type": "object",
      "properties": {
        "S3": {
          "$ref": "#/$defs/AIModelSourceS3"
        }
      },
      "description": "Exactly one member is set."
    },
    "AIModelSourceS3": {
      "type": "object",
      "properties": {
        "S3Uri": {
          "type": "string",
          "description": "The Amazon S3 URI of the model artifacts."
        }
      }
    },
    "AIRecommendation": {
      "type": "object",
      "properties": {
        "RecommendationDescription": {
          "type": "string",
          "description": "A description of the recommendation."
        },
        "OptimizationDetails": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AIRecommendationOptimizationDetail"
          },
          "description": "The optimization techniques applied in this recommendation."
        },
        "ModelDetails": {
          "$ref": "#/$defs/AIRecommendationModelDetails"
        },
        "DeploymentConfiguration": {
          "$ref": "#/$defs/AIRecommendationDeploymentConfiguration"
        },
        "AIBenchmarkJobArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the benchmark job associated with this recommendation."
        },
        "ExpectedPerformance": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AIRecommendationPerformanceMetric"
          },
          "description": "The expected performance metrics for this recommendation."
        },
        "AdapterDetails": {
          "$ref": "#/$defs/AIRecommendationAdapterDetails"
        }
      }
    },
    "AIRecommendationAdapterDetails": {
      "type": "object",
      "properties": {
        "ModelPackageArns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AIAdapterModelPackageEntry"
          },
          "description": "The list of LoRA adapters with their model package ARNs."
        },
        "S3Uris": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AIAdapterS3Entry"
          },
          "description": "The list of LoRA adapters with their Amazon S3 URIs."
        }
      },
      "required": [
        "ModelPackageArns",
        "S3Uris"
      ]
    },
    "AIRecommendationComputeSpec": {
      "type": "object",
      "properties": {
        "InstanceTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ml.g5.xlarge",
              "ml.g5.2xlarge",
              "ml.g5.4xlarge",
              "ml.g5.8xlarge",
              "ml.g5.12xlarge",
              "ml.g5.16xlarge",
              "ml.g5.24xlarge",
              "ml.g5.48xlarge",
              "ml.g6.xlarge",
              "ml.g6.2xlarge",
              "ml.g6.4xlarge",
              "ml.g6.8xlarge",
              "ml.g6.12xlarge",
              "ml.g6.16xlarge",
              "ml.g6.24xlarge",
              "ml.g6.48xlarge",
              "ml.g6e.xlarge",
              "ml.g6e.2xlarge",
              "ml.g6e.4xlarge",
              "ml.g6e.8xlarge",
              "ml.g6e.12xlarge",
              "ml.g6e.16xlarge",
              "ml.g6e.24xlarge",
              "ml.g6e.48xlarge",
              "ml.g7.2xlarge",
              "ml.g7.4xlarge",
              "ml.g7.8xlarge",
              "ml.g7.12xlarge",
              "ml.g7.24xlarge",
              "ml.g7.48xlarge",
              "ml.g7e.2xlarge",
              "ml.g7e.4xlarge",
              "ml.g7e.8xlarge",
              "ml.g7e.12xlarge",
              "ml.g7e.24xlarge",
              "ml.g7e.48xlarge",
              "ml.p3.2xlarge",
              "ml.p3.8xlarge",
              "ml.p3.16xlarge",
              "ml.p4d.24xlarge",
              "ml.p4de.24xlarge",
              "ml.p5.4xlarge",
              "ml.p5.48xlarge",
              "ml.p5e.48xlarge",
              "ml.p5en.48xlarge",
              "ml.p6-b200.48xlarge"
            ]
          },
          "description": "The list of instance types to consider for recommendations. You can specify up to 3 instance types."
        },
        "CapacityReservationConfig": {
          "$ref": "#/$defs/AICapacityReservationConfig"
        }
      }
    },
    "AIRecommendationConstraint": {
      "type": "object",
      "properties": {
        "Metric": {
          "type": "string",
          "enum": [
            "ttft-ms",
            "throughput",
            "cost"
          ],
          "description": "The performance metric. Valid values are ttft-ms (time to first token in milliseconds), throughput, and cost."
        }
      },
      "required": [
        "Metric"
      ]
    },
    "AIRecommendationDeploymentConfiguration": {
      "type": "object",
      "properties": {
        "S3": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AIRecommendationDeploymentS3Channel"
          },
          "description": "The Amazon S3 data channels for the deployment."
        },
        "ImageUri": {
          "type": "string",
          "description": "The URI of the container image for the deployment."
        },
        "InstanceType": {
          "type": "string",
          "enum": [
            "ml.g5.xlarge",
            "ml.g5.2xlarge",
            "ml.g5.4xlarge",
            "ml.g5.8xlarge",
            "ml.g5.12xlarge",
            "ml.g5.16xlarge",
            "ml.g5.24xlarge",
            "ml.g5.48xlarge",
            "ml.g6.xlarge",
            "ml.g6.2xlarge",
            "ml.g6.4xlarge",
            "ml.g6.8xlarge",
            "ml.g6.12xlarge",
            "ml.g6.16xlarge",
            "ml.g6.24xlarge",
            "ml.g6.48xlarge",
            "ml.g6e.xlarge",
            "ml.g6e.2xlarge",
            "ml.g6e.4xlarge",
            "ml.g6e.8xlarge",
            "ml.g6e.12xlarge",
            "ml.g6e.16xlarge",
            "ml.g6e.24xlarge",
            "ml.g6e.48xlarge",
            "ml.g7.2xlarge",
            "ml.g7.4xlarge",
            "ml.g7.8xlarge",
            "ml.g7.12xlarge",
            "ml.g7.24xlarge",
            "ml.g7.48xlarge",
            "ml.g7e.2xlarge",
            "ml.g7e.4xlarge",
            "ml.g7e.8xlarge",
            "ml.g7e.12xlarge",
            "ml.g7e.24xlarge",
            "ml.g7e.48xlarge",
            "ml.p3.2xlarge",
            "ml.p3.8xlarge",
            "ml.p3.16xlarge",
            "ml.p4d.24xlarge",
            "ml.p4de.24xlarge",
            "ml.p5.4xlarge",
            "ml.p5.48xlarge",
            "ml.p5e.48xlarge",
            "ml.p5en.48xlarge",
            "ml.p6-b200.48xlarge"
          ],
          "description": "The recommended instance type for the deployment."
        },
        "InstanceCount": {
          "type": "integer",
          "description": "The recommended number of instances for the deployment."
        },
        "CopyCountPerInstance": {
          "type": "integer",
          "description": "The number of model copies per instance."
        },
        "EnvironmentVariables": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The environment variables for the deployment."
        },
        "MinCpuMemoryRequiredInMb": {
          "type": "integer",
          "description": "The minimum host (CPU) memory, in MiB, to reserve for each model copy when deploying the recommendation as an Inference Component. This value maps to the Inference Component's ComputeResourceRequirements$MinMemoryRequiredInMb field."
        }
      }
    },
    "AIRecommendationDeploymentS3Channel": {
      "type": "object",
      "properties": {
        "ChannelName": {
          "type": "string",
          "description": "A custom name for this Amazon S3 data channel."
        },
        "Uri": {
          "type": "string",
          "description": "The Amazon S3 URI of the data for this channel."
        }
      }
    },
    "AIRecommendationInferenceSpecification": {
      "type": "object",
      "properties": {
        "Framework": {
          "type": "string",
          "enum": [
            "LMI",
            "VLLM"
          ],
          "description": "The inference framework. Valid values are LMI and VLLM."
        }
      }
    },
    "AIRecommendationInstanceDetail": {
      "type": "object",
      "properties": {
        "InstanceType": {
          "type": "string",
          "enum": [
            "ml.g5.xlarge",
            "ml.g5.2xlarge",
            "ml.g5.4xlarge",
            "ml.g5.8xlarge",
            "ml.g5.12xlarge",
            "ml.g5.16xlarge",
            "ml.g5.24xlarge",
            "ml.g5.48xlarge",
            "ml.g6.xlarge",
            "ml.g6.2xlarge",
            "ml.g6.4xlarge",
            "ml.g6.8xlarge",
            "ml.g6.12xlarge",
            "ml.g6.16xlarge",
            "ml.g6.24xlarge",
            "ml.g6.48xlarge",
            "ml.g6e.xlarge",
            "ml.g6e.2xlarge",
            "ml.g6e.4xlarge",
            "ml.g6e.8xlarge",
            "ml.g6e.12xlarge",
            "ml.g6e.16xlarge",
            "ml.g6e.24xlarge",
            "ml.g6e.48xlarge",
            "ml.g7.2xlarge",
            "ml.g7.4xlarge",
            "ml.g7.8xlarge",
            "ml.g7.12xlarge",
            "ml.g7.24xlarge",
            "ml.g7.48xlarge",
            "ml.g7e.2xlarge",
            "ml.g7e.4xlarge",
            "ml.g7e.8xlarge",
            "ml.g7e.12xlarge",
            "ml.g7e.24xlarge",
            "ml.g7e.48xlarge",
            "ml.p3.2xlarge",
            "ml.p3.8xlarge",
            "ml.p3.16xlarge",
            "ml.p4d.24xlarge",
            "ml.p4de.24xlarge",
            "ml.p5.4xlarge",
            "ml.p5.48xlarge",
            "ml.p5e.48xlarge",
            "ml.p5en.48xlarge",
            "ml.p6-b200.48xlarge"
          ],
          "description": "The recommended instance type."
        },
        "InstanceCount": {
          "type": "integer",
          "description": "The recommended number of instances."
        },
        "CopyCountPerInstance": {
          "type": "integer",
          "description": "The number of model copies per instance."
        }
      }
    },
    "AIRecommendationModelDetails": {
      "type": "object",
      "properties": {
        "ModelPackageArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the model package."
        },
        "InferenceSpecificationName": {
          "type": "string",
          "description": "The name of the inference specification within the model package."
        },
        "InstanceDetails": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AIRecommendationInstanceDetail"
          },
          "description": "The instance details for this recommendation, including instance type, count, and model copies per instance."
        }
      }
    },
    "AIRecommendationOptimizationDetail": {
      "type": "object",
      "properties": {
        "OptimizationType": {
          "type": "string",
          "enum": [
            "SpeculativeDecoding",
            "KernelTuning"
          ],
          "description": "The type of optimization. Valid values are SpeculativeDecoding and KernelTuning."
        },
        "OptimizationConfig": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A map of configuration parameters for the optimization technique."
        }
      },
      "required": [
        "OptimizationType"
      ]
    },
    "AIRecommendationOutputResult": {
      "type": "object",
      "properties": {
        "S3OutputLocation": {
          "type": "string",
          "description": "The Amazon S3 URI where the recommendation job writes its output results."
        },
        "ModelPackageGroupIdentifier": {
          "type": "string",
          "description": "The name or Amazon Resource Name (ARN) of the model package group where deployment-ready model packages are registered."
        },
        "MlflowConfig": {
          "$ref": "#/$defs/AIMlflowConfig"
        }
      },
      "required": [
        "S3OutputLocation"
      ]
    },
    "AIRecommendationPerformanceMetric": {
      "type": "object",
      "properties": {
        "Metric": {
          "type": "string",
          "description": "The name of the performance metric."
        },
        "Stat": {
          "type": "string",
          "description": "The statistical measure for the metric."
        },
        "Value": {
          "type": "string",
          "description": "The value of the metric."
        },
        "Unit": {
          "type": "string",
          "description": "The unit of the metric value."
        }
      },
      "required": [
        "Metric",
        "Value"
      ]
    },
    "AIRecommendationPerformanceTarget": {
      "type": "object",
      "properties": {
        "Constraints": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AIRecommendationConstraint"
          },
          "description": "An array of performance constraints that define the optimization objectives."
        }
      },
      "required": [
        "Constraints"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag key. Tag keys must be unique per resource."
        },
        "Value": {
          "type": "string",
          "description": "The tag value."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}