generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 134
D improve bedrockdataautomation #2261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
professional-ian
wants to merge
7
commits into
hashicorp:main
Choose a base branch
from
professional-ian:d-improve-bedrockdataautomation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
006b9c1
initial commit, working standard output
professional-ian 3368bd5
working custom output
professional-ian 62ccb9d
updated md
professional-ian bdb753e
add example for: Bedrock Data Automation Project
professional-ian 40a0ff9
updated directory naming conventions
professional-ian 45bf46c
run make docs
professional-ian 6b93447
Apply suggestions from code review
professional-ian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...es/awscc_bedrock_data_automation_project/bedrock_data_automation_custom_output_project.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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:<AWS_ACCOUNT_ID>:blueprint/<BLUEPRINT_ID>" | ||
professional-ian marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
| ] | ||
| } | ||
| override_configuration = { | ||
| document = { | ||
| splitter = { | ||
| state = "ENABLED" | ||
| } | ||
| } | ||
| } | ||
| } | ||
34 changes: 34 additions & 0 deletions
34
.../awscc_bedrock_data_automation_project/bedrock_data_automation_standard_output_project.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
| } | ||
| } | ||
| } |
30 changes: 30 additions & 0 deletions
30
...ources/awscc_bedrockdataautomation_project/bedrockdataautomation_custom_output_project.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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:<AWS_ACCOUNT_ID>:blueprint/<BLUEPRINT_ID>" | ||
| } | ||
| ] | ||
| } | ||
| override_configuration = { | ||
| document = { | ||
| splitter = { | ||
| state = "ENABLED" | ||
| } | ||
| } | ||
| } | ||
| } |
34 changes: 34 additions & 0 deletions
34
...rces/awscc_bedrockdataautomation_project/bedrockdataautomation_standard_output_project.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
| } | ||
| } | ||
| } |
31 changes: 31 additions & 0 deletions
31
templates/resources/bedrock_data_automation_project.md.tmpl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 }} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.