oci_ai_anomaly_detection_data_asset

This resource provides the Data Asset resource in Oracle Cloud Infrastructure Ai Anomaly Detection service.

Creates a new DataAsset.

Example Usage

resource "oci_ai_anomaly_detection_data_asset" "test_data_asset" {
	#Required
	compartment_id = var.compartment_id
	data_source_details {
		#Required
		data_source_type = var.data_asset_data_source_details_data_source_type

		#Optional
		atp_password_secret_id = oci_vault_secret.test_secret.id
		atp_user_name = oci_identity_user.test_user.name
		bucket = var.data_asset_data_source_details_bucket
		cwallet_file_secret_id = oci_vault_secret.test_secret.id
		database_name = oci_database_database.test_database.name
		ewallet_file_secret_id = oci_vault_secret.test_secret.id
		key_store_file_secret_id = oci_vault_secret.test_secret.id
		measurement_name = var.data_asset_data_source_details_measurement_name
		namespace = var.data_asset_data_source_details_namespace
		object = var.data_asset_data_source_details_object
		ojdbc_file_secret_id = oci_vault_secret.test_secret.id
		password_secret_id = oci_vault_secret.test_secret.id
		table_name = oci_nosql_table.test_table.name
		tnsnames_file_secret_id = oci_vault_secret.test_secret.id
		truststore_file_secret_id = oci_vault_secret.test_secret.id
		url = var.data_asset_data_source_details_url
		user_name = oci_identity_user.test_user.name
		version_specific_details {
			#Required
			influx_version = var.data_asset_data_source_details_version_specific_details_influx_version

			#Optional
			bucket = var.data_asset_data_source_details_version_specific_details_bucket
			database_name = oci_database_database.test_database.name
			organization_name = var.data_asset_data_source_details_version_specific_details_organization_name
			retention_policy_name = oci_identity_policy.test_policy.name
		}
		wallet_password_secret_id = oci_vault_secret.test_secret.id
	}
	project_id = oci_ai_anomaly_detection_project.test_project.id

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.data_asset_description
	display_name = var.data_asset_display_name
	freeform_tags = {"bar-key"= "value"}
	private_endpoint_id = oci_dataflow_private_endpoint.test_private_endpoint.id
}

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 Asset * update - (Defaults to 20 minutes), when updating the Data Asset * delete - (Defaults to 20 minutes), when destroying the Data Asset

Import

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

$ terraform import oci_ai_anomaly_detection_data_asset.test_data_asset "id"