def checkIfFeatureGroupIsCreated()

in scala-spark-sdk/src/main/scala/software/amazon/sagemaker/featurestore/sparksdk/helpers/FeatureGroupHelper.scala [32:40]


  def checkIfFeatureGroupIsCreated(describeResponse: DescribeFeatureGroupResponse): Unit = {
    if (!FeatureGroupStatus.CREATED.equals(describeResponse.featureGroupStatus())) {
      throw ValidationError(
        s"Feature group '${describeResponse.featureGroupName()}' is in " +
          s"'${describeResponse.featureGroupStatus()}' status, " +
          s"however status must be in 'Created' instead."
      )
    }
  }