oci_ons_notification_topic

This resource provides the Notification Topic resource in Oracle Cloud Infrastructure Notifications service.

Creates a topic in the specified compartment. For general information about topics, see Managing Topics and Subscriptions.

For the purposes of access control, you must provide the OCID of the compartment where you want the topic to reside. For information about access control and compartments, see Overview of the IAM Service.

You must specify a display name for the topic.

All Oracle Cloud Infrastructure resources, including topics, get an Oracle-assigned, unique ID called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID in the response. You can also retrieve a resource’s OCID by using a List API operation on that resource type, or by viewing the resource in the Console. For more information, see Resource Identifiers.

Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

Example Usage

resource "oci_ons_notification_topic" "test_notification_topic" {
	#Required
	compartment_id = var.compartment_id
	name = var.notification_topic_name

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.notification_topic_description
	freeform_tags = {"Department"= "Finance"}
}

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 15 minutes), when creating the Notification Topic * update - (Defaults to 15 minutes), when updating the Notification Topic * delete - (Defaults to 150 minutes), when destroying the Notification Topic

Import

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

$ terraform import oci_ons_notification_topic.test_notification_topic "id"