Provides a Direct Mail Domain resource.
For information about Direct Mail Domain and how to use it, see What is Domain.
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"
}
The following arguments are supported:
domain_name
- (Required, ForceNew) Domain, length 1
to 50
, including numbers or capitals or lowercase letters or .
or -
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.Direct Mail Domain can be imported using the id, e.g.
$ terraform import alicloud_direct_mail_domain.example <id>