back
terraform {
required_providers {
oci = ">= 4.21.0"
}
}
top
module "oci_email_sender" {
source = "./modules/oci/r/oci_email_sender"
# compartment_id - (required) is a type of string
compartment_id = null
# defined_tags - (optional) is a type of map of string
defined_tags = {}
# email_address - (required) is a type of string
email_address = null
# freeform_tags - (optional) is a type of map of string
freeform_tags = {}
timeouts = [{
create = null
delete = null
update = null
}]
}
top
variable "compartment_id" {
description = "(required)"
type = string
}
variable "defined_tags" {
description = "(optional)"
type = map(string)
default = null
}
variable "email_address" {
description = "(required)"
type = string
}
variable "freeform_tags" {
description = "(optional)"
type = map(string)
default = null
}
variable "timeouts" {
description = "nested block: NestingSingle, min items: 0, max items: 0"
type = set(object(
{
create = string
delete = string
update = string
}
))
default = []
}
top
resource "oci_email_sender" "this" {
# compartment_id - (required) is a type of string
compartment_id = var.compartment_id
# defined_tags - (optional) is a type of map of string
defined_tags = var.defined_tags
# email_address - (required) is a type of string
email_address = var.email_address
# freeform_tags - (optional) is a type of map of string
freeform_tags = var.freeform_tags
dynamic "timeouts" {
for_each = var.timeouts
content {
# create - (optional) is a type of string
create = timeouts.value["create"]
# delete - (optional) is a type of string
delete = timeouts.value["delete"]
# update - (optional) is a type of string
update = timeouts.value["update"]
}
}
}
top
output "defined_tags" {
description = "returns a map of string"
value = oci_email_sender.this.defined_tags
}
output "freeform_tags" {
description = "returns a map of string"
value = oci_email_sender.this.freeform_tags
}
output "id" {
description = "returns a string"
value = oci_email_sender.this.id
}
output "is_spf" {
description = "returns a bool"
value = oci_email_sender.this.is_spf
}
output "state" {
description = "returns a string"
value = oci_email_sender.this.state
}
output "time_created" {
description = "returns a string"
value = oci_email_sender.this.time_created
}
output "this" {
value = oci_email_sender.this
}
top