alicloud_resource_manager_message_contact
Provides a Resource Manager Message Contact resource.
Message contact for Resource Directory account.
For information about Resource Manager Message Contact and how to use it, see What is Message Contact.
-> NOTE: Available since v1.259.0.
Example Usage
Basic Usage
variable "name" {
default = "terraform-example"
}
provider "alicloud" {
region = "cn-hangzhou"
}
resource "alicloud_resource_manager_message_contact" "default" {
message_types = ["AccountExpenses"]
phone_number = "86-18626811111"
title = "TechnicalDirector"
email_address = "resourceexample@126.com"
message_contact_name = "example"
}
Argument Reference
The following arguments are supported:
email_address
- (Required) The email address of the contact. After you specify an email address, you need to call SendEmailVerificationForMessageContact to send verification information to the email address. After the verification is passed, the email address takes effect.message_contact_name
- (Required) The name of the contact. The name must be unique in your resource directory. The name must be 2 to 12 characters in length and can contain only letters.message_types
- (Required, List) The types of messages received by the contact.phone_number
- (Optional) The mobile phone number of the contact.
Specify the mobile phone number in the -
format.
-> NOTE: Only mobile phone numbers in the 86-
format in the Chinese mainland are supported.
After you specify a mobile phone number, you need to call SendPhoneVerificationForMessageContact to send verification information to the mobile phone number. After the verification is passed, the mobile phone number takes effect.
title
- (Required) The job title of the contact.Valid values:- FinanceDirector
- TechnicalDirector
- MaintenanceDirector
- CEO
- ProjectDirector
- Other
Attributes Reference
The following attributes are exported:
id
- The ID of the resource supplied above.create_time
- The time when the contact was created.status
- The status of the contact.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Message Contact.delete
- (Defaults to 5 mins) Used when delete the Message Contact.update
- (Defaults to 5 mins) Used when update the Message Contact.
Import
Resource Manager Message Contact can be imported using the id, e.g.
$ terraform import alicloud_resource_manager_message_contact.example <id>