@@ -60,20 +60,6 @@ func TestAccLogsQueryDefinition_basic(t *testing.T) {
60
60
})
61
61
}
62
62
63
- func testAccQueryDefinitionImportStateID (ctx context.Context , v * types.QueryDefinition ) resource.ImportStateIdFunc {
64
- return func (* terraform.State ) (string , error ) {
65
- id := arn.ARN {
66
- AccountID : acctest .AccountID (ctx ),
67
- Partition : acctest .Partition (),
68
- Region : acctest .Region (),
69
- Service : "logs" ,
70
- Resource : fmt .Sprintf ("query-definition:%s" , aws .ToString (v .QueryDefinitionId )),
71
- }
72
-
73
- return id .String (), nil
74
- }
75
- }
76
-
77
63
func TestAccLogsQueryDefinition_disappears (t * testing.T ) {
78
64
ctx := acctest .Context (t )
79
65
var v types.QueryDefinition
@@ -208,6 +194,20 @@ func TestAccLogsQueryDefinition_logGroupARNs(t *testing.T) {
208
194
})
209
195
}
210
196
197
+ func testAccQueryDefinitionImportStateID (ctx context.Context , v * types.QueryDefinition ) resource.ImportStateIdFunc {
198
+ return func (* terraform.State ) (string , error ) {
199
+ id := arn.ARN {
200
+ AccountID : acctest .AccountID (ctx ),
201
+ Partition : acctest .Partition (),
202
+ Region : acctest .Region (),
203
+ Service : "logs" ,
204
+ Resource : fmt .Sprintf ("query-definition:%s" , aws .ToString (v .QueryDefinitionId )),
205
+ }
206
+
207
+ return id .String (), nil
208
+ }
209
+ }
210
+
211
211
func testAccCheckQueryDefinitionExists (ctx context.Context , n string , v * types.QueryDefinition ) resource.TestCheckFunc {
212
212
return func (s * terraform.State ) error {
213
213
rs , ok := s .RootModule ().Resources [n ]
0 commit comments