oci_apm_config_data_file

This resource provides the Data File resource in Oracle Cloud Infrastructure Apm Config service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/apm-config/latest/DataFile

Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/apm/apm_config

Creates a new data file or replaces an existing one with the same name and type.

Example Usage

resource "oci_apm_config_data_file" "test_data_file" {
	#Required
	put_data_file_body = var.data_file_put_data_file_body
	apm_domain_id = oci_apm_apm_domain.test_apm_domain.id
	apm_type = var.data_file_apm_type
	data_file_name = oci_apm_config_data_file.test_data_file.name

	#Optional
	content_disposition = var.data_file_content_disposition
	content_encoding = var.data_file_content_encoding
	content_language = var.data_file_content_language
	content_md5 = var.data_file_content_md5
	content_type = var.data_file_content_type
	metadata = var.data_file_metadata
}

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

Import

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

$ terraform import oci_apm_config_data_file.test_data_file "dataFiles/{dataFileName}/apmDomainId/{apmDomainId}/apmType/{apmType}"