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

oci.DataSafe.UnifiedAuditPolicy

Explore with Pulumi AI

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

    This resource provides the Unified Audit Policy resource in Oracle Cloud Infrastructure Data Safe service.

    Creates the specified unified audit policy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testUnifiedAuditPolicy = new oci.datasafe.UnifiedAuditPolicy("test_unified_audit_policy", {
        compartmentId: compartmentId,
        conditions: [{
            entitySelection: unifiedAuditPolicyConditionsEntitySelection,
            entityType: unifiedAuditPolicyConditionsEntityType,
            operationStatus: unifiedAuditPolicyConditionsOperationStatus,
            attributeSetId: testAttributeSet.id,
            roleNames: unifiedAuditPolicyConditionsRoleNames,
            userNames: unifiedAuditPolicyConditionsUserNames,
        }],
        securityPolicyId: testSecurityPolicy.id,
        status: unifiedAuditPolicyStatus,
        unifiedAuditPolicyDefinitionId: testUnifiedAuditPolicyDefinition.id,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        description: unifiedAuditPolicyDescription,
        displayName: unifiedAuditPolicyDisplayName,
        freeformTags: {
            Department: "Finance",
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_unified_audit_policy = oci.datasafe.UnifiedAuditPolicy("test_unified_audit_policy",
        compartment_id=compartment_id,
        conditions=[{
            "entity_selection": unified_audit_policy_conditions_entity_selection,
            "entity_type": unified_audit_policy_conditions_entity_type,
            "operation_status": unified_audit_policy_conditions_operation_status,
            "attribute_set_id": test_attribute_set["id"],
            "role_names": unified_audit_policy_conditions_role_names,
            "user_names": unified_audit_policy_conditions_user_names,
        }],
        security_policy_id=test_security_policy["id"],
        status=unified_audit_policy_status,
        unified_audit_policy_definition_id=test_unified_audit_policy_definition["id"],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        description=unified_audit_policy_description,
        display_name=unified_audit_policy_display_name,
        freeform_tags={
            "Department": "Finance",
        })
    
    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.NewUnifiedAuditPolicy(ctx, "test_unified_audit_policy", &datasafe.UnifiedAuditPolicyArgs{
    			CompartmentId: pulumi.Any(compartmentId),
    			Conditions: datasafe.UnifiedAuditPolicyConditionArray{
    				&datasafe.UnifiedAuditPolicyConditionArgs{
    					EntitySelection: pulumi.Any(unifiedAuditPolicyConditionsEntitySelection),
    					EntityType:      pulumi.Any(unifiedAuditPolicyConditionsEntityType),
    					OperationStatus: pulumi.Any(unifiedAuditPolicyConditionsOperationStatus),
    					AttributeSetId:  pulumi.Any(testAttributeSet.Id),
    					RoleNames:       pulumi.Any(unifiedAuditPolicyConditionsRoleNames),
    					UserNames:       pulumi.Any(unifiedAuditPolicyConditionsUserNames),
    				},
    			},
    			SecurityPolicyId:               pulumi.Any(testSecurityPolicy.Id),
    			Status:                         pulumi.Any(unifiedAuditPolicyStatus),
    			UnifiedAuditPolicyDefinitionId: pulumi.Any(testUnifiedAuditPolicyDefinition.Id),
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			Description: pulumi.Any(unifiedAuditPolicyDescription),
    			DisplayName: pulumi.Any(unifiedAuditPolicyDisplayName),
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    		})
    		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 testUnifiedAuditPolicy = new Oci.DataSafe.UnifiedAuditPolicy("test_unified_audit_policy", new()
        {
            CompartmentId = compartmentId,
            Conditions = new[]
            {
                new Oci.DataSafe.Inputs.UnifiedAuditPolicyConditionArgs
                {
                    EntitySelection = unifiedAuditPolicyConditionsEntitySelection,
                    EntityType = unifiedAuditPolicyConditionsEntityType,
                    OperationStatus = unifiedAuditPolicyConditionsOperationStatus,
                    AttributeSetId = testAttributeSet.Id,
                    RoleNames = unifiedAuditPolicyConditionsRoleNames,
                    UserNames = unifiedAuditPolicyConditionsUserNames,
                },
            },
            SecurityPolicyId = testSecurityPolicy.Id,
            Status = unifiedAuditPolicyStatus,
            UnifiedAuditPolicyDefinitionId = testUnifiedAuditPolicyDefinition.Id,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            Description = unifiedAuditPolicyDescription,
            DisplayName = unifiedAuditPolicyDisplayName,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataSafe.UnifiedAuditPolicy;
    import com.pulumi.oci.DataSafe.UnifiedAuditPolicyArgs;
    import com.pulumi.oci.DataSafe.inputs.UnifiedAuditPolicyConditionArgs;
    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 testUnifiedAuditPolicy = new UnifiedAuditPolicy("testUnifiedAuditPolicy", UnifiedAuditPolicyArgs.builder()
                .compartmentId(compartmentId)
                .conditions(UnifiedAuditPolicyConditionArgs.builder()
                    .entitySelection(unifiedAuditPolicyConditionsEntitySelection)
                    .entityType(unifiedAuditPolicyConditionsEntityType)
                    .operationStatus(unifiedAuditPolicyConditionsOperationStatus)
                    .attributeSetId(testAttributeSet.id())
                    .roleNames(unifiedAuditPolicyConditionsRoleNames)
                    .userNames(unifiedAuditPolicyConditionsUserNames)
                    .build())
                .securityPolicyId(testSecurityPolicy.id())
                .status(unifiedAuditPolicyStatus)
                .unifiedAuditPolicyDefinitionId(testUnifiedAuditPolicyDefinition.id())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .description(unifiedAuditPolicyDescription)
                .displayName(unifiedAuditPolicyDisplayName)
                .freeformTags(Map.of("Department", "Finance"))
                .build());
    
        }
    }
    
    resources:
      testUnifiedAuditPolicy:
        type: oci:DataSafe:UnifiedAuditPolicy
        name: test_unified_audit_policy
        properties:
          compartmentId: ${compartmentId}
          conditions:
            - entitySelection: ${unifiedAuditPolicyConditionsEntitySelection}
              entityType: ${unifiedAuditPolicyConditionsEntityType}
              operationStatus: ${unifiedAuditPolicyConditionsOperationStatus}
              attributeSetId: ${testAttributeSet.id}
              roleNames: ${unifiedAuditPolicyConditionsRoleNames}
              userNames: ${unifiedAuditPolicyConditionsUserNames}
          securityPolicyId: ${testSecurityPolicy.id}
          status: ${unifiedAuditPolicyStatus}
          unifiedAuditPolicyDefinitionId: ${testUnifiedAuditPolicyDefinition.id}
          definedTags:
            Operations.CostCenter: '42'
          description: ${unifiedAuditPolicyDescription}
          displayName: ${unifiedAuditPolicyDisplayName}
          freeformTags:
            Department: Finance
    

    Create UnifiedAuditPolicy Resource

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

    Constructor syntax

    new UnifiedAuditPolicy(name: string, args: UnifiedAuditPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def UnifiedAuditPolicy(resource_name: str,
                           args: UnifiedAuditPolicyArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def UnifiedAuditPolicy(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           compartment_id: Optional[str] = None,
                           conditions: Optional[Sequence[UnifiedAuditPolicyConditionArgs]] = None,
                           security_policy_id: Optional[str] = None,
                           status: Optional[str] = None,
                           unified_audit_policy_definition_id: Optional[str] = None,
                           defined_tags: Optional[Mapping[str, str]] = None,
                           description: Optional[str] = None,
                           display_name: Optional[str] = None,
                           freeform_tags: Optional[Mapping[str, str]] = None)
    func NewUnifiedAuditPolicy(ctx *Context, name string, args UnifiedAuditPolicyArgs, opts ...ResourceOption) (*UnifiedAuditPolicy, error)
    public UnifiedAuditPolicy(string name, UnifiedAuditPolicyArgs args, CustomResourceOptions? opts = null)
    public UnifiedAuditPolicy(String name, UnifiedAuditPolicyArgs args)
    public UnifiedAuditPolicy(String name, UnifiedAuditPolicyArgs args, CustomResourceOptions options)
    
    type: oci:DataSafe:UnifiedAuditPolicy
    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 UnifiedAuditPolicyArgs
    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 UnifiedAuditPolicyArgs
    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 UnifiedAuditPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UnifiedAuditPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UnifiedAuditPolicyArgs
    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 unifiedAuditPolicyResource = new Oci.DataSafe.UnifiedAuditPolicy("unifiedAuditPolicyResource", new()
    {
        CompartmentId = "string",
        Conditions = new[]
        {
            new Oci.DataSafe.Inputs.UnifiedAuditPolicyConditionArgs
            {
                EntitySelection = "string",
                EntityType = "string",
                OperationStatus = "string",
                AttributeSetId = "string",
                RoleNames = new[]
                {
                    "string",
                },
                UserNames = new[]
                {
                    "string",
                },
            },
        },
        SecurityPolicyId = "string",
        Status = "string",
        UnifiedAuditPolicyDefinitionId = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
        Description = "string",
        DisplayName = "string",
        FreeformTags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := datasafe.NewUnifiedAuditPolicy(ctx, "unifiedAuditPolicyResource", &datasafe.UnifiedAuditPolicyArgs{
    	CompartmentId: pulumi.String("string"),
    	Conditions: datasafe.UnifiedAuditPolicyConditionArray{
    		&datasafe.UnifiedAuditPolicyConditionArgs{
    			EntitySelection: pulumi.String("string"),
    			EntityType:      pulumi.String("string"),
    			OperationStatus: pulumi.String("string"),
    			AttributeSetId:  pulumi.String("string"),
    			RoleNames: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			UserNames: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	SecurityPolicyId:               pulumi.String("string"),
    	Status:                         pulumi.String("string"),
    	UnifiedAuditPolicyDefinitionId: pulumi.String("string"),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	DisplayName: pulumi.String("string"),
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var unifiedAuditPolicyResource = new UnifiedAuditPolicy("unifiedAuditPolicyResource", UnifiedAuditPolicyArgs.builder()
        .compartmentId("string")
        .conditions(UnifiedAuditPolicyConditionArgs.builder()
            .entitySelection("string")
            .entityType("string")
            .operationStatus("string")
            .attributeSetId("string")
            .roleNames("string")
            .userNames("string")
            .build())
        .securityPolicyId("string")
        .status("string")
        .unifiedAuditPolicyDefinitionId("string")
        .definedTags(Map.of("string", "string"))
        .description("string")
        .displayName("string")
        .freeformTags(Map.of("string", "string"))
        .build());
    
    unified_audit_policy_resource = oci.datasafe.UnifiedAuditPolicy("unifiedAuditPolicyResource",
        compartment_id="string",
        conditions=[{
            "entity_selection": "string",
            "entity_type": "string",
            "operation_status": "string",
            "attribute_set_id": "string",
            "role_names": ["string"],
            "user_names": ["string"],
        }],
        security_policy_id="string",
        status="string",
        unified_audit_policy_definition_id="string",
        defined_tags={
            "string": "string",
        },
        description="string",
        display_name="string",
        freeform_tags={
            "string": "string",
        })
    
    const unifiedAuditPolicyResource = new oci.datasafe.UnifiedAuditPolicy("unifiedAuditPolicyResource", {
        compartmentId: "string",
        conditions: [{
            entitySelection: "string",
            entityType: "string",
            operationStatus: "string",
            attributeSetId: "string",
            roleNames: ["string"],
            userNames: ["string"],
        }],
        securityPolicyId: "string",
        status: "string",
        unifiedAuditPolicyDefinitionId: "string",
        definedTags: {
            string: "string",
        },
        description: "string",
        displayName: "string",
        freeformTags: {
            string: "string",
        },
    });
    
    type: oci:DataSafe:UnifiedAuditPolicy
    properties:
        compartmentId: string
        conditions:
            - attributeSetId: string
              entitySelection: string
              entityType: string
              operationStatus: string
              roleNames:
                - string
              userNames:
                - string
        definedTags:
            string: string
        description: string
        displayName: string
        freeformTags:
            string: string
        securityPolicyId: string
        status: string
        unifiedAuditPolicyDefinitionId: string
    

    UnifiedAuditPolicy 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 UnifiedAuditPolicy resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment in which to create the unified audit policy.
    Conditions List<UnifiedAuditPolicyCondition>
    (Updatable) Lists the audit policy provisioning conditions.
    SecurityPolicyId string
    The OCID of the security policy corresponding to the unified audit policy.
    Status string
    (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
    UnifiedAuditPolicyDefinitionId string

    The OCID of the associated unified audit policy definition.

    ** 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

    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 unified audit policy in Data Safe.
    DisplayName string
    (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
    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"}
    CompartmentId string
    (Updatable) The OCID of the compartment in which to create the unified audit policy.
    Conditions []UnifiedAuditPolicyConditionArgs
    (Updatable) Lists the audit policy provisioning conditions.
    SecurityPolicyId string
    The OCID of the security policy corresponding to the unified audit policy.
    Status string
    (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
    UnifiedAuditPolicyDefinitionId string

    The OCID of the associated unified audit policy definition.

    ** 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

    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 unified audit policy in Data Safe.
    DisplayName string
    (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
    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"}
    compartmentId String
    (Updatable) The OCID of the compartment in which to create the unified audit policy.
    conditions List<UnifiedAuditPolicyCondition>
    (Updatable) Lists the audit policy provisioning conditions.
    securityPolicyId String
    The OCID of the security policy corresponding to the unified audit policy.
    status String
    (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
    unifiedAuditPolicyDefinitionId String

    The OCID of the associated unified audit policy definition.

    ** 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

    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 unified audit policy in Data Safe.
    displayName String
    (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
    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"}
    compartmentId string
    (Updatable) The OCID of the compartment in which to create the unified audit policy.
    conditions UnifiedAuditPolicyCondition[]
    (Updatable) Lists the audit policy provisioning conditions.
    securityPolicyId string
    The OCID of the security policy corresponding to the unified audit policy.
    status string
    (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
    unifiedAuditPolicyDefinitionId string

    The OCID of the associated unified audit policy definition.

    ** 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

    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 unified audit policy in Data Safe.
    displayName string
    (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
    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"}
    compartment_id str
    (Updatable) The OCID of the compartment in which to create the unified audit policy.
    conditions Sequence[UnifiedAuditPolicyConditionArgs]
    (Updatable) Lists the audit policy provisioning conditions.
    security_policy_id str
    The OCID of the security policy corresponding to the unified audit policy.
    status str
    (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
    unified_audit_policy_definition_id str

    The OCID of the associated unified audit policy definition.

    ** 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

    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 unified audit policy in Data Safe.
    display_name str
    (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
    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"}
    compartmentId String
    (Updatable) The OCID of the compartment in which to create the unified audit policy.
    conditions List<Property Map>
    (Updatable) Lists the audit policy provisioning conditions.
    securityPolicyId String
    The OCID of the security policy corresponding to the unified audit policy.
    status String
    (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
    unifiedAuditPolicyDefinitionId String

    The OCID of the associated unified audit policy definition.

    ** 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

    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 unified audit policy in Data Safe.
    displayName String
    (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
    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"}

    Outputs

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

    EnabledEntities string
    Indicates on whom the audit policy is enabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsSeeded bool
    Indicates whether the unified audit policy is seeded or not.
    LifecycleDetails string
    The details of the current state of the unified audit policy in Data Safe.
    State string
    The current state of the unified audit policy.
    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 the unified audit policy was created, in the format defined by RFC3339.
    TimeUpdated string
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.
    EnabledEntities string
    Indicates on whom the audit policy is enabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsSeeded bool
    Indicates whether the unified audit policy is seeded or not.
    LifecycleDetails string
    The details of the current state of the unified audit policy in Data Safe.
    State string
    The current state of the unified audit policy.
    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 the unified audit policy was created, in the format defined by RFC3339.
    TimeUpdated string
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.
    enabledEntities String
    Indicates on whom the audit policy is enabled.
    id String
    The provider-assigned unique ID for this managed resource.
    isSeeded Boolean
    Indicates whether the unified audit policy is seeded or not.
    lifecycleDetails String
    The details of the current state of the unified audit policy in Data Safe.
    state String
    The current state of the unified audit policy.
    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 the unified audit policy was created, in the format defined by RFC3339.
    timeUpdated String
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.
    enabledEntities string
    Indicates on whom the audit policy is enabled.
    id string
    The provider-assigned unique ID for this managed resource.
    isSeeded boolean
    Indicates whether the unified audit policy is seeded or not.
    lifecycleDetails string
    The details of the current state of the unified audit policy in Data Safe.
    state string
    The current state of the unified audit policy.
    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 the unified audit policy was created, in the format defined by RFC3339.
    timeUpdated string
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.
    enabled_entities str
    Indicates on whom the audit policy is enabled.
    id str
    The provider-assigned unique ID for this managed resource.
    is_seeded bool
    Indicates whether the unified audit policy is seeded or not.
    lifecycle_details str
    The details of the current state of the unified audit policy in Data Safe.
    state str
    The current state of the unified audit policy.
    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 the unified audit policy was created, in the format defined by RFC3339.
    time_updated str
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.
    enabledEntities String
    Indicates on whom the audit policy is enabled.
    id String
    The provider-assigned unique ID for this managed resource.
    isSeeded Boolean
    Indicates whether the unified audit policy is seeded or not.
    lifecycleDetails String
    The details of the current state of the unified audit policy in Data Safe.
    state String
    The current state of the unified audit policy.
    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 the unified audit policy was created, in the format defined by RFC3339.
    timeUpdated String
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.

    Look up Existing UnifiedAuditPolicy Resource

    Get an existing UnifiedAuditPolicy 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?: UnifiedAuditPolicyState, opts?: CustomResourceOptions): UnifiedAuditPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            conditions: Optional[Sequence[UnifiedAuditPolicyConditionArgs]] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            enabled_entities: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            is_seeded: Optional[bool] = None,
            lifecycle_details: Optional[str] = None,
            security_policy_id: Optional[str] = None,
            state: Optional[str] = None,
            status: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None,
            unified_audit_policy_definition_id: Optional[str] = None) -> UnifiedAuditPolicy
    func GetUnifiedAuditPolicy(ctx *Context, name string, id IDInput, state *UnifiedAuditPolicyState, opts ...ResourceOption) (*UnifiedAuditPolicy, error)
    public static UnifiedAuditPolicy Get(string name, Input<string> id, UnifiedAuditPolicyState? state, CustomResourceOptions? opts = null)
    public static UnifiedAuditPolicy get(String name, Output<String> id, UnifiedAuditPolicyState state, CustomResourceOptions options)
    resources:  _:    type: oci:DataSafe:UnifiedAuditPolicy    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 in which to create the unified audit policy.
    Conditions List<UnifiedAuditPolicyCondition>
    (Updatable) Lists the audit policy provisioning conditions.
    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 unified audit policy in Data Safe.
    DisplayName string
    (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
    EnabledEntities string
    Indicates on whom the audit policy is enabled.
    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"}
    IsSeeded bool
    Indicates whether the unified audit policy is seeded or not.
    LifecycleDetails string
    The details of the current state of the unified audit policy in Data Safe.
    SecurityPolicyId string
    The OCID of the security policy corresponding to the unified audit policy.
    State string
    The current state of the unified audit policy.
    Status string
    (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
    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 the unified audit policy was created, in the format defined by RFC3339.
    TimeUpdated string
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.
    UnifiedAuditPolicyDefinitionId string

    The OCID of the associated unified audit policy definition.

    ** 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

    CompartmentId string
    (Updatable) The OCID of the compartment in which to create the unified audit policy.
    Conditions []UnifiedAuditPolicyConditionArgs
    (Updatable) Lists the audit policy provisioning conditions.
    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 unified audit policy in Data Safe.
    DisplayName string
    (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
    EnabledEntities string
    Indicates on whom the audit policy is enabled.
    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"}
    IsSeeded bool
    Indicates whether the unified audit policy is seeded or not.
    LifecycleDetails string
    The details of the current state of the unified audit policy in Data Safe.
    SecurityPolicyId string
    The OCID of the security policy corresponding to the unified audit policy.
    State string
    The current state of the unified audit policy.
    Status string
    (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
    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 the unified audit policy was created, in the format defined by RFC3339.
    TimeUpdated string
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.
    UnifiedAuditPolicyDefinitionId string

    The OCID of the associated unified audit policy definition.

    ** 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

    compartmentId String
    (Updatable) The OCID of the compartment in which to create the unified audit policy.
    conditions List<UnifiedAuditPolicyCondition>
    (Updatable) Lists the audit policy provisioning conditions.
    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 unified audit policy in Data Safe.
    displayName String
    (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
    enabledEntities String
    Indicates on whom the audit policy is enabled.
    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"}
    isSeeded Boolean
    Indicates whether the unified audit policy is seeded or not.
    lifecycleDetails String
    The details of the current state of the unified audit policy in Data Safe.
    securityPolicyId String
    The OCID of the security policy corresponding to the unified audit policy.
    state String
    The current state of the unified audit policy.
    status String
    (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
    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 the unified audit policy was created, in the format defined by RFC3339.
    timeUpdated String
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.
    unifiedAuditPolicyDefinitionId String

    The OCID of the associated unified audit policy definition.

    ** 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

    compartmentId string
    (Updatable) The OCID of the compartment in which to create the unified audit policy.
    conditions UnifiedAuditPolicyCondition[]
    (Updatable) Lists the audit policy provisioning conditions.
    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 unified audit policy in Data Safe.
    displayName string
    (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
    enabledEntities string
    Indicates on whom the audit policy is enabled.
    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"}
    isSeeded boolean
    Indicates whether the unified audit policy is seeded or not.
    lifecycleDetails string
    The details of the current state of the unified audit policy in Data Safe.
    securityPolicyId string
    The OCID of the security policy corresponding to the unified audit policy.
    state string
    The current state of the unified audit policy.
    status string
    (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
    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 the unified audit policy was created, in the format defined by RFC3339.
    timeUpdated string
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.
    unifiedAuditPolicyDefinitionId string

    The OCID of the associated unified audit policy definition.

    ** 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

    compartment_id str
    (Updatable) The OCID of the compartment in which to create the unified audit policy.
    conditions Sequence[UnifiedAuditPolicyConditionArgs]
    (Updatable) Lists the audit policy provisioning conditions.
    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 unified audit policy in Data Safe.
    display_name str
    (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
    enabled_entities str
    Indicates on whom the audit policy is enabled.
    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"}
    is_seeded bool
    Indicates whether the unified audit policy is seeded or not.
    lifecycle_details str
    The details of the current state of the unified audit policy in Data Safe.
    security_policy_id str
    The OCID of the security policy corresponding to the unified audit policy.
    state str
    The current state of the unified audit policy.
    status str
    (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
    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 the unified audit policy was created, in the format defined by RFC3339.
    time_updated str
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.
    unified_audit_policy_definition_id str

    The OCID of the associated unified audit policy definition.

    ** 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

    compartmentId String
    (Updatable) The OCID of the compartment in which to create the unified audit policy.
    conditions List<Property Map>
    (Updatable) Lists the audit policy provisioning conditions.
    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 unified audit policy in Data Safe.
    displayName String
    (Updatable) The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique.
    enabledEntities String
    Indicates on whom the audit policy is enabled.
    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"}
    isSeeded Boolean
    Indicates whether the unified audit policy is seeded or not.
    lifecycleDetails String
    The details of the current state of the unified audit policy in Data Safe.
    securityPolicyId String
    The OCID of the security policy corresponding to the unified audit policy.
    state String
    The current state of the unified audit policy.
    status String
    (Updatable) Indicates whether the unified audit policy has been enabled or disabled.
    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 the unified audit policy was created, in the format defined by RFC3339.
    timeUpdated String
    The last date and time the unified audit policy was updated, in the format defined by RFC3339.
    unifiedAuditPolicyDefinitionId String

    The OCID of the associated unified audit policy definition.

    ** 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

    Supporting Types

    UnifiedAuditPolicyCondition, UnifiedAuditPolicyConditionArgs

    EntitySelection string
    (Updatable) Specifies whether to include or exclude the specified users or roles.
    EntityType string
    (Updatable) The type of users or roles that the unified audit policy is applied to.
    OperationStatus string
    (Updatable) The operation status that the policy must be enabled for.
    AttributeSetId string
    (Updatable) The OCID of the attribute set.
    RoleNames List<string>
    (Updatable) List of roles that the policy must be enabled for.
    UserNames List<string>
    (Updatable) The list of users that the unified audit policy is enabled for.
    EntitySelection string
    (Updatable) Specifies whether to include or exclude the specified users or roles.
    EntityType string
    (Updatable) The type of users or roles that the unified audit policy is applied to.
    OperationStatus string
    (Updatable) The operation status that the policy must be enabled for.
    AttributeSetId string
    (Updatable) The OCID of the attribute set.
    RoleNames []string
    (Updatable) List of roles that the policy must be enabled for.
    UserNames []string
    (Updatable) The list of users that the unified audit policy is enabled for.
    entitySelection String
    (Updatable) Specifies whether to include or exclude the specified users or roles.
    entityType String
    (Updatable) The type of users or roles that the unified audit policy is applied to.
    operationStatus String
    (Updatable) The operation status that the policy must be enabled for.
    attributeSetId String
    (Updatable) The OCID of the attribute set.
    roleNames List<String>
    (Updatable) List of roles that the policy must be enabled for.
    userNames List<String>
    (Updatable) The list of users that the unified audit policy is enabled for.
    entitySelection string
    (Updatable) Specifies whether to include or exclude the specified users or roles.
    entityType string
    (Updatable) The type of users or roles that the unified audit policy is applied to.
    operationStatus string
    (Updatable) The operation status that the policy must be enabled for.
    attributeSetId string
    (Updatable) The OCID of the attribute set.
    roleNames string[]
    (Updatable) List of roles that the policy must be enabled for.
    userNames string[]
    (Updatable) The list of users that the unified audit policy is enabled for.
    entity_selection str
    (Updatable) Specifies whether to include or exclude the specified users or roles.
    entity_type str
    (Updatable) The type of users or roles that the unified audit policy is applied to.
    operation_status str
    (Updatable) The operation status that the policy must be enabled for.
    attribute_set_id str
    (Updatable) The OCID of the attribute set.
    role_names Sequence[str]
    (Updatable) List of roles that the policy must be enabled for.
    user_names Sequence[str]
    (Updatable) The list of users that the unified audit policy is enabled for.
    entitySelection String
    (Updatable) Specifies whether to include or exclude the specified users or roles.
    entityType String
    (Updatable) The type of users or roles that the unified audit policy is applied to.
    operationStatus String
    (Updatable) The operation status that the policy must be enabled for.
    attributeSetId String
    (Updatable) The OCID of the attribute set.
    roleNames List<String>
    (Updatable) List of roles that the policy must be enabled for.
    userNames List<String>
    (Updatable) The list of users that the unified audit policy is enabled for.

    Import

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

    $ pulumi import oci:DataSafe/unifiedAuditPolicy:UnifiedAuditPolicy test_unified_audit_policy "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