oci_media_services_media_asset

This resource provides the Media Asset resource in Oracle Cloud Infrastructure Media Services service.

Creates a new MediaAsset.

Example Usage

resource "oci_media_services_media_asset" "test_media_asset" {
	#Required
	compartment_id = var.compartment_id
	type = var.media_asset_type

	#Optional
	bucket = var.media_asset_bucket
	defined_tags = {"foo-namespace.bar-key"= "value"}
	display_name = var.media_asset_display_name
	freeform_tags = {"bar-key"= "value"}
	locks {
		#Required
		compartment_id = var.compartment_id
		type = var.media_asset_locks_type

		#Optional
		message = var.media_asset_locks_message
		related_resource_id = oci_usage_proxy_resource.test_resource.id
		time_created = var.media_asset_locks_time_created
	}
	master_media_asset_id = oci_media_services_media_asset.test_media_asset.id
	media_asset_tags {
		#Required
		value = var.media_asset_media_asset_tags_value

		#Optional
		type = var.media_asset_media_asset_tags_type
	}
	media_workflow_job_id = oci_media_services_media_workflow_job.test_media_workflow_job.id
	metadata {
		#Required
		metadata = var.media_asset_metadata_metadata
	}
	namespace = var.media_asset_namespace
	object = var.media_asset_object
	object_etag = var.media_asset_object_etag
	parent_media_asset_id = oci_media_services_media_asset.test_media_asset.id
	segment_range_end_index = var.media_asset_segment_range_end_index
	segment_range_start_index = var.media_asset_segment_range_start_index
	source_media_workflow_id = oci_media_services_media_workflow.test_media_workflow.id
	source_media_workflow_version = var.media_asset_source_media_workflow_version
}

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

Import

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

$ terraform import oci_media_services_media_asset.test_media_asset "id"