BEDROCK-AGENT-RUNTIME

DeleteAgentMemory

valid {
    input.ReqMap.agentAliasId == STRING
    input.ReqMap.agentId == STRING
    input.Qs.memoryId == STRING
    input.Qs.sessionId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GenerateQuery

enum_InputQueryType := [ "TEXT" ]
enum_QueryTransformationMode := [ "TEXT_TO_SQL" ]
enum_TextToSqlConfigurationType := [ "KNOWLEDGE_BASE" ]

valid {
    input.Body.queryGenerationInput.text == STRING
    input.Body.queryGenerationInput.type == enum_InputQueryType[_]
    input.Body.transformationConfiguration.mode == enum_QueryTransformationMode[_]
    input.Body.transformationConfiguration.textToSqlConfiguration.knowledgeBaseConfiguration.knowledgeBaseArn == STRING
    input.Body.transformationConfiguration.textToSqlConfiguration.type == enum_TextToSqlConfigurationType[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetAgentMemory

enum_MemoryType := [ "SESSION_SUMMARY" ]

valid {
    input.ReqMap.agentAliasId == STRING
    input.ReqMap.agentId == STRING
    input.Qs.maxItems == INTEGER
    input.Qs.memoryId == STRING
    input.Qs.memoryType == enum_MemoryType[_]
    input.Qs.nextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

InvokeAgent

enum_AttributeType := [ "STRING", "NUMBER", "BOOLEAN", "STRING_LIST" ]
enum_ConfirmationState := [ "CONFIRM", "DENY" ]
enum_ConversationRole := [ "user", "assistant" ]
enum_FileSourceType := [ "S3", "BYTE_CONTENT" ]
enum_FileUseCase := [ "CODE_INTERPRETER", "CHAT" ]
enum_PerformanceConfigLatency := [ "standard", "optimized" ]
enum_RerankingMetadataSelectionMode := [ "SELECTIVE", "ALL" ]
enum_ResponseState := [ "FAILURE", "REPROMPT" ]
enum_SearchType := [ "HYBRID", "SEMANTIC" ]
enum_VectorSearchRerankingConfigurationType := [ "BEDROCK_RERANKING_MODEL" ]

valid {
    input.Body.bedrockModelConfigurations.performanceConfig.latency == enum_PerformanceConfigLatency[_]
    input.Body.enableTrace == BOOLEAN
    input.Body.endSession == BOOLEAN
    input.Body.inputText == STRING
    input.Body.memoryId == STRING
    input.Body.sessionState.conversationHistory.messages[_].content[_].text == STRING
    input.Body.sessionState.conversationHistory.messages[_].role == enum_ConversationRole[_]
    input.Body.sessionState.files[_].name == STRING
    input.Body.sessionState.files[_].source.byteContent.data == BLOB
    input.Body.sessionState.files[_].source.byteContent.mediaType == STRING
    input.Body.sessionState.files[_].source.s3Location.uri == STRING
    input.Body.sessionState.files[_].source.sourceType == enum_FileSourceType[_]
    input.Body.sessionState.files[_].useCase == enum_FileUseCase[_]
    input.Body.sessionState.invocationId == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].knowledgeBaseId == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.andAll[_] == NESTED
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.equals.key == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.equals.value == {}
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.greaterThan.key == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.greaterThan.value == {}
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.greaterThanOrEquals.key == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.greaterThanOrEquals.value == {}
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.in.key == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.in.value == {}
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.lessThan.key == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.lessThan.value == {}
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.lessThanOrEquals.key == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.lessThanOrEquals.value == {}
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.listContains.key == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.listContains.value == {}
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.notEquals.key == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.notEquals.value == {}
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.notIn.key == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.notIn.value == {}
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.orAll[_] == NESTED
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.startsWith.key == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.startsWith.value == {}
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.stringContains.key == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.filter.stringContains.value == {}
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.metadataAttributes[_].description == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.metadataAttributes[_].key == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.metadataAttributes[_].type == enum_AttributeType[_]
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.modelArn == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.numberOfResults == INTEGER
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.overrideSearchType == enum_SearchType[_]
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.metadataConfiguration.selectionMode == enum_RerankingMetadataSelectionMode[_]
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.metadataConfiguration.selectiveModeConfiguration.fieldsToExclude[_].fieldName == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.metadataConfiguration.selectiveModeConfiguration.fieldsToInclude[_].fieldName == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.modelConfiguration.additionalModelRequestFields.STRING == {}
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.modelConfiguration.modelArn == STRING
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.numberOfRerankedResults == INTEGER
    input.Body.sessionState.knowledgeBaseConfigurations[_].retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.type == enum_VectorSearchRerankingConfigurationType[_]
    input.Body.sessionState.promptSessionAttributes.STRING == STRING
    input.Body.sessionState.returnControlInvocationResults[_].apiResult.actionGroup == STRING
    input.Body.sessionState.returnControlInvocationResults[_].apiResult.agentId == STRING
    input.Body.sessionState.returnControlInvocationResults[_].apiResult.apiPath == STRING
    input.Body.sessionState.returnControlInvocationResults[_].apiResult.confirmationState == enum_ConfirmationState[_]
    input.Body.sessionState.returnControlInvocationResults[_].apiResult.httpMethod == STRING
    input.Body.sessionState.returnControlInvocationResults[_].apiResult.httpStatusCode == INTEGER
    input.Body.sessionState.returnControlInvocationResults[_].apiResult.responseBody.STRING.body == STRING
    input.Body.sessionState.returnControlInvocationResults[_].apiResult.responseState == enum_ResponseState[_]
    input.Body.sessionState.returnControlInvocationResults[_].functionResult.actionGroup == STRING
    input.Body.sessionState.returnControlInvocationResults[_].functionResult.agentId == STRING
    input.Body.sessionState.returnControlInvocationResults[_].functionResult.confirmationState == enum_ConfirmationState[_]
    input.Body.sessionState.returnControlInvocationResults[_].functionResult.function == STRING
    input.Body.sessionState.returnControlInvocationResults[_].functionResult.responseBody.STRING.body == STRING
    input.Body.sessionState.returnControlInvocationResults[_].functionResult.responseState == enum_ResponseState[_]
    input.Body.sessionState.sessionAttributes.STRING == STRING
    input.Body.streamingConfigurations.applyGuardrailInterval == INTEGER
    input.Body.streamingConfigurations.streamFinalResponse == BOOLEAN
    input.ReqMap.agentAliasId == STRING
    input.ReqMap.agentId == STRING
    input.ReqMap.sessionId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

InvokeFlow

enum_PerformanceConfigLatency := [ "standard", "optimized" ]

valid {
    input.Body.enableTrace == BOOLEAN
    input.Body.inputs[_].content.document == {}
    input.Body.inputs[_].nodeName == STRING
    input.Body.inputs[_].nodeOutputName == STRING
    input.Body.modelPerformanceConfiguration.performanceConfig.latency == enum_PerformanceConfigLatency[_]
    input.ReqMap.flowAliasIdentifier == STRING
    input.ReqMap.flowIdentifier == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

InvokeInlineAgent

enum_ActionGroupSignature := [ "AMAZON.UserInput", "AMAZON.CodeInterpreter" ]
enum_AttributeType := [ "STRING", "NUMBER", "BOOLEAN", "STRING_LIST" ]
enum_ConfirmationState := [ "CONFIRM", "DENY" ]
enum_CreationMode := [ "DEFAULT", "OVERRIDDEN" ]
enum_CustomControlMethod := [ "RETURN_CONTROL" ]
enum_FileSourceType := [ "S3", "BYTE_CONTENT" ]
enum_FileUseCase := [ "CODE_INTERPRETER", "CHAT" ]
enum_ParameterType := [ "string", "number", "integer", "boolean", "array" ]
enum_PerformanceConfigLatency := [ "standard", "optimized" ]
enum_PromptState := [ "ENABLED", "DISABLED" ]
enum_PromptType := [ "PRE_PROCESSING", "ORCHESTRATION", "KNOWLEDGE_BASE_RESPONSE_GENERATION", "POST_PROCESSING", "ROUTING_CLASSIFIER" ]
enum_RequireConfirmation := [ "ENABLED", "DISABLED" ]
enum_RerankingMetadataSelectionMode := [ "SELECTIVE", "ALL" ]
enum_ResponseState := [ "FAILURE", "REPROMPT" ]
enum_SearchType := [ "HYBRID", "SEMANTIC" ]
enum_VectorSearchRerankingConfigurationType := [ "BEDROCK_RERANKING_MODEL" ]

valid {
    input.Body.actionGroups[_].actionGroupExecutor.customControl == enum_CustomControlMethod[_]
    input.Body.actionGroups[_].actionGroupExecutor.lambda == STRING
    input.Body.actionGroups[_].actionGroupName == STRING
    input.Body.actionGroups[_].apiSchema.payload == STRING
    input.Body.actionGroups[_].apiSchema.s3.s3BucketName == STRING
    input.Body.actionGroups[_].apiSchema.s3.s3ObjectKey == STRING
    input.Body.actionGroups[_].description == STRING
    input.Body.actionGroups[_].functionSchema.functions[_].description == STRING
    input.Body.actionGroups[_].functionSchema.functions[_].name == STRING
    input.Body.actionGroups[_].functionSchema.functions[_].parameters.STRING.description == STRING
    input.Body.actionGroups[_].functionSchema.functions[_].parameters.STRING.required == BOOLEAN
    input.Body.actionGroups[_].functionSchema.functions[_].parameters.STRING.type == enum_ParameterType[_]
    input.Body.actionGroups[_].functionSchema.functions[_].requireConfirmation == enum_RequireConfirmation[_]
    input.Body.actionGroups[_].parentActionGroupSignature == enum_ActionGroupSignature[_]
    input.Body.bedrockModelConfigurations.performanceConfig.latency == enum_PerformanceConfigLatency[_]
    input.Body.customerEncryptionKeyArn == STRING
    input.Body.enableTrace == BOOLEAN
    input.Body.endSession == BOOLEAN
    input.Body.foundationModel == STRING
    input.Body.guardrailConfiguration.guardrailIdentifier == STRING
    input.Body.guardrailConfiguration.guardrailVersion == STRING
    input.Body.idleSessionTTLInSeconds == INTEGER
    input.Body.inlineSessionState.files[_].name == STRING
    input.Body.inlineSessionState.files[_].source.byteContent.data == BLOB
    input.Body.inlineSessionState.files[_].source.byteContent.mediaType == STRING
    input.Body.inlineSessionState.files[_].source.s3Location.uri == STRING
    input.Body.inlineSessionState.files[_].source.sourceType == enum_FileSourceType[_]
    input.Body.inlineSessionState.files[_].useCase == enum_FileUseCase[_]
    input.Body.inlineSessionState.invocationId == STRING
    input.Body.inlineSessionState.promptSessionAttributes.STRING == STRING
    input.Body.inlineSessionState.returnControlInvocationResults[_].apiResult.actionGroup == STRING
    input.Body.inlineSessionState.returnControlInvocationResults[_].apiResult.agentId == STRING
    input.Body.inlineSessionState.returnControlInvocationResults[_].apiResult.apiPath == STRING
    input.Body.inlineSessionState.returnControlInvocationResults[_].apiResult.confirmationState == enum_ConfirmationState[_]
    input.Body.inlineSessionState.returnControlInvocationResults[_].apiResult.httpMethod == STRING
    input.Body.inlineSessionState.returnControlInvocationResults[_].apiResult.httpStatusCode == INTEGER
    input.Body.inlineSessionState.returnControlInvocationResults[_].apiResult.responseBody.STRING.body == STRING
    input.Body.inlineSessionState.returnControlInvocationResults[_].apiResult.responseState == enum_ResponseState[_]
    input.Body.inlineSessionState.returnControlInvocationResults[_].functionResult.actionGroup == STRING
    input.Body.inlineSessionState.returnControlInvocationResults[_].functionResult.agentId == STRING
    input.Body.inlineSessionState.returnControlInvocationResults[_].functionResult.confirmationState == enum_ConfirmationState[_]
    input.Body.inlineSessionState.returnControlInvocationResults[_].functionResult.function == STRING
    input.Body.inlineSessionState.returnControlInvocationResults[_].functionResult.responseBody.STRING.body == STRING
    input.Body.inlineSessionState.returnControlInvocationResults[_].functionResult.responseState == enum_ResponseState[_]
    input.Body.inlineSessionState.sessionAttributes.STRING == STRING
    input.Body.inputText == STRING
    input.Body.instruction == STRING
    input.Body.knowledgeBases[_].description == STRING
    input.Body.knowledgeBases[_].knowledgeBaseId == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.andAll[_] == NESTED
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.equals.key == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.equals.value == {}
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.greaterThan.key == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.greaterThan.value == {}
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.greaterThanOrEquals.key == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.greaterThanOrEquals.value == {}
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.in.key == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.in.value == {}
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.lessThan.key == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.lessThan.value == {}
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.lessThanOrEquals.key == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.lessThanOrEquals.value == {}
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.listContains.key == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.listContains.value == {}
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.notEquals.key == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.notEquals.value == {}
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.notIn.key == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.notIn.value == {}
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.orAll[_] == NESTED
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.startsWith.key == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.startsWith.value == {}
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.stringContains.key == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.filter.stringContains.value == {}
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.metadataAttributes[_].description == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.metadataAttributes[_].key == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.metadataAttributes[_].type == enum_AttributeType[_]
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.modelArn == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.numberOfResults == INTEGER
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.overrideSearchType == enum_SearchType[_]
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.metadataConfiguration.selectionMode == enum_RerankingMetadataSelectionMode[_]
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.metadataConfiguration.selectiveModeConfiguration.fieldsToExclude[_].fieldName == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.metadataConfiguration.selectiveModeConfiguration.fieldsToInclude[_].fieldName == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.modelConfiguration.additionalModelRequestFields.STRING == {}
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.modelConfiguration.modelArn == STRING
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.numberOfRerankedResults == INTEGER
    input.Body.knowledgeBases[_].retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.type == enum_VectorSearchRerankingConfigurationType[_]
    input.Body.promptOverrideConfiguration.overrideLambda == STRING
    input.Body.promptOverrideConfiguration.promptConfigurations[_].basePromptTemplate == STRING
    input.Body.promptOverrideConfiguration.promptConfigurations[_].inferenceConfiguration.maximumLength == INTEGER
    input.Body.promptOverrideConfiguration.promptConfigurations[_].inferenceConfiguration.stopSequences[_] == STRING
    input.Body.promptOverrideConfiguration.promptConfigurations[_].inferenceConfiguration.temperature == FLOAT
    input.Body.promptOverrideConfiguration.promptConfigurations[_].inferenceConfiguration.topK == INTEGER
    input.Body.promptOverrideConfiguration.promptConfigurations[_].inferenceConfiguration.topP == FLOAT
    input.Body.promptOverrideConfiguration.promptConfigurations[_].parserMode == enum_CreationMode[_]
    input.Body.promptOverrideConfiguration.promptConfigurations[_].promptCreationMode == enum_CreationMode[_]
    input.Body.promptOverrideConfiguration.promptConfigurations[_].promptState == enum_PromptState[_]
    input.Body.promptOverrideConfiguration.promptConfigurations[_].promptType == enum_PromptType[_]
    input.ReqMap.sessionId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

OptimizePrompt

valid {
    input.Body.input.textPrompt.text == STRING
    input.Body.targetModelId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

Rerank

enum_RerankDocumentType := [ "TEXT", "JSON" ]
enum_RerankQueryContentType := [ "TEXT" ]
enum_RerankSourceType := [ "INLINE" ]
enum_RerankingConfigurationType := [ "BEDROCK_RERANKING_MODEL" ]

valid {
    input.Body.nextToken == STRING
    input.Body.queries[_].textQuery.text == STRING
    input.Body.queries[_].type == enum_RerankQueryContentType[_]
    input.Body.rerankingConfiguration.bedrockRerankingConfiguration.modelConfiguration.additionalModelRequestFields.STRING == {}
    input.Body.rerankingConfiguration.bedrockRerankingConfiguration.modelConfiguration.modelArn == STRING
    input.Body.rerankingConfiguration.bedrockRerankingConfiguration.numberOfResults == INTEGER
    input.Body.rerankingConfiguration.type == enum_RerankingConfigurationType[_]
    input.Body.sources[_].inlineDocumentSource.jsonDocument == {}
    input.Body.sources[_].inlineDocumentSource.textDocument.text == STRING
    input.Body.sources[_].inlineDocumentSource.type == enum_RerankDocumentType[_]
    input.Body.sources[_].type == enum_RerankSourceType[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

Retrieve

enum_AttributeType := [ "STRING", "NUMBER", "BOOLEAN", "STRING_LIST" ]
enum_RerankingMetadataSelectionMode := [ "SELECTIVE", "ALL" ]
enum_SearchType := [ "HYBRID", "SEMANTIC" ]
enum_VectorSearchRerankingConfigurationType := [ "BEDROCK_RERANKING_MODEL" ]

valid {
    input.Body.guardrailConfiguration.guardrailId == STRING
    input.Body.guardrailConfiguration.guardrailVersion == STRING
    input.Body.nextToken == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.andAll[_] == NESTED
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.equals.key == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.equals.value == {}
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.greaterThan.key == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.greaterThan.value == {}
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.greaterThanOrEquals.key == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.greaterThanOrEquals.value == {}
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.in.key == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.in.value == {}
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.lessThan.key == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.lessThan.value == {}
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.lessThanOrEquals.key == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.lessThanOrEquals.value == {}
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.listContains.key == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.listContains.value == {}
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.notEquals.key == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.notEquals.value == {}
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.notIn.key == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.notIn.value == {}
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.orAll[_] == NESTED
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.startsWith.key == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.startsWith.value == {}
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.stringContains.key == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.filter.stringContains.value == {}
    input.Body.retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.metadataAttributes[_].description == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.metadataAttributes[_].key == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.metadataAttributes[_].type == enum_AttributeType[_]
    input.Body.retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.modelArn == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.numberOfResults == INTEGER
    input.Body.retrievalConfiguration.vectorSearchConfiguration.overrideSearchType == enum_SearchType[_]
    input.Body.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.metadataConfiguration.selectionMode == enum_RerankingMetadataSelectionMode[_]
    input.Body.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.metadataConfiguration.selectiveModeConfiguration.fieldsToExclude[_].fieldName == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.metadataConfiguration.selectiveModeConfiguration.fieldsToInclude[_].fieldName == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.modelConfiguration.additionalModelRequestFields.STRING == {}
    input.Body.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.modelConfiguration.modelArn == STRING
    input.Body.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.numberOfRerankedResults == INTEGER
    input.Body.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.type == enum_VectorSearchRerankingConfigurationType[_]
    input.Body.retrievalQuery.text == STRING
    input.ReqMap.knowledgeBaseId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

RetrieveAndGenerate

enum_AttributeType := [ "STRING", "NUMBER", "BOOLEAN", "STRING_LIST" ]
enum_ExternalSourceType := [ "S3", "BYTE_CONTENT" ]
enum_PerformanceConfigLatency := [ "standard", "optimized" ]
enum_QueryTransformationType := [ "QUERY_DECOMPOSITION" ]
enum_RerankingMetadataSelectionMode := [ "SELECTIVE", "ALL" ]
enum_RetrieveAndGenerateType := [ "KNOWLEDGE_BASE", "EXTERNAL_SOURCES" ]
enum_SearchType := [ "HYBRID", "SEMANTIC" ]
enum_VectorSearchRerankingConfigurationType := [ "BEDROCK_RERANKING_MODEL" ]

valid {
    input.Body.input.text == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.additionalModelRequestFields.STRING == {}
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.guardrailConfiguration.guardrailId == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.guardrailConfiguration.guardrailVersion == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.inferenceConfig.textInferenceConfig.maxTokens == INTEGER
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.inferenceConfig.textInferenceConfig.stopSequences[_] == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.inferenceConfig.textInferenceConfig.temperature == FLOAT
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.inferenceConfig.textInferenceConfig.topP == FLOAT
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.performanceConfig.latency == enum_PerformanceConfigLatency[_]
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.promptTemplate.textPromptTemplate == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.modelArn == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.sources[_].byteContent.contentType == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.sources[_].byteContent.data == BLOB
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.sources[_].byteContent.identifier == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.sources[_].s3Location.uri == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.sources[_].sourceType == enum_ExternalSourceType[_]
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.additionalModelRequestFields.STRING == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.guardrailConfiguration.guardrailId == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.guardrailConfiguration.guardrailVersion == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.inferenceConfig.textInferenceConfig.maxTokens == INTEGER
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.inferenceConfig.textInferenceConfig.stopSequences[_] == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.inferenceConfig.textInferenceConfig.temperature == FLOAT
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.inferenceConfig.textInferenceConfig.topP == FLOAT
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.performanceConfig.latency == enum_PerformanceConfigLatency[_]
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.promptTemplate.textPromptTemplate == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.knowledgeBaseId == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.modelArn == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.orchestrationConfiguration.additionalModelRequestFields.STRING == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.orchestrationConfiguration.inferenceConfig.textInferenceConfig.maxTokens == INTEGER
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.orchestrationConfiguration.inferenceConfig.textInferenceConfig.stopSequences[_] == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.orchestrationConfiguration.inferenceConfig.textInferenceConfig.temperature == FLOAT
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.orchestrationConfiguration.inferenceConfig.textInferenceConfig.topP == FLOAT
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.orchestrationConfiguration.performanceConfig.latency == enum_PerformanceConfigLatency[_]
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.orchestrationConfiguration.promptTemplate.textPromptTemplate == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.orchestrationConfiguration.queryTransformationConfiguration.type == enum_QueryTransformationType[_]
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.andAll[_] == NESTED
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.equals.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.equals.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.greaterThan.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.greaterThan.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.greaterThanOrEquals.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.greaterThanOrEquals.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.in.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.in.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.lessThan.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.lessThan.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.lessThanOrEquals.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.lessThanOrEquals.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.listContains.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.listContains.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.notEquals.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.notEquals.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.notIn.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.notIn.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.orAll[_] == NESTED
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.startsWith.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.startsWith.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.stringContains.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.stringContains.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.metadataAttributes[_].description == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.metadataAttributes[_].key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.metadataAttributes[_].type == enum_AttributeType[_]
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.modelArn == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.numberOfResults == INTEGER
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.overrideSearchType == enum_SearchType[_]
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.metadataConfiguration.selectionMode == enum_RerankingMetadataSelectionMode[_]
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.metadataConfiguration.selectiveModeConfiguration.fieldsToExclude[_].fieldName == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.metadataConfiguration.selectiveModeConfiguration.fieldsToInclude[_].fieldName == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.modelConfiguration.additionalModelRequestFields.STRING == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.modelConfiguration.modelArn == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.numberOfRerankedResults == INTEGER
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.type == enum_VectorSearchRerankingConfigurationType[_]
    input.Body.retrieveAndGenerateConfiguration.type == enum_RetrieveAndGenerateType[_]
    input.Body.sessionConfiguration.kmsKeyArn == STRING
    input.Body.sessionId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

RetrieveAndGenerateStream

enum_AttributeType := [ "STRING", "NUMBER", "BOOLEAN", "STRING_LIST" ]
enum_ExternalSourceType := [ "S3", "BYTE_CONTENT" ]
enum_PerformanceConfigLatency := [ "standard", "optimized" ]
enum_QueryTransformationType := [ "QUERY_DECOMPOSITION" ]
enum_RerankingMetadataSelectionMode := [ "SELECTIVE", "ALL" ]
enum_RetrieveAndGenerateType := [ "KNOWLEDGE_BASE", "EXTERNAL_SOURCES" ]
enum_SearchType := [ "HYBRID", "SEMANTIC" ]
enum_VectorSearchRerankingConfigurationType := [ "BEDROCK_RERANKING_MODEL" ]

valid {
    input.Body.input.text == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.additionalModelRequestFields.STRING == {}
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.guardrailConfiguration.guardrailId == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.guardrailConfiguration.guardrailVersion == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.inferenceConfig.textInferenceConfig.maxTokens == INTEGER
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.inferenceConfig.textInferenceConfig.stopSequences[_] == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.inferenceConfig.textInferenceConfig.temperature == FLOAT
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.inferenceConfig.textInferenceConfig.topP == FLOAT
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.performanceConfig.latency == enum_PerformanceConfigLatency[_]
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.generationConfiguration.promptTemplate.textPromptTemplate == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.modelArn == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.sources[_].byteContent.contentType == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.sources[_].byteContent.data == BLOB
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.sources[_].byteContent.identifier == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.sources[_].s3Location.uri == STRING
    input.Body.retrieveAndGenerateConfiguration.externalSourcesConfiguration.sources[_].sourceType == enum_ExternalSourceType[_]
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.additionalModelRequestFields.STRING == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.guardrailConfiguration.guardrailId == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.guardrailConfiguration.guardrailVersion == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.inferenceConfig.textInferenceConfig.maxTokens == INTEGER
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.inferenceConfig.textInferenceConfig.stopSequences[_] == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.inferenceConfig.textInferenceConfig.temperature == FLOAT
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.inferenceConfig.textInferenceConfig.topP == FLOAT
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.performanceConfig.latency == enum_PerformanceConfigLatency[_]
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.generationConfiguration.promptTemplate.textPromptTemplate == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.knowledgeBaseId == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.modelArn == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.orchestrationConfiguration.additionalModelRequestFields.STRING == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.orchestrationConfiguration.inferenceConfig.textInferenceConfig.maxTokens == INTEGER
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.orchestrationConfiguration.inferenceConfig.textInferenceConfig.stopSequences[_] == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.orchestrationConfiguration.inferenceConfig.textInferenceConfig.temperature == FLOAT
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.orchestrationConfiguration.inferenceConfig.textInferenceConfig.topP == FLOAT
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.orchestrationConfiguration.performanceConfig.latency == enum_PerformanceConfigLatency[_]
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.orchestrationConfiguration.promptTemplate.textPromptTemplate == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.orchestrationConfiguration.queryTransformationConfiguration.type == enum_QueryTransformationType[_]
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.andAll[_] == NESTED
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.equals.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.equals.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.greaterThan.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.greaterThan.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.greaterThanOrEquals.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.greaterThanOrEquals.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.in.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.in.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.lessThan.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.lessThan.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.lessThanOrEquals.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.lessThanOrEquals.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.listContains.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.listContains.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.notEquals.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.notEquals.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.notIn.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.notIn.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.orAll[_] == NESTED
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.startsWith.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.startsWith.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.stringContains.key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.filter.stringContains.value == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.metadataAttributes[_].description == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.metadataAttributes[_].key == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.metadataAttributes[_].type == enum_AttributeType[_]
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.implicitFilterConfiguration.modelArn == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.numberOfResults == INTEGER
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.overrideSearchType == enum_SearchType[_]
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.metadataConfiguration.selectionMode == enum_RerankingMetadataSelectionMode[_]
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.metadataConfiguration.selectiveModeConfiguration.fieldsToExclude[_].fieldName == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.metadataConfiguration.selectiveModeConfiguration.fieldsToInclude[_].fieldName == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.modelConfiguration.additionalModelRequestFields.STRING == {}
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.modelConfiguration.modelArn == STRING
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.bedrockRerankingConfiguration.numberOfRerankedResults == INTEGER
    input.Body.retrieveAndGenerateConfiguration.knowledgeBaseConfiguration.retrievalConfiguration.vectorSearchConfiguration.rerankingConfiguration.type == enum_VectorSearchRerankingConfigurationType[_]
    input.Body.retrieveAndGenerateConfiguration.type == enum_RetrieveAndGenerateType[_]
    input.Body.sessionConfiguration.kmsKeyArn == STRING
    input.Body.sessionId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}