{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-create-feature-group-request-schema.json",
  "title": "CreateFeatureGroupRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-feature-group-api-openapi.yml#/components/schemas/CreateFeatureGroupRequest",
  "type": "object",
  "properties": {
    "FeatureGroupName": {
      "type": "string",
      "description": "The name of the FeatureGroup. The name must be unique within an Amazon Web Services Region in an Amazon Web Services account. The name: Must start with an alphanumeric character. Can only include alphanumeric characters, underscores, and hyphens. Spaces are not allowed."
    },
    "RecordIdentifierFeatureName": {
      "type": "string",
      "description": "The name of the Feature whose value uniquely identifies a Record defined in the FeatureStore. Only the latest record per identifier value will be stored in the OnlineStore. RecordIdentifierFeatureName must be one of feature definitions' names. You use the RecordIdentifierFeatureName to access data in a FeatureStore. This name: Must start with an alphanumeric character. Can only contains alphanumeric characters, hyphens, underscores. Spaces are not allowed."
    },
    "EventTimeFeatureName": {
      "type": "string",
      "description": "The name of the feature that stores the EventTime of a Record in a FeatureGroup. An EventTime is a point in time when a new event occurs that corresponds to the creation or update of a Record in a FeatureGroup. All Records in the FeatureGroup must have a corresponding EventTime. An EventTime can be a String or Fractional. Fractional: EventTime feature values must be a Unix timestamp in seconds. String: EventTime feature values must be an ISO-8601 string in the format. The following formats are supported yyyy-MM-dd'T'HH:mm:ssZ and yyyy-MM-dd'T'HH:mm:ss.SSSZ where yyyy, MM, and dd represent the "
    },
    "FeatureDefinitions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FeatureDefinition"
      },
      "description": "A list of Feature names and types. Name and Type is compulsory per Feature. Valid feature FeatureTypes are Integral, Fractional and String. FeatureNames cannot be any of the following: is_deleted, write_time, api_invocation_time You can create up to 2,500 FeatureDefinitions per FeatureGroup."
    },
    "OnlineStoreConfig": {
      "$ref": "#/$defs/OnlineStoreConfig"
    },
    "OfflineStoreConfig": {
      "$ref": "#/$defs/OfflineStoreConfig"
    },
    "ThroughputConfig": {
      "$ref": "#/$defs/ThroughputConfig"
    },
    "RoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM execution role used to persist data into the OfflineStore if an OfflineStoreConfig is provided."
    },
    "Description": {
      "type": "string",
      "description": "A free-form description of a FeatureGroup."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Tags used to identify Features in each FeatureGroup."
    }
  },
  "required": [
    "FeatureGroupName",
    "RecordIdentifierFeatureName",
    "EventTimeFeatureName",
    "FeatureDefinitions"
  ],
  "$defs": {
    "CollectionConfig": {
      "type": "object",
      "properties": {
        "VectorConfig": {
          "$ref": "#/$defs/VectorConfig"
        }
      },
      "description": "Exactly one member is set."
    },
    "DataCatalogConfig": {
      "type": "object",
      "properties": {
        "TableName": {
          "type": "string",
          "description": "The name of the Glue table."
        },
        "Catalog": {
          "type": "string",
          "description": "The name of the Glue table catalog."
        },
        "Database": {
          "type": "string",
          "description": "The name of the Glue table database."
        }
      },
      "required": [
        "TableName",
        "Catalog",
        "Database"
      ]
    },
    "FeatureDefinition": {
      "type": "object",
      "properties": {
        "FeatureName": {
          "type": "string",
          "description": "The name of a feature. The type must be a string. FeatureName cannot be any of the following: is_deleted, write_time, api_invocation_time. The name: Must start with an alphanumeric character. Can only include alphanumeric characters, underscores, and hyphens. Spaces are not allowed."
        },
        "FeatureType": {
          "type": "string",
          "enum": [
            "Integral",
            "Fractional",
            "String"
          ],
          "description": "The value type of a feature. Valid values are Integral, Fractional, or String."
        },
        "CollectionType": {
          "type": "string",
          "enum": [
            "List",
            "Set",
            "Vector"
          ],
          "description": "A grouping of elements where each element within the collection must have the same feature type (String, Integral, or Fractional). List: An ordered collection of elements. Set: An unordered collection of unique elements. Vector: A specialized list that represents a fixed-size array of elements. The vector dimension is determined by you. Must have elements with fractional feature types."
        },
        "CollectionConfig": {
          "$ref": "#/$defs/CollectionConfig"
        }
      },
      "required": [
        "FeatureName",
        "FeatureType"
      ]
    },
    "OfflineStoreConfig": {
      "type": "object",
      "properties": {
        "S3StorageConfig": {
          "$ref": "#/$defs/S3StorageConfig"
        },
        "DisableGlueTableCreation": {
          "type": "boolean",
          "description": "Set to True to disable the automatic creation of an Amazon Web Services Glue table when configuring an OfflineStore. If set to True and DataCatalogConfig is provided, Feature Store associates the provided catalog configuration with the feature group without creating a table. In this case, you are responsible for creating and managing the Glue table. If set to True without DataCatalogConfig, no Glue table is created or associated with the feature group. The Iceberg table format is only supported when this is set to False. If set to False and DataCatalogConfig is provided, Feature Store creates "
        },
        "DataCatalogConfig": {
          "$ref": "#/$defs/DataCatalogConfig"
        },
        "TableFormat": {
          "type": "string",
          "enum": [
            "Default",
            "Glue",
            "Iceberg"
          ],
          "description": "Format for the offline store table. Supported formats are Glue (Default) and Apache Iceberg."
        }
      },
      "required": [
        "S3StorageConfig"
      ]
    },
    "OnlineStoreConfig": {
      "type": "object",
      "properties": {
        "SecurityConfig": {
          "$ref": "#/$defs/OnlineStoreSecurityConfig"
        },
        "EnableOnlineStore": {
          "type": "boolean",
          "description": "Turn OnlineStore off by specifying False for the EnableOnlineStore flag. Turn OnlineStore on by specifying True for the EnableOnlineStore flag. The default value is False."
        },
        "TtlDuration": {
          "$ref": "#/$defs/TtlDuration"
        },
        "StorageType": {
          "type": "string",
          "enum": [
            "Standard",
            "Standard_V2",
            "InMemory"
          ],
          "description": "Option for different tiers of low latency storage for real-time data retrieval. Standard: A managed low latency data store for feature groups. Standard_V2: A managed low latency data store for feature groups that supports partial updates to individual features using the UpdateRecord operation. Choose this storage type at feature group creation time if your use case requires updating specific feature values without rewriting the entire record. InMemory: A managed data store for feature groups that supports very low latency retrieval."
        }
      }
    },
    "OnlineStoreSecurityConfig": {
      "type": "object",
      "properties": {
        "KmsKeyId": {
          "type": "string",
          "description": "The Amazon Web Services Key Management Service (KMS) key ARN that SageMaker Feature Store uses to encrypt the Amazon S3 objects at rest using Amazon S3 server-side encryption. The caller (either user or IAM role) of CreateFeatureGroup must have below permissions to the OnlineStore KmsKeyId: \"kms:Encrypt\" \"kms:Decrypt\" \"kms:DescribeKey\" \"kms:CreateGrant\" \"kms:RetireGrant\" \"kms:ReEncryptFrom\" \"kms:ReEncryptTo\" \"kms:GenerateDataKey\" \"kms:ListAliases\" \"kms:ListGrants\" \"kms:RevokeGrant\" The caller (either user or IAM role) to all DataPlane operations (PutRecord, GetRecord, DeleteRecord) must have t"
        }
      }
    },
    "S3StorageConfig": {
      "type": "object",
      "properties": {
        "S3Uri": {
          "type": "string",
          "description": "The S3 URI, or location in Amazon S3, of OfflineStore. S3 URIs have a format similar to the following: s3://example-bucket/prefix/."
        },
        "KmsKeyId": {
          "type": "string",
          "description": "The Amazon Web Services Key Management Service (KMS) key ARN of the key used to encrypt any objects written into the OfflineStore S3 location. The IAM roleARN that is passed as a parameter to CreateFeatureGroup must have below permissions to the KmsKeyId: \"kms:GenerateDataKey\""
        },
        "ResolvedOutputS3Uri": {
          "type": "string",
          "description": "The S3 path where offline records are written."
        }
      },
      "required": [
        "S3Uri"
      ]
    },
    "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"
      ]
    },
    "ThroughputConfig": {
      "type": "object",
      "properties": {
        "ThroughputMode": {
          "type": "string",
          "enum": [
            "OnDemand",
            "Provisioned"
          ],
          "description": "The mode used for your feature group throughput: ON_DEMAND or PROVISIONED."
        },
        "ProvisionedReadCapacityUnits": {
          "type": "integer",
          "description": "For provisioned feature groups with online store enabled, this indicates the read throughput you are billed for and can consume without throttling. This field is not applicable for on-demand feature groups."
        },
        "ProvisionedWriteCapacityUnits": {
          "type": "integer",
          "description": "For provisioned feature groups, this indicates the write throughput you are billed for and can consume without throttling. This field is not applicable for on-demand feature groups."
        }
      },
      "required": [
        "ThroughputMode"
      ]
    },
    "TtlDuration": {
      "type": "object",
      "properties": {
        "Unit": {
          "type": "string",
          "enum": [
            "Seconds",
            "Minutes",
            "Hours",
            "Days",
            "Weeks"
          ],
          "description": "TtlDuration time unit."
        },
        "Value": {
          "type": "integer",
          "description": "TtlDuration time value."
        }
      }
    },
    "VectorConfig": {
      "type": "object",
      "properties": {
        "Dimension": {
          "type": "integer",
          "description": "The number of elements in your vector."
        }
      },
      "required": [
        "Dimension"
      ]
    }
  }
}