{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-create-aibenchmark-job-request-schema.json",
  "title": "CreateAIBenchmarkJobRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-ai-benchmark-job-api-openapi.yml#/components/schemas/CreateAIBenchmarkJobRequest",
  "type": "object",
  "properties": {
    "AIBenchmarkJobName": {
      "type": "string",
      "description": "The name of the AI benchmark job. The name must be unique within your Amazon Web Services account in the current Amazon Web Services Region."
    },
    "BenchmarkTarget": {
      "$ref": "#/$defs/AIBenchmarkTarget"
    },
    "OutputConfig": {
      "$ref": "#/$defs/AIBenchmarkOutputConfig"
    },
    "AIWorkloadConfigIdentifier": {
      "type": "string",
      "description": "The name or Amazon Resource Name (ARN) of the AI workload configuration to use for this benchmark job."
    },
    "RoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker AI to perform tasks on your behalf."
    },
    "NetworkConfig": {
      "$ref": "#/$defs/AIBenchmarkNetworkConfig"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The metadata that you apply to Amazon Web Services resources to help you categorize and organize them. Each tag consists of a key and a value, both of which you define."
    }
  },
  "required": [
    "AIBenchmarkJobName",
    "BenchmarkTarget",
    "OutputConfig",
    "AIWorkloadConfigIdentifier",
    "RoleArn"
  ],
  "$defs": {
    "AIBenchmarkEndpoint": {
      "type": "object",
      "properties": {
        "Identifier": {
          "type": "string",
          "description": "The name or Amazon Resource Name (ARN) of the SageMaker endpoint to benchmark."
        },
        "TargetContainerHostname": {
          "type": "string",
          "description": "The hostname of the specific container to target within a multi-container endpoint."
        },
        "InferenceComponents": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AIBenchmarkInferenceComponent"
          },
          "description": "The list of inference components to benchmark on the endpoint."
        }
      },
      "required": [
        "Identifier"
      ]
    },
    "AIBenchmarkInferenceComponent": {
      "type": "object",
      "properties": {
        "Identifier": {
          "type": "string",
          "description": "The name or Amazon Resource Name (ARN) of the inference component."
        }
      },
      "required": [
        "Identifier"
      ]
    },
    "AIBenchmarkNetworkConfig": {
      "type": "object",
      "properties": {
        "VpcConfig": {
          "$ref": "#/$defs/VpcConfig"
        }
      }
    },
    "AIBenchmarkOutputConfig": {
      "type": "object",
      "properties": {
        "S3OutputLocation": {
          "type": "string",
          "description": "The Amazon S3 URI where benchmark results are stored."
        },
        "MlflowConfig": {
          "$ref": "#/$defs/AIMlflowConfig"
        }
      },
      "required": [
        "S3OutputLocation"
      ]
    },
    "AIBenchmarkTarget": {
      "type": "object",
      "properties": {
        "Endpoint": {
          "$ref": "#/$defs/AIBenchmarkEndpoint"
        }
      },
      "description": "Exactly one member is set."
    },
    "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"
      ]
    },
    "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"
      ]
    },
    "VpcConfig": {
      "type": "object",
      "properties": {
        "SecurityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field."
        },
        "Subnets": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones."
        }
      },
      "required": [
        "SecurityGroupIds",
        "Subnets"
      ]
    }
  }
}