@@ -256,6 +256,24 @@ func testAccOrganization_EnabledPolicyTypes(t *testing.T) {
256256 resource .TestCheckResourceAttr (resourceName , "enabled_policy_types.0" , string (awstypes .PolicyTypeUpgradeRolloutPolicy )),
257257 ),
258258 },
259+ {
260+ Config : testAccOrganizationConfig_enabledPolicyTypes1 (string (awstypes .PolicyTypeS3Policy )),
261+ Check : resource .ComposeTestCheckFunc (
262+ testAccCheckOrganizationExists (ctx , resourceName , & organization ),
263+ resource .TestCheckResourceAttr (resourceName , "aws_service_access_principals.#" , "0" ),
264+ resource .TestCheckResourceAttr (resourceName , "enabled_policy_types.#" , "1" ),
265+ resource .TestCheckResourceAttr (resourceName , "enabled_policy_types.0" , string (awstypes .PolicyTypeS3Policy )),
266+ ),
267+ },
268+ {
269+ Config : testAccOrganizationConfig_enabledPolicyTypes1 (string (awstypes .PolicyTypeBedrockPolicy )),
270+ Check : resource .ComposeTestCheckFunc (
271+ testAccCheckOrganizationExists (ctx , resourceName , & organization ),
272+ resource .TestCheckResourceAttr (resourceName , "aws_service_access_principals.#" , "0" ),
273+ resource .TestCheckResourceAttr (resourceName , "enabled_policy_types.#" , "1" ),
274+ resource .TestCheckResourceAttr (resourceName , "enabled_policy_types.0" , string (awstypes .PolicyTypeBedrockPolicy )),
275+ ),
276+ },
259277 {
260278 ResourceName : resourceName ,
261279 ImportState : true ,
0 commit comments