Skip to content
Draft
Changes from all 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
11 changes: 11 additions & 0 deletions provider/doc_edits.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ func editRules(defaults []tfbridge.DocsEdit) []tfbridge.DocsEdit {
removeBetaFromDescriptionField,
substituteRandomSuffix,
rewritemembersField,
apiConfigAPIID,
)
}

Expand Down Expand Up @@ -145,3 +146,13 @@ var fixUpKmsCryptoKey = targetedSimpleReplace(
"to the resource to prevent accidental destruction.",
"For this reason, it is strongly recommended that you use "+
"Pulumi's [protect resource option](https://www.pulumi.com/docs/concepts/options/protect/).")

var apiConfigAPIIDStr = "Identifier to assign to the API Config. Must be unique within scope of the parent resource(api)."
var apiConfigAPIIDRegexp = regexp.MustCompile(regexp.QuoteMeta(apiConfigAPIIDStr))
var apiConfigAPIID = tfbridge.DocsEdit{
Path: "*api_gateway_api_config.html.markdown",
Edit: func(_ string, content []byte) ([]byte, error) {
content = apiConfigAPIIDRegexp.ReplaceAllLiteral(content, []byte(apiConfigAPIIDStr+" **Note: use apiId if calling a resource**"))
return content, nil
},
}