oci_data_safe_security_policy_deployment
This resource provides the Security Policy Deployment resource in Oracle Cloud Infrastructure Data Safe service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/data-safe/latest/SecurityPolicyDeployment
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/datasafe
Creates a Data Safe security policy deployment in the Data Safe Console.
Example Usage
resource "oci_data_safe_security_policy_deployment" "test_security_policy_deployment" {
#Required
compartment_id = var.compartment_id
security_policy_id = oci_data_safe_security_policy.test_security_policy.id
target_id = oci_cloud_guard_target.test_target.id
target_type = var.security_policy_deployment_target_type
#Optional
defined_tags = {"Operations.CostCenter"= "42"}
description = var.security_policy_deployment_description
display_name = var.security_policy_deployment_display_name
freeform_tags = {"Department"= "Finance"}
}
Argument Reference
The following arguments are supported:
compartment_id- (Required) (Updatable) The OCID of the compartment in which to create the unified audit policy.defined_tags- (Optional) (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- (Optional) (Updatable) The description of the security policy.display_name- (Optional) (Updatable) The display name of the security policy deployment. The name does not have to be unique, and it is changeable.freeform_tags- (Optional) (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"}security_policy_id- (Required) The OCID of the security policy corresponding to the security policy deployment.target_id- (Required) The OCID of the target where the security policy is deployed.target_type- (Required) Indicates whether the security policy deployment is for a target database or a target database group.deploy_trigger- (Optional) (Updatable) An optional property when incremented triggers Deploy. Could be set to any integer value.refresh_trigger- (Optional) (Updatable) An optional property when incremented triggers Refresh. 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
Attributes Reference
The following attributes are exported:
compartment_id- The OCID of the compartment containing the security policy deployment.defined_tags- 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- The description of the security policy deployment.display_name- The display name of the security policy deployment.freeform_tags- 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"}id- The OCID of the security policy deployment.lifecycle_details- Details about the current state of the security policy deployment in Data Safe.security_policy_id- The OCID of the security policy corresponding to the security policy deployment.state- The current state of the security policy deployment.system_tags- 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- The OCID of the target/target group where the security policy is deployed.target_type- Indicates whether the security policy deployment is for a target database or a target database group.time_created- The time that the security policy deployment was created, in the format defined by RFC3339.time_deployed- The last date and time the security policy was deployed, in the format defined by RFC3339.time_updated- The last date and time the security policy deployment was updated, in the format defined by RFC3339.
Timeouts
The timeouts block allows you to specify timeouts for certain operations:
* create - (Defaults to 20 minutes), when creating the Security Policy Deployment
* update - (Defaults to 20 minutes), when updating the Security Policy Deployment
* delete - (Defaults to 20 minutes), when destroying the Security Policy Deployment
Import
SecurityPolicyDeployments can be imported using the id, e.g.
$ terraform import oci_data_safe_security_policy_deployment.test_security_policy_deployment "id"