@@ -58,7 +58,7 @@ func TestAccCognitoIDPManagedLoginBranding_basic(t *testing.T) {
58
58
ImportState : true ,
59
59
ImportStateVerify : true ,
60
60
ImportStateVerifyIdentifierAttribute : "managed_login_branding_id" ,
61
- ImportStateIdFunc : acctest .AttrsImportStateIdFunc (resourceName , "," , "user_pool_id" , "managed_login_branding_id" ),
61
+ ImportStateIdFunc : acctest .AttrsImportStateIdFunc (resourceName , "," , names . AttrUserPoolID , "managed_login_branding_id" ),
62
62
},
63
63
},
64
64
})
@@ -119,7 +119,7 @@ func TestAccCognitoIDPManagedLoginBranding_asset(t *testing.T) {
119
119
ImportState : true ,
120
120
ImportStateVerify : true ,
121
121
ImportStateVerifyIdentifierAttribute : "managed_login_branding_id" ,
122
- ImportStateIdFunc : acctest .AttrsImportStateIdFunc (resourceName , "," , "user_pool_id" , "managed_login_branding_id" ),
122
+ ImportStateIdFunc : acctest .AttrsImportStateIdFunc (resourceName , "," , names . AttrUserPoolID , "managed_login_branding_id" ),
123
123
},
124
124
},
125
125
})
@@ -157,7 +157,7 @@ func TestAccCognitoIDPManagedLoginBranding_settings(t *testing.T) {
157
157
ImportState : true ,
158
158
ImportStateVerify : true ,
159
159
ImportStateVerifyIdentifierAttribute : "managed_login_branding_id" ,
160
- ImportStateIdFunc : acctest .AttrsImportStateIdFunc (resourceName , "," , "user_pool_id" , "managed_login_branding_id" ),
160
+ ImportStateIdFunc : acctest .AttrsImportStateIdFunc (resourceName , "," , names . AttrUserPoolID , "managed_login_branding_id" ),
161
161
},
162
162
},
163
163
})
@@ -310,7 +310,7 @@ func testAccCheckManagedLoginBrandingDestroy(ctx context.Context) resource.TestC
310
310
continue
311
311
}
312
312
313
- _ , err := tfcognitoidp .FindManagedLoginBrandingByThreePartKey (ctx , conn , rs .Primary .Attributes ["user_pool_id" ], rs .Primary .Attributes ["managed_login_branding_id" ], false )
313
+ _ , err := tfcognitoidp .FindManagedLoginBrandingByThreePartKey (ctx , conn , rs .Primary .Attributes [names . AttrUserPoolID ], rs .Primary .Attributes ["managed_login_branding_id" ], false )
314
314
315
315
if tfresource .NotFound (err ) {
316
316
continue
@@ -336,7 +336,7 @@ func testAccCheckManagedLoginBrandingExists(ctx context.Context, n string, v *aw
336
336
337
337
conn := acctest .Provider .Meta ().(* conns.AWSClient ).CognitoIDPClient (ctx )
338
338
339
- output , err := tfcognitoidp .FindManagedLoginBrandingByThreePartKey (ctx , conn , rs .Primary .Attributes ["user_pool_id" ], rs .Primary .Attributes ["managed_login_branding_id" ], false )
339
+ output , err := tfcognitoidp .FindManagedLoginBrandingByThreePartKey (ctx , conn , rs .Primary .Attributes [names . AttrUserPoolID ], rs .Primary .Attributes ["managed_login_branding_id" ], false )
340
340
341
341
if err != nil {
342
342
return err
0 commit comments