oci_cloud_guard_data_source

This resource provides the Data Source resource in Oracle Cloud Infrastructure Cloud Guard service.

Creates a DataSource

Example Usage

resource "oci_cloud_guard_data_source" "test_data_source" {
    #Required
    compartment_id = var.compartment_id
    data_source_feed_provider = var.data_source_data_source_feed_provider
    display_name = var.data_source_display_name

    #Optional
    data_source_details {
        #Required
        data_source_feed_provider = var.data_source_data_source_details_data_source_feed_provider

        #Optional
        additional_entities_count = var.data_source_data_source_details_additional_entities_count
        interval_in_minutes = var.data_source_data_source_details_interval_in_minutes
        logging_query_details {
            #Required
            logging_query_type = var.data_source_data_source_details_logging_query_details_logging_query_type

            #Optional
            key_entities_count = var.data_source_data_source_details_logging_query_details_key_entities_count
        }
        logging_query_type = var.data_source_data_source_details_logging_query_type
        operator = var.data_source_data_source_details_operator
        query = var.data_source_data_source_details_query
        query_start_time {
            #Required
            start_policy_type = var.data_source_data_source_details_query_start_time_start_policy_type

            #Optional
            query_start_time = var.data_source_data_source_details_query_start_time_query_start_time
        }
        regions = var.data_source_data_source_details_regions
        threshold = var.data_source_data_source_details_threshold
    }
    defined_tags = {"foo-namespace.bar-key"= "value"}
    freeform_tags = {"bar-key"= "value"}
    status = var.data_source_status
}

Argument Reference

The following arguments are supported:

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

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Data Source * update - (Defaults to 20 minutes), when updating the Data Source * delete - (Defaults to 20 minutes), when destroying the Data Source

Import

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

$ terraform import oci_cloud_guard_data_source.test_data_source "id"