diff --git a/docs/resources/bedrock_data_automation_project.md b/docs/resources/bedrock_data_automation_project.md index f676d5f151..8cb662da21 100644 --- a/docs/resources/bedrock_data_automation_project.md +++ b/docs/resources/bedrock_data_automation_project.md @@ -1,5 +1,4 @@ --- -# generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "awscc_bedrock_data_automation_project Resource - terraform-provider-awscc" subcategory: "" description: |- @@ -10,7 +9,85 @@ description: |- Definition of AWS::Bedrock::DataAutomationProject Resource Type +## Example Usage + +### Standard output +Create a Bedrock Data Automation project with standard output using the document modality +```terraform +resource "awscc_bedrock_data_automation_project" "example" { + project_name = "example-project" + project_description = "example-description" + standard_output_configuration = { + document = { + extraction = { + granularity = { + types = ["DOCUMENT"] + } + bounding_box = { + state = "ENABLED" + } + } + generative_field = { + state = "DISABLED" + } + output_format = { + text_format = { + types = ["PLAIN_TEXT"] + } + additional_file_format = { + state = "DISABLED" + } + } + } + } + override_configuration = { + document = { + splitter = { + state = "ENABLED" + } + } + } +} +``` +### Custom output +Create a Bedrock Data Automation project with custom output using the document modality +```terraform +resource "awscc_bedrock_data_automation_project" "example" { + project_name = "example-project" + project_description = "example-description" + standard_output_configuration = { + document = { + output_format = { + text_format = { + types = ["PLAIN_TEXT"] + } + additional_file_format = { + state = "DISABLED" + } + } + } + } + custom_output_configuration = { + blueprints = [ + { + blueprint_arn = awscc_bedrock_blueprint.example.blueprint_arn + } + ] + } + override_configuration = { + document = { + splitter = { + state = "ENABLED" + } + } + + tags = [{ + key = "ModifiedBy" + value = "AWSCC" + }] +} +``` ## Schema @@ -296,4 +373,4 @@ Import is supported using the following syntax: ```shell $ terraform import awscc_bedrock_data_automation_project.example "project_arn" -``` +``` \ No newline at end of file diff --git a/examples/resources/awscc_bedrock_data_automation_project/bedrock_data_automation_custom_output_project.tf b/examples/resources/awscc_bedrock_data_automation_project/bedrock_data_automation_custom_output_project.tf new file mode 100644 index 0000000000..dbecbea413 --- /dev/null +++ b/examples/resources/awscc_bedrock_data_automation_project/bedrock_data_automation_custom_output_project.tf @@ -0,0 +1,30 @@ +resource "awscc_bedrock_data_automation_project" "example" { + project_name = "example-project" + project_description = "example-description" + standard_output_configuration = { + document = { + output_format = { + text_format = { + types = ["PLAIN_TEXT"] + } + additional_file_format = { + state = "DISABLED" + } + } + } + } + custom_output_configuration = { + blueprints = [ + { + blueprint_arn = awscc_bedrock_blueprint.example.blueprint_arn + } + ] + } + override_configuration = { + document = { + splitter = { + state = "ENABLED" + } + } + } +} \ No newline at end of file diff --git a/examples/resources/awscc_bedrock_data_automation_project/bedrock_data_automation_standard_output_project.tf b/examples/resources/awscc_bedrock_data_automation_project/bedrock_data_automation_standard_output_project.tf new file mode 100644 index 0000000000..f0ef219303 --- /dev/null +++ b/examples/resources/awscc_bedrock_data_automation_project/bedrock_data_automation_standard_output_project.tf @@ -0,0 +1,34 @@ +resource "awscc_bedrock_data_automation_project" "example" { + project_name = "example-project" + project_description = "example-description" + standard_output_configuration = { + document = { + extraction = { + granularity = { + types = ["DOCUMENT"] + } + bounding_box = { + state = "ENABLED" + } + } + generative_field = { + state = "DISABLED" + } + output_format = { + text_format = { + types = ["PLAIN_TEXT"] + } + additional_file_format = { + state = "DISABLED" + } + } + } + } + override_configuration = { + document = { + splitter = { + state = "ENABLED" + } + } + } +} \ No newline at end of file diff --git a/examples/resources/awscc_bedrockdataautomation_project/bedrockdataautomation_custom_output_project.tf b/examples/resources/awscc_bedrockdataautomation_project/bedrockdataautomation_custom_output_project.tf new file mode 100644 index 0000000000..62d7cae314 --- /dev/null +++ b/examples/resources/awscc_bedrockdataautomation_project/bedrockdataautomation_custom_output_project.tf @@ -0,0 +1,30 @@ +resource "awscc_bedrock_data_automation_project" "example" { + project_name = "example-project" + project_description = "example-description" + standard_output_configuration = { + document = { + output_format = { + text_format = { + types = ["PLAIN_TEXT"] + } + additional_file_format = { + state = "DISABLED" + } + } + } + } + custom_output_configuration = { + blueprints = [ + { + blueprint_arn = "arn:aws:bedrock:us-west-2::blueprint/" + } + ] + } + override_configuration = { + document = { + splitter = { + state = "ENABLED" + } + } + } +} \ No newline at end of file diff --git a/examples/resources/awscc_bedrockdataautomation_project/bedrockdataautomation_standard_output_project.tf b/examples/resources/awscc_bedrockdataautomation_project/bedrockdataautomation_standard_output_project.tf new file mode 100644 index 0000000000..aa5343708d --- /dev/null +++ b/examples/resources/awscc_bedrockdataautomation_project/bedrockdataautomation_standard_output_project.tf @@ -0,0 +1,34 @@ +resource "awscc_bedrock_data_automation_project" "example" { + project_name = "example-project" + project_description = "example-description" + standard_output_configuration = { + document = { + extraction = { + granularity = { + types = ["DOCUMENT"] + } + bounding_box = { + state = "ENABLED" + } + } + generative_field = { + state = "DISABLED" + } + output_format = { + text_format = { + types = ["PLAIN_TEXT"] + } + additional_file_format = { + state = "DISABLED" + } + } + } + } + override_configuration = { + document = { + splitter = { + state = "ENABLED" + } + } + } +} \ No newline at end of file diff --git a/templates/resources/bedrock_data_automation_project.md.tmpl b/templates/resources/bedrock_data_automation_project.md.tmpl new file mode 100644 index 0000000000..474ae1fabf --- /dev/null +++ b/templates/resources/bedrock_data_automation_project.md.tmpl @@ -0,0 +1,31 @@ +--- +page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" +subcategory: "" +description: |- +{{ .Description | plainmarkdown | trimspace | prefixlines " " }} +--- + +# {{.Name}} ({{.Type}}) + +{{ .Description | trimspace }} + +## Example Usage + +### Standard output +Create a Bedrock Data Automation project with standard output using the document modality +{{ tffile (printf "examples/resources/%s/bedrock_data_automation_standard_output_project.tf" .Name)}} + +### Custom output +Create a Bedrock Data Automation project with custom output using the document modality +{{ tffile (printf "examples/resources/%s/bedrock_data_automation_custom_output_project.tf" .Name)}} + +{{ .SchemaMarkdown | trimspace }} +{{- if .HasImport }} + +## Import + +Import is supported using the following syntax: + +{{ codefile "shell" .ImportFile }} + +{{- end }} \ No newline at end of file