BEDROCK-DATA-AUTOMATION

CreateBlueprint

enum_BlueprintStage := [ "DEVELOPMENT", "LIVE" ]
enum_Type := [ "DOCUMENT", "IMAGE" ]

valid {
    input.Body.blueprintName == STRING
    input.Body.type == enum_Type[_]
    input.Body.blueprintStage == enum_BlueprintStage[_]
    input.Body.schema == STRING
    input.Body.clientToken == STRING
    input.Body.encryptionConfiguration.kmsKeyId == STRING
    input.Body.encryptionConfiguration.kmsEncryptionContext.STRING == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateBlueprintVersion

valid {
    input.Body.clientToken == STRING
    input.ReqMap.blueprintArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateDataAutomationProject

enum_AudioExtractionCategoryType := [ "AUDIO_CONTENT_MODERATION", "CHAPTER_CONTENT_MODERATION", "TRANSCRIPT" ]
enum_AudioStandardGenerativeFieldType := [ "AUDIO_SUMMARY", "CHAPTER_SUMMARY", "IAB" ]
enum_BlueprintStage := [ "DEVELOPMENT", "LIVE" ]
enum_DataAutomationProjectStage := [ "DEVELOPMENT", "LIVE" ]
enum_DocumentExtractionGranularityType := [ "DOCUMENT", "PAGE", "ELEMENT", "WORD", "LINE" ]
enum_DocumentOutputTextFormatType := [ "PLAIN_TEXT", "MARKDOWN", "HTML", "CSV" ]
enum_ImageExtractionCategoryType := [ "CONTENT_MODERATION", "TEXT_DETECTION" ]
enum_ImageStandardGenerativeFieldType := [ "IMAGE_SUMMARY", "IAB" ]
enum_State := [ "ENABLED", "DISABLED" ]
enum_VideoExtractionCategoryType := [ "CONTENT_MODERATION", "TEXT_DETECTION", "TRANSCRIPT" ]
enum_VideoStandardGenerativeFieldType := [ "VIDEO_SUMMARY", "SCENE_SUMMARY", "IAB" ]

valid {
    input.Body.projectName == STRING
    input.Body.projectDescription == STRING
    input.Body.projectStage == enum_DataAutomationProjectStage[_]
    input.Body.standardOutputConfiguration.document.extraction.granularity.types[_] == enum_DocumentExtractionGranularityType[_]
    input.Body.standardOutputConfiguration.document.extraction.boundingBox.state == enum_State[_]
    input.Body.standardOutputConfiguration.document.generativeField.state == enum_State[_]
    input.Body.standardOutputConfiguration.document.outputFormat.textFormat.types[_] == enum_DocumentOutputTextFormatType[_]
    input.Body.standardOutputConfiguration.document.outputFormat.additionalFileFormat.state == enum_State[_]
    input.Body.standardOutputConfiguration.image.extraction.category.state == enum_State[_]
    input.Body.standardOutputConfiguration.image.extraction.category.types[_] == enum_ImageExtractionCategoryType[_]
    input.Body.standardOutputConfiguration.image.extraction.boundingBox.state == enum_State[_]
    input.Body.standardOutputConfiguration.image.generativeField.state == enum_State[_]
    input.Body.standardOutputConfiguration.image.generativeField.types[_] == enum_ImageStandardGenerativeFieldType[_]
    input.Body.standardOutputConfiguration.video.extraction.category.state == enum_State[_]
    input.Body.standardOutputConfiguration.video.extraction.category.types[_] == enum_VideoExtractionCategoryType[_]
    input.Body.standardOutputConfiguration.video.extraction.boundingBox.state == enum_State[_]
    input.Body.standardOutputConfiguration.video.generativeField.state == enum_State[_]
    input.Body.standardOutputConfiguration.video.generativeField.types[_] == enum_VideoStandardGenerativeFieldType[_]
    input.Body.standardOutputConfiguration.audio.extraction.category.state == enum_State[_]
    input.Body.standardOutputConfiguration.audio.extraction.category.types[_] == enum_AudioExtractionCategoryType[_]
    input.Body.standardOutputConfiguration.audio.generativeField.state == enum_State[_]
    input.Body.standardOutputConfiguration.audio.generativeField.types[_] == enum_AudioStandardGenerativeFieldType[_]
    input.Body.customOutputConfiguration.blueprints[_].blueprintArn == STRING
    input.Body.customOutputConfiguration.blueprints[_].blueprintVersion == STRING
    input.Body.customOutputConfiguration.blueprints[_].blueprintStage == enum_BlueprintStage[_]
    input.Body.overrideConfiguration.document.splitter.state == enum_State[_]
    input.Body.clientToken == STRING
    input.Body.encryptionConfiguration.kmsKeyId == STRING
    input.Body.encryptionConfiguration.kmsEncryptionContext.STRING == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteBlueprint

valid {
    input.ReqMap.blueprintArn == STRING
    input.Qs.blueprintVersion == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteDataAutomationProject

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

GetBlueprint

enum_BlueprintStage := [ "DEVELOPMENT", "LIVE" ]

valid {
    input.Body.blueprintVersion == STRING
    input.Body.blueprintStage == enum_BlueprintStage[_]
    input.ReqMap.blueprintArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetDataAutomationProject

enum_DataAutomationProjectStage := [ "DEVELOPMENT", "LIVE" ]

valid {
    input.Body.projectStage == enum_DataAutomationProjectStage[_]
    input.ReqMap.projectArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListBlueprints

enum_BlueprintStageFilter := [ "DEVELOPMENT", "LIVE", "ALL" ]
enum_DataAutomationProjectStage := [ "DEVELOPMENT", "LIVE" ]
enum_ResourceOwner := [ "SERVICE", "ACCOUNT" ]

valid {
    input.Body.blueprintArn == STRING
    input.Body.resourceOwner == enum_ResourceOwner[_]
    input.Body.blueprintStageFilter == enum_BlueprintStageFilter[_]
    input.Body.maxResults == INTEGER
    input.Body.nextToken == STRING
    input.Body.projectFilter.projectArn == STRING
    input.Body.projectFilter.projectStage == enum_DataAutomationProjectStage[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListDataAutomationProjects

enum_BlueprintStage := [ "DEVELOPMENT", "LIVE" ]
enum_DataAutomationProjectStageFilter := [ "DEVELOPMENT", "LIVE", "ALL" ]
enum_ResourceOwner := [ "SERVICE", "ACCOUNT" ]

valid {
    input.Body.maxResults == INTEGER
    input.Body.nextToken == STRING
    input.Body.projectStageFilter == enum_DataAutomationProjectStageFilter[_]
    input.Body.blueprintFilter.blueprintArn == STRING
    input.Body.blueprintFilter.blueprintVersion == STRING
    input.Body.blueprintFilter.blueprintStage == enum_BlueprintStage[_]
    input.Body.resourceOwner == enum_ResourceOwner[_]
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateBlueprint

enum_BlueprintStage := [ "DEVELOPMENT", "LIVE" ]

valid {
    input.Body.schema == STRING
    input.Body.blueprintStage == enum_BlueprintStage[_]
    input.ReqMap.blueprintArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateDataAutomationProject

enum_AudioExtractionCategoryType := [ "AUDIO_CONTENT_MODERATION", "CHAPTER_CONTENT_MODERATION", "TRANSCRIPT" ]
enum_AudioStandardGenerativeFieldType := [ "AUDIO_SUMMARY", "CHAPTER_SUMMARY", "IAB" ]
enum_BlueprintStage := [ "DEVELOPMENT", "LIVE" ]
enum_DataAutomationProjectStage := [ "DEVELOPMENT", "LIVE" ]
enum_DocumentExtractionGranularityType := [ "DOCUMENT", "PAGE", "ELEMENT", "WORD", "LINE" ]
enum_DocumentOutputTextFormatType := [ "PLAIN_TEXT", "MARKDOWN", "HTML", "CSV" ]
enum_ImageExtractionCategoryType := [ "CONTENT_MODERATION", "TEXT_DETECTION" ]
enum_ImageStandardGenerativeFieldType := [ "IMAGE_SUMMARY", "IAB" ]
enum_State := [ "ENABLED", "DISABLED" ]
enum_VideoExtractionCategoryType := [ "CONTENT_MODERATION", "TEXT_DETECTION", "TRANSCRIPT" ]
enum_VideoStandardGenerativeFieldType := [ "VIDEO_SUMMARY", "SCENE_SUMMARY", "IAB" ]

valid {
    input.Body.projectStage == enum_DataAutomationProjectStage[_]
    input.Body.projectDescription == STRING
    input.Body.standardOutputConfiguration.document.extraction.granularity.types[_] == enum_DocumentExtractionGranularityType[_]
    input.Body.standardOutputConfiguration.document.extraction.boundingBox.state == enum_State[_]
    input.Body.standardOutputConfiguration.document.generativeField.state == enum_State[_]
    input.Body.standardOutputConfiguration.document.outputFormat.textFormat.types[_] == enum_DocumentOutputTextFormatType[_]
    input.Body.standardOutputConfiguration.document.outputFormat.additionalFileFormat.state == enum_State[_]
    input.Body.standardOutputConfiguration.image.extraction.category.state == enum_State[_]
    input.Body.standardOutputConfiguration.image.extraction.category.types[_] == enum_ImageExtractionCategoryType[_]
    input.Body.standardOutputConfiguration.image.extraction.boundingBox.state == enum_State[_]
    input.Body.standardOutputConfiguration.image.generativeField.state == enum_State[_]
    input.Body.standardOutputConfiguration.image.generativeField.types[_] == enum_ImageStandardGenerativeFieldType[_]
    input.Body.standardOutputConfiguration.video.extraction.category.state == enum_State[_]
    input.Body.standardOutputConfiguration.video.extraction.category.types[_] == enum_VideoExtractionCategoryType[_]
    input.Body.standardOutputConfiguration.video.extraction.boundingBox.state == enum_State[_]
    input.Body.standardOutputConfiguration.video.generativeField.state == enum_State[_]
    input.Body.standardOutputConfiguration.video.generativeField.types[_] == enum_VideoStandardGenerativeFieldType[_]
    input.Body.standardOutputConfiguration.audio.extraction.category.state == enum_State[_]
    input.Body.standardOutputConfiguration.audio.extraction.category.types[_] == enum_AudioExtractionCategoryType[_]
    input.Body.standardOutputConfiguration.audio.generativeField.state == enum_State[_]
    input.Body.standardOutputConfiguration.audio.generativeField.types[_] == enum_AudioStandardGenerativeFieldType[_]
    input.Body.customOutputConfiguration.blueprints[_].blueprintArn == STRING
    input.Body.customOutputConfiguration.blueprints[_].blueprintVersion == STRING
    input.Body.customOutputConfiguration.blueprints[_].blueprintStage == enum_BlueprintStage[_]
    input.Body.overrideConfiguration.document.splitter.state == enum_State[_]
    input.ReqMap.projectArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}