oci_fleet_apps_management_patch

This resource provides the Patch resource in Oracle Cloud Infrastructure Fleet Apps Management service.

Creates a new Patch.

Example Usage

resource "oci_fleet_apps_management_patch" "test_patch" {
	#Required
	artifact_details {
		#Required
		category = var.patch_artifact_details_category

		#Optional
		artifact {

			#Optional
			content {
				#Required
				bucket = var.patch_artifact_details_artifact_content_bucket
				checksum = var.patch_artifact_details_artifact_content_checksum
				namespace = var.patch_artifact_details_artifact_content_namespace
				object = var.patch_artifact_details_artifact_content_object
				source_type = var.patch_artifact_details_artifact_content_source_type
			}
		}
		artifacts {

			#Optional
			architecture = var.patch_artifact_details_artifacts_architecture
			content {
				#Required
				bucket = var.patch_artifact_details_artifacts_content_bucket
				checksum = var.patch_artifact_details_artifacts_content_checksum
				namespace = var.patch_artifact_details_artifacts_content_namespace
				object = var.patch_artifact_details_artifacts_content_object
				source_type = var.patch_artifact_details_artifacts_content_source_type
			}
			os_type = var.patch_artifact_details_artifacts_os_type
		}
	}
	compartment_id = var.compartment_id
	name = var.patch_name
	patch_type {
		#Required
		platform_configuration_id = oci_fleet_apps_management_platform_configuration.test_platform_configuration.id
	}
	product {
		#Required
		platform_configuration_id = oci_fleet_apps_management_platform_configuration.test_platform_configuration.id

		#Optional
		version = var.patch_product_version
	}
	severity = var.patch_severity
	time_released = var.patch_time_released

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	dependent_patches {
		#Required
		id = var.patch_dependent_patches_id
	}
	description = var.patch_description
	freeform_tags = {"bar-key"= "value"}
}

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

Import

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

$ terraform import oci_fleet_apps_management_patch.test_patch "id"