Skip to content

Commit

Permalink
Singular data source generator: New Go packages: hashicorp/terraform-…
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Aug 18, 2022
1 parent 3f93fff commit 0fa9643
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -5,6 +5,7 @@ package {{ .PackageName }}
import (
"context"

"github.com/hashicorp/terraform-plugin-framework/provider"
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
"github.com/hashicorp/terraform-plugin-framework/types"
. "github.com/hashicorp/terraform-provider-awscc/internal/generic"
Expand All @@ -17,7 +18,7 @@ func init() {

// {{ .FactoryFunctionName }} returns the Terraform {{ .TerraformTypeName }} data source type.
// This Terraform data source type corresponds to the CloudFormation {{ .CloudFormationTypeName }} resource type.
func {{ .FactoryFunctionName }}(ctx context.Context) (tfsdk.DataSourceType, error) {
func {{ .FactoryFunctionName }}(ctx context.Context) (provider.DataSourceType, error) {
attributes := {{ .RootPropertiesSchema }}

attributes["id"] = tfsdk.Attribute{
Expand Down

0 comments on commit 0fa9643

Please sign in to comment.