oci_metering_computation_usage_statement_email_recipients_group

This resource provides the Usage Statement Email Recipients Group resource in Oracle Cloud Infrastructure Metering Computation service.

Add a list of email recipients that can receive usage statements for the subscription.

Example Usage

resource "oci_metering_computation_usage_statement_email_recipients_group" "test_usage_statement_email_recipients_group" {
    #Required
    compartment_id = var.compartment_id
    recipients_list {
        #Required
        email_id = oci_metering_computation_email.test_email.id
        state = var.usage_statement_email_recipients_group_recipients_list_state

        #Optional
        first_name = var.usage_statement_email_recipients_group_recipients_list_first_name
        last_name = var.usage_statement_email_recipients_group_recipients_list_last_name
    }
    subscription_id = oci_onesubscription_subscription.test_subscription.id
}

Argument Reference

The following arguments are supported:

* IMPORTANT * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Usage Statement Email Recipients Group * update - (Defaults to 20 minutes), when updating the Usage Statement Email Recipients Group * delete - (Defaults to 20 minutes), when destroying the Usage Statement Email Recipients Group

Import

UsageStatementEmailRecipientsGroups can be imported using the id, e.g.

$ terraform import oci_metering_computation_usage_statement_email_recipients_group.test_usage_statement_email_recipients_group "usageStatements/{subscriptionId}/emailRecipientsGroups/{emailRecipientsGroupId}/compartmentId/{compartmentId}"