1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. SecurityPolicyConfig
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

oci.DataSafe.SecurityPolicyConfig

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi

    This resource provides the Security Policy Config resource in Oracle Cloud Infrastructure Data Safe service.

    Creates a new security policy configuration resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSecurityPolicyConfig = new oci.datasafe.SecurityPolicyConfig("test_security_policy_config", {
        compartmentId: compartmentId,
        securityPolicyId: testSecurityPolicy.id,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        description: securityPolicyConfigDescription,
        displayName: securityPolicyConfigDisplayName,
        firewallConfig: {
            excludeJob: securityPolicyConfigFirewallConfigExcludeJob,
            status: securityPolicyConfigFirewallConfigStatus,
            violationLogAutoPurge: securityPolicyConfigFirewallConfigViolationLogAutoPurge,
        },
        freeformTags: {
            Department: "Finance",
        },
        unifiedAuditPolicyConfig: {
            excludeDatasafeUser: securityPolicyConfigUnifiedAuditPolicyConfigExcludeDatasafeUser,
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_security_policy_config = oci.datasafe.SecurityPolicyConfig("test_security_policy_config",
        compartment_id=compartment_id,
        security_policy_id=test_security_policy["id"],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        description=security_policy_config_description,
        display_name=security_policy_config_display_name,
        firewall_config={
            "exclude_job": security_policy_config_firewall_config_exclude_job,
            "status": security_policy_config_firewall_config_status,
            "violation_log_auto_purge": security_policy_config_firewall_config_violation_log_auto_purge,
        },
        freeform_tags={
            "Department": "Finance",
        },
        unified_audit_policy_config={
            "exclude_datasafe_user": security_policy_config_unified_audit_policy_config_exclude_datasafe_user,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/datasafe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datasafe.NewSecurityPolicyConfig(ctx, "test_security_policy_config", &datasafe.SecurityPolicyConfigArgs{
    			CompartmentId:    pulumi.Any(compartmentId),
    			SecurityPolicyId: pulumi.Any(testSecurityPolicy.Id),
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			Description: pulumi.Any(securityPolicyConfigDescription),
    			DisplayName: pulumi.Any(securityPolicyConfigDisplayName),
    			FirewallConfig: &datasafe.SecurityPolicyConfigFirewallConfigArgs{
    				ExcludeJob:            pulumi.Any(securityPolicyConfigFirewallConfigExcludeJob),
    				Status:                pulumi.Any(securityPolicyConfigFirewallConfigStatus),
    				ViolationLogAutoPurge: pulumi.Any(securityPolicyConfigFirewallConfigViolationLogAutoPurge),
    			},
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    			UnifiedAuditPolicyConfig: &datasafe.SecurityPolicyConfigUnifiedAuditPolicyConfigArgs{
    				ExcludeDatasafeUser: pulumi.Any(securityPolicyConfigUnifiedAuditPolicyConfigExcludeDatasafeUser),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testSecurityPolicyConfig = new Oci.DataSafe.SecurityPolicyConfig("test_security_policy_config", new()
        {
            CompartmentId = compartmentId,
            SecurityPolicyId = testSecurityPolicy.Id,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            Description = securityPolicyConfigDescription,
            DisplayName = securityPolicyConfigDisplayName,
            FirewallConfig = new Oci.DataSafe.Inputs.SecurityPolicyConfigFirewallConfigArgs
            {
                ExcludeJob = securityPolicyConfigFirewallConfigExcludeJob,
                Status = securityPolicyConfigFirewallConfigStatus,
                ViolationLogAutoPurge = securityPolicyConfigFirewallConfigViolationLogAutoPurge,
            },
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            UnifiedAuditPolicyConfig = new Oci.DataSafe.Inputs.SecurityPolicyConfigUnifiedAuditPolicyConfigArgs
            {
                ExcludeDatasafeUser = securityPolicyConfigUnifiedAuditPolicyConfigExcludeDatasafeUser,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataSafe.SecurityPolicyConfig;
    import com.pulumi.oci.DataSafe.SecurityPolicyConfigArgs;
    import com.pulumi.oci.DataSafe.inputs.SecurityPolicyConfigFirewallConfigArgs;
    import com.pulumi.oci.DataSafe.inputs.SecurityPolicyConfigUnifiedAuditPolicyConfigArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testSecurityPolicyConfig = new SecurityPolicyConfig("testSecurityPolicyConfig", SecurityPolicyConfigArgs.builder()
                .compartmentId(compartmentId)
                .securityPolicyId(testSecurityPolicy.id())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .description(securityPolicyConfigDescription)
                .displayName(securityPolicyConfigDisplayName)
                .firewallConfig(SecurityPolicyConfigFirewallConfigArgs.builder()
                    .excludeJob(securityPolicyConfigFirewallConfigExcludeJob)
                    .status(securityPolicyConfigFirewallConfigStatus)
                    .violationLogAutoPurge(securityPolicyConfigFirewallConfigViolationLogAutoPurge)
                    .build())
                .freeformTags(Map.of("Department", "Finance"))
                .unifiedAuditPolicyConfig(SecurityPolicyConfigUnifiedAuditPolicyConfigArgs.builder()
                    .excludeDatasafeUser(securityPolicyConfigUnifiedAuditPolicyConfigExcludeDatasafeUser)
                    .build())
                .build());
    
        }
    }
    
    resources:
      testSecurityPolicyConfig:
        type: oci:DataSafe:SecurityPolicyConfig
        name: test_security_policy_config
        properties:
          compartmentId: ${compartmentId}
          securityPolicyId: ${testSecurityPolicy.id}
          definedTags:
            Operations.CostCenter: '42'
          description: ${securityPolicyConfigDescription}
          displayName: ${securityPolicyConfigDisplayName}
          firewallConfig:
            excludeJob: ${securityPolicyConfigFirewallConfigExcludeJob}
            status: ${securityPolicyConfigFirewallConfigStatus}
            violationLogAutoPurge: ${securityPolicyConfigFirewallConfigViolationLogAutoPurge}
          freeformTags:
            Department: Finance
          unifiedAuditPolicyConfig:
            excludeDatasafeUser: ${securityPolicyConfigUnifiedAuditPolicyConfigExcludeDatasafeUser}
    

    Create SecurityPolicyConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SecurityPolicyConfig(name: string, args: SecurityPolicyConfigArgs, opts?: CustomResourceOptions);
    @overload
    def SecurityPolicyConfig(resource_name: str,
                             args: SecurityPolicyConfigArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecurityPolicyConfig(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             compartment_id: Optional[str] = None,
                             security_policy_id: Optional[str] = None,
                             defined_tags: Optional[Mapping[str, str]] = None,
                             description: Optional[str] = None,
                             display_name: Optional[str] = None,
                             firewall_config: Optional[SecurityPolicyConfigFirewallConfigArgs] = None,
                             freeform_tags: Optional[Mapping[str, str]] = None,
                             unified_audit_policy_config: Optional[SecurityPolicyConfigUnifiedAuditPolicyConfigArgs] = None)
    func NewSecurityPolicyConfig(ctx *Context, name string, args SecurityPolicyConfigArgs, opts ...ResourceOption) (*SecurityPolicyConfig, error)
    public SecurityPolicyConfig(string name, SecurityPolicyConfigArgs args, CustomResourceOptions? opts = null)
    public SecurityPolicyConfig(String name, SecurityPolicyConfigArgs args)
    public SecurityPolicyConfig(String name, SecurityPolicyConfigArgs args, CustomResourceOptions options)
    
    type: oci:DataSafe:SecurityPolicyConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SecurityPolicyConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SecurityPolicyConfigArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SecurityPolicyConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecurityPolicyConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecurityPolicyConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var securityPolicyConfigResource = new Oci.DataSafe.SecurityPolicyConfig("securityPolicyConfigResource", new()
    {
        CompartmentId = "string",
        SecurityPolicyId = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
        Description = "string",
        DisplayName = "string",
        FirewallConfig = new Oci.DataSafe.Inputs.SecurityPolicyConfigFirewallConfigArgs
        {
            ExcludeJob = "string",
            Status = "string",
            TimeStatusUpdated = "string",
            ViolationLogAutoPurge = "string",
        },
        FreeformTags = 
        {
            { "string", "string" },
        },
        UnifiedAuditPolicyConfig = new Oci.DataSafe.Inputs.SecurityPolicyConfigUnifiedAuditPolicyConfigArgs
        {
            ExcludeDatasafeUser = "string",
        },
    });
    
    example, err := datasafe.NewSecurityPolicyConfig(ctx, "securityPolicyConfigResource", &datasafe.SecurityPolicyConfigArgs{
    	CompartmentId:    pulumi.String("string"),
    	SecurityPolicyId: pulumi.String("string"),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	DisplayName: pulumi.String("string"),
    	FirewallConfig: &datasafe.SecurityPolicyConfigFirewallConfigArgs{
    		ExcludeJob:            pulumi.String("string"),
    		Status:                pulumi.String("string"),
    		TimeStatusUpdated:     pulumi.String("string"),
    		ViolationLogAutoPurge: pulumi.String("string"),
    	},
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	UnifiedAuditPolicyConfig: &datasafe.SecurityPolicyConfigUnifiedAuditPolicyConfigArgs{
    		ExcludeDatasafeUser: pulumi.String("string"),
    	},
    })
    
    var securityPolicyConfigResource = new SecurityPolicyConfig("securityPolicyConfigResource", SecurityPolicyConfigArgs.builder()
        .compartmentId("string")
        .securityPolicyId("string")
        .definedTags(Map.of("string", "string"))
        .description("string")
        .displayName("string")
        .firewallConfig(SecurityPolicyConfigFirewallConfigArgs.builder()
            .excludeJob("string")
            .status("string")
            .timeStatusUpdated("string")
            .violationLogAutoPurge("string")
            .build())
        .freeformTags(Map.of("string", "string"))
        .unifiedAuditPolicyConfig(SecurityPolicyConfigUnifiedAuditPolicyConfigArgs.builder()
            .excludeDatasafeUser("string")
            .build())
        .build());
    
    security_policy_config_resource = oci.datasafe.SecurityPolicyConfig("securityPolicyConfigResource",
        compartment_id="string",
        security_policy_id="string",
        defined_tags={
            "string": "string",
        },
        description="string",
        display_name="string",
        firewall_config={
            "exclude_job": "string",
            "status": "string",
            "time_status_updated": "string",
            "violation_log_auto_purge": "string",
        },
        freeform_tags={
            "string": "string",
        },
        unified_audit_policy_config={
            "exclude_datasafe_user": "string",
        })
    
    const securityPolicyConfigResource = new oci.datasafe.SecurityPolicyConfig("securityPolicyConfigResource", {
        compartmentId: "string",
        securityPolicyId: "string",
        definedTags: {
            string: "string",
        },
        description: "string",
        displayName: "string",
        firewallConfig: {
            excludeJob: "string",
            status: "string",
            timeStatusUpdated: "string",
            violationLogAutoPurge: "string",
        },
        freeformTags: {
            string: "string",
        },
        unifiedAuditPolicyConfig: {
            excludeDatasafeUser: "string",
        },
    });
    
    type: oci:DataSafe:SecurityPolicyConfig
    properties:
        compartmentId: string
        definedTags:
            string: string
        description: string
        displayName: string
        firewallConfig:
            excludeJob: string
            status: string
            timeStatusUpdated: string
            violationLogAutoPurge: string
        freeformTags:
            string: string
        securityPolicyId: string
        unifiedAuditPolicyConfig:
            excludeDatasafeUser: string
    

    SecurityPolicyConfig Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SecurityPolicyConfig resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment containing the security policy configuration.
    SecurityPolicyId string
    The OCID of the security policy corresponding to the security policy configuration.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) The description of the security policy.
    DisplayName string
    (Updatable) The display name of the security policy configuration. The name does not have to be unique, and it is changeable.
    FirewallConfig SecurityPolicyConfigFirewallConfig
    (Updatable) Details to update the SQL Firewall configuration.
    FreeformTags Dictionary<string, string>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    UnifiedAuditPolicyConfig SecurityPolicyConfigUnifiedAuditPolicyConfig
    (Updatable) The unified audit policy related configurations.
    CompartmentId string
    (Updatable) The OCID of the compartment containing the security policy configuration.
    SecurityPolicyId string
    The OCID of the security policy corresponding to the security policy configuration.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) The description of the security policy.
    DisplayName string
    (Updatable) The display name of the security policy configuration. The name does not have to be unique, and it is changeable.
    FirewallConfig SecurityPolicyConfigFirewallConfigArgs
    (Updatable) Details to update the SQL Firewall configuration.
    FreeformTags map[string]string
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    UnifiedAuditPolicyConfig SecurityPolicyConfigUnifiedAuditPolicyConfigArgs
    (Updatable) The unified audit policy related configurations.
    compartmentId String
    (Updatable) The OCID of the compartment containing the security policy configuration.
    securityPolicyId String
    The OCID of the security policy corresponding to the security policy configuration.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) The description of the security policy.
    displayName String
    (Updatable) The display name of the security policy configuration. The name does not have to be unique, and it is changeable.
    firewallConfig SecurityPolicyConfigFirewallConfig
    (Updatable) Details to update the SQL Firewall configuration.
    freeformTags Map<String,String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    unifiedAuditPolicyConfig SecurityPolicyConfigUnifiedAuditPolicyConfig
    (Updatable) The unified audit policy related configurations.
    compartmentId string
    (Updatable) The OCID of the compartment containing the security policy configuration.
    securityPolicyId string
    The OCID of the security policy corresponding to the security policy configuration.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description string
    (Updatable) The description of the security policy.
    displayName string
    (Updatable) The display name of the security policy configuration. The name does not have to be unique, and it is changeable.
    firewallConfig SecurityPolicyConfigFirewallConfig
    (Updatable) Details to update the SQL Firewall configuration.
    freeformTags {[key: string]: string}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    unifiedAuditPolicyConfig SecurityPolicyConfigUnifiedAuditPolicyConfig
    (Updatable) The unified audit policy related configurations.
    compartment_id str
    (Updatable) The OCID of the compartment containing the security policy configuration.
    security_policy_id str
    The OCID of the security policy corresponding to the security policy configuration.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description str
    (Updatable) The description of the security policy.
    display_name str
    (Updatable) The display name of the security policy configuration. The name does not have to be unique, and it is changeable.
    firewall_config SecurityPolicyConfigFirewallConfigArgs
    (Updatable) Details to update the SQL Firewall configuration.
    freeform_tags Mapping[str, str]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    unified_audit_policy_config SecurityPolicyConfigUnifiedAuditPolicyConfigArgs
    (Updatable) The unified audit policy related configurations.
    compartmentId String
    (Updatable) The OCID of the compartment containing the security policy configuration.
    securityPolicyId String
    The OCID of the security policy corresponding to the security policy configuration.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) The description of the security policy.
    displayName String
    (Updatable) The display name of the security policy configuration. The name does not have to be unique, and it is changeable.
    firewallConfig Property Map
    (Updatable) Details to update the SQL Firewall configuration.
    freeformTags Map<String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    unifiedAuditPolicyConfig Property Map
    (Updatable) The unified audit policy related configurations.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecurityPolicyConfig resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    Details about the current state of the security policy configuration.
    State string
    The current state of the security policy configuration.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the security policy configuration was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    Details about the current state of the security policy configuration.
    State string
    The current state of the security policy configuration.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the security policy configuration was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    Details about the current state of the security policy configuration.
    state String
    The current state of the security policy configuration.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the security policy configuration was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails string
    Details about the current state of the security policy configuration.
    state string
    The current state of the security policy configuration.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time the security policy configuration was created, in the format defined by RFC3339.
    timeUpdated string
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_details str
    Details about the current state of the security policy configuration.
    state str
    The current state of the security policy configuration.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time the security policy configuration was created, in the format defined by RFC3339.
    time_updated str
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    Details about the current state of the security policy configuration.
    state String
    The current state of the security policy configuration.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the security policy configuration was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.

    Look up Existing SecurityPolicyConfig Resource

    Get an existing SecurityPolicyConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SecurityPolicyConfigState, opts?: CustomResourceOptions): SecurityPolicyConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            firewall_config: Optional[SecurityPolicyConfigFirewallConfigArgs] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            lifecycle_details: Optional[str] = None,
            security_policy_id: Optional[str] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None,
            unified_audit_policy_config: Optional[SecurityPolicyConfigUnifiedAuditPolicyConfigArgs] = None) -> SecurityPolicyConfig
    func GetSecurityPolicyConfig(ctx *Context, name string, id IDInput, state *SecurityPolicyConfigState, opts ...ResourceOption) (*SecurityPolicyConfig, error)
    public static SecurityPolicyConfig Get(string name, Input<string> id, SecurityPolicyConfigState? state, CustomResourceOptions? opts = null)
    public static SecurityPolicyConfig get(String name, Output<String> id, SecurityPolicyConfigState state, CustomResourceOptions options)
    resources:  _:    type: oci:DataSafe:SecurityPolicyConfig    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CompartmentId string
    (Updatable) The OCID of the compartment containing the security policy configuration.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) The description of the security policy.
    DisplayName string
    (Updatable) The display name of the security policy configuration. The name does not have to be unique, and it is changeable.
    FirewallConfig SecurityPolicyConfigFirewallConfig
    (Updatable) Details to update the SQL Firewall configuration.
    FreeformTags Dictionary<string, string>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    LifecycleDetails string
    Details about the current state of the security policy configuration.
    SecurityPolicyId string
    The OCID of the security policy corresponding to the security policy configuration.
    State string
    The current state of the security policy configuration.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the security policy configuration was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.
    UnifiedAuditPolicyConfig SecurityPolicyConfigUnifiedAuditPolicyConfig
    (Updatable) The unified audit policy related configurations.
    CompartmentId string
    (Updatable) The OCID of the compartment containing the security policy configuration.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) The description of the security policy.
    DisplayName string
    (Updatable) The display name of the security policy configuration. The name does not have to be unique, and it is changeable.
    FirewallConfig SecurityPolicyConfigFirewallConfigArgs
    (Updatable) Details to update the SQL Firewall configuration.
    FreeformTags map[string]string
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    LifecycleDetails string
    Details about the current state of the security policy configuration.
    SecurityPolicyId string
    The OCID of the security policy corresponding to the security policy configuration.
    State string
    The current state of the security policy configuration.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the security policy configuration was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.
    UnifiedAuditPolicyConfig SecurityPolicyConfigUnifiedAuditPolicyConfigArgs
    (Updatable) The unified audit policy related configurations.
    compartmentId String
    (Updatable) The OCID of the compartment containing the security policy configuration.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) The description of the security policy.
    displayName String
    (Updatable) The display name of the security policy configuration. The name does not have to be unique, and it is changeable.
    firewallConfig SecurityPolicyConfigFirewallConfig
    (Updatable) Details to update the SQL Firewall configuration.
    freeformTags Map<String,String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    lifecycleDetails String
    Details about the current state of the security policy configuration.
    securityPolicyId String
    The OCID of the security policy corresponding to the security policy configuration.
    state String
    The current state of the security policy configuration.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the security policy configuration was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.
    unifiedAuditPolicyConfig SecurityPolicyConfigUnifiedAuditPolicyConfig
    (Updatable) The unified audit policy related configurations.
    compartmentId string
    (Updatable) The OCID of the compartment containing the security policy configuration.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description string
    (Updatable) The description of the security policy.
    displayName string
    (Updatable) The display name of the security policy configuration. The name does not have to be unique, and it is changeable.
    firewallConfig SecurityPolicyConfigFirewallConfig
    (Updatable) Details to update the SQL Firewall configuration.
    freeformTags {[key: string]: string}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    lifecycleDetails string
    Details about the current state of the security policy configuration.
    securityPolicyId string
    The OCID of the security policy corresponding to the security policy configuration.
    state string
    The current state of the security policy configuration.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time the security policy configuration was created, in the format defined by RFC3339.
    timeUpdated string
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.
    unifiedAuditPolicyConfig SecurityPolicyConfigUnifiedAuditPolicyConfig
    (Updatable) The unified audit policy related configurations.
    compartment_id str
    (Updatable) The OCID of the compartment containing the security policy configuration.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description str
    (Updatable) The description of the security policy.
    display_name str
    (Updatable) The display name of the security policy configuration. The name does not have to be unique, and it is changeable.
    firewall_config SecurityPolicyConfigFirewallConfigArgs
    (Updatable) Details to update the SQL Firewall configuration.
    freeform_tags Mapping[str, str]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    lifecycle_details str
    Details about the current state of the security policy configuration.
    security_policy_id str
    The OCID of the security policy corresponding to the security policy configuration.
    state str
    The current state of the security policy configuration.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time the security policy configuration was created, in the format defined by RFC3339.
    time_updated str
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.
    unified_audit_policy_config SecurityPolicyConfigUnifiedAuditPolicyConfigArgs
    (Updatable) The unified audit policy related configurations.
    compartmentId String
    (Updatable) The OCID of the compartment containing the security policy configuration.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) The description of the security policy.
    displayName String
    (Updatable) The display name of the security policy configuration. The name does not have to be unique, and it is changeable.
    firewallConfig Property Map
    (Updatable) Details to update the SQL Firewall configuration.
    freeformTags Map<String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    lifecycleDetails String
    Details about the current state of the security policy configuration.
    securityPolicyId String
    The OCID of the security policy corresponding to the security policy configuration.
    state String
    The current state of the security policy configuration.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the security policy configuration was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the security policy configuration was last updated, in the format defined by RFC3339.
    unifiedAuditPolicyConfig Property Map
    (Updatable) The unified audit policy related configurations.

    Supporting Types

    SecurityPolicyConfigFirewallConfig, SecurityPolicyConfigFirewallConfigArgs

    ExcludeJob string
    (Updatable) Specifies whether the firewall should include or exclude the database internal job activities.
    Status string
    (Updatable) Specifies whether the firewall is enabled or disabled.
    TimeStatusUpdated string
    The date and time the firewall configuration was last updated, in the format defined by RFC3339.
    ViolationLogAutoPurge string
    (Updatable) Specifies whether Data Safe should automatically purge the violation logs from the database after collecting the violation logs and persisting them in Data Safe.
    ExcludeJob string
    (Updatable) Specifies whether the firewall should include or exclude the database internal job activities.
    Status string
    (Updatable) Specifies whether the firewall is enabled or disabled.
    TimeStatusUpdated string
    The date and time the firewall configuration was last updated, in the format defined by RFC3339.
    ViolationLogAutoPurge string
    (Updatable) Specifies whether Data Safe should automatically purge the violation logs from the database after collecting the violation logs and persisting them in Data Safe.
    excludeJob String
    (Updatable) Specifies whether the firewall should include or exclude the database internal job activities.
    status String
    (Updatable) Specifies whether the firewall is enabled or disabled.
    timeStatusUpdated String
    The date and time the firewall configuration was last updated, in the format defined by RFC3339.
    violationLogAutoPurge String
    (Updatable) Specifies whether Data Safe should automatically purge the violation logs from the database after collecting the violation logs and persisting them in Data Safe.
    excludeJob string
    (Updatable) Specifies whether the firewall should include or exclude the database internal job activities.
    status string
    (Updatable) Specifies whether the firewall is enabled or disabled.
    timeStatusUpdated string
    The date and time the firewall configuration was last updated, in the format defined by RFC3339.
    violationLogAutoPurge string
    (Updatable) Specifies whether Data Safe should automatically purge the violation logs from the database after collecting the violation logs and persisting them in Data Safe.
    exclude_job str
    (Updatable) Specifies whether the firewall should include or exclude the database internal job activities.
    status str
    (Updatable) Specifies whether the firewall is enabled or disabled.
    time_status_updated str
    The date and time the firewall configuration was last updated, in the format defined by RFC3339.
    violation_log_auto_purge str
    (Updatable) Specifies whether Data Safe should automatically purge the violation logs from the database after collecting the violation logs and persisting them in Data Safe.
    excludeJob String
    (Updatable) Specifies whether the firewall should include or exclude the database internal job activities.
    status String
    (Updatable) Specifies whether the firewall is enabled or disabled.
    timeStatusUpdated String
    The date and time the firewall configuration was last updated, in the format defined by RFC3339.
    violationLogAutoPurge String
    (Updatable) Specifies whether Data Safe should automatically purge the violation logs from the database after collecting the violation logs and persisting them in Data Safe.

    SecurityPolicyConfigUnifiedAuditPolicyConfig, SecurityPolicyConfigUnifiedAuditPolicyConfigArgs

    ExcludeDatasafeUser string

    (Updatable) Specifies whether the Data Safe service account on the target database should be excluded in the unified audit policy.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ExcludeDatasafeUser string

    (Updatable) Specifies whether the Data Safe service account on the target database should be excluded in the unified audit policy.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    excludeDatasafeUser String

    (Updatable) Specifies whether the Data Safe service account on the target database should be excluded in the unified audit policy.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    excludeDatasafeUser string

    (Updatable) Specifies whether the Data Safe service account on the target database should be excluded in the unified audit policy.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    exclude_datasafe_user str

    (Updatable) Specifies whether the Data Safe service account on the target database should be excluded in the unified audit policy.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    excludeDatasafeUser String

    (Updatable) Specifies whether the Data Safe service account on the target database should be excluded in the unified audit policy.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Import

    SecurityPolicyConfigs can be imported using the id, e.g.

    $ pulumi import oci:DataSafe/securityPolicyConfig:SecurityPolicyConfig test_security_policy_config "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.7.0 published on Saturday, Sep 13, 2025 by Pulumi