@@ -198,6 +198,7 @@ var (
198198 "is_pv_encryption_in_transit_enabled" : acctest.Representation {RepType : acctest .Optional , Create : `false` },
199199 "launch_options" : acctest.RepresentationGroup {RepType : acctest .Optional , Group : CoreInstanceLaunchOptionsRepresentation_FlexShape },
200200 "metadata" : acctest.Representation {RepType : acctest .Optional , Create : map [string ]string {"user_data" : "abcd" }, Update : map [string ]string {"user_data" : "abcd" , "volatile_data" : "stringE" }},
201+ "security_attributes" : acctest.Representation {RepType : acctest .Optional , Create : map [string ]any {"Oracle-DataSecurity-ZPR" : map [string ]any {"MaxEgressCount" : map [string ]string {"value" : "42" , "mode" : "audit" }}}},
201202 "shape_config" : acctest.RepresentationGroup {RepType : acctest .Optional , Group : CoreInstanceShapeConfigRepresentation },
202203 "source_details" : acctest.RepresentationGroup {RepType : acctest .Optional , Group : CoreInstanceSourceDetailsRepresentation },
203204 "subnet_id" : acctest.Representation {RepType : acctest .Required , Create : `${oci_core_subnet.test_subnet.id}` },
@@ -238,6 +239,7 @@ var (
238239 "ipv6address_ipv6subnet_cidr_pair_details" : acctest.RepresentationGroup {RepType : acctest .Optional , Group : CoreInstanceIpv6AddressIpv6SubnetCidrPairRepresentation },
239240 "nsg_ids" : acctest.Representation {RepType : acctest .Optional , Create : []string {`${oci_core_network_security_group.test_network_security_group.id}` }, Update : []string {}},
240241 "private_ip" : acctest.Representation {RepType : acctest .Optional , Create : `10.0.0.5` },
242+ "security_attributes" : acctest.Representation {RepType : acctest .Optional , Create : map [string ]any {"Oracle-DataSecurity-ZPR" : map [string ]any {"MaxEgressCount" : map [string ]string {"value" : "42" , "mode" : "audit" }}}, Update : map [string ]any {"MaxEgressCount" : map [string ]string {"value" : "43" , "mode" : "audit" }}},
241243 "skip_source_dest_check" : acctest.Representation {RepType : acctest .Optional , Create : `false` },
242244 "subnet_id" : acctest.Representation {RepType : acctest .Required , Create : `${oci_core_subnet.test_subnet.id}` },
243245 }
@@ -958,6 +960,7 @@ func TestCoreInstanceResource_basic(t *testing.T) {
958960 resource .TestCheckResourceAttr (resourceName , "create_vnic_details.0.hostname_label" , "hostnamelabel" ),
959961 resource .TestCheckResourceAttr (resourceName , "create_vnic_details.0.nsg_ids.#" , "1" ),
960962 resource .TestCheckResourceAttr (resourceName , "create_vnic_details.0.private_ip" , "10.0.0.5" ),
963+ resource .TestCheckResourceAttr (resourceName , "create_vnic_details.0.security_attributes.%" , "1" ),
961964 resource .TestCheckResourceAttr (resourceName , "create_vnic_details.0.skip_source_dest_check" , "false" ),
962965 resource .TestCheckResourceAttrSet (resourceName , "create_vnic_details.0.subnet_id" ),
963966 resource .TestCheckResourceAttrSet (resourceName , "dedicated_vm_host_id" ),
@@ -991,6 +994,7 @@ func TestCoreInstanceResource_basic(t *testing.T) {
991994 resource .TestCheckResourceAttrSet (resourceName , "launch_volume_attachments.0.volume_id" ),
992995 resource .TestCheckResourceAttr (resourceName , "metadata.%" , "1" ),
993996 resource .TestCheckResourceAttrSet (resourceName , "region" ),
997+ resource .TestCheckResourceAttr (resourceName , "security_attributes.%" , "1" ),
994998 resource .TestCheckResourceAttr (resourceName , "shape" , "VM.Standard2.1" ),
995999 resource .TestCheckResourceAttr (resourceName , "shape_config.#" , "1" ),
9961000 resource .TestCheckResourceAttr (resourceName , "shape_config.0.ocpus" , "1" ),
@@ -1071,6 +1075,7 @@ func TestCoreInstanceResource_basic(t *testing.T) {
10711075 resource .TestCheckResourceAttr (resourceName , "create_vnic_details.0.hostname_label" , "hostnamelabel" ),
10721076 resource .TestCheckResourceAttr (resourceName , "create_vnic_details.0.nsg_ids.#" , "1" ),
10731077 resource .TestCheckResourceAttr (resourceName , "create_vnic_details.0.private_ip" , "10.0.0.5" ),
1078+ resource .TestCheckResourceAttr (resourceName , "create_vnic_details.0.security_attributes.%" , "1" ),
10741079 resource .TestCheckResourceAttr (resourceName , "create_vnic_details.0.skip_source_dest_check" , "false" ),
10751080 resource .TestCheckResourceAttrSet (resourceName , "create_vnic_details.0.subnet_id" ),
10761081 resource .TestCheckResourceAttrSet (resourceName , "dedicated_vm_host_id" ),
@@ -1110,6 +1115,7 @@ func TestCoreInstanceResource_basic(t *testing.T) {
11101115 resource .TestCheckResourceAttr (resourceName , "launch_volume_attachments.0.launch_create_volume_details.0.vpus_per_gb" , "50" ),
11111116 resource .TestCheckResourceAttr (resourceName , "metadata.%" , "1" ),
11121117 resource .TestCheckResourceAttrSet (resourceName , "region" ),
1118+ resource .TestCheckResourceAttr (resourceName , "security_attributes.%" , "1" ),
11131119 resource .TestCheckResourceAttr (resourceName , "shape" , "VM.Standard2.1" ),
11141120 resource .TestCheckResourceAttr (resourceName , "shape_config.#" , "1" ),
11151121 resource .TestCheckResourceAttr (resourceName , "shape_config.0.ocpus" , "1" ),
@@ -1453,6 +1459,8 @@ func TestCoreInstanceResource_basic(t *testing.T) {
14531459 resource .TestCheckResourceAttr (datasourceName , "instances.0.launch_options.0.remote_data_volume_type" , "PARAVIRTUALIZED" ),
14541460 resource .TestCheckResourceAttr (datasourceName , "instances.0.metadata.%" , "2" ),
14551461 resource .TestCheckResourceAttrSet (datasourceName , "instances.0.region" ),
1462+ resource .TestCheckResourceAttr (datasourceName , "instances.0.security_attributes.%" , "1" ),
1463+ resource .TestCheckResourceAttrSet (datasourceName , "instances.0.security_attributes_state" ),
14561464 resource .TestCheckResourceAttr (datasourceName , "instances.0.shape" , "VM.Standard2.1" ),
14571465 resource .TestCheckResourceAttr (datasourceName , "instances.0.shape_config.#" , "1" ),
14581466 resource .TestCheckResourceAttrSet (datasourceName , "instances.0.shape_config.0.gpus" ),
@@ -1512,6 +1520,8 @@ func TestCoreInstanceResource_basic(t *testing.T) {
15121520 resource .TestCheckResourceAttr (singularDatasourceName , "launch_options.0.remote_data_volume_type" , "PARAVIRTUALIZED" ),
15131521 resource .TestCheckResourceAttr (singularDatasourceName , "metadata.%" , "2" ),
15141522 resource .TestCheckResourceAttrSet (singularDatasourceName , "region" ),
1523+ resource .TestCheckResourceAttr (singularDatasourceName , "security_attributes.%" , "1" ),
1524+ resource .TestCheckResourceAttrSet (singularDatasourceName , "security_attributes_state" ),
15151525 resource .TestCheckResourceAttr (singularDatasourceName , "shape" , "VM.Standard2.1" ),
15161526 resource .TestCheckResourceAttr (singularDatasourceName , "shape_config.#" , "1" ),
15171527 resource .TestCheckResourceAttrSet (singularDatasourceName , "shape_config.0.gpus" ),
0 commit comments