AssociateFraudster

valid {
    input.Body.DomainId == STRING
    input.Body.FraudsterId == STRING
    input.Body.WatchlistId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateDomain

valid {
    input.Body.ClientToken == STRING
    input.Body.Description == STRING
    input.Body.Name == STRING
    input.Body.ServerSideEncryptionConfiguration.KmsKeyId == STRING
    input.Body.Tags[_].Key == STRING
    input.Body.Tags[_].Value == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateWatchlist

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

DeleteDomain

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

DeleteFraudster

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

DeleteSpeaker

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

DeleteWatchlist

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

DescribeDomain

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

DescribeFraudster

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

DescribeFraudsterRegistrationJob

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

DescribeSpeaker

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

DescribeSpeakerEnrollmentJob

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

DescribeWatchlist

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

DisassociateFraudster

valid {
    input.Body.DomainId == STRING
    input.Body.FraudsterId == STRING
    input.Body.WatchlistId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

EvaluateSession

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

ListDomains

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

ListFraudsterRegistrationJobs

enum_FraudsterRegistrationJobStatus := [ "SUBMITTED", "IN_PROGRESS", "COMPLETED", "COMPLETED_WITH_ERRORS", "FAILED" ]

valid {
    input.Body.DomainId == STRING
    input.Body.JobStatus == enum_FraudsterRegistrationJobStatus[_]
    input.Body.MaxResults == INTEGER
    input.Body.NextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListFraudsters

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

ListSpeakerEnrollmentJobs

enum_SpeakerEnrollmentJobStatus := [ "SUBMITTED", "IN_PROGRESS", "COMPLETED", "COMPLETED_WITH_ERRORS", "FAILED" ]

valid {
    input.Body.DomainId == STRING
    input.Body.JobStatus == enum_SpeakerEnrollmentJobStatus[_]
    input.Body.MaxResults == INTEGER
    input.Body.NextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListSpeakers

valid {
    input.Body.DomainId == STRING
    input.Body.MaxResults == INTEGER
    input.Body.NextToken == STRING
    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
}

ListWatchlists

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

OptOutSpeaker

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

StartFraudsterRegistrationJob

enum_DuplicateRegistrationAction := [ "SKIP", "REGISTER_AS_NEW" ]

valid {
    input.Body.ClientToken == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.DomainId == STRING
    input.Body.InputDataConfig.S3Uri == STRING
    input.Body.JobName == STRING
    input.Body.OutputDataConfig.KmsKeyId == STRING
    input.Body.OutputDataConfig.S3Uri == STRING
    input.Body.RegistrationConfig.DuplicateRegistrationAction == enum_DuplicateRegistrationAction[_]
    input.Body.RegistrationConfig.FraudsterSimilarityThreshold == INTEGER
    input.Body.RegistrationConfig.WatchlistIds[_] == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StartSpeakerEnrollmentJob

enum_ExistingEnrollmentAction := [ "SKIP", "OVERWRITE" ]
enum_FraudDetectionAction := [ "IGNORE", "FAIL" ]

valid {
    input.Body.ClientToken == STRING
    input.Body.DataAccessRoleArn == STRING
    input.Body.DomainId == STRING
    input.Body.EnrollmentConfig.ExistingEnrollmentAction == enum_ExistingEnrollmentAction[_]
    input.Body.EnrollmentConfig.FraudDetectionConfig.FraudDetectionAction == enum_FraudDetectionAction[_]
    input.Body.EnrollmentConfig.FraudDetectionConfig.RiskThreshold == INTEGER
    input.Body.EnrollmentConfig.FraudDetectionConfig.WatchlistIds[_] == STRING
    input.Body.InputDataConfig.S3Uri == STRING
    input.Body.JobName == STRING
    input.Body.OutputDataConfig.KmsKeyId == STRING
    input.Body.OutputDataConfig.S3Uri == 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
}

UpdateDomain

valid {
    input.Body.Description == STRING
    input.Body.DomainId == STRING
    input.Body.Name == STRING
    input.Body.ServerSideEncryptionConfiguration.KmsKeyId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateWatchlist

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