alicloud_direct_mail_mail_address

Provides a Direct Mail Mail Address resource.

For information about Direct Mail Mail Address and how to use it, see What is Mail Address.

Example Usage

Basic Usage

variable "account_name" {
  default = "tfexample"
}
variable "domain_name" {
  default = "alicloud-provider.online"
}
provider "alicloud" {
  region = "cn-hangzhou"
}

resource "alicloud_direct_mail_domain" "example" {
  domain_name = var.domain_name
}
resource "alicloud_direct_mail_mail_address" "example" {
  account_name = format("%s@%s", var.account_name, alicloud_direct_mail_domain.example.domain_name)
  sendtype     = "batch"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Direct Mail Mail Address can be imported using the id, e.g.

$ terraform import alicloud_direct_mail_mail_address.example <id>