{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-create-artifact-request-schema.json",
  "title": "CreateArtifactRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-artifact-api-openapi.yml#/components/schemas/CreateArtifactRequest",
  "type": "object",
  "properties": {
    "ArtifactName": {
      "type": "string",
      "description": "The name of the artifact. Must be unique to your account in an Amazon Web Services Region."
    },
    "Source": {
      "$ref": "#/$defs/ArtifactSource"
    },
    "ArtifactType": {
      "type": "string",
      "description": "The artifact type."
    },
    "Properties": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A list of properties to add to the artifact."
    },
    "MetadataProperties": {
      "$ref": "#/$defs/MetadataProperties"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of tags to apply to the artifact."
    }
  },
  "required": [
    "Source",
    "ArtifactType"
  ],
  "$defs": {
    "ArtifactSource": {
      "type": "object",
      "properties": {
        "SourceUri": {
          "type": "string",
          "description": "The URI of the source."
        },
        "SourceTypes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ArtifactSourceType"
          },
          "description": "A list of source types."
        }
      },
      "required": [
        "SourceUri"
      ]
    },
    "ArtifactSourceType": {
      "type": "object",
      "properties": {
        "SourceIdType": {
          "type": "string",
          "enum": [
            "MD5Hash",
            "S3ETag",
            "S3Version",
            "Custom"
          ],
          "description": "The type of ID."
        },
        "Value": {
          "type": "string",
          "description": "The ID."
        }
      },
      "required": [
        "SourceIdType",
        "Value"
      ]
    },
    "MetadataProperties": {
      "type": "object",
      "properties": {
        "CommitId": {
          "type": "string",
          "description": "The commit ID."
        },
        "Repository": {
          "type": "string",
          "description": "The repository."
        },
        "GeneratedBy": {
          "type": "string",
          "description": "The entity this entity was generated by."
        },
        "ProjectId": {
          "type": "string",
          "description": "The project ID."
        }
      }
    },
    "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"
      ]
    }
  }
}