oci_identity_domains_my_smtp_credential

This resource provides the My Smtp Credential resource in Oracle Cloud Infrastructure Identity Domains service.

Create a user’s own SMTP credential.

Example Usage

resource "oci_identity_domains_my_smtp_credential" "test_my_smtp_credential" {
	#Required
	idcs_endpoint = data.oci_identity_domain.test_domain.url
	schemas = ["urn:ietf:params:scim:schemas:oracle:idcs:smtpCredential"]

	#Optional
	authorization = var.my_smtp_credential_authorization
	description = var.my_smtp_credential_description
	expires_on = var.my_smtp_credential_expires_on
	id = var.my_smtp_credential_id
	ocid = var.my_smtp_credential_ocid
	resource_type_schema_version = var.my_smtp_credential_resource_type_schema_version
	status = var.my_smtp_credential_status
	tags {
		#Required
		key = var.my_smtp_credential_tags_key
		value = var.my_smtp_credential_tags_value
	}
	user {

		#Optional
		ocid = var.my_smtp_credential_user_ocid
		value = var.my_smtp_credential_user_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 My Smtp Credential * update - (Defaults to 20 minutes), when updating the My Smtp Credential * delete - (Defaults to 20 minutes), when destroying the My Smtp Credential

Import

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

$ terraform import oci_identity_domains_my_smtp_credential.test_my_smtp_credential "idcsEndpoint/{idcsEndpoint}/mySmtpCredentials/{mySmtpCredentialId}"