diff --git a/internal/provider/generators/resource/schema.tmpl b/internal/provider/generators/resource/schema.tmpl index 1eed662e0..5842b17e3 100644 --- a/internal/provider/generators/resource/schema.tmpl +++ b/internal/provider/generators/resource/schema.tmpl @@ -7,6 +7,7 @@ import ( {{if .ImportRegexp }}"regexp"{{- end}} {{if .ImportFrameworkAttr }}"github.com/hashicorp/terraform-plugin-framework/attr"{{- end}} + "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" @@ -20,7 +21,7 @@ func init() { // {{ .FactoryFunctionName }} returns the Terraform {{ .TerraformTypeName }} resource type. // This Terraform resource type corresponds to the CloudFormation {{ .CloudFormationTypeName }} resource type. -func {{ .FactoryFunctionName }}(ctx context.Context) (tfsdk.ResourceType, error) { +func {{ .FactoryFunctionName }}(ctx context.Context) (provider.ResourceType, error) { attributes := {{ .RootPropertiesSchema }} {{ if .SyntheticIDAttribute }}