oci_queue_queue

This resource provides the Queue resource in Oracle Cloud Infrastructure Queue service.

Creates a new queue.

Example Usage

resource "oci_queue_queue" "test_queue" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.queue_display_name

	#Optional
	channel_consumption_limit = var.queue_channel_consumption_limit
	custom_encryption_key_id = oci_kms_key.test_key.id
	dead_letter_queue_delivery_count = var.queue_dead_letter_queue_delivery_count
	purge_trigger = var.purge_trigger
	purge_type = var.purge_type
	defined_tags = {"foo-namespace.bar-key"= "value"}
	freeform_tags = {"bar-key"= "value"}
	retention_in_seconds = var.queue_retention_in_seconds
	timeout_in_seconds = var.queue_timeout_in_seconds
	visibility_in_seconds = var.queue_visibility_in_seconds
}

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

Import

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

$ terraform import oci_queue_queue.test_queue "id"