Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 30 additions & 3 deletions docs/resources/bedrock_blueprint.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "awscc_bedrock_blueprint Resource - terraform-provider-awscc"
subcategory: ""
description: |-
Expand All @@ -10,7 +9,35 @@ description: |-

Definition of AWS::Bedrock::Blueprint Resource Type


## Example Usage

### Custom Blueprints for documents
Create a custom blueprint for intelligent document processing with Bedrock Data Automation
```terraform
resource "awscc_bedrock_blueprint" "example" {
blueprint_name = "example-blueprint"
type = "DOCUMENT"
schema = jsonencode({
"$schema" : "http://json-schema.org/draft-07/schema#",
"description" : "default",
"class" : "default",
"type" : "object",
"definitions" : {},
"properties" : {
"gross_pay_this_period" : {
"type" : "number",
"inferenceType" : "explicit",
"instruction" : "The gross pay for this pay period from the Earnings table"
},
"net_pay" : {
"type" : "number",
"inferenceType" : "explicit",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit) : Could you add the tags for the resource ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@professional-ian The tags were added directly to the doc and so the make docs will override or fail on approval. Please add it to the .tf tile and run a make docs

"instruction" : "The net pay for this pay period from the bottom of the document"
}
}
})
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down Expand Up @@ -49,4 +76,4 @@ Import is supported using the following syntax:

```shell
$ terraform import awscc_bedrock_blueprint.example "blueprint_arn"
```
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
resource "awscc_bedrock_blueprint" "example" {
blueprint_name = "example-blueprint"
type = "DOCUMENT"
schema = jsonencode({
"$schema" : "http://json-schema.org/draft-07/schema#",
"description" : "default",
"class" : "default",
"type" : "object",
"definitions" : {},
"properties" : {
"gross_pay_this_period" : {
"type" : "number",
"inferenceType" : "explicit",
"instruction" : "The gross pay for this pay period from the Earnings table"
},
"net_pay" : {
"type" : "number",
"inferenceType" : "explicit",
"instruction" : "The net pay for this pay period from the bottom of the document"
}
}
})
}
27 changes: 27 additions & 0 deletions templates/resources/bedrock_blueprint.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}"
subcategory: ""
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---

# {{.Name}} ({{.Type}})

{{ .Description | trimspace }}

## Example Usage

### Custom Blueprints for documents
Create a custom blueprint for intelligent document processing with Bedrock Data Automation
{{ tffile (printf "examples/resources/%s/bedrock_document_blueprint.tf" .Name)}}

{{ .SchemaMarkdown | trimspace }}
{{- if .HasImport }}

## Import

Import is supported using the following syntax:

{{ codefile "shell" .ImportFile }}

{{- end }}