1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. AuditPolicyManagement
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.DataSafe.AuditPolicyManagement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

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

    Updates the audit policy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAuditPolicyManagement = new oci.datasafe.AuditPolicyManagement("test_audit_policy_management", {
        compartmentId: compartmentId,
        targetId: testTargetDatabase.id,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        description: auditPolicyManagementDescription,
        displayName: auditPolicyManagementDisplayName,
        freeformTags: {
            Department: "Finance",
        },
        retrieveFromTargetTrigger: true,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_audit_policy_management = oci.data_safe.AuditPolicyManagement("test_audit_policy_management",
        compartment_id=compartment_id,
        target_id=test_target_database["id"],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        description=audit_policy_management_description,
        display_name=audit_policy_management_display_name,
        freeform_tags={
            "Department": "Finance",
        },
        retrieve_from_target_trigger=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DataSafe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DataSafe.NewAuditPolicyManagement(ctx, "test_audit_policy_management", &DataSafe.AuditPolicyManagementArgs{
    			CompartmentId: pulumi.Any(compartmentId),
    			TargetId:      pulumi.Any(testTargetDatabase.Id),
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			Description: pulumi.Any(auditPolicyManagementDescription),
    			DisplayName: pulumi.Any(auditPolicyManagementDisplayName),
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    			RetrieveFromTargetTrigger: pulumi.Bool(true),
    		})
    		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 testAuditPolicyManagement = new Oci.DataSafe.AuditPolicyManagement("test_audit_policy_management", new()
        {
            CompartmentId = compartmentId,
            TargetId = testTargetDatabase.Id,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            Description = auditPolicyManagementDescription,
            DisplayName = auditPolicyManagementDisplayName,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            RetrieveFromTargetTrigger = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataSafe.AuditPolicyManagement;
    import com.pulumi.oci.DataSafe.AuditPolicyManagementArgs;
    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 testAuditPolicyManagement = new AuditPolicyManagement("testAuditPolicyManagement", AuditPolicyManagementArgs.builder()
                .compartmentId(compartmentId)
                .targetId(testTargetDatabase.id())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .description(auditPolicyManagementDescription)
                .displayName(auditPolicyManagementDisplayName)
                .freeformTags(Map.of("Department", "Finance"))
                .retrieveFromTargetTrigger(true)
                .build());
    
        }
    }
    
    resources:
      testAuditPolicyManagement:
        type: oci:DataSafe:AuditPolicyManagement
        name: test_audit_policy_management
        properties:
          compartmentId: ${compartmentId}
          targetId: ${testTargetDatabase.id}
          definedTags:
            Operations.CostCenter: '42'
          description: ${auditPolicyManagementDescription}
          displayName: ${auditPolicyManagementDisplayName}
          freeformTags:
            Department: Finance
          retrieveFromTargetTrigger: true
    

    Create AuditPolicyManagement Resource

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

    Constructor syntax

    new AuditPolicyManagement(name: string, args?: AuditPolicyManagementArgs, opts?: CustomResourceOptions);
    @overload
    def AuditPolicyManagement(resource_name: str,
                              args: Optional[AuditPolicyManagementArgs] = None,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def AuditPolicyManagement(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              audit_conditions: Optional[Sequence[_datasafe.AuditPolicyManagementAuditConditionArgs]] = None,
                              compartment_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,
                              is_data_safe_service_account_excluded: Optional[bool] = None,
                              provision_trigger: Optional[bool] = None,
                              retrieve_from_target_trigger: Optional[bool] = None,
                              target_id: Optional[str] = None)
    func NewAuditPolicyManagement(ctx *Context, name string, args *AuditPolicyManagementArgs, opts ...ResourceOption) (*AuditPolicyManagement, error)
    public AuditPolicyManagement(string name, AuditPolicyManagementArgs? args = null, CustomResourceOptions? opts = null)
    public AuditPolicyManagement(String name, AuditPolicyManagementArgs args)
    public AuditPolicyManagement(String name, AuditPolicyManagementArgs args, CustomResourceOptions options)
    
    type: oci:DataSafe:AuditPolicyManagement
    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 AuditPolicyManagementArgs
    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 AuditPolicyManagementArgs
    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 AuditPolicyManagementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AuditPolicyManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AuditPolicyManagementArgs
    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 auditPolicyManagementResource = new Oci.DataSafe.AuditPolicyManagement("auditPolicyManagementResource", new()
    {
        AuditConditions = new[]
        {
            new Oci.DataSafe.Inputs.AuditPolicyManagementAuditConditionArgs
            {
                AuditPolicyName = "string",
                EnableConditions = new[]
                {
                    new Oci.DataSafe.Inputs.AuditPolicyManagementAuditConditionEnableConditionArgs
                    {
                        EntityNames = new[]
                        {
                            "string",
                        },
                        EntitySelection = "string",
                        EntityType = "string",
                        OperationStatus = "string",
                    },
                },
                IsDataSafeServiceAccountAudited = false,
                IsEnabled = false,
                IsPrivUsersManagedByDataSafe = false,
            },
        },
        CompartmentId = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
        Description = "string",
        DisplayName = "string",
        FreeformTags = 
        {
            { "string", "string" },
        },
        IsDataSafeServiceAccountExcluded = false,
        ProvisionTrigger = false,
        RetrieveFromTargetTrigger = false,
        TargetId = "string",
    });
    
    example, err := DataSafe.NewAuditPolicyManagement(ctx, "auditPolicyManagementResource", &DataSafe.AuditPolicyManagementArgs{
    	AuditConditions: datasafe.AuditPolicyManagementAuditConditionArray{
    		&datasafe.AuditPolicyManagementAuditConditionArgs{
    			AuditPolicyName: pulumi.String("string"),
    			EnableConditions: datasafe.AuditPolicyManagementAuditConditionEnableConditionArray{
    				&datasafe.AuditPolicyManagementAuditConditionEnableConditionArgs{
    					EntityNames: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    					EntitySelection: pulumi.String("string"),
    					EntityType:      pulumi.String("string"),
    					OperationStatus: pulumi.String("string"),
    				},
    			},
    			IsDataSafeServiceAccountAudited: pulumi.Bool(false),
    			IsEnabled:                       pulumi.Bool(false),
    			IsPrivUsersManagedByDataSafe:    pulumi.Bool(false),
    		},
    	},
    	CompartmentId: 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"),
    	},
    	IsDataSafeServiceAccountExcluded: pulumi.Bool(false),
    	ProvisionTrigger:                 pulumi.Bool(false),
    	RetrieveFromTargetTrigger:        pulumi.Bool(false),
    	TargetId:                         pulumi.String("string"),
    })
    
    var auditPolicyManagementResource = new AuditPolicyManagement("auditPolicyManagementResource", AuditPolicyManagementArgs.builder()
        .auditConditions(AuditPolicyManagementAuditConditionArgs.builder()
            .auditPolicyName("string")
            .enableConditions(AuditPolicyManagementAuditConditionEnableConditionArgs.builder()
                .entityNames("string")
                .entitySelection("string")
                .entityType("string")
                .operationStatus("string")
                .build())
            .isDataSafeServiceAccountAudited(false)
            .isEnabled(false)
            .isPrivUsersManagedByDataSafe(false)
            .build())
        .compartmentId("string")
        .definedTags(Map.of("string", "string"))
        .description("string")
        .displayName("string")
        .freeformTags(Map.of("string", "string"))
        .isDataSafeServiceAccountExcluded(false)
        .provisionTrigger(false)
        .retrieveFromTargetTrigger(false)
        .targetId("string")
        .build());
    
    audit_policy_management_resource = oci.data_safe.AuditPolicyManagement("auditPolicyManagementResource",
        audit_conditions=[oci.data_safe.AuditPolicyManagementAuditConditionArgs(
            audit_policy_name="string",
            enable_conditions=[oci.data_safe.AuditPolicyManagementAuditConditionEnableConditionArgs(
                entity_names=["string"],
                entity_selection="string",
                entity_type="string",
                operation_status="string",
            )],
            is_data_safe_service_account_audited=False,
            is_enabled=False,
            is_priv_users_managed_by_data_safe=False,
        )],
        compartment_id="string",
        defined_tags={
            "string": "string",
        },
        description="string",
        display_name="string",
        freeform_tags={
            "string": "string",
        },
        is_data_safe_service_account_excluded=False,
        provision_trigger=False,
        retrieve_from_target_trigger=False,
        target_id="string")
    
    const auditPolicyManagementResource = new oci.datasafe.AuditPolicyManagement("auditPolicyManagementResource", {
        auditConditions: [{
            auditPolicyName: "string",
            enableConditions: [{
                entityNames: ["string"],
                entitySelection: "string",
                entityType: "string",
                operationStatus: "string",
            }],
            isDataSafeServiceAccountAudited: false,
            isEnabled: false,
            isPrivUsersManagedByDataSafe: false,
        }],
        compartmentId: "string",
        definedTags: {
            string: "string",
        },
        description: "string",
        displayName: "string",
        freeformTags: {
            string: "string",
        },
        isDataSafeServiceAccountExcluded: false,
        provisionTrigger: false,
        retrieveFromTargetTrigger: false,
        targetId: "string",
    });
    
    type: oci:DataSafe:AuditPolicyManagement
    properties:
        auditConditions:
            - auditPolicyName: string
              enableConditions:
                - entityNames:
                    - string
                  entitySelection: string
                  entityType: string
                  operationStatus: string
              isDataSafeServiceAccountAudited: false
              isEnabled: false
              isPrivUsersManagedByDataSafe: false
        compartmentId: string
        definedTags:
            string: string
        description: string
        displayName: string
        freeformTags:
            string: string
        isDataSafeServiceAccountExcluded: false
        provisionTrigger: false
        retrieveFromTargetTrigger: false
        targetId: string
    

    AuditPolicyManagement Resource Properties

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

    Inputs

    The AuditPolicyManagement resource accepts the following input properties:

    AuditConditions List<AuditPolicyManagementAuditCondition>
    Required when provision_trigger is set. Lists the audit policy provisioning conditions for the target database.
    CompartmentId string
    The OCID of the compartment containing the target.
    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 audit policy.
    DisplayName string
    (Updatable) The display name of the audit policy. The name does not have to be unique, and it is changeable.
    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"}
    IsDataSafeServiceAccountExcluded bool
    Option provided to users at the target to indicate whether the Data Safe service account has to be excluded while provisioning the audit policies.
    ProvisionTrigger bool
    (Updatable) An optional property when set to true triggers Provision.
    RetrieveFromTargetTrigger bool
    (Updatable) An optional property when set to true triggers Retrieve From Target.
    TargetId string
    Unique target identifier.
    AuditConditions []AuditPolicyManagementAuditConditionArgs
    Required when provision_trigger is set. Lists the audit policy provisioning conditions for the target database.
    CompartmentId string
    The OCID of the compartment containing the target.
    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 audit policy.
    DisplayName string
    (Updatable) The display name of the audit policy. The name does not have to be unique, and it is changeable.
    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"}
    IsDataSafeServiceAccountExcluded bool
    Option provided to users at the target to indicate whether the Data Safe service account has to be excluded while provisioning the audit policies.
    ProvisionTrigger bool
    (Updatable) An optional property when set to true triggers Provision.
    RetrieveFromTargetTrigger bool
    (Updatable) An optional property when set to true triggers Retrieve From Target.
    TargetId string
    Unique target identifier.
    auditConditions List<AuditPolicyManagementAuditCondition>
    Required when provision_trigger is set. Lists the audit policy provisioning conditions for the target database.
    compartmentId String
    The OCID of the compartment containing the target.
    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 audit policy.
    displayName String
    (Updatable) The display name of the audit policy. The name does not have to be unique, and it is changeable.
    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"}
    isDataSafeServiceAccountExcluded Boolean
    Option provided to users at the target to indicate whether the Data Safe service account has to be excluded while provisioning the audit policies.
    provisionTrigger Boolean
    (Updatable) An optional property when set to true triggers Provision.
    retrieveFromTargetTrigger Boolean
    (Updatable) An optional property when set to true triggers Retrieve From Target.
    targetId String
    Unique target identifier.
    auditConditions AuditPolicyManagementAuditCondition[]
    Required when provision_trigger is set. Lists the audit policy provisioning conditions for the target database.
    compartmentId string
    The OCID of the compartment containing the target.
    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 audit policy.
    displayName string
    (Updatable) The display name of the audit policy. The name does not have to be unique, and it is changeable.
    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"}
    isDataSafeServiceAccountExcluded boolean
    Option provided to users at the target to indicate whether the Data Safe service account has to be excluded while provisioning the audit policies.
    provisionTrigger boolean
    (Updatable) An optional property when set to true triggers Provision.
    retrieveFromTargetTrigger boolean
    (Updatable) An optional property when set to true triggers Retrieve From Target.
    targetId string
    Unique target identifier.
    audit_conditions Sequence[datasafe.AuditPolicyManagementAuditConditionArgs]
    Required when provision_trigger is set. Lists the audit policy provisioning conditions for the target database.
    compartment_id str
    The OCID of the compartment containing the target.
    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 audit policy.
    display_name str
    (Updatable) The display name of the audit policy. The name does not have to be unique, and it is changeable.
    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_data_safe_service_account_excluded bool
    Option provided to users at the target to indicate whether the Data Safe service account has to be excluded while provisioning the audit policies.
    provision_trigger bool
    (Updatable) An optional property when set to true triggers Provision.
    retrieve_from_target_trigger bool
    (Updatable) An optional property when set to true triggers Retrieve From Target.
    target_id str
    Unique target identifier.
    auditConditions List<Property Map>
    Required when provision_trigger is set. Lists the audit policy provisioning conditions for the target database.
    compartmentId String
    The OCID of the compartment containing the target.
    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 audit policy.
    displayName String
    (Updatable) The display name of the audit policy. The name does not have to be unique, and it is changeable.
    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"}
    isDataSafeServiceAccountExcluded Boolean
    Option provided to users at the target to indicate whether the Data Safe service account has to be excluded while provisioning the audit policies.
    provisionTrigger Boolean
    (Updatable) An optional property when set to true triggers Provision.
    retrieveFromTargetTrigger Boolean
    (Updatable) An optional property when set to true triggers Retrieve From Target.
    targetId String
    Unique target identifier.

    Outputs

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

    AuditSpecifications List<AuditPolicyManagementAuditSpecification>
    Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    Details about the current state of the audit policy in Data Safe.
    State string
    The current state of the 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 audit policy was created, in the format defined by RFC3339.
    TimeLastProvisioned string
    Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
    TimeLastRetrieved string
    The time when the audit policies was last retrieved from this target, in the format defined by RFC3339.
    TimeUpdated string
    The last date and time the audit policy was updated, in the format defined by RFC3339.
    AuditSpecifications []AuditPolicyManagementAuditSpecification
    Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    Details about the current state of the audit policy in Data Safe.
    State string
    The current state of the 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 audit policy was created, in the format defined by RFC3339.
    TimeLastProvisioned string
    Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
    TimeLastRetrieved string
    The time when the audit policies was last retrieved from this target, in the format defined by RFC3339.
    TimeUpdated string
    The last date and time the audit policy was updated, in the format defined by RFC3339.
    auditSpecifications List<AuditPolicyManagementAuditSpecification>
    Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    Details about the current state of the audit policy in Data Safe.
    state String
    The current state of the 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 audit policy was created, in the format defined by RFC3339.
    timeLastProvisioned String
    Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
    timeLastRetrieved String
    The time when the audit policies was last retrieved from this target, in the format defined by RFC3339.
    timeUpdated String
    The last date and time the audit policy was updated, in the format defined by RFC3339.
    auditSpecifications AuditPolicyManagementAuditSpecification[]
    Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails string
    Details about the current state of the audit policy in Data Safe.
    state string
    The current state of the 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 audit policy was created, in the format defined by RFC3339.
    timeLastProvisioned string
    Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
    timeLastRetrieved string
    The time when the audit policies was last retrieved from this target, in the format defined by RFC3339.
    timeUpdated string
    The last date and time the audit policy was updated, in the format defined by RFC3339.
    audit_specifications Sequence[datasafe.AuditPolicyManagementAuditSpecification]
    Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_details str
    Details about the current state of the audit policy in Data Safe.
    state str
    The current state of the 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 audit policy was created, in the format defined by RFC3339.
    time_last_provisioned str
    Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
    time_last_retrieved str
    The time when the audit policies was last retrieved from this target, in the format defined by RFC3339.
    time_updated str
    The last date and time the audit policy was updated, in the format defined by RFC3339.
    auditSpecifications List<Property Map>
    Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    Details about the current state of the audit policy in Data Safe.
    state String
    The current state of the 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 audit policy was created, in the format defined by RFC3339.
    timeLastProvisioned String
    Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
    timeLastRetrieved String
    The time when the audit policies was last retrieved from this target, in the format defined by RFC3339.
    timeUpdated String
    The last date and time the audit policy was updated, in the format defined by RFC3339.

    Look up Existing AuditPolicyManagement Resource

    Get an existing AuditPolicyManagement 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?: AuditPolicyManagementState, opts?: CustomResourceOptions): AuditPolicyManagement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            audit_conditions: Optional[Sequence[_datasafe.AuditPolicyManagementAuditConditionArgs]] = None,
            audit_specifications: Optional[Sequence[_datasafe.AuditPolicyManagementAuditSpecificationArgs]] = None,
            compartment_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,
            is_data_safe_service_account_excluded: Optional[bool] = None,
            lifecycle_details: Optional[str] = None,
            provision_trigger: Optional[bool] = None,
            retrieve_from_target_trigger: Optional[bool] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            target_id: Optional[str] = None,
            time_created: Optional[str] = None,
            time_last_provisioned: Optional[str] = None,
            time_last_retrieved: Optional[str] = None,
            time_updated: Optional[str] = None) -> AuditPolicyManagement
    func GetAuditPolicyManagement(ctx *Context, name string, id IDInput, state *AuditPolicyManagementState, opts ...ResourceOption) (*AuditPolicyManagement, error)
    public static AuditPolicyManagement Get(string name, Input<string> id, AuditPolicyManagementState? state, CustomResourceOptions? opts = null)
    public static AuditPolicyManagement get(String name, Output<String> id, AuditPolicyManagementState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    AuditConditions List<AuditPolicyManagementAuditCondition>
    Required when provision_trigger is set. Lists the audit policy provisioning conditions for the target database.
    AuditSpecifications List<AuditPolicyManagementAuditSpecification>
    Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
    CompartmentId string
    The OCID of the compartment containing the target.
    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 audit policy.
    DisplayName string
    (Updatable) The display name of the audit policy. The name does not have to be unique, and it is changeable.
    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"}
    IsDataSafeServiceAccountExcluded bool
    Option provided to users at the target to indicate whether the Data Safe service account has to be excluded while provisioning the audit policies.
    LifecycleDetails string
    Details about the current state of the audit policy in Data Safe.
    ProvisionTrigger bool
    (Updatable) An optional property when set to true triggers Provision.
    RetrieveFromTargetTrigger bool
    (Updatable) An optional property when set to true triggers Retrieve From Target.
    State string
    The current state of the 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"}
    TargetId string
    Unique target identifier.
    TimeCreated string
    The time the audit policy was created, in the format defined by RFC3339.
    TimeLastProvisioned string
    Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
    TimeLastRetrieved string
    The time when the audit policies was last retrieved from this target, in the format defined by RFC3339.
    TimeUpdated string
    The last date and time the audit policy was updated, in the format defined by RFC3339.
    AuditConditions []AuditPolicyManagementAuditConditionArgs
    Required when provision_trigger is set. Lists the audit policy provisioning conditions for the target database.
    AuditSpecifications []AuditPolicyManagementAuditSpecificationArgs
    Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
    CompartmentId string
    The OCID of the compartment containing the target.
    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 audit policy.
    DisplayName string
    (Updatable) The display name of the audit policy. The name does not have to be unique, and it is changeable.
    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"}
    IsDataSafeServiceAccountExcluded bool
    Option provided to users at the target to indicate whether the Data Safe service account has to be excluded while provisioning the audit policies.
    LifecycleDetails string
    Details about the current state of the audit policy in Data Safe.
    ProvisionTrigger bool
    (Updatable) An optional property when set to true triggers Provision.
    RetrieveFromTargetTrigger bool
    (Updatable) An optional property when set to true triggers Retrieve From Target.
    State string
    The current state of the 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"}
    TargetId string
    Unique target identifier.
    TimeCreated string
    The time the audit policy was created, in the format defined by RFC3339.
    TimeLastProvisioned string
    Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
    TimeLastRetrieved string
    The time when the audit policies was last retrieved from this target, in the format defined by RFC3339.
    TimeUpdated string
    The last date and time the audit policy was updated, in the format defined by RFC3339.
    auditConditions List<AuditPolicyManagementAuditCondition>
    Required when provision_trigger is set. Lists the audit policy provisioning conditions for the target database.
    auditSpecifications List<AuditPolicyManagementAuditSpecification>
    Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
    compartmentId String
    The OCID of the compartment containing the target.
    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 audit policy.
    displayName String
    (Updatable) The display name of the audit policy. The name does not have to be unique, and it is changeable.
    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"}
    isDataSafeServiceAccountExcluded Boolean
    Option provided to users at the target to indicate whether the Data Safe service account has to be excluded while provisioning the audit policies.
    lifecycleDetails String
    Details about the current state of the audit policy in Data Safe.
    provisionTrigger Boolean
    (Updatable) An optional property when set to true triggers Provision.
    retrieveFromTargetTrigger Boolean
    (Updatable) An optional property when set to true triggers Retrieve From Target.
    state String
    The current state of the 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"}
    targetId String
    Unique target identifier.
    timeCreated String
    The time the audit policy was created, in the format defined by RFC3339.
    timeLastProvisioned String
    Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
    timeLastRetrieved String
    The time when the audit policies was last retrieved from this target, in the format defined by RFC3339.
    timeUpdated String
    The last date and time the audit policy was updated, in the format defined by RFC3339.
    auditConditions AuditPolicyManagementAuditCondition[]
    Required when provision_trigger is set. Lists the audit policy provisioning conditions for the target database.
    auditSpecifications AuditPolicyManagementAuditSpecification[]
    Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
    compartmentId string
    The OCID of the compartment containing the target.
    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 audit policy.
    displayName string
    (Updatable) The display name of the audit policy. The name does not have to be unique, and it is changeable.
    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"}
    isDataSafeServiceAccountExcluded boolean
    Option provided to users at the target to indicate whether the Data Safe service account has to be excluded while provisioning the audit policies.
    lifecycleDetails string
    Details about the current state of the audit policy in Data Safe.
    provisionTrigger boolean
    (Updatable) An optional property when set to true triggers Provision.
    retrieveFromTargetTrigger boolean
    (Updatable) An optional property when set to true triggers Retrieve From Target.
    state string
    The current state of the 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"}
    targetId string
    Unique target identifier.
    timeCreated string
    The time the audit policy was created, in the format defined by RFC3339.
    timeLastProvisioned string
    Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
    timeLastRetrieved string
    The time when the audit policies was last retrieved from this target, in the format defined by RFC3339.
    timeUpdated string
    The last date and time the audit policy was updated, in the format defined by RFC3339.
    audit_conditions Sequence[datasafe.AuditPolicyManagementAuditConditionArgs]
    Required when provision_trigger is set. Lists the audit policy provisioning conditions for the target database.
    audit_specifications Sequence[datasafe.AuditPolicyManagementAuditSpecificationArgs]
    Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
    compartment_id str
    The OCID of the compartment containing the target.
    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 audit policy.
    display_name str
    (Updatable) The display name of the audit policy. The name does not have to be unique, and it is changeable.
    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_data_safe_service_account_excluded bool
    Option provided to users at the target to indicate whether the Data Safe service account has to be excluded while provisioning the audit policies.
    lifecycle_details str
    Details about the current state of the audit policy in Data Safe.
    provision_trigger bool
    (Updatable) An optional property when set to true triggers Provision.
    retrieve_from_target_trigger bool
    (Updatable) An optional property when set to true triggers Retrieve From Target.
    state str
    The current state of the 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"}
    target_id str
    Unique target identifier.
    time_created str
    The time the audit policy was created, in the format defined by RFC3339.
    time_last_provisioned str
    Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
    time_last_retrieved str
    The time when the audit policies was last retrieved from this target, in the format defined by RFC3339.
    time_updated str
    The last date and time the audit policy was updated, in the format defined by RFC3339.
    auditConditions List<Property Map>
    Required when provision_trigger is set. Lists the audit policy provisioning conditions for the target database.
    auditSpecifications List<Property Map>
    Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
    compartmentId String
    The OCID of the compartment containing the target.
    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 audit policy.
    displayName String
    (Updatable) The display name of the audit policy. The name does not have to be unique, and it is changeable.
    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"}
    isDataSafeServiceAccountExcluded Boolean
    Option provided to users at the target to indicate whether the Data Safe service account has to be excluded while provisioning the audit policies.
    lifecycleDetails String
    Details about the current state of the audit policy in Data Safe.
    provisionTrigger Boolean
    (Updatable) An optional property when set to true triggers Provision.
    retrieveFromTargetTrigger Boolean
    (Updatable) An optional property when set to true triggers Retrieve From Target.
    state String
    The current state of the 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"}
    targetId String
    Unique target identifier.
    timeCreated String
    The time the audit policy was created, in the format defined by RFC3339.
    timeLastProvisioned String
    Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
    timeLastRetrieved String
    The time when the audit policies was last retrieved from this target, in the format defined by RFC3339.
    timeUpdated String
    The last date and time the audit policy was updated, in the format defined by RFC3339.

    Supporting Types

    AuditPolicyManagementAuditCondition, AuditPolicyManagementAuditConditionArgs

    AuditPolicyName string
    Indicates the audit policy name. Refer to the documentation for seeded audit policy names. For custom policies, refer to the user-defined policy name created in the target database.
    EnableConditions List<AuditPolicyManagementAuditConditionEnableCondition>
    Indicates the users/roles in the target database for which the audit policy is enforced, and the success/failure event condition to generate the audit event..
    IsDataSafeServiceAccountAudited bool
    Indicates whether the Data Safe user activity on the target database will be audited by the policy.
    IsEnabled bool
    Indicates whether the policy has to be enabled or disabled in the target database. Set this to true if you want the audit policy to be enabled in the target database. If the seeded audit policy is not already created in the database, the provisioning creates and enables them. If this is set to false, the policy will be disabled in the target database.
    IsPrivUsersManagedByDataSafe bool

    Indicates whether the privileged user list is managed by Data Safe.

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

    AuditPolicyName string
    Indicates the audit policy name. Refer to the documentation for seeded audit policy names. For custom policies, refer to the user-defined policy name created in the target database.
    EnableConditions []AuditPolicyManagementAuditConditionEnableCondition
    Indicates the users/roles in the target database for which the audit policy is enforced, and the success/failure event condition to generate the audit event..
    IsDataSafeServiceAccountAudited bool
    Indicates whether the Data Safe user activity on the target database will be audited by the policy.
    IsEnabled bool
    Indicates whether the policy has to be enabled or disabled in the target database. Set this to true if you want the audit policy to be enabled in the target database. If the seeded audit policy is not already created in the database, the provisioning creates and enables them. If this is set to false, the policy will be disabled in the target database.
    IsPrivUsersManagedByDataSafe bool

    Indicates whether the privileged user list is managed by Data Safe.

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

    auditPolicyName String
    Indicates the audit policy name. Refer to the documentation for seeded audit policy names. For custom policies, refer to the user-defined policy name created in the target database.
    enableConditions List<AuditPolicyManagementAuditConditionEnableCondition>
    Indicates the users/roles in the target database for which the audit policy is enforced, and the success/failure event condition to generate the audit event..
    isDataSafeServiceAccountAudited Boolean
    Indicates whether the Data Safe user activity on the target database will be audited by the policy.
    isEnabled Boolean
    Indicates whether the policy has to be enabled or disabled in the target database. Set this to true if you want the audit policy to be enabled in the target database. If the seeded audit policy is not already created in the database, the provisioning creates and enables them. If this is set to false, the policy will be disabled in the target database.
    isPrivUsersManagedByDataSafe Boolean

    Indicates whether the privileged user list is managed by Data Safe.

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

    auditPolicyName string
    Indicates the audit policy name. Refer to the documentation for seeded audit policy names. For custom policies, refer to the user-defined policy name created in the target database.
    enableConditions AuditPolicyManagementAuditConditionEnableCondition[]
    Indicates the users/roles in the target database for which the audit policy is enforced, and the success/failure event condition to generate the audit event..
    isDataSafeServiceAccountAudited boolean
    Indicates whether the Data Safe user activity on the target database will be audited by the policy.
    isEnabled boolean
    Indicates whether the policy has to be enabled or disabled in the target database. Set this to true if you want the audit policy to be enabled in the target database. If the seeded audit policy is not already created in the database, the provisioning creates and enables them. If this is set to false, the policy will be disabled in the target database.
    isPrivUsersManagedByDataSafe boolean

    Indicates whether the privileged user list is managed by Data Safe.

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

    audit_policy_name str
    Indicates the audit policy name. Refer to the documentation for seeded audit policy names. For custom policies, refer to the user-defined policy name created in the target database.
    enable_conditions Sequence[datasafe.AuditPolicyManagementAuditConditionEnableCondition]
    Indicates the users/roles in the target database for which the audit policy is enforced, and the success/failure event condition to generate the audit event..
    is_data_safe_service_account_audited bool
    Indicates whether the Data Safe user activity on the target database will be audited by the policy.
    is_enabled bool
    Indicates whether the policy has to be enabled or disabled in the target database. Set this to true if you want the audit policy to be enabled in the target database. If the seeded audit policy is not already created in the database, the provisioning creates and enables them. If this is set to false, the policy will be disabled in the target database.
    is_priv_users_managed_by_data_safe bool

    Indicates whether the privileged user list is managed by Data Safe.

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

    auditPolicyName String
    Indicates the audit policy name. Refer to the documentation for seeded audit policy names. For custom policies, refer to the user-defined policy name created in the target database.
    enableConditions List<Property Map>
    Indicates the users/roles in the target database for which the audit policy is enforced, and the success/failure event condition to generate the audit event..
    isDataSafeServiceAccountAudited Boolean
    Indicates whether the Data Safe user activity on the target database will be audited by the policy.
    isEnabled Boolean
    Indicates whether the policy has to be enabled or disabled in the target database. Set this to true if you want the audit policy to be enabled in the target database. If the seeded audit policy is not already created in the database, the provisioning creates and enables them. If this is set to false, the policy will be disabled in the target database.
    isPrivUsersManagedByDataSafe Boolean

    Indicates whether the privileged user list is managed by Data Safe.

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

    AuditPolicyManagementAuditConditionEnableCondition, AuditPolicyManagementAuditConditionEnableConditionArgs

    EntityNames List<string>
    List of users or roles that the policy must be enabled for.
    EntitySelection string
    The entity include or exclude selection.
    EntityType string
    The entity type that the policy must be enabled for.
    OperationStatus string
    The operation status that the policy must be enabled for.
    EntityNames []string
    List of users or roles that the policy must be enabled for.
    EntitySelection string
    The entity include or exclude selection.
    EntityType string
    The entity type that the policy must be enabled for.
    OperationStatus string
    The operation status that the policy must be enabled for.
    entityNames List<String>
    List of users or roles that the policy must be enabled for.
    entitySelection String
    The entity include or exclude selection.
    entityType String
    The entity type that the policy must be enabled for.
    operationStatus String
    The operation status that the policy must be enabled for.
    entityNames string[]
    List of users or roles that the policy must be enabled for.
    entitySelection string
    The entity include or exclude selection.
    entityType string
    The entity type that the policy must be enabled for.
    operationStatus string
    The operation status that the policy must be enabled for.
    entity_names Sequence[str]
    List of users or roles that the policy must be enabled for.
    entity_selection str
    The entity include or exclude selection.
    entity_type str
    The entity type that the policy must be enabled for.
    operation_status str
    The operation status that the policy must be enabled for.
    entityNames List<String>
    List of users or roles that the policy must be enabled for.
    entitySelection String
    The entity include or exclude selection.
    entityType String
    The entity type that the policy must be enabled for.
    operationStatus String
    The operation status that the policy must be enabled for.

    AuditPolicyManagementAuditSpecification, AuditPolicyManagementAuditSpecificationArgs

    AuditPolicyCategory string
    The category to which the audit policy belongs.
    AuditPolicyName string
    Indicates the audit policy name. Refer to the documentation for seeded audit policy names. For custom policies, refer to the user-defined policy name created in the target database.
    DatabasePolicyNames List<string>
    Indicates the names of corresponding database policy ( or policies) in the target database.
    EnableStatus string
    Indicates whether the policy has been enabled, disabled or partially enabled in the target database. The status is PARTIALLY_ENABLED if any of the constituent database audit policies is not enabled.
    EnabledEntities string
    Indicates on whom the audit policy is enabled.
    IsCreated bool
    Indicates whether the policy is already created on the target database.
    IsEnabledForAllUsers bool
    Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.
    IsSeededInDataSafe bool
    Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.
    IsSeededInTarget bool
    Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.
    IsViewOnly bool
    Indicates whether the audit policy is available for provisioning/ de-provisioning from Oracle Data Safe, or is only available for displaying the current provisioning status from the target.
    PartiallyEnabledMsg string
    Provides information about the policy that has been only partially enabled.
    AuditPolicyCategory string
    The category to which the audit policy belongs.
    AuditPolicyName string
    Indicates the audit policy name. Refer to the documentation for seeded audit policy names. For custom policies, refer to the user-defined policy name created in the target database.
    DatabasePolicyNames []string
    Indicates the names of corresponding database policy ( or policies) in the target database.
    EnableStatus string
    Indicates whether the policy has been enabled, disabled or partially enabled in the target database. The status is PARTIALLY_ENABLED if any of the constituent database audit policies is not enabled.
    EnabledEntities string
    Indicates on whom the audit policy is enabled.
    IsCreated bool
    Indicates whether the policy is already created on the target database.
    IsEnabledForAllUsers bool
    Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.
    IsSeededInDataSafe bool
    Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.
    IsSeededInTarget bool
    Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.
    IsViewOnly bool
    Indicates whether the audit policy is available for provisioning/ de-provisioning from Oracle Data Safe, or is only available for displaying the current provisioning status from the target.
    PartiallyEnabledMsg string
    Provides information about the policy that has been only partially enabled.
    auditPolicyCategory String
    The category to which the audit policy belongs.
    auditPolicyName String
    Indicates the audit policy name. Refer to the documentation for seeded audit policy names. For custom policies, refer to the user-defined policy name created in the target database.
    databasePolicyNames List<String>
    Indicates the names of corresponding database policy ( or policies) in the target database.
    enableStatus String
    Indicates whether the policy has been enabled, disabled or partially enabled in the target database. The status is PARTIALLY_ENABLED if any of the constituent database audit policies is not enabled.
    enabledEntities String
    Indicates on whom the audit policy is enabled.
    isCreated Boolean
    Indicates whether the policy is already created on the target database.
    isEnabledForAllUsers Boolean
    Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.
    isSeededInDataSafe Boolean
    Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.
    isSeededInTarget Boolean
    Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.
    isViewOnly Boolean
    Indicates whether the audit policy is available for provisioning/ de-provisioning from Oracle Data Safe, or is only available for displaying the current provisioning status from the target.
    partiallyEnabledMsg String
    Provides information about the policy that has been only partially enabled.
    auditPolicyCategory string
    The category to which the audit policy belongs.
    auditPolicyName string
    Indicates the audit policy name. Refer to the documentation for seeded audit policy names. For custom policies, refer to the user-defined policy name created in the target database.
    databasePolicyNames string[]
    Indicates the names of corresponding database policy ( or policies) in the target database.
    enableStatus string
    Indicates whether the policy has been enabled, disabled or partially enabled in the target database. The status is PARTIALLY_ENABLED if any of the constituent database audit policies is not enabled.
    enabledEntities string
    Indicates on whom the audit policy is enabled.
    isCreated boolean
    Indicates whether the policy is already created on the target database.
    isEnabledForAllUsers boolean
    Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.
    isSeededInDataSafe boolean
    Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.
    isSeededInTarget boolean
    Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.
    isViewOnly boolean
    Indicates whether the audit policy is available for provisioning/ de-provisioning from Oracle Data Safe, or is only available for displaying the current provisioning status from the target.
    partiallyEnabledMsg string
    Provides information about the policy that has been only partially enabled.
    audit_policy_category str
    The category to which the audit policy belongs.
    audit_policy_name str
    Indicates the audit policy name. Refer to the documentation for seeded audit policy names. For custom policies, refer to the user-defined policy name created in the target database.
    database_policy_names Sequence[str]
    Indicates the names of corresponding database policy ( or policies) in the target database.
    enable_status str
    Indicates whether the policy has been enabled, disabled or partially enabled in the target database. The status is PARTIALLY_ENABLED if any of the constituent database audit policies is not enabled.
    enabled_entities str
    Indicates on whom the audit policy is enabled.
    is_created bool
    Indicates whether the policy is already created on the target database.
    is_enabled_for_all_users bool
    Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.
    is_seeded_in_data_safe bool
    Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.
    is_seeded_in_target bool
    Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.
    is_view_only bool
    Indicates whether the audit policy is available for provisioning/ de-provisioning from Oracle Data Safe, or is only available for displaying the current provisioning status from the target.
    partially_enabled_msg str
    Provides information about the policy that has been only partially enabled.
    auditPolicyCategory String
    The category to which the audit policy belongs.
    auditPolicyName String
    Indicates the audit policy name. Refer to the documentation for seeded audit policy names. For custom policies, refer to the user-defined policy name created in the target database.
    databasePolicyNames List<String>
    Indicates the names of corresponding database policy ( or policies) in the target database.
    enableStatus String
    Indicates whether the policy has been enabled, disabled or partially enabled in the target database. The status is PARTIALLY_ENABLED if any of the constituent database audit policies is not enabled.
    enabledEntities String
    Indicates on whom the audit policy is enabled.
    isCreated Boolean
    Indicates whether the policy is already created on the target database.
    isEnabledForAllUsers Boolean
    Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.
    isSeededInDataSafe Boolean
    Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.
    isSeededInTarget Boolean
    Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.
    isViewOnly Boolean
    Indicates whether the audit policy is available for provisioning/ de-provisioning from Oracle Data Safe, or is only available for displaying the current provisioning status from the target.
    partiallyEnabledMsg String
    Provides information about the policy that has been only partially enabled.

    Import

    Import is not supported for this resource.

    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 v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi