Skip to content

Commit 8567f63

Browse files
committed
Plural data source generator: New Go packages: hashicorp/terraform-plugin-framework#432.
1 parent db4f4c4 commit 8567f63

File tree

1 file changed

+2
-1
lines changed
  • internal/provider/generators/plural-data-source

1 file changed

+2
-1
lines changed

internal/provider/generators/plural-data-source/schema.tmpl

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package {{ .PackageName }}
55
import (
66
"context"
77

8+
"github.com/hashicorp/terraform-plugin-framework/provider"
89
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
910
"github.com/hashicorp/terraform-plugin-framework/types"
1011
. "github.com/hashicorp/terraform-provider-awscc/internal/generic"
@@ -17,7 +18,7 @@ func init() {
1718

1819
// {{ .FactoryFunctionName }} returns the Terraform {{ .TerraformTypeName }} data source type.
1920
// This Terraform data source type corresponds to the CloudFormation {{ .CloudFormationTypeName }} resource type.
20-
func {{ .FactoryFunctionName }}(ctx context.Context) (tfsdk.DataSourceType, error) {
21+
func {{ .FactoryFunctionName }}(ctx context.Context) (provider.DataSourceType, error) {
2122
attributes := map[string]tfsdk.Attribute {
2223
"id": {
2324
Description: "Uniquely identifies the data source.",

0 commit comments

Comments
 (0)