MACHINELEARNING

AddTags

enum_TaggableResourceType := [ "BatchPrediction", "DataSource", "Evaluation", "MLModel" ]

valid {
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.Body.ResourceId == STRING
    input.Body.ResourceType == enum_TaggableResourceType[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateBatchPrediction

valid {
    input.Body.BatchPredictionId == STRING
    input.Body.BatchPredictionName == STRING
    input.Body.MLModelId == STRING
    input.Body.BatchPredictionDataSourceId == STRING
    input.Body.OutputUri == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateDataSourceFromRDS

valid {
    input.Body.DataSourceId == STRING
    input.Body.DataSourceName == STRING
    input.Body.RDSData.DatabaseInformation.InstanceIdentifier == STRING
    input.Body.RDSData.DatabaseInformation.DatabaseName == STRING
    input.Body.RDSData.SelectSqlQuery == STRING
    input.Body.RDSData.DatabaseCredentials.Username == STRING
    input.Body.RDSData.DatabaseCredentials.Password == STRING
    input.Body.RDSData.S3StagingLocation == STRING
    input.Body.RDSData.DataRearrangement == STRING
    input.Body.RDSData.DataSchema == STRING
    input.Body.RDSData.DataSchemaUri == STRING
    input.Body.RDSData.ResourceRole == STRING
    input.Body.RDSData.ServiceRole == STRING
    input.Body.RDSData.SubnetId == STRING
    input.Body.RDSData.SecurityGroupIds[_] == STRING
    input.Body.RoleARN == STRING
    input.Body.ComputeStatistics == BOOLEAN
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateDataSourceFromRedshift

valid {
    input.Body.DataSourceId == STRING
    input.Body.DataSourceName == STRING
    input.Body.DataSpec.DatabaseInformation.DatabaseName == STRING
    input.Body.DataSpec.DatabaseInformation.ClusterIdentifier == STRING
    input.Body.DataSpec.SelectSqlQuery == STRING
    input.Body.DataSpec.DatabaseCredentials.Username == STRING
    input.Body.DataSpec.DatabaseCredentials.Password == STRING
    input.Body.DataSpec.S3StagingLocation == STRING
    input.Body.DataSpec.DataRearrangement == STRING
    input.Body.DataSpec.DataSchema == STRING
    input.Body.DataSpec.DataSchemaUri == STRING
    input.Body.RoleARN == STRING
    input.Body.ComputeStatistics == BOOLEAN
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateDataSourceFromS3

valid {
    input.Body.DataSourceId == STRING
    input.Body.DataSourceName == STRING
    input.Body.DataSpec.DataLocationS3 == STRING
    input.Body.DataSpec.DataRearrangement == STRING
    input.Body.DataSpec.DataSchema == STRING
    input.Body.DataSpec.DataSchemaLocationS3 == STRING
    input.Body.ComputeStatistics == BOOLEAN
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateEvaluation

valid {
    input.Body.EvaluationId == STRING
    input.Body.EvaluationName == STRING
    input.Body.MLModelId == STRING
    input.Body.EvaluationDataSourceId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateMLModel

enum_MLModelType := [ "REGRESSION", "BINARY", "MULTICLASS" ]

valid {
    input.Body.MLModelId == STRING
    input.Body.MLModelName == STRING
    input.Body.MLModelType == enum_MLModelType[_]
    input.Body.Parameters.STRING == STRING
    input.Body.TrainingDataSourceId == STRING
    input.Body.Recipe == STRING
    input.Body.RecipeUri == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateRealtimeEndpoint

valid {
    input.Body.MLModelId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteBatchPrediction

valid {
    input.Body.BatchPredictionId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteDataSource

valid {
    input.Body.DataSourceId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteEvaluation

valid {
    input.Body.EvaluationId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteMLModel

valid {
    input.Body.MLModelId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteRealtimeEndpoint

valid {
    input.Body.MLModelId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteTags

enum_TaggableResourceType := [ "BatchPrediction", "DataSource", "Evaluation", "MLModel" ]

valid {
    input.Body.TagKeys[_] == STRING
    input.Body.ResourceId == STRING
    input.Body.ResourceType == enum_TaggableResourceType[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DescribeBatchPredictions

enum_BatchPredictionFilterVariable := [ "CreatedAt", "LastUpdatedAt", "Status", "Name", "IAMUser", "MLModelId", "DataSourceId", "DataURI" ]
enum_SortOrder := [ "asc", "dsc" ]

valid {
    input.Body.FilterVariable == enum_BatchPredictionFilterVariable[_]
    input.Body.EQ == STRING
    input.Body.GT == STRING
    input.Body.LT == STRING
    input.Body.GE == STRING
    input.Body.LE == STRING
    input.Body.NE == STRING
    input.Body.Prefix == STRING
    input.Body.SortOrder == enum_SortOrder[_]
    input.Body.NextToken == STRING
    input.Body.Limit == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DescribeDataSources

enum_DataSourceFilterVariable := [ "CreatedAt", "LastUpdatedAt", "Status", "Name", "DataLocationS3", "IAMUser" ]
enum_SortOrder := [ "asc", "dsc" ]

valid {
    input.Body.FilterVariable == enum_DataSourceFilterVariable[_]
    input.Body.EQ == STRING
    input.Body.GT == STRING
    input.Body.LT == STRING
    input.Body.GE == STRING
    input.Body.LE == STRING
    input.Body.NE == STRING
    input.Body.Prefix == STRING
    input.Body.SortOrder == enum_SortOrder[_]
    input.Body.NextToken == STRING
    input.Body.Limit == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DescribeEvaluations

enum_EvaluationFilterVariable := [ "CreatedAt", "LastUpdatedAt", "Status", "Name", "IAMUser", "MLModelId", "DataSourceId", "DataURI" ]
enum_SortOrder := [ "asc", "dsc" ]

valid {
    input.Body.FilterVariable == enum_EvaluationFilterVariable[_]
    input.Body.EQ == STRING
    input.Body.GT == STRING
    input.Body.LT == STRING
    input.Body.GE == STRING
    input.Body.LE == STRING
    input.Body.NE == STRING
    input.Body.Prefix == STRING
    input.Body.SortOrder == enum_SortOrder[_]
    input.Body.NextToken == STRING
    input.Body.Limit == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DescribeMLModels

enum_MLModelFilterVariable := [ "CreatedAt", "LastUpdatedAt", "Status", "Name", "IAMUser", "TrainingDataSourceId", "RealtimeEndpointStatus", "MLModelType", "Algorithm", "TrainingDataURI" ]
enum_SortOrder := [ "asc", "dsc" ]

valid {
    input.Body.FilterVariable == enum_MLModelFilterVariable[_]
    input.Body.EQ == STRING
    input.Body.GT == STRING
    input.Body.LT == STRING
    input.Body.GE == STRING
    input.Body.LE == STRING
    input.Body.NE == STRING
    input.Body.Prefix == STRING
    input.Body.SortOrder == enum_SortOrder[_]
    input.Body.NextToken == STRING
    input.Body.Limit == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DescribeTags

enum_TaggableResourceType := [ "BatchPrediction", "DataSource", "Evaluation", "MLModel" ]

valid {
    input.Body.ResourceId == STRING
    input.Body.ResourceType == enum_TaggableResourceType[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetBatchPrediction

valid {
    input.Body.BatchPredictionId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetDataSource

valid {
    input.Body.DataSourceId == STRING
    input.Body.Verbose == BOOLEAN
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetEvaluation

valid {
    input.Body.EvaluationId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetMLModel

valid {
    input.Body.MLModelId == STRING
    input.Body.Verbose == BOOLEAN
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

Predict

valid {
    input.Body.MLModelId == STRING
    input.Body.Record.STRING == STRING
    input.Body.PredictEndpoint == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateBatchPrediction

valid {
    input.Body.BatchPredictionId == STRING
    input.Body.BatchPredictionName == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateDataSource

valid {
    input.Body.DataSourceId == STRING
    input.Body.DataSourceName == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateEvaluation

valid {
    input.Body.EvaluationId == STRING
    input.Body.EvaluationName == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateMLModel

valid {
    input.Body.MLModelId == STRING
    input.Body.MLModelName == STRING
    input.Body.ScoreThreshold == FLOAT
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}