@@ -10,7 +10,6 @@ import (
10
10
"github.com/aws/aws-sdk-go-v2/service/verifiedpermissions"
11
11
awstypes "github.com/aws/aws-sdk-go-v2/service/verifiedpermissions/types"
12
12
"github.com/hashicorp/terraform-plugin-framework-validators/listvalidator"
13
- "github.com/hashicorp/terraform-plugin-framework/path"
14
13
"github.com/hashicorp/terraform-plugin-framework/resource"
15
14
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
16
15
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
@@ -33,6 +32,7 @@ import (
33
32
34
33
// @FrameworkResource("aws_verifiedpermissions_policy_store", name="Policy Store")
35
34
// @Tags(identifierAttribute="arn")
35
+ // @Testing(tagsTest=false)
36
36
func newResourcePolicyStore (context.Context ) (resource.ResourceWithConfigure , error ) {
37
37
r := & resourcePolicyStore {}
38
38
@@ -45,6 +45,7 @@ const (
45
45
46
46
type resourcePolicyStore struct {
47
47
framework.ResourceWithConfigure
48
+ framework.WithImportByID
48
49
}
49
50
50
51
func (r * resourcePolicyStore ) Schema (ctx context.Context , request resource.SchemaRequest , response * resource.SchemaResponse ) {
@@ -158,8 +159,6 @@ func (r *resourcePolicyStore) Read(ctx context.Context, request resource.ReadReq
158
159
return
159
160
}
160
161
161
- setTagsOut (ctx , output .Tags )
162
-
163
162
response .Diagnostics .Append (response .State .Set (ctx , & data )... )
164
163
}
165
164
@@ -228,10 +227,6 @@ func (r *resourcePolicyStore) Delete(ctx context.Context, request resource.Delet
228
227
}
229
228
}
230
229
231
- func (r * resourcePolicyStore ) ImportState (ctx context.Context , request resource.ImportStateRequest , response * resource.ImportStateResponse ) {
232
- resource .ImportStatePassthroughID (ctx , path .Root (names .AttrID ), request , response )
233
- }
234
-
235
230
type resourcePolicyStoreData struct {
236
231
ARN types.String `tfsdk:"arn"`
237
232
Description types.String `tfsdk:"description"`
0 commit comments