oci_media_services_stream_cdn_config

This resource provides the Stream Cdn Config resource in Oracle Cloud Infrastructure Media Services service.

Creates a new CDN Configuration.

Example Usage

resource "oci_media_services_stream_cdn_config" "test_stream_cdn_config" {
	#Required
	config {
		#Required
		type = var.stream_cdn_config_config_type

		#Optional
		edge_hostname = var.stream_cdn_config_config_edge_hostname
		edge_path_prefix = var.stream_cdn_config_config_edge_path_prefix
		edge_token_key = var.stream_cdn_config_config_edge_token_key
		edge_token_salt = var.stream_cdn_config_config_edge_token_salt
		is_edge_token_auth = var.stream_cdn_config_config_is_edge_token_auth
		origin_auth_secret_key_a = var.stream_cdn_config_config_origin_auth_secret_key_a
		origin_auth_secret_key_b = var.stream_cdn_config_config_origin_auth_secret_key_b
		origin_auth_secret_key_nonce_a = var.stream_cdn_config_config_origin_auth_secret_key_nonce_a
		origin_auth_secret_key_nonce_b = var.stream_cdn_config_config_origin_auth_secret_key_nonce_b
		origin_auth_sign_encryption = var.stream_cdn_config_config_origin_auth_sign_encryption
		origin_auth_sign_type = var.stream_cdn_config_config_origin_auth_sign_type
	}
	display_name = var.stream_cdn_config_display_name
	distribution_channel_id = oci_mysql_channel.test_channel.id

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	freeform_tags = {"bar-key"= "value"}
	is_enabled = var.stream_cdn_config_is_enabled
	locks {
		#Required
		compartment_id = var.compartment_id
		type = var.stream_cdn_config_locks_type

		#Optional
		message = var.stream_cdn_config_locks_message
		related_resource_id = oci_usage_proxy_resource.test_resource.id
		time_created = var.stream_cdn_config_locks_time_created
	}
}

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

Import

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

$ terraform import oci_media_services_stream_cdn_config.test_stream_cdn_config "id"