{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-create-action-request-schema.json",
  "title": "CreateActionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-action-api-openapi.yml#/components/schemas/CreateActionRequest",
  "type": "object",
  "properties": {
    "ActionName": {
      "type": "string",
      "description": "The name of the action. Must be unique to your account in an Amazon Web Services Region."
    },
    "Source": {
      "$ref": "#/$defs/ActionSource"
    },
    "ActionType": {
      "type": "string",
      "description": "The action type."
    },
    "Description": {
      "type": "string",
      "description": "The description of the action."
    },
    "Status": {
      "type": "string",
      "enum": [
        "Unknown",
        "InProgress",
        "Completed",
        "Failed",
        "Stopping",
        "Stopped"
      ],
      "description": "The status of the action."
    },
    "Properties": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A list of properties to add to the action."
    },
    "MetadataProperties": {
      "$ref": "#/$defs/MetadataProperties"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of tags to apply to the action."
    }
  },
  "required": [
    "ActionName",
    "Source",
    "ActionType"
  ],
  "$defs": {
    "ActionSource": {
      "type": "object",
      "properties": {
        "SourceUri": {
          "type": "string",
          "description": "The URI of the source."
        },
        "SourceType": {
          "type": "string",
          "description": "The type of the source."
        },
        "SourceId": {
          "type": "string",
          "description": "The ID of the source."
        }
      },
      "required": [
        "SourceUri"
      ]
    },
    "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"
      ]
    }
  }
}