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 @@
removeBetaFromDescriptionField,
substituteRandomSuffix,
rewritemembersField,
apiConfigAPIID,
)
}

Expand Down Expand Up @@ -145,3 +146,13 @@
"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)."

Check failure on line 150 in provider/doc_edits.go

View workflow job for this annotation

GitHub Actions / lint / lint

The line is 122 characters long, which exceeds the maximum of 120 characters. (lll)
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**"))

Check failure on line 155 in provider/doc_edits.go

View workflow job for this annotation

GitHub Actions / lint / lint

The line is 131 characters long, which exceeds the maximum of 120 characters. (lll)
return content, nil
},
}
Loading