alicloud_direct_mail_domain

更新时间:

Provides a Direct Mail Domain resource.

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

-> NOTE: Available since v1.134.0.

Example Usage

Basic Usage


resource "random_integer" "default" {
  min = 10000
  max = 99999
}
provider "alicloud" {
  region = "cn-hangzhou"
}
resource "alicloud_direct_mail_domain" "example" {
  domain_name = "alicloud-provider-${random_integer.default.result}.online"
}

Argument Reference

The following arguments are supported:

  • domain_name - (Required, ForceNew) Domain, length 1 to 50, including numbers or capitals or lowercase letters or . or -

Attributes Reference

The following attributes are exported:

  • id - The resource ID in terraform of Domain.
  • status - The status of the domain name. Valid values:0 to 4. 0:Available, Passed. 1: Unavailable, No passed. 2: Available, cname no passed, icp no passed. 3: Available, icp no passed. 4: Available, cname no passed.

Import

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

$ terraform import alicloud_direct_mail_domain.example <id>