oci.DataSafe.AuditPolicy
Explore with Pulumi AI
This resource provides the Audit Policy resource in Oracle Cloud Infrastructure Data Safe service.
Updates the audit policy.
Create AuditPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AuditPolicy(name: string, args: AuditPolicyArgs, opts?: CustomResourceOptions);@overload
def AuditPolicy(resource_name: str,
                args: AuditPolicyArgs,
                opts: Optional[ResourceOptions] = None)
@overload
def AuditPolicy(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                audit_policy_id: Optional[str] = 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,
                provision_trigger: Optional[int] = None,
                retrieve_from_target_trigger: Optional[int] = None)func NewAuditPolicy(ctx *Context, name string, args AuditPolicyArgs, opts ...ResourceOption) (*AuditPolicy, error)public AuditPolicy(string name, AuditPolicyArgs args, CustomResourceOptions? opts = null)
public AuditPolicy(String name, AuditPolicyArgs args)
public AuditPolicy(String name, AuditPolicyArgs args, CustomResourceOptions options)
type: oci:DataSafe:AuditPolicy
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 AuditPolicyArgs
- 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 AuditPolicyArgs
- 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 AuditPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuditPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AuditPolicyArgs
- 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 auditPolicyResource = new Oci.DataSafe.AuditPolicy("auditPolicyResource", new()
{
    AuditPolicyId = "string",
    CompartmentId = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
    Description = "string",
    DisplayName = "string",
    FreeformTags = 
    {
        { "string", "string" },
    },
    ProvisionTrigger = 0,
    RetrieveFromTargetTrigger = 0,
});
example, err := datasafe.NewAuditPolicy(ctx, "auditPolicyResource", &datasafe.AuditPolicyArgs{
	AuditPolicyId: pulumi.String("string"),
	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"),
	},
	ProvisionTrigger:          pulumi.Int(0),
	RetrieveFromTargetTrigger: pulumi.Int(0),
})
var auditPolicyResource = new AuditPolicy("auditPolicyResource", AuditPolicyArgs.builder()
    .auditPolicyId("string")
    .compartmentId("string")
    .definedTags(Map.of("string", "string"))
    .description("string")
    .displayName("string")
    .freeformTags(Map.of("string", "string"))
    .provisionTrigger(0)
    .retrieveFromTargetTrigger(0)
    .build());
audit_policy_resource = oci.data_safe.AuditPolicy("auditPolicyResource",
    audit_policy_id="string",
    compartment_id="string",
    defined_tags={
        "string": "string",
    },
    description="string",
    display_name="string",
    freeform_tags={
        "string": "string",
    },
    provision_trigger=0,
    retrieve_from_target_trigger=0)
const auditPolicyResource = new oci.datasafe.AuditPolicy("auditPolicyResource", {
    auditPolicyId: "string",
    compartmentId: "string",
    definedTags: {
        string: "string",
    },
    description: "string",
    displayName: "string",
    freeformTags: {
        string: "string",
    },
    provisionTrigger: 0,
    retrieveFromTargetTrigger: 0,
});
type: oci:DataSafe:AuditPolicy
properties:
    auditPolicyId: string
    compartmentId: string
    definedTags:
        string: string
    description: string
    displayName: string
    freeformTags:
        string: string
    provisionTrigger: 0
    retrieveFromTargetTrigger: 0
AuditPolicy 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 AuditPolicy resource accepts the following input properties:
- AuditPolicy stringId 
- Unique audit policy identifier.
- CompartmentId string
- (Updatable) The OCID of the compartment containing the audit policy.
- 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.
- 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"}
- ProvisionTrigger int
- (Updatable) An optional property when incremented triggers Provision. Could be set to any integer value.
- RetrieveFrom intTarget Trigger 
- (Updatable) An optional property when incremented triggers Retrieve From Target. Could be set to any integer value. - ** 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 
- AuditPolicy stringId 
- Unique audit policy identifier.
- CompartmentId string
- (Updatable) The OCID of the compartment containing the audit policy.
- 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.
- 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"}
- ProvisionTrigger int
- (Updatable) An optional property when incremented triggers Provision. Could be set to any integer value.
- RetrieveFrom intTarget Trigger 
- (Updatable) An optional property when incremented triggers Retrieve From Target. Could be set to any integer value. - ** 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 
- auditPolicy StringId 
- Unique audit policy identifier.
- compartmentId String
- (Updatable) The OCID of the compartment containing the audit policy.
- 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.
- 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"}
- provisionTrigger Integer
- (Updatable) An optional property when incremented triggers Provision. Could be set to any integer value.
- retrieveFrom IntegerTarget Trigger 
- (Updatable) An optional property when incremented triggers Retrieve From Target. Could be set to any integer value. - ** 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 
- auditPolicy stringId 
- Unique audit policy identifier.
- compartmentId string
- (Updatable) The OCID of the compartment containing the audit policy.
- {[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.
- {[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"}
- provisionTrigger number
- (Updatable) An optional property when incremented triggers Provision. Could be set to any integer value.
- retrieveFrom numberTarget Trigger 
- (Updatable) An optional property when incremented triggers Retrieve From Target. Could be set to any integer value. - ** 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_ strid 
- Unique audit policy identifier.
- compartment_id str
- (Updatable) The OCID of the compartment containing the audit policy.
- 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.
- 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"}
- provision_trigger int
- (Updatable) An optional property when incremented triggers Provision. Could be set to any integer value.
- retrieve_from_ inttarget_ trigger 
- (Updatable) An optional property when incremented triggers Retrieve From Target. Could be set to any integer value. - ** 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 
- auditPolicy StringId 
- Unique audit policy identifier.
- compartmentId String
- (Updatable) The OCID of the compartment containing the audit policy.
- 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.
- 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"}
- provisionTrigger Number
- (Updatable) An optional property when incremented triggers Provision. Could be set to any integer value.
- retrieveFrom NumberTarget Trigger 
- (Updatable) An optional property when incremented triggers Retrieve From Target. Could be set to any integer value. - ** 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 
Outputs
All input properties are implicitly available as output properties. Additionally, the AuditPolicy resource produces the following output properties:
- AuditConditions List<AuditPolicy Audit Condition> 
- Lists the audit policy provisioning conditions for the target database.
- AuditSpecifications List<AuditPolicy Audit Specification> 
- 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.
- IsData boolSafe Service Account Excluded 
- 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.
- State string
- The current state of the audit policy.
- 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
- The OCID of the target for which the audit policy is created.
- TimeCreated string
- The time the the audit policy was created, in the format defined by RFC3339.
- TimeLast stringProvisioned 
- Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
- TimeLast stringRetrieved 
- 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 []AuditPolicy Audit Condition 
- Lists the audit policy provisioning conditions for the target database.
- AuditSpecifications []AuditPolicy Audit Specification 
- 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.
- IsData boolSafe Service Account Excluded 
- 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.
- State string
- The current state of the audit policy.
- 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
- The OCID of the target for which the audit policy is created.
- TimeCreated string
- The time the the audit policy was created, in the format defined by RFC3339.
- TimeLast stringProvisioned 
- Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
- TimeLast stringRetrieved 
- 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<AuditPolicy Audit Condition> 
- Lists the audit policy provisioning conditions for the target database.
- auditSpecifications List<AuditPolicy Audit Specification> 
- 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.
- isData BooleanSafe Service Account Excluded 
- 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.
- state String
- The current state of the audit policy.
- 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
- The OCID of the target for which the audit policy is created.
- timeCreated String
- The time the the audit policy was created, in the format defined by RFC3339.
- timeLast StringProvisioned 
- Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
- timeLast StringRetrieved 
- 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 AuditPolicy Audit Condition[] 
- Lists the audit policy provisioning conditions for the target database.
- auditSpecifications AuditPolicy Audit Specification[] 
- 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.
- isData booleanSafe Service Account Excluded 
- 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.
- state string
- The current state of the audit policy.
- {[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
- The OCID of the target for which the audit policy is created.
- timeCreated string
- The time the the audit policy was created, in the format defined by RFC3339.
- timeLast stringProvisioned 
- Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
- timeLast stringRetrieved 
- 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[AuditPolicy Audit Condition] 
- Lists the audit policy provisioning conditions for the target database.
- audit_specifications Sequence[AuditPolicy Audit Specification] 
- 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.
- is_data_ boolsafe_ service_ account_ excluded 
- 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.
- state str
- The current state of the audit policy.
- 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
- The OCID of the target for which the audit policy is created.
- time_created str
- The time the the audit policy was created, in the format defined by RFC3339.
- time_last_ strprovisioned 
- Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
- time_last_ strretrieved 
- 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>
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- isData BooleanSafe Service Account Excluded 
- 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.
- state String
- The current state of the audit policy.
- 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
- The OCID of the target for which the audit policy is created.
- timeCreated String
- The time the the audit policy was created, in the format defined by RFC3339.
- timeLast StringProvisioned 
- Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
- timeLast StringRetrieved 
- 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 AuditPolicy Resource
Get an existing AuditPolicy 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?: AuditPolicyState, opts?: CustomResourceOptions): AuditPolicy@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        audit_conditions: Optional[Sequence[AuditPolicyAuditConditionArgs]] = None,
        audit_policy_id: Optional[str] = None,
        audit_specifications: Optional[Sequence[AuditPolicyAuditSpecificationArgs]] = 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[int] = None,
        retrieve_from_target_trigger: Optional[int] = 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) -> AuditPolicyfunc GetAuditPolicy(ctx *Context, name string, id IDInput, state *AuditPolicyState, opts ...ResourceOption) (*AuditPolicy, error)public static AuditPolicy Get(string name, Input<string> id, AuditPolicyState? state, CustomResourceOptions? opts = null)public static AuditPolicy get(String name, Output<String> id, AuditPolicyState state, CustomResourceOptions options)resources:  _:    type: oci:DataSafe:AuditPolicy    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.
- AuditConditions List<AuditPolicy Audit Condition> 
- Lists the audit policy provisioning conditions for the target database.
- AuditPolicy stringId 
- Unique audit policy identifier.
- AuditSpecifications List<AuditPolicy Audit Specification> 
- Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
- CompartmentId string
- (Updatable) The OCID of the compartment containing the audit policy.
- 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.
- 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"}
- IsData boolSafe Service Account Excluded 
- 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 int
- (Updatable) An optional property when incremented triggers Provision. Could be set to any integer value.
- RetrieveFrom intTarget Trigger 
- (Updatable) An optional property when incremented triggers Retrieve From Target. Could be set to any integer value. - ** 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 
- State string
- The current state of the audit policy.
- 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
- The OCID of the target for which the audit policy is created.
- TimeCreated string
- The time the the audit policy was created, in the format defined by RFC3339.
- TimeLast stringProvisioned 
- Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
- TimeLast stringRetrieved 
- 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 []AuditPolicy Audit Condition Args 
- Lists the audit policy provisioning conditions for the target database.
- AuditPolicy stringId 
- Unique audit policy identifier.
- AuditSpecifications []AuditPolicy Audit Specification Args 
- Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
- CompartmentId string
- (Updatable) The OCID of the compartment containing the audit policy.
- 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.
- 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"}
- IsData boolSafe Service Account Excluded 
- 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 int
- (Updatable) An optional property when incremented triggers Provision. Could be set to any integer value.
- RetrieveFrom intTarget Trigger 
- (Updatable) An optional property when incremented triggers Retrieve From Target. Could be set to any integer value. - ** 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 
- State string
- The current state of the audit policy.
- 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
- The OCID of the target for which the audit policy is created.
- TimeCreated string
- The time the the audit policy was created, in the format defined by RFC3339.
- TimeLast stringProvisioned 
- Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
- TimeLast stringRetrieved 
- 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<AuditPolicy Audit Condition> 
- Lists the audit policy provisioning conditions for the target database.
- auditPolicy StringId 
- Unique audit policy identifier.
- auditSpecifications List<AuditPolicy Audit Specification> 
- Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
- compartmentId String
- (Updatable) The OCID of the compartment containing the audit policy.
- 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.
- 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"}
- isData BooleanSafe Service Account Excluded 
- 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 Integer
- (Updatable) An optional property when incremented triggers Provision. Could be set to any integer value.
- retrieveFrom IntegerTarget Trigger 
- (Updatable) An optional property when incremented triggers Retrieve From Target. Could be set to any integer value. - ** 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 
- state String
- The current state of the audit policy.
- 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
- The OCID of the target for which the audit policy is created.
- timeCreated String
- The time the the audit policy was created, in the format defined by RFC3339.
- timeLast StringProvisioned 
- Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
- timeLast StringRetrieved 
- 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 AuditPolicy Audit Condition[] 
- Lists the audit policy provisioning conditions for the target database.
- auditPolicy stringId 
- Unique audit policy identifier.
- auditSpecifications AuditPolicy Audit Specification[] 
- Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
- compartmentId string
- (Updatable) The OCID of the compartment containing the audit policy.
- {[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.
- {[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"}
- isData booleanSafe Service Account Excluded 
- 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 number
- (Updatable) An optional property when incremented triggers Provision. Could be set to any integer value.
- retrieveFrom numberTarget Trigger 
- (Updatable) An optional property when incremented triggers Retrieve From Target. Could be set to any integer value. - ** 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 
- state string
- The current state of the audit policy.
- {[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
- The OCID of the target for which the audit policy is created.
- timeCreated string
- The time the the audit policy was created, in the format defined by RFC3339.
- timeLast stringProvisioned 
- Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
- timeLast stringRetrieved 
- 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[AuditPolicy Audit Condition Args] 
- Lists the audit policy provisioning conditions for the target database.
- audit_policy_ strid 
- Unique audit policy identifier.
- audit_specifications Sequence[AuditPolicy Audit Specification Args] 
- Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
- compartment_id str
- (Updatable) The OCID of the compartment containing the audit policy.
- 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.
- 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_ boolsafe_ service_ account_ excluded 
- 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 int
- (Updatable) An optional property when incremented triggers Provision. Could be set to any integer value.
- retrieve_from_ inttarget_ trigger 
- (Updatable) An optional property when incremented triggers Retrieve From Target. Could be set to any integer value. - ** 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 
- state str
- The current state of the audit policy.
- 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
- The OCID of the target for which the audit policy is created.
- time_created str
- The time the the audit policy was created, in the format defined by RFC3339.
- time_last_ strprovisioned 
- Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
- time_last_ strretrieved 
- 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>
- Lists the audit policy provisioning conditions for the target database.
- auditPolicy StringId 
- Unique audit policy identifier.
- 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
- (Updatable) The OCID of the compartment containing the audit policy.
- 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.
- 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"}
- isData BooleanSafe Service Account Excluded 
- 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 Number
- (Updatable) An optional property when incremented triggers Provision. Could be set to any integer value.
- retrieveFrom NumberTarget Trigger 
- (Updatable) An optional property when incremented triggers Retrieve From Target. Could be set to any integer value. - ** 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 
- state String
- The current state of the audit policy.
- 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
- The OCID of the target for which the audit policy is created.
- timeCreated String
- The time the the audit policy was created, in the format defined by RFC3339.
- timeLast StringProvisioned 
- Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
- timeLast StringRetrieved 
- 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
AuditPolicyAuditCondition, AuditPolicyAuditConditionArgs        
- AuditPolicy stringName 
- 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<AuditPolicy Audit Condition Enable Condition> 
- 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..
- IsData boolSafe Service Account Audited 
- Indicates whether the Data Safe user activity on the target database will be audited by the policy.
- IsPriv boolUsers Managed By Data Safe 
- Indicates whether the privileged user list is managed by Data Safe.
- AuditPolicy stringName 
- 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 []AuditPolicy Audit Condition Enable Condition 
- 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..
- IsData boolSafe Service Account Audited 
- Indicates whether the Data Safe user activity on the target database will be audited by the policy.
- IsPriv boolUsers Managed By Data Safe 
- Indicates whether the privileged user list is managed by Data Safe.
- auditPolicy StringName 
- 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<AuditPolicy Audit Condition Enable Condition> 
- 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..
- isData BooleanSafe Service Account Audited 
- Indicates whether the Data Safe user activity on the target database will be audited by the policy.
- isPriv BooleanUsers Managed By Data Safe 
- Indicates whether the privileged user list is managed by Data Safe.
- auditPolicy stringName 
- 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 AuditPolicy Audit Condition Enable Condition[] 
- 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..
- isData booleanSafe Service Account Audited 
- Indicates whether the Data Safe user activity on the target database will be audited by the policy.
- isPriv booleanUsers Managed By Data Safe 
- Indicates whether the privileged user list is managed by Data Safe.
- audit_policy_ strname 
- 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[AuditPolicy Audit Condition Enable Condition] 
- 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_ boolsafe_ service_ account_ audited 
- Indicates whether the Data Safe user activity on the target database will be audited by the policy.
- is_priv_ boolusers_ managed_ by_ data_ safe 
- Indicates whether the privileged user list is managed by Data Safe.
- auditPolicy StringName 
- 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..
- isData BooleanSafe Service Account Audited 
- Indicates whether the Data Safe user activity on the target database will be audited by the policy.
- isPriv BooleanUsers Managed By Data Safe 
- Indicates whether the privileged user list is managed by Data Safe.
AuditPolicyAuditConditionEnableCondition, AuditPolicyAuditConditionEnableConditionArgs            
- 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.
AuditPolicyAuditSpecification, AuditPolicyAuditSpecificationArgs        
- AuditPolicy stringCategory 
- The category to which the audit policy belongs.
- AuditPolicy stringName 
- 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.
- DatabasePolicy List<string>Names 
- 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.
- IsEnabled boolFor All Users 
- Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.
- IsSeeded boolIn Data Safe 
- Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.
- IsSeeded boolIn Target 
- Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.
- IsView boolOnly 
- 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.
- PartiallyEnabled stringMsg 
- Provides information about the policy that has been only partially enabled.
- AuditPolicy stringCategory 
- The category to which the audit policy belongs.
- AuditPolicy stringName 
- 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.
- DatabasePolicy []stringNames 
- 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.
- IsEnabled boolFor All Users 
- Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.
- IsSeeded boolIn Data Safe 
- Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.
- IsSeeded boolIn Target 
- Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.
- IsView boolOnly 
- 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.
- PartiallyEnabled stringMsg 
- Provides information about the policy that has been only partially enabled.
- auditPolicy StringCategory 
- The category to which the audit policy belongs.
- auditPolicy StringName 
- 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.
- databasePolicy List<String>Names 
- 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.
- isEnabled BooleanFor All Users 
- Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.
- isSeeded BooleanIn Data Safe 
- Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.
- isSeeded BooleanIn Target 
- Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.
- isView BooleanOnly 
- 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.
- partiallyEnabled StringMsg 
- Provides information about the policy that has been only partially enabled.
- auditPolicy stringCategory 
- The category to which the audit policy belongs.
- auditPolicy stringName 
- 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.
- databasePolicy string[]Names 
- 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.
- isEnabled booleanFor All Users 
- Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.
- isSeeded booleanIn Data Safe 
- Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.
- isSeeded booleanIn Target 
- Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.
- isView booleanOnly 
- 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.
- partiallyEnabled stringMsg 
- Provides information about the policy that has been only partially enabled.
- audit_policy_ strcategory 
- The category to which the audit policy belongs.
- audit_policy_ strname 
- 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_ Sequence[str]names 
- 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_ boolfor_ all_ users 
- Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.
- is_seeded_ boolin_ data_ safe 
- Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.
- is_seeded_ boolin_ target 
- Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.
- is_view_ boolonly 
- 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_ strmsg 
- Provides information about the policy that has been only partially enabled.
- auditPolicy StringCategory 
- The category to which the audit policy belongs.
- auditPolicy StringName 
- 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.
- databasePolicy List<String>Names 
- 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.
- isEnabled BooleanFor All Users 
- Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.
- isSeeded BooleanIn Data Safe 
- Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.
- isSeeded BooleanIn Target 
- Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.
- isView BooleanOnly 
- 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.
- partiallyEnabled StringMsg 
- Provides information about the policy that has been only partially enabled.
Import
AuditPolicies can be imported using the id, e.g.
$ pulumi import oci:DataSafe/auditPolicy:AuditPolicy test_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 ociTerraform Provider.