oci_cloud_guard_detector_recipe
This resource provides the Detector Recipe resource in Oracle Cloud Infrastructure Cloud Guard service.
Creates a new DetectorRecipe resource.
Example Usage
resource "oci_cloud_guard_detector_recipe" "test_detector_recipe" {
#Required
compartment_id = var.compartment_id
display_name = var.detector_recipe_display_name
#Optional
defined_tags = {"foo-namespace.bar-key"= "value"}
description = var.detector_recipe_description
detector = var.detector_recipe_detector
detector_rules {
#Required
details {
#Required
is_enabled = var.detector_recipe_detector_rules_details_is_enabled
risk_level = var.detector_recipe_detector_rules_details_risk_level
#Optional
condition = var.detector_recipe_detector_rules_details_condition
configurations {
#Required
config_key = var.detector_recipe_detector_rules_details_configurations_config_key
name = var.detector_recipe_detector_rules_details_configurations_name
#Optional
data_type = var.detector_recipe_detector_rules_details_configurations_data_type
value = var.detector_recipe_detector_rules_details_configurations_value
values {
#Required
list_type = var.detector_recipe_detector_rules_details_configurations_values_list_type
managed_list_type = var.detector_recipe_detector_rules_details_configurations_values_managed_list_type
value = var.detector_recipe_detector_rules_details_configurations_values_value
}
}
data_source_id = oci_cloud_guard_data_source.test_data_source.id
description = var.detector_recipe_detector_rules_details_description
entities_mappings {
#Required
query_field = var.detector_recipe_detector_rules_details_entities_mappings_query_field
#Optional
display_name = var.detector_recipe_detector_rules_details_entities_mappings_display_name
entity_type = var.detector_recipe_detector_rules_details_entities_mappings_entity_type
}
labels = var.detector_recipe_detector_rules_details_labels
recommendation = var.detector_recipe_detector_rules_details_recommendation
}
detector_rule_id = oci_events_rule.test_rule.id
}
freeform_tags = {"bar-key"= "value"}
source_detector_recipe_id = oci_cloud_guard_detector_recipe.test_detector_recipe.id
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) (Updatable) Compartment OCIDdefined_tags
- (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
description
- (Optional) (Updatable) Detector recipe description.Avoid entering confidential information.
detector
- (Optional) Detector for the ruledetector_rules
- (Optional) (Updatable) Detector rules to override from source detector recipedetails
- (Required) (Updatable) Parameters to be updated for a detector rule within a detector recipe.condition
- (Optional) (Updatable) The base condition resource.configurations
- (Optional) (Updatable) List of detector rule configurationsconfig_key
- (Required) (Updatable) Unique identifier of the configurationdata_type
- (Optional) (Updatable) Configuration data typename
- (Required) (Updatable) Configuration namevalue
- (Optional) (Updatable) Configuration valuevalues
- (Optional) (Updatable) List of configuration valueslist_type
- (Required) (Updatable) Configuration list item type (CUSTOM or MANAGED)managed_list_type
- (Required) (Updatable) Type of content in the managed listvalue
- (Required) (Updatable) Configuration value
data_source_id
- (Optional) (Updatable) The unique identifier of the attached data sourcedescription
- (Optional) (Updatable) Description for the detector ruleentities_mappings
- (Optional) (Updatable) Data source entities mapping for a detector ruledisplay_name
- (Optional) (Updatable) Display name of the entityentity_type
- (Optional) (Updatable) Type of entityquery_field
- (Required) (Updatable) The entity value mapped to a data source query
is_enabled
- (Required) (Updatable) Enablement status of the detector rulelabels
- (Optional) (Updatable) User-defined labels for a detector rulerecommendation
- (Optional) (Updatable) Recommendation for the detector rulerisk_level
- (Required) (Updatable) The risk level of the detector rule
detector_rule_id
- (Required) (Updatable) Detector recipe rule ID
display_name
- (Required) (Updatable) Detector recipe display name.Avoid entering confidential information.
freeform_tags
- (Optional) (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}
Avoid entering confidential information.
source_detector_recipe_id
- (Optional) The ID of the source detector recipe
** 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
- Compartment OCID of detector recipedefined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
description
- Detector recipe descriptiondetector
- Type of detectordetector_recipe_type
- Recipe type ( STANDARD, ENTERPRISE )detector_rules
- List of detector rules for the detector type for recipe - user inputcandidate_responder_rules
- List of responder rules that can be used to remediate this detector ruledisplay_name
- The display name of the responder ruleid
- The unique identifier of the responder ruleis_preferred
- Is this the preferred state?
data_source_id
- The unique identifier of the attached data sourcedescription
- Description for DetectorRecipeDetectorRule resourcedetails
- Detailed information for a detector.condition
- The base condition resource.configurations
- List of detector rule configurationsconfig_key
- Unique identifier of the configurationdata_type
- Configuration data typename
- Configuration namevalue
- Configuration valuevalues
- List of configuration valueslist_type
- Configuration list item type (CUSTOM or MANAGED)managed_list_type
- Type of content in the managed listvalue
- Configuration value
data_source_id
- The ID of the attached data sourcedescription
- Description for detector recipe detector ruleentities_mappings
- Data source entities mapping for a detector ruledisplay_name
- Display name of the entityentity_type
- Type of entityquery_field
- The entity value mapped to a data source query
is_configuration_allowed
- Can the rule be configured?is_enabled
- Enablement status for the rulelabels
- User-defined labels for a detector rulerecommendation
- Recommendation for detector recipe detector rulerisk_level
- The risk level for the rule
detector
- Detector recipe for the ruledetector_rule_id
- The unique identifier of the detector rule.display_name
- Display name for DetectorRecipeDetectorRule resourceentities_mappings
- Data source entities mapping for the detector ruledisplay_name
- Display name of the entityentity_type
- Type of entityquery_field
- The entity value mapped to a data source query
lifecycle_details
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.managed_list_types
- List of managed list types related to this rulerecommendation
- Recommendation for DetectorRecipeDetectorRule resourceresource_type
- Resource type of the configuration to which the rule is appliedservice_type
- Service type of the configuration to which the rule is appliedstate
- The current lifecycle state of the detector rule.time_created
- The date and time the detector recipe rule was created. Format defined by RFC3339.time_updated
- The date and time the detector recipe rule was last updated. Format defined by RFC3339.
display_name
- Display name of detector recipeeffective_detector_rules
- List of effective detector rules for the detector type for recipe after applying defaultscandidate_responder_rules
- List of responder rules that can be used to remediate this detector ruledisplay_name
- The display name of the responder ruleid
- The unique identifier of the responder ruleis_preferred
- Is this the preferred state?
data_source_id
- The unique identifier of the attached data sourcedescription
- Description for DetectorRecipeDetectorRule resourcedetails
- Detailed information for a detector.condition
- The base condition resource.configurations
- List of detector rule configurationsconfig_key
- Unique identifier of the configurationdata_type
- Configuration data typename
- Configuration namevalue
- Configuration valuevalues
- List of configuration valueslist_type
- Configuration list item type (CUSTOM or MANAGED)managed_list_type
- Type of content in the managed listvalue
- Configuration value
data_source_id
- The ID of the attached data sourcedescription
- Description for detector recipe detector ruleentities_mappings
- Data source entities mapping for a detector ruledisplay_name
- Display name of the entityentity_type
- Type of entityquery_field
- The entity value mapped to a data source query
is_configuration_allowed
- Can the rule be configured?is_enabled
- Enablement status for the rulelabels
- User-defined labels for a detector rulerecommendation
- Recommendation for detector recipe detector rulerisk_level
- The risk level for the rule
detector
- Detector recipe for the ruledetector_rule_id
- The unique identifier of the detector rule.display_name
- Display name for DetectorRecipeDetectorRule resourceentities_mappings
- Data source entities mapping for the detector ruledisplay_name
- Display name of the entityentity_type
- Type of entityquery_field
- The entity value mapped to a data source query
lifecycle_details
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.managed_list_types
- List of managed list types related to this rulerecommendation
- Recommendation for DetectorRecipeDetectorRule resourceresource_type
- Resource type of the configuration to which the rule is appliedservice_type
- Service type of the configuration to which the rule is appliedstate
- The current lifecycle state of the detector rule.time_created
- The date and time the detector recipe rule was created. Format defined by RFC3339.time_updated
- The date and time the detector recipe rule was last updated. Format defined by RFC3339.
freeform_tags
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}
Avoid entering confidential information.
id
- OCID for detector recipeowner
- Owner of detector recipesource_detector_recipe_id
- Recipe OCID of the source recipe to be clonedstate
- The current lifecycle state of the resourcesystem_tags
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:{"orcl-cloud.free-tier-retained": "true"}
target_ids
- List of target IDs to which the recipe is attachedtime_created
- The date and time the detector recipe was created Format defined by RFC3339.time_updated
- The date and time the detector recipe was last updated Format defined by RFC3339.
Timeouts
The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 20 minutes), when creating the Detector Recipe
* update
- (Defaults to 20 minutes), when updating the Detector Recipe
* delete
- (Defaults to 20 minutes), when destroying the Detector Recipe
Import
DetectorRecipes can be imported using the id
, e.g.
$ terraform import oci_cloud_guard_detector_recipe.test_detector_recipe "id"