CreateParallelData

enum_EncryptionKeyType := [ "KMS" ]
enum_ParallelDataFormat := [ "TSV", "CSV", "TMX" ]

valid {
    input.Body.Name == STRING
    input.Body.Description == STRING
    input.Body.ParallelDataConfig.S3Uri == STRING
    input.Body.ParallelDataConfig.Format == enum_ParallelDataFormat[_]
    input.Body.EncryptionKey.Type == enum_EncryptionKeyType[_]
    input.Body.EncryptionKey.Id == STRING
    input.Body.ClientToken == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteParallelData

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

DeleteTerminology

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

DescribeTextTranslationJob

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

GetParallelData

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

GetTerminology

enum_TerminologyDataFormat := [ "CSV", "TMX", "TSV" ]

valid {
    input.Body.Name == STRING
    input.Body.TerminologyDataFormat == enum_TerminologyDataFormat[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ImportTerminology

enum_Directionality := [ "UNI", "MULTI" ]
enum_EncryptionKeyType := [ "KMS" ]
enum_MergeStrategy := [ "OVERWRITE" ]
enum_TerminologyDataFormat := [ "CSV", "TMX", "TSV" ]

valid {
    input.Body.Name == STRING
    input.Body.MergeStrategy == enum_MergeStrategy[_]
    input.Body.Description == STRING
    input.Body.TerminologyData.File == BLOB
    input.Body.TerminologyData.Format == enum_TerminologyDataFormat[_]
    input.Body.TerminologyData.Directionality == enum_Directionality[_]
    input.Body.EncryptionKey.Type == enum_EncryptionKeyType[_]
    input.Body.EncryptionKey.Id == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListLanguages

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

valid {
    input.Body.DisplayLanguageCode == enum_DisplayLanguageCode[_]
    input.Body.NextToken == STRING
    input.Body.MaxResults == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListParallelData

valid {
    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
}

ListTerminologies

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

ListTextTranslationJobs

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

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

StartTextTranslationJob

enum_Brevity := [ "ON" ]
enum_EncryptionKeyType := [ "KMS" ]
enum_Formality := [ "FORMAL", "INFORMAL" ]
enum_Profanity := [ "MASK" ]

valid {
    input.Body.JobName == STRING
    input.Body.InputDataConfig.S3Uri == STRING
    input.Body.InputDataConfig.ContentType == STRING
    input.Body.OutputDataConfig.S3Uri == STRING
    input.Body.OutputDataConfig.EncryptionKey.Type == enum_EncryptionKeyType[_]
    input.Body.OutputDataConfig.EncryptionKey.Id == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.SourceLanguageCode == STRING
    input.Body.TargetLanguageCodes[_] == STRING
    input.Body.TerminologyNames[_] == STRING
    input.Body.ParallelDataNames[_] == STRING
    input.Body.ClientToken == STRING
    input.Body.Settings.Formality == enum_Formality[_]
    input.Body.Settings.Profanity == enum_Profanity[_]
    input.Body.Settings.Brevity == enum_Brevity[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StopTextTranslationJob

valid {
    input.Body.JobId == 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
}

TranslateDocument

enum_Brevity := [ "ON" ]
enum_Formality := [ "FORMAL", "INFORMAL" ]
enum_Profanity := [ "MASK" ]

valid {
    input.Body.Document.Content == BLOB
    input.Body.Document.ContentType == STRING
    input.Body.TerminologyNames[_] == STRING
    input.Body.SourceLanguageCode == STRING
    input.Body.TargetLanguageCode == STRING
    input.Body.Settings.Formality == enum_Formality[_]
    input.Body.Settings.Profanity == enum_Profanity[_]
    input.Body.Settings.Brevity == enum_Brevity[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

TranslateText

enum_Brevity := [ "ON" ]
enum_Formality := [ "FORMAL", "INFORMAL" ]
enum_Profanity := [ "MASK" ]

valid {
    input.Body.Text == STRING
    input.Body.TerminologyNames[_] == STRING
    input.Body.SourceLanguageCode == STRING
    input.Body.TargetLanguageCode == STRING
    input.Body.Settings.Formality == enum_Formality[_]
    input.Body.Settings.Profanity == enum_Profanity[_]
    input.Body.Settings.Brevity == enum_Brevity[_]
    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
}

UpdateParallelData

enum_ParallelDataFormat := [ "TSV", "CSV", "TMX" ]

valid {
    input.Body.Name == STRING
    input.Body.Description == STRING
    input.Body.ParallelDataConfig.S3Uri == STRING
    input.Body.ParallelDataConfig.Format == enum_ParallelDataFormat[_]
    input.Body.ClientToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}