CreateAssistant

enum_AssistantType := [ "AGENT" ]

valid {
    input.Body.clientToken == STRING
    input.Body.description == STRING
    input.Body.name == STRING
    input.Body.serverSideEncryptionConfiguration.kmsKeyId == STRING
    input.Body.tags.STRING == STRING
    input.Body.type == enum_AssistantType[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateAssistantAssociation

enum_AssociationType := [ "KNOWLEDGE_BASE" ]

valid {
    input.Body.association.knowledgeBaseId == STRING
    input.Body.associationType == enum_AssociationType[_]
    input.Body.clientToken == STRING
    input.Body.tags.STRING == STRING
    input.ReqMap.assistantId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateContent

valid {
    input.Body.clientToken == STRING
    input.Body.metadata.STRING == STRING
    input.Body.name == STRING
    input.Body.overrideLinkOutUri == STRING
    input.Body.tags.STRING == STRING
    input.Body.title == STRING
    input.Body.uploadId == STRING
    input.ReqMap.knowledgeBaseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateKnowledgeBase

enum_KnowledgeBaseType := [ "EXTERNAL", "CUSTOM", "QUICK_RESPONSES" ]

valid {
    input.Body.clientToken == STRING
    input.Body.description == STRING
    input.Body.knowledgeBaseType == enum_KnowledgeBaseType[_]
    input.Body.name == STRING
    input.Body.renderingConfiguration.templateUri == STRING
    input.Body.serverSideEncryptionConfiguration.kmsKeyId == STRING
    input.Body.sourceConfiguration.appIntegrations.appIntegrationArn == STRING
    input.Body.sourceConfiguration.appIntegrations.objectFields[_] == STRING
    input.Body.tags.STRING == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateQuickResponse

valid {
    input.Body.channels[_] == STRING
    input.Body.clientToken == STRING
    input.Body.content.content == STRING
    input.Body.contentType == STRING
    input.Body.description == STRING
    input.Body.groupingConfiguration.criteria == STRING
    input.Body.groupingConfiguration.values[_] == STRING
    input.Body.isActive == BOOLEAN
    input.Body.language == STRING
    input.Body.name == STRING
    input.Body.shortcutKey == STRING
    input.Body.tags.STRING == STRING
    input.ReqMap.knowledgeBaseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateSession

valid {
    input.Body.clientToken == STRING
    input.Body.description == STRING
    input.Body.name == STRING
    input.Body.tags.STRING == STRING
    input.ReqMap.assistantId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteAssistant

valid {
    input.ReqMap.assistantId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteAssistantAssociation

valid {
    input.ReqMap.assistantAssociationId == STRING
    input.ReqMap.assistantId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteContent

valid {
    input.ReqMap.contentId == STRING
    input.ReqMap.knowledgeBaseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteImportJob

valid {
    input.ReqMap.importJobId == STRING
    input.ReqMap.knowledgeBaseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteKnowledgeBase

valid {
    input.ReqMap.knowledgeBaseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteQuickResponse

valid {
    input.ReqMap.knowledgeBaseId == STRING
    input.ReqMap.quickResponseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetAssistant

valid {
    input.ReqMap.assistantId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetAssistantAssociation

valid {
    input.ReqMap.assistantAssociationId == STRING
    input.ReqMap.assistantId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetContent

valid {
    input.ReqMap.contentId == STRING
    input.ReqMap.knowledgeBaseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetContentSummary

valid {
    input.ReqMap.contentId == STRING
    input.ReqMap.knowledgeBaseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetImportJob

valid {
    input.ReqMap.importJobId == STRING
    input.ReqMap.knowledgeBaseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetKnowledgeBase

valid {
    input.ReqMap.knowledgeBaseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetQuickResponse

valid {
    input.ReqMap.knowledgeBaseId == STRING
    input.ReqMap.quickResponseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetRecommendations

valid {
    input.ReqMap.assistantId == STRING
    input.ReqMap.sessionId == STRING
    input.Qs.maxResults == INTEGER
    input.Qs.waitTimeSeconds == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetSession

valid {
    input.ReqMap.assistantId == STRING
    input.ReqMap.sessionId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListAssistantAssociations

valid {
    input.ReqMap.assistantId == STRING
    input.Qs.maxResults == INTEGER
    input.Qs.nextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListAssistants

valid {
    input.Qs.maxResults == INTEGER
    input.Qs.nextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListContents

valid {
    input.ReqMap.knowledgeBaseId == STRING
    input.Qs.maxResults == INTEGER
    input.Qs.nextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListImportJobs

valid {
    input.ReqMap.knowledgeBaseId == STRING
    input.Qs.maxResults == INTEGER
    input.Qs.nextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListKnowledgeBases

valid {
    input.Qs.maxResults == INTEGER
    input.Qs.nextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListQuickResponses

valid {
    input.ReqMap.knowledgeBaseId == STRING
    input.Qs.maxResults == INTEGER
    input.Qs.nextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListTagsForResource

valid {
    input.ReqMap.resourceArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

NotifyRecommendationsReceived

valid {
    input.Body.recommendationIds[_] == STRING
    input.ReqMap.assistantId == STRING
    input.ReqMap.sessionId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

QueryAssistant

valid {
    input.Body.maxResults == INTEGER
    input.Body.nextToken == STRING
    input.Body.queryText == STRING
    input.ReqMap.assistantId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

RemoveKnowledgeBaseTemplateUri

valid {
    input.ReqMap.knowledgeBaseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

SearchContent

enum_FilterField := [ "NAME" ]
enum_FilterOperator := [ "EQUALS" ]

valid {
    input.Body.searchExpression.filters[_].field == enum_FilterField[_]
    input.Body.searchExpression.filters[_].operator == enum_FilterOperator[_]
    input.Body.searchExpression.filters[_].value == STRING
    input.ReqMap.knowledgeBaseId == STRING
    input.Qs.maxResults == INTEGER
    input.Qs.nextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

SearchQuickResponses

enum_Order := [ "ASC", "DESC" ]
enum_Priority := [ "HIGH", "MEDIUM", "LOW" ]
enum_QuickResponseFilterOperator := [ "EQUALS", "PREFIX" ]
enum_QuickResponseQueryOperator := [ "CONTAINS", "CONTAINS_AND_PREFIX" ]

valid {
    input.Body.attributes.STRING == STRING
    input.Body.searchExpression.filters[_].includeNoExistence == BOOLEAN
    input.Body.searchExpression.filters[_].name == STRING
    input.Body.searchExpression.filters[_].operator == enum_QuickResponseFilterOperator[_]
    input.Body.searchExpression.filters[_].values[_] == STRING
    input.Body.searchExpression.orderOnField.name == STRING
    input.Body.searchExpression.orderOnField.order == enum_Order[_]
    input.Body.searchExpression.queries[_].allowFuzziness == BOOLEAN
    input.Body.searchExpression.queries[_].name == STRING
    input.Body.searchExpression.queries[_].operator == enum_QuickResponseQueryOperator[_]
    input.Body.searchExpression.queries[_].priority == enum_Priority[_]
    input.Body.searchExpression.queries[_].values[_] == STRING
    input.ReqMap.knowledgeBaseId == STRING
    input.Qs.maxResults == INTEGER
    input.Qs.nextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

SearchSessions

enum_FilterField := [ "NAME" ]
enum_FilterOperator := [ "EQUALS" ]

valid {
    input.Body.searchExpression.filters[_].field == enum_FilterField[_]
    input.Body.searchExpression.filters[_].operator == enum_FilterOperator[_]
    input.Body.searchExpression.filters[_].value == STRING
    input.ReqMap.assistantId == STRING
    input.Qs.maxResults == INTEGER
    input.Qs.nextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StartContentUpload

valid {
    input.Body.contentType == STRING
    input.Body.presignedUrlTimeToLive == INTEGER
    input.ReqMap.knowledgeBaseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StartImportJob

enum_ExternalSource := [ "AMAZON_CONNECT" ]
enum_ImportJobType := [ "QUICK_RESPONSES" ]

valid {
    input.Body.clientToken == STRING
    input.Body.externalSourceConfiguration.configuration.connectConfiguration.instanceId == STRING
    input.Body.externalSourceConfiguration.source == enum_ExternalSource[_]
    input.Body.importJobType == enum_ImportJobType[_]
    input.Body.metadata.STRING == STRING
    input.Body.uploadId == STRING
    input.ReqMap.knowledgeBaseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

TagResource

valid {
    input.Body.tags.STRING == STRING
    input.ReqMap.resourceArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UntagResource

valid {
    input.ReqMap.resourceArn == STRING
    input.Qs.tagKeys[_] == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateContent

valid {
    input.Body.metadata.STRING == STRING
    input.Body.overrideLinkOutUri == STRING
    input.Body.removeOverrideLinkOutUri == BOOLEAN
    input.Body.revisionId == STRING
    input.Body.title == STRING
    input.Body.uploadId == STRING
    input.ReqMap.contentId == STRING
    input.ReqMap.knowledgeBaseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateKnowledgeBaseTemplateUri

valid {
    input.Body.templateUri == STRING
    input.ReqMap.knowledgeBaseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateQuickResponse

valid {
    input.Body.channels[_] == STRING
    input.Body.content.content == STRING
    input.Body.contentType == STRING
    input.Body.description == STRING
    input.Body.groupingConfiguration.criteria == STRING
    input.Body.groupingConfiguration.values[_] == STRING
    input.Body.isActive == BOOLEAN
    input.Body.language == STRING
    input.Body.name == STRING
    input.Body.removeDescription == BOOLEAN
    input.Body.removeGroupingConfiguration == BOOLEAN
    input.Body.removeShortcutKey == BOOLEAN
    input.Body.shortcutKey == STRING
    input.ReqMap.knowledgeBaseId == STRING
    input.ReqMap.quickResponseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}