oci_iot_digital_twin_relationship

This resource provides the Digital Twin Relationship resource in Oracle Cloud Infrastructure Iot service.

Creates a new digital twin relationship.

Example Usage

resource "oci_iot_digital_twin_relationship" "test_digital_twin_relationship" {
	#Required
	content_path = var.digital_twin_relationship_content_path
	iot_domain_id = oci_iot_iot_domain.test_iot_domain.id
	source_digital_twin_instance_id = oci_iot_digital_twin_instance.test_digital_twin_instance.id
	target_digital_twin_instance_id = oci_iot_digital_twin_instance.test_digital_twin_instance.id

	#Optional
	content = var.digital_twin_relationship_content
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.digital_twin_relationship_description
	display_name = var.digital_twin_relationship_display_name
	freeform_tags = {"Department"= "Finance"}
}

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

Import

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

$ terraform import oci_iot_digital_twin_relationship.test_digital_twin_relationship "id"