Skip to content

Commit

Permalink
Resource generator: New Go packages: hashicorp/terraform-plugin-frame…
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Aug 18, 2022
1 parent 747a39f commit dfde415
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/provider/generators/resource/schema.tmpl
Expand Up @@ -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"
Expand All @@ -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 }}
Expand Down

0 comments on commit dfde415

Please sign in to comment.