{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-sagemaker-featuregroup.json",
  "title": "AWSSageMakerFeatureGroupProperties",
  "description": "Resource Type definition for AWS::SageMaker::FeatureGroup. 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-featuregroup.json",
    "sourceSha256": "807efcf44c5ff41b1cf156489a4126c6872a45e5effe1ec554fd4dc79a1928e3"
  },
  "type": "object",
  "properties": {
    "FeatureGroupName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,63}"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The Name of the FeatureGroup."
    },
    "RecordIdentifierFeatureName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,63}"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The Record Identifier Feature Name."
    },
    "EventTimeFeatureName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,63}"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The Event Time Feature Name."
    },
    "FeatureDefinitions": {
      "type": "array",
      "description": "An Array of Feature Definition",
      "uniqueItems": false,
      "minItems": 1,
      "maxItems": 2500,
      "items": {
        "$ref": "#/$defs/FeatureDefinition"
      }
    },
    "OnlineStoreConfig": {
      "type": "object",
      "properties": {
        "SecurityConfig": {
          "$ref": "#/$defs/OnlineStoreSecurityConfig"
        },
        "EnableOnlineStore": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "OfflineStoreConfig": {
      "type": "object",
      "required": [
        "S3StorageConfig"
      ],
      "properties": {
        "S3StorageConfig": {
          "$ref": "#/$defs/S3StorageConfig"
        },
        "DisableGlueTableCreation": {
          "type": "boolean"
        },
        "DataCatalogConfig": {
          "$ref": "#/$defs/DataCatalogConfig"
        },
        "TableFormat": {
          "$ref": "#/$defs/TableFormat"
        }
      },
      "additionalProperties": false
    },
    "RoleArn": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 20,
          "maxLength": 2048,
          "pattern": "^arn:aws[a-z\\-]*:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Role Arn"
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Description about the FeatureGroup."
    },
    "Tags": {
      "type": "array",
      "description": "An array of key-value pair to apply to this resource.",
      "uniqueItems": false,
      "maxItems": 50,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::SageMaker::FeatureGroup",
  "readOnlyProperties": [
    "/properties/CreationTime",
    "/properties/FeatureGroupStatus",
    "/properties/FailureReason",
    "/properties/OfflineStoreStatus"
  ],
  "$defs": {
    "FeatureDefinition": {
      "type": "object",
      "title": "AWSSageMakerFeatureGroupFeatureDefinition",
      "properties": {
        "FeatureName": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,63}"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "FeatureType": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "Integral",
                "Fractional",
                "String"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "FeatureName",
        "FeatureType"
      ],
      "additionalProperties": false
    },
    "KmsKeyId": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 2048
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSSageMakerFeatureGroupKmsKeyIdDefinition"
    },
    "OnlineStoreSecurityConfig": {
      "type": "object",
      "title": "AWSSageMakerFeatureGroupOnlineStoreSecurityConfigDefinition",
      "properties": {
        "KmsKeyId": {
          "$ref": "#/$defs/KmsKeyId"
        }
      },
      "additionalProperties": false
    },
    "S3StorageConfig": {
      "type": "object",
      "title": "AWSSageMakerFeatureGroupS3StorageConfigDefinition",
      "properties": {
        "S3Uri": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 1024,
              "pattern": "^(https|s3)://([^/]+)/?(.*)$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "KmsKeyId": {
          "$ref": "#/$defs/KmsKeyId"
        }
      },
      "required": [
        "S3Uri"
      ],
      "additionalProperties": false
    },
    "DataCatalogConfig": {
      "type": "object",
      "title": "AWSSageMakerFeatureGroupDataCatalogConfigDefinition",
      "properties": {
        "TableName": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\t]*"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Catalog": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\t]*"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Database": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\t]*"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "TableName",
        "Catalog",
        "Database"
      ],
      "additionalProperties": false
    },
    "TableFormat": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "Iceberg",
            "Glue"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Format for the offline store feature group. Iceberg is the optimal format for feature groups shared between offline and online stores.",
      "title": "AWSSageMakerFeatureGroupTableFormatDefinition"
    },
    "Tag": {
      "type": "object",
      "description": "A key-value pair to associate with a resource.",
      "title": "AWSSageMakerFeatureGroupTagDefinition",
      "properties": {
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/FeatureGroupName"
  ],
  "additionalProperties": false,
  "required": [
    "FeatureGroupName",
    "RecordIdentifierFeatureName",
    "EventTimeFeatureName",
    "FeatureDefinitions"
  ],
  "createOnlyProperties": [
    "/properties/FeatureGroupName",
    "/properties/RecordIdentifierFeatureName",
    "/properties/EventTimeFeatureName",
    "/properties/OnlineStoreConfig",
    "/properties/OfflineStoreConfig",
    "/properties/RoleArn",
    "/properties/Description",
    "/properties/Tags"
  ]
}
