oci_identity_smtp_credential

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

Creates a new SMTP credential for the specified user. An SMTP credential has an SMTP user name and an SMTP password. You must specify a description for the SMTP credential (although it can be an empty string). It does not have to be unique, and you can change it anytime with UpdateSmtpCredential.

Example Usage

resource "oci_identity_smtp_credential" "test_smtp_credential" {
	#Required
	description = var.smtp_credential_description
	user_id = oci_identity_user.test_user.id
}

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

Import

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

$ terraform import oci_identity_smtp_credential.test_smtp_credential "users/{userId}/smtpCredentials/{smtpCredentialId}"