oci_security_attribute_security_attribute_namespace

This resource provides the Security Attribute Namespace resource in Oracle Cloud Infrastructure Security Attribute service.

Creates a new security attribute namespace in the specified compartment.

You must specify the compartment ID in the request object (remember that the tenancy is simply the root compartment).

You must also specify a name for the namespace, which must be unique across all namespaces in your tenancy and cannot be changed. The only valid characters for security attribute names are:  0-9, A-Z, a-z, -, _ characters. Names are case insensitive. That means, for example, “myNamespace” and “mynamespace” are not allowed in the same tenancy. Once you created a namespace, you cannot change the name. If you specify a name that’s already in use in the tenancy, a 409 error is returned.

You must also specify a description for the namespace. It does not have to be unique, and you can change it with UpdateSecurityAttributeNamespace.

Example Usage

resource "oci_security_attribute_security_attribute_namespace" "test_security_attribute_namespace" {
	#Required
	compartment_id = var.compartment_id
	description = var.security_attribute_namespace_description
	name = var.security_attribute_namespace_name

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	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 20 minutes), when creating the Security Attribute Namespace * update - (Defaults to 20 minutes), when updating the Security Attribute Namespace * delete - (Defaults to 20 minutes), when destroying the Security Attribute Namespace

Import

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

$ terraform import oci_security_attribute_security_attribute_namespace.test_security_attribute_namespace "id"