COMPREHEND

BatchDetectDominantLanguage

valid {
    input.Body.TextList[_] == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

BatchDetectEntities

enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]

valid {
    input.Body.TextList[_] == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

BatchDetectKeyPhrases

enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]

valid {
    input.Body.TextList[_] == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

BatchDetectSentiment

enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]

valid {
    input.Body.TextList[_] == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

BatchDetectSyntax

enum_SyntaxLanguageCode := [ "en", "es", "fr", "de", "it", "pt" ]

valid {
    input.Body.TextList[_] == STRING
    input.Body.LanguageCode == enum_SyntaxLanguageCode[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

BatchDetectTargetedSentiment

enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]

valid {
    input.Body.TextList[_] == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ClassifyDocument

enum_DocumentReadAction := [ "TEXTRACT_DETECT_DOCUMENT_TEXT", "TEXTRACT_ANALYZE_DOCUMENT" ]
enum_DocumentReadFeatureTypes := [ "TABLES", "FORMS" ]
enum_DocumentReadMode := [ "SERVICE_DEFAULT", "FORCE_DOCUMENT_READ_ACTION" ]

valid {
    input.Body.Text == STRING
    input.Body.EndpointArn == STRING
    input.Body.Bytes == BLOB
    input.Body.DocumentReaderConfig.DocumentReadAction == enum_DocumentReadAction[_]
    input.Body.DocumentReaderConfig.DocumentReadMode == enum_DocumentReadMode[_]
    input.Body.DocumentReaderConfig.FeatureTypes[_] == enum_DocumentReadFeatureTypes[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ContainsPiiEntities

enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]

valid {
    input.Body.Text == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateDataset

enum_AugmentedManifestsDocumentTypeFormat := [ "PLAIN_TEXT_DOCUMENT", "SEMI_STRUCTURED_DOCUMENT" ]
enum_DatasetDataFormat := [ "COMPREHEND_CSV", "AUGMENTED_MANIFEST" ]
enum_DatasetType := [ "TRAIN", "TEST" ]
enum_InputFormat := [ "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE" ]

valid {
    input.Body.FlywheelArn == STRING
    input.Body.DatasetName == STRING
    input.Body.DatasetType == enum_DatasetType[_]
    input.Body.Description == STRING
    input.Body.InputDataConfig.AugmentedManifests[_].AttributeNames[_] == STRING
    input.Body.InputDataConfig.AugmentedManifests[_].S3Uri == STRING
    input.Body.InputDataConfig.AugmentedManifests[_].AnnotationDataS3Uri == STRING
    input.Body.InputDataConfig.AugmentedManifests[_].SourceDocumentsS3Uri == STRING
    input.Body.InputDataConfig.AugmentedManifests[_].DocumentType == enum_AugmentedManifestsDocumentTypeFormat[_]
    input.Body.InputDataConfig.DataFormat == enum_DatasetDataFormat[_]
    input.Body.InputDataConfig.DocumentClassifierInputDataConfig.S3Uri == STRING
    input.Body.InputDataConfig.DocumentClassifierInputDataConfig.LabelDelimiter == STRING
    input.Body.InputDataConfig.EntityRecognizerInputDataConfig.Annotations.S3Uri == STRING
    input.Body.InputDataConfig.EntityRecognizerInputDataConfig.Documents.S3Uri == STRING
    input.Body.InputDataConfig.EntityRecognizerInputDataConfig.Documents.InputFormat == enum_InputFormat[_]
    input.Body.InputDataConfig.EntityRecognizerInputDataConfig.EntityList.S3Uri == STRING
    input.Body.ClientRequestToken == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateDocumentClassifier

enum_AugmentedManifestsDocumentTypeFormat := [ "PLAIN_TEXT_DOCUMENT", "SEMI_STRUCTURED_DOCUMENT" ]
enum_DocumentClassifierDataFormat := [ "COMPREHEND_CSV", "AUGMENTED_MANIFEST" ]
enum_DocumentClassifierDocumentTypeFormat := [ "PLAIN_TEXT_DOCUMENT", "SEMI_STRUCTURED_DOCUMENT" ]
enum_DocumentClassifierMode := [ "MULTI_CLASS", "MULTI_LABEL" ]
enum_DocumentReadAction := [ "TEXTRACT_DETECT_DOCUMENT_TEXT", "TEXTRACT_ANALYZE_DOCUMENT" ]
enum_DocumentReadFeatureTypes := [ "TABLES", "FORMS" ]
enum_DocumentReadMode := [ "SERVICE_DEFAULT", "FORCE_DOCUMENT_READ_ACTION" ]
enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]
enum_Split := [ "TRAIN", "TEST" ]

valid {
    input.Body.DocumentClassifierName == STRING
    input.Body.VersionName == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.Body.InputDataConfig.DataFormat == enum_DocumentClassifierDataFormat[_]
    input.Body.InputDataConfig.S3Uri == STRING
    input.Body.InputDataConfig.TestS3Uri == STRING
    input.Body.InputDataConfig.LabelDelimiter == STRING
    input.Body.InputDataConfig.AugmentedManifests[_].S3Uri == STRING
    input.Body.InputDataConfig.AugmentedManifests[_].Split == enum_Split[_]
    input.Body.InputDataConfig.AugmentedManifests[_].AttributeNames[_] == STRING
    input.Body.InputDataConfig.AugmentedManifests[_].AnnotationDataS3Uri == STRING
    input.Body.InputDataConfig.AugmentedManifests[_].SourceDocumentsS3Uri == STRING
    input.Body.InputDataConfig.AugmentedManifests[_].DocumentType == enum_AugmentedManifestsDocumentTypeFormat[_]
    input.Body.InputDataConfig.DocumentType == enum_DocumentClassifierDocumentTypeFormat[_]
    input.Body.InputDataConfig.Documents.S3Uri == STRING
    input.Body.InputDataConfig.Documents.TestS3Uri == STRING
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadAction == enum_DocumentReadAction[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadMode == enum_DocumentReadMode[_]
    input.Body.InputDataConfig.DocumentReaderConfig.FeatureTypes[_] == enum_DocumentReadFeatureTypes[_]
    input.Body.OutputDataConfig.S3Uri == STRING
    input.Body.OutputDataConfig.KmsKeyId == STRING
    input.Body.OutputDataConfig.FlywheelStatsS3Prefix == STRING
    input.Body.ClientRequestToken == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.Body.VolumeKmsKeyId == STRING
    input.Body.VpcConfig.SecurityGroupIds[_] == STRING
    input.Body.VpcConfig.Subnets[_] == STRING
    input.Body.Mode == enum_DocumentClassifierMode[_]
    input.Body.ModelKmsKeyId == STRING
    input.Body.ModelPolicy == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateEndpoint

valid {
    input.Body.EndpointName == STRING
    input.Body.ModelArn == STRING
    input.Body.DesiredInferenceUnits == INTEGER
    input.Body.ClientRequestToken == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.FlywheelArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateEntityRecognizer

enum_AugmentedManifestsDocumentTypeFormat := [ "PLAIN_TEXT_DOCUMENT", "SEMI_STRUCTURED_DOCUMENT" ]
enum_EntityRecognizerDataFormat := [ "COMPREHEND_CSV", "AUGMENTED_MANIFEST" ]
enum_InputFormat := [ "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE" ]
enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]
enum_Split := [ "TRAIN", "TEST" ]

valid {
    input.Body.RecognizerName == STRING
    input.Body.VersionName == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.Body.InputDataConfig.DataFormat == enum_EntityRecognizerDataFormat[_]
    input.Body.InputDataConfig.EntityTypes[_].Type == STRING
    input.Body.InputDataConfig.Documents.S3Uri == STRING
    input.Body.InputDataConfig.Documents.TestS3Uri == STRING
    input.Body.InputDataConfig.Documents.InputFormat == enum_InputFormat[_]
    input.Body.InputDataConfig.Annotations.S3Uri == STRING
    input.Body.InputDataConfig.Annotations.TestS3Uri == STRING
    input.Body.InputDataConfig.EntityList.S3Uri == STRING
    input.Body.InputDataConfig.AugmentedManifests[_].S3Uri == STRING
    input.Body.InputDataConfig.AugmentedManifests[_].Split == enum_Split[_]
    input.Body.InputDataConfig.AugmentedManifests[_].AttributeNames[_] == STRING
    input.Body.InputDataConfig.AugmentedManifests[_].AnnotationDataS3Uri == STRING
    input.Body.InputDataConfig.AugmentedManifests[_].SourceDocumentsS3Uri == STRING
    input.Body.InputDataConfig.AugmentedManifests[_].DocumentType == enum_AugmentedManifestsDocumentTypeFormat[_]
    input.Body.ClientRequestToken == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.Body.VolumeKmsKeyId == STRING
    input.Body.VpcConfig.SecurityGroupIds[_] == STRING
    input.Body.VpcConfig.Subnets[_] == STRING
    input.Body.ModelKmsKeyId == STRING
    input.Body.ModelPolicy == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateFlywheel

enum_DocumentClassifierMode := [ "MULTI_CLASS", "MULTI_LABEL" ]
enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]
enum_ModelType := [ "DOCUMENT_CLASSIFIER", "ENTITY_RECOGNIZER" ]

valid {
    input.Body.FlywheelName == STRING
    input.Body.ActiveModelArn == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.TaskConfig.LanguageCode == enum_LanguageCode[_]
    input.Body.TaskConfig.DocumentClassificationConfig.Mode == enum_DocumentClassifierMode[_]
    input.Body.TaskConfig.DocumentClassificationConfig.Labels[_] == STRING
    input.Body.TaskConfig.EntityRecognitionConfig.EntityTypes[_].Type == STRING
    input.Body.ModelType == enum_ModelType[_]
    input.Body.DataLakeS3Uri == STRING
    input.Body.DataSecurityConfig.ModelKmsKeyId == STRING
    input.Body.DataSecurityConfig.VolumeKmsKeyId == STRING
    input.Body.DataSecurityConfig.DataLakeKmsKeyId == STRING
    input.Body.DataSecurityConfig.VpcConfig.SecurityGroupIds[_] == STRING
    input.Body.DataSecurityConfig.VpcConfig.Subnets[_] == STRING
    input.Body.ClientRequestToken == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteDocumentClassifier

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

DeleteEndpoint

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

DeleteEntityRecognizer

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

DeleteFlywheel

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

DeleteResourcePolicy

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

DescribeDataset

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

DescribeDocumentClassificationJob

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

DescribeDocumentClassifier

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

DescribeDominantLanguageDetectionJob

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

DescribeEndpoint

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

DescribeEntitiesDetectionJob

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

DescribeEntityRecognizer

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

DescribeEventsDetectionJob

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

DescribeFlywheel

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

DescribeFlywheelIteration

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

DescribeKeyPhrasesDetectionJob

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

DescribePiiEntitiesDetectionJob

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

DescribeResourcePolicy

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

DescribeSentimentDetectionJob

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

DescribeTargetedSentimentDetectionJob

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

DescribeTopicsDetectionJob

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

DetectDominantLanguage

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

DetectEntities

enum_DocumentReadAction := [ "TEXTRACT_DETECT_DOCUMENT_TEXT", "TEXTRACT_ANALYZE_DOCUMENT" ]
enum_DocumentReadFeatureTypes := [ "TABLES", "FORMS" ]
enum_DocumentReadMode := [ "SERVICE_DEFAULT", "FORCE_DOCUMENT_READ_ACTION" ]
enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]

valid {
    input.Body.Text == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.Body.EndpointArn == STRING
    input.Body.Bytes == BLOB
    input.Body.DocumentReaderConfig.DocumentReadAction == enum_DocumentReadAction[_]
    input.Body.DocumentReaderConfig.DocumentReadMode == enum_DocumentReadMode[_]
    input.Body.DocumentReaderConfig.FeatureTypes[_] == enum_DocumentReadFeatureTypes[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DetectKeyPhrases

enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]

valid {
    input.Body.Text == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DetectPiiEntities

enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]

valid {
    input.Body.Text == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DetectSentiment

enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]

valid {
    input.Body.Text == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DetectSyntax

enum_SyntaxLanguageCode := [ "en", "es", "fr", "de", "it", "pt" ]

valid {
    input.Body.Text == STRING
    input.Body.LanguageCode == enum_SyntaxLanguageCode[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DetectTargetedSentiment

enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]

valid {
    input.Body.Text == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DetectToxicContent

enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]

valid {
    input.Body.TextSegments[_].Text == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ImportModel

valid {
    input.Body.SourceModelArn == STRING
    input.Body.ModelName == STRING
    input.Body.VersionName == STRING
    input.Body.ModelKmsKeyId == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListDatasets

enum_DatasetStatus := [ "CREATING", "COMPLETED", "FAILED" ]
enum_DatasetType := [ "TRAIN", "TEST" ]

valid {
    input.Body.FlywheelArn == STRING
    input.Body.Filter.Status == enum_DatasetStatus[_]
    input.Body.Filter.DatasetType == enum_DatasetType[_]
    input.Body.Filter.CreationTimeAfter == TIMESTAMP
    input.Body.Filter.CreationTimeBefore == TIMESTAMP
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListDocumentClassificationJobs

enum_JobStatus := [ "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED" ]

valid {
    input.Body.Filter.JobName == STRING
    input.Body.Filter.JobStatus == enum_JobStatus[_]
    input.Body.Filter.SubmitTimeBefore == TIMESTAMP
    input.Body.Filter.SubmitTimeAfter == TIMESTAMP
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListDocumentClassifierSummaries

valid {
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListDocumentClassifiers

enum_ModelStatus := [ "SUBMITTED", "TRAINING", "DELETING", "STOP_REQUESTED", "STOPPED", "IN_ERROR", "TRAINED", "TRAINED_WITH_WARNING" ]

valid {
    input.Body.Filter.Status == enum_ModelStatus[_]
    input.Body.Filter.DocumentClassifierName == STRING
    input.Body.Filter.SubmitTimeBefore == TIMESTAMP
    input.Body.Filter.SubmitTimeAfter == TIMESTAMP
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListDominantLanguageDetectionJobs

enum_JobStatus := [ "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED" ]

valid {
    input.Body.Filter.JobName == STRING
    input.Body.Filter.JobStatus == enum_JobStatus[_]
    input.Body.Filter.SubmitTimeBefore == TIMESTAMP
    input.Body.Filter.SubmitTimeAfter == TIMESTAMP
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListEndpoints

enum_EndpointStatus := [ "CREATING", "DELETING", "FAILED", "IN_SERVICE", "UPDATING" ]

valid {
    input.Body.Filter.ModelArn == STRING
    input.Body.Filter.Status == enum_EndpointStatus[_]
    input.Body.Filter.CreationTimeBefore == TIMESTAMP
    input.Body.Filter.CreationTimeAfter == TIMESTAMP
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListEntitiesDetectionJobs

enum_JobStatus := [ "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED" ]

valid {
    input.Body.Filter.JobName == STRING
    input.Body.Filter.JobStatus == enum_JobStatus[_]
    input.Body.Filter.SubmitTimeBefore == TIMESTAMP
    input.Body.Filter.SubmitTimeAfter == TIMESTAMP
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListEntityRecognizerSummaries

valid {
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListEntityRecognizers

enum_ModelStatus := [ "SUBMITTED", "TRAINING", "DELETING", "STOP_REQUESTED", "STOPPED", "IN_ERROR", "TRAINED", "TRAINED_WITH_WARNING" ]

valid {
    input.Body.Filter.Status == enum_ModelStatus[_]
    input.Body.Filter.RecognizerName == STRING
    input.Body.Filter.SubmitTimeBefore == TIMESTAMP
    input.Body.Filter.SubmitTimeAfter == TIMESTAMP
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListEventsDetectionJobs

enum_JobStatus := [ "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED" ]

valid {
    input.Body.Filter.JobName == STRING
    input.Body.Filter.JobStatus == enum_JobStatus[_]
    input.Body.Filter.SubmitTimeBefore == TIMESTAMP
    input.Body.Filter.SubmitTimeAfter == TIMESTAMP
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListFlywheelIterationHistory

valid {
    input.Body.FlywheelArn == STRING
    input.Body.Filter.CreationTimeAfter == TIMESTAMP
    input.Body.Filter.CreationTimeBefore == TIMESTAMP
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListFlywheels

enum_FlywheelStatus := [ "CREATING", "ACTIVE", "UPDATING", "DELETING", "FAILED" ]

valid {
    input.Body.Filter.Status == enum_FlywheelStatus[_]
    input.Body.Filter.CreationTimeAfter == TIMESTAMP
    input.Body.Filter.CreationTimeBefore == TIMESTAMP
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListKeyPhrasesDetectionJobs

enum_JobStatus := [ "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED" ]

valid {
    input.Body.Filter.JobName == STRING
    input.Body.Filter.JobStatus == enum_JobStatus[_]
    input.Body.Filter.SubmitTimeBefore == TIMESTAMP
    input.Body.Filter.SubmitTimeAfter == TIMESTAMP
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListPiiEntitiesDetectionJobs

enum_JobStatus := [ "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED" ]

valid {
    input.Body.Filter.JobName == STRING
    input.Body.Filter.JobStatus == enum_JobStatus[_]
    input.Body.Filter.SubmitTimeBefore == TIMESTAMP
    input.Body.Filter.SubmitTimeAfter == TIMESTAMP
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListSentimentDetectionJobs

enum_JobStatus := [ "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED" ]

valid {
    input.Body.Filter.JobName == STRING
    input.Body.Filter.JobStatus == enum_JobStatus[_]
    input.Body.Filter.SubmitTimeBefore == TIMESTAMP
    input.Body.Filter.SubmitTimeAfter == TIMESTAMP
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListTagsForResource

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

ListTargetedSentimentDetectionJobs

enum_JobStatus := [ "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED" ]

valid {
    input.Body.Filter.JobName == STRING
    input.Body.Filter.JobStatus == enum_JobStatus[_]
    input.Body.Filter.SubmitTimeBefore == TIMESTAMP
    input.Body.Filter.SubmitTimeAfter == TIMESTAMP
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListTopicsDetectionJobs

enum_JobStatus := [ "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED" ]

valid {
    input.Body.Filter.JobName == STRING
    input.Body.Filter.JobStatus == enum_JobStatus[_]
    input.Body.Filter.SubmitTimeBefore == TIMESTAMP
    input.Body.Filter.SubmitTimeAfter == TIMESTAMP
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

PutResourcePolicy

valid {
    input.Body.ResourceArn == STRING
    input.Body.ResourcePolicy == STRING
    input.Body.PolicyRevisionId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StartDocumentClassificationJob

enum_DocumentReadAction := [ "TEXTRACT_DETECT_DOCUMENT_TEXT", "TEXTRACT_ANALYZE_DOCUMENT" ]
enum_DocumentReadFeatureTypes := [ "TABLES", "FORMS" ]
enum_DocumentReadMode := [ "SERVICE_DEFAULT", "FORCE_DOCUMENT_READ_ACTION" ]
enum_InputFormat := [ "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE" ]

valid {
    input.Body.JobName == STRING
    input.Body.DocumentClassifierArn == STRING
    input.Body.InputDataConfig.S3Uri == STRING
    input.Body.InputDataConfig.InputFormat == enum_InputFormat[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadAction == enum_DocumentReadAction[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadMode == enum_DocumentReadMode[_]
    input.Body.InputDataConfig.DocumentReaderConfig.FeatureTypes[_] == enum_DocumentReadFeatureTypes[_]
    input.Body.OutputDataConfig.S3Uri == STRING
    input.Body.OutputDataConfig.KmsKeyId == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.ClientRequestToken == STRING
    input.Body.VolumeKmsKeyId == STRING
    input.Body.VpcConfig.SecurityGroupIds[_] == STRING
    input.Body.VpcConfig.Subnets[_] == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.Body.FlywheelArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StartDominantLanguageDetectionJob

enum_DocumentReadAction := [ "TEXTRACT_DETECT_DOCUMENT_TEXT", "TEXTRACT_ANALYZE_DOCUMENT" ]
enum_DocumentReadFeatureTypes := [ "TABLES", "FORMS" ]
enum_DocumentReadMode := [ "SERVICE_DEFAULT", "FORCE_DOCUMENT_READ_ACTION" ]
enum_InputFormat := [ "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE" ]

valid {
    input.Body.InputDataConfig.S3Uri == STRING
    input.Body.InputDataConfig.InputFormat == enum_InputFormat[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadAction == enum_DocumentReadAction[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadMode == enum_DocumentReadMode[_]
    input.Body.InputDataConfig.DocumentReaderConfig.FeatureTypes[_] == enum_DocumentReadFeatureTypes[_]
    input.Body.OutputDataConfig.S3Uri == STRING
    input.Body.OutputDataConfig.KmsKeyId == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.JobName == STRING
    input.Body.ClientRequestToken == STRING
    input.Body.VolumeKmsKeyId == STRING
    input.Body.VpcConfig.SecurityGroupIds[_] == STRING
    input.Body.VpcConfig.Subnets[_] == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StartEntitiesDetectionJob

enum_DocumentReadAction := [ "TEXTRACT_DETECT_DOCUMENT_TEXT", "TEXTRACT_ANALYZE_DOCUMENT" ]
enum_DocumentReadFeatureTypes := [ "TABLES", "FORMS" ]
enum_DocumentReadMode := [ "SERVICE_DEFAULT", "FORCE_DOCUMENT_READ_ACTION" ]
enum_InputFormat := [ "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE" ]
enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]

valid {
    input.Body.InputDataConfig.S3Uri == STRING
    input.Body.InputDataConfig.InputFormat == enum_InputFormat[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadAction == enum_DocumentReadAction[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadMode == enum_DocumentReadMode[_]
    input.Body.InputDataConfig.DocumentReaderConfig.FeatureTypes[_] == enum_DocumentReadFeatureTypes[_]
    input.Body.OutputDataConfig.S3Uri == STRING
    input.Body.OutputDataConfig.KmsKeyId == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.JobName == STRING
    input.Body.EntityRecognizerArn == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.Body.ClientRequestToken == STRING
    input.Body.VolumeKmsKeyId == STRING
    input.Body.VpcConfig.SecurityGroupIds[_] == STRING
    input.Body.VpcConfig.Subnets[_] == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.Body.FlywheelArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StartEventsDetectionJob

enum_DocumentReadAction := [ "TEXTRACT_DETECT_DOCUMENT_TEXT", "TEXTRACT_ANALYZE_DOCUMENT" ]
enum_DocumentReadFeatureTypes := [ "TABLES", "FORMS" ]
enum_DocumentReadMode := [ "SERVICE_DEFAULT", "FORCE_DOCUMENT_READ_ACTION" ]
enum_InputFormat := [ "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE" ]
enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]

valid {
    input.Body.InputDataConfig.S3Uri == STRING
    input.Body.InputDataConfig.InputFormat == enum_InputFormat[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadAction == enum_DocumentReadAction[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadMode == enum_DocumentReadMode[_]
    input.Body.InputDataConfig.DocumentReaderConfig.FeatureTypes[_] == enum_DocumentReadFeatureTypes[_]
    input.Body.OutputDataConfig.S3Uri == STRING
    input.Body.OutputDataConfig.KmsKeyId == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.JobName == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.Body.ClientRequestToken == STRING
    input.Body.TargetEventTypes[_] == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StartFlywheelIteration

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

StartKeyPhrasesDetectionJob

enum_DocumentReadAction := [ "TEXTRACT_DETECT_DOCUMENT_TEXT", "TEXTRACT_ANALYZE_DOCUMENT" ]
enum_DocumentReadFeatureTypes := [ "TABLES", "FORMS" ]
enum_DocumentReadMode := [ "SERVICE_DEFAULT", "FORCE_DOCUMENT_READ_ACTION" ]
enum_InputFormat := [ "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE" ]
enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]

valid {
    input.Body.InputDataConfig.S3Uri == STRING
    input.Body.InputDataConfig.InputFormat == enum_InputFormat[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadAction == enum_DocumentReadAction[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadMode == enum_DocumentReadMode[_]
    input.Body.InputDataConfig.DocumentReaderConfig.FeatureTypes[_] == enum_DocumentReadFeatureTypes[_]
    input.Body.OutputDataConfig.S3Uri == STRING
    input.Body.OutputDataConfig.KmsKeyId == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.JobName == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.Body.ClientRequestToken == STRING
    input.Body.VolumeKmsKeyId == STRING
    input.Body.VpcConfig.SecurityGroupIds[_] == STRING
    input.Body.VpcConfig.Subnets[_] == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StartPiiEntitiesDetectionJob

enum_DocumentReadAction := [ "TEXTRACT_DETECT_DOCUMENT_TEXT", "TEXTRACT_ANALYZE_DOCUMENT" ]
enum_DocumentReadFeatureTypes := [ "TABLES", "FORMS" ]
enum_DocumentReadMode := [ "SERVICE_DEFAULT", "FORCE_DOCUMENT_READ_ACTION" ]
enum_InputFormat := [ "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE" ]
enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]
enum_PiiEntitiesDetectionMaskMode := [ "MASK", "REPLACE_WITH_PII_ENTITY_TYPE" ]
enum_PiiEntitiesDetectionMode := [ "ONLY_REDACTION", "ONLY_OFFSETS" ]
enum_PiiEntityType := [ "BANK_ACCOUNT_NUMBER", "BANK_ROUTING", "CREDIT_DEBIT_NUMBER", "CREDIT_DEBIT_CVV", "CREDIT_DEBIT_EXPIRY", "PIN", "EMAIL", "ADDRESS", "NAME", "PHONE", "SSN", "DATE_TIME", "PASSPORT_NUMBER", "DRIVER_ID", "URL", "AGE", "USERNAME", "PASSWORD", "AWS_ACCESS_KEY", "AWS_SECRET_KEY", "IP_ADDRESS", "MAC_ADDRESS", "ALL", "LICENSE_PLATE", "VEHICLE_IDENTIFICATION_NUMBER", "UK_NATIONAL_INSURANCE_NUMBER", "CA_SOCIAL_INSURANCE_NUMBER", "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER", "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER", "IN_PERMANENT_ACCOUNT_NUMBER", "IN_NREGA", "INTERNATIONAL_BANK_ACCOUNT_NUMBER", "SWIFT_CODE", "UK_NATIONAL_HEALTH_SERVICE_NUMBER", "CA_HEALTH_NUMBER", "IN_AADHAAR", "IN_VOTER_NUMBER" ]

valid {
    input.Body.InputDataConfig.S3Uri == STRING
    input.Body.InputDataConfig.InputFormat == enum_InputFormat[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadAction == enum_DocumentReadAction[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadMode == enum_DocumentReadMode[_]
    input.Body.InputDataConfig.DocumentReaderConfig.FeatureTypes[_] == enum_DocumentReadFeatureTypes[_]
    input.Body.OutputDataConfig.S3Uri == STRING
    input.Body.OutputDataConfig.KmsKeyId == STRING
    input.Body.Mode == enum_PiiEntitiesDetectionMode[_]
    input.Body.RedactionConfig.PiiEntityTypes[_] == enum_PiiEntityType[_]
    input.Body.RedactionConfig.MaskMode == enum_PiiEntitiesDetectionMaskMode[_]
    input.Body.RedactionConfig.MaskCharacter == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.JobName == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.Body.ClientRequestToken == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StartSentimentDetectionJob

enum_DocumentReadAction := [ "TEXTRACT_DETECT_DOCUMENT_TEXT", "TEXTRACT_ANALYZE_DOCUMENT" ]
enum_DocumentReadFeatureTypes := [ "TABLES", "FORMS" ]
enum_DocumentReadMode := [ "SERVICE_DEFAULT", "FORCE_DOCUMENT_READ_ACTION" ]
enum_InputFormat := [ "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE" ]
enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]

valid {
    input.Body.InputDataConfig.S3Uri == STRING
    input.Body.InputDataConfig.InputFormat == enum_InputFormat[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadAction == enum_DocumentReadAction[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadMode == enum_DocumentReadMode[_]
    input.Body.InputDataConfig.DocumentReaderConfig.FeatureTypes[_] == enum_DocumentReadFeatureTypes[_]
    input.Body.OutputDataConfig.S3Uri == STRING
    input.Body.OutputDataConfig.KmsKeyId == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.JobName == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.Body.ClientRequestToken == STRING
    input.Body.VolumeKmsKeyId == STRING
    input.Body.VpcConfig.SecurityGroupIds[_] == STRING
    input.Body.VpcConfig.Subnets[_] == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StartTargetedSentimentDetectionJob

enum_DocumentReadAction := [ "TEXTRACT_DETECT_DOCUMENT_TEXT", "TEXTRACT_ANALYZE_DOCUMENT" ]
enum_DocumentReadFeatureTypes := [ "TABLES", "FORMS" ]
enum_DocumentReadMode := [ "SERVICE_DEFAULT", "FORCE_DOCUMENT_READ_ACTION" ]
enum_InputFormat := [ "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE" ]
enum_LanguageCode := [ "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW" ]

valid {
    input.Body.InputDataConfig.S3Uri == STRING
    input.Body.InputDataConfig.InputFormat == enum_InputFormat[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadAction == enum_DocumentReadAction[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadMode == enum_DocumentReadMode[_]
    input.Body.InputDataConfig.DocumentReaderConfig.FeatureTypes[_] == enum_DocumentReadFeatureTypes[_]
    input.Body.OutputDataConfig.S3Uri == STRING
    input.Body.OutputDataConfig.KmsKeyId == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.JobName == STRING
    input.Body.LanguageCode == enum_LanguageCode[_]
    input.Body.ClientRequestToken == STRING
    input.Body.VolumeKmsKeyId == STRING
    input.Body.VpcConfig.SecurityGroupIds[_] == STRING
    input.Body.VpcConfig.Subnets[_] == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StartTopicsDetectionJob

enum_DocumentReadAction := [ "TEXTRACT_DETECT_DOCUMENT_TEXT", "TEXTRACT_ANALYZE_DOCUMENT" ]
enum_DocumentReadFeatureTypes := [ "TABLES", "FORMS" ]
enum_DocumentReadMode := [ "SERVICE_DEFAULT", "FORCE_DOCUMENT_READ_ACTION" ]
enum_InputFormat := [ "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE" ]

valid {
    input.Body.InputDataConfig.S3Uri == STRING
    input.Body.InputDataConfig.InputFormat == enum_InputFormat[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadAction == enum_DocumentReadAction[_]
    input.Body.InputDataConfig.DocumentReaderConfig.DocumentReadMode == enum_DocumentReadMode[_]
    input.Body.InputDataConfig.DocumentReaderConfig.FeatureTypes[_] == enum_DocumentReadFeatureTypes[_]
    input.Body.OutputDataConfig.S3Uri == STRING
    input.Body.OutputDataConfig.KmsKeyId == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.JobName == STRING
    input.Body.NumberOfTopics == INTEGER
    input.Body.ClientRequestToken == STRING
    input.Body.VolumeKmsKeyId == STRING
    input.Body.VpcConfig.SecurityGroupIds[_] == STRING
    input.Body.VpcConfig.Subnets[_] == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StopDominantLanguageDetectionJob

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

StopEntitiesDetectionJob

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

StopEventsDetectionJob

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

StopKeyPhrasesDetectionJob

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

StopPiiEntitiesDetectionJob

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

StopSentimentDetectionJob

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

StopTargetedSentimentDetectionJob

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

StopTrainingDocumentClassifier

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

StopTrainingEntityRecognizer

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

TagResource

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

UntagResource

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

UpdateEndpoint

valid {
    input.Body.EndpointArn == STRING
    input.Body.DesiredModelArn == STRING
    input.Body.DesiredInferenceUnits == INTEGER
    input.Body.DesiredDataAccessRoleArn == STRING
    input.Body.FlywheelArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateFlywheel

valid {
    input.Body.FlywheelArn == STRING
    input.Body.ActiveModelArn == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.DataSecurityConfig.ModelKmsKeyId == STRING
    input.Body.DataSecurityConfig.VolumeKmsKeyId == STRING
    input.Body.DataSecurityConfig.VpcConfig.SecurityGroupIds[_] == STRING
    input.Body.DataSecurityConfig.VpcConfig.Subnets[_] == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}