modulepackage
0.0.0-20240902090353-0525d7d8c1c2
Repository: https://github.com/magodo/tfpluginschema.git
Documentation: pkg.go.dev
# README
tfpluginschema
Terraform schema definition stands in the middle of the Terraform core schema and the Plugin SDK/FW schema.
Why
The motivation for this is to add more information that is lost during the conversion from plugin sdk to the terraform core schema. These information are fatal for developing tools that is oriented to the provider, rather than to the terraform core.
Specifically, we are:
- Adding
Default
for theAttribute
- Adding
Required
,Optional
,Computed
for theBlockType
(SDK v2 only) - Adding
ExactlyOneOf
,AtLeastOneOf
,ConflictsWith
andRequiredWith
for bothBlockType
and theAttribute
(SDK v2 only) - Removing any other attributes
# Packages
No description provided by the author
# Functions
No description provided by the author
FromSDKv2Provider converts the provider from the schema defined in the plugin sdk v2 to the schema defined in tfpluginschema.
FromSDKv2Resource converts the resource from the schema defined in the plugin sdk v2 to the schema defined in tfpluginschema.
FromSDKv2SchemasMap converts the schema map from the schema defined in the plugin sdk v2 to the schema defined in tfpluginschema.