{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-sagemaker-image.json",
  "title": "AWSSageMakerImageProperties",
  "description": "Resource Type definition for AWS::SageMaker::Image. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-sagemaker-image.json",
    "sourceSha256": "58eb6d3c14c2526d323a51952f0d43d82c2739ed5f814212a0dc5972b10c0ae5"
  },
  "type": "object",
  "properties": {
    "ImageName": {
      "$ref": "#/$defs/ImageName"
    },
    "ImageRoleArn": {
      "$ref": "#/$defs/ImageRoleArn"
    },
    "ImageDisplayName": {
      "$ref": "#/$defs/ImageDisplayName"
    },
    "ImageDescription": {
      "$ref": "#/$defs/ImageDescription"
    },
    "Tags": {
      "type": "array",
      "minItems": 1,
      "maxItems": 50,
      "description": "An array of key-value pairs to apply to this resource.",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::SageMaker::Image",
  "createOnlyProperties": [
    "/properties/ImageName"
  ],
  "$defs": {
    "ImageName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[a-zA-Z0-9]([-.]?[a-zA-Z0-9])*$",
          "minLength": 1,
          "maxLength": 63
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the image.",
      "title": "AWSSageMakerImageImageNameDefinition"
    },
    "ImageArn": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 256,
          "pattern": "^arn:aws(-[\\w]+)*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:image\\/[a-zA-Z0-9]([-.]?[a-zA-Z0-9])*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The Amazon Resource Name (ARN) of the image.",
      "title": "AWSSageMakerImageImageArnDefinition"
    },
    "ImageRoleArn": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 256,
          "pattern": "^arn:aws(-[\\w]+)*:iam::[0-9]{12}:role/.*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on behalf of the customer.",
      "title": "AWSSageMakerImageImageRoleArnDefinition"
    },
    "ImageDisplayName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[A-Za-z0-9 -_]+$",
          "minLength": 1,
          "maxLength": 128
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The display name of the image.",
      "title": "AWSSageMakerImageImageDisplayNameDefinition"
    },
    "ImageDescription": {
      "oneOf": [
        {
          "type": "string",
          "pattern": ".+",
          "minLength": 1,
          "maxLength": 512
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A description of the image.",
      "title": "AWSSageMakerImageImageDescriptionDefinition"
    },
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. "
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. "
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSSageMakerImageTagDefinition",
      "additionalProperties": false
    }
  },
  "readOnlyProperties": [
    "/properties/ImageArn"
  ],
  "additionalProperties": false,
  "required": [
    "ImageName",
    "ImageRoleArn"
  ],
  "primaryIdentifier": [
    "/properties/ImageArn"
  ],
  "additionalIdentifiers": [
    [
      "/properties/ImageName"
    ]
  ]
}
