Provide a resource to manage an unsubscribe group.
resource "sendgrid_unsubscribe_group" "default" {
name = "default-unsubscribe-group"
description = "The default unsubscribe group"
is_default = true
}
The following arguments are supported:
name
- (Required) The name you will use to describe this unsubscribe group.description
- (Optional) The description of the unsubscribe groupis_default
- (Optional) Should this unsubscribe group be used as the default group?
In addition to all arguments above, the following attributes are exported:
unsubscribes
- The number of unsubscribes that belong to the group.
An unsubscribe group can be imported, e.g.
$ terraform import sendgrid_unsubscribe_group.default unsubscribeGroupID