oci_email_sender
This resource provides the Sender resource in Oracle Cloud Infrastructure Email service.
Creates a sender for a tenancy in a given compartment.
Example Usage
resource "oci_email_sender" "test_sender" {
#Required
compartment_id = var.compartment_id
email_address = var.sender_email_address
#Optional
defined_tags = {"Operations.CostCenter"= "42"}
freeform_tags = {"Department"= "Finance"}
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) (Updatable) The OCID of the compartment that contains the sender.defined_tags
- (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}
email_address
- (Required) The email address of the sender.freeform_tags
- (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}
** 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:
compartment_id
- The OCID for the compartment.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}
email_address
- The email address of the sender.email_domain_id
- The email domain used to assert responsibility for emails sent from this sender.freeform_tags
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}
id
- The unique OCID of the sender.is_spf
- Value of the SPF field. For more information about SPF, please see SPF Authentication.locks
- Locks associated with this resource.compartment_id
- The lock compartment ID.message
- A message added by the lock creator. The message typically gives an indication of why the resource is locked.related_resource_id
- The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.time_created
- Indicates when the lock was created, in the format defined by RFC 3339.type
- Lock type.
state
- The current status of the approved sender.system_tags
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:{"orcl-cloud.free-tier-retained": "true"}
time_created
- The date and time the approved sender was added in “YYYY-MM-ddThh:mmZ” format with a Z offset, as defined by RFC 3339.
Timeouts
The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 20 minutes), when creating the Sender
* update
- (Defaults to 20 minutes), when updating the Sender
* delete
- (Defaults to 20 minutes), when destroying the Sender
Import
Senders can be imported using the id
, e.g.
$ terraform import oci_email_sender.test_sender "id"