|
| 1 | +# oci_email_suppression |
| 2 | + |
| 3 | +## Suppression Resource |
| 4 | + |
| 5 | +### Suppression Reference |
| 6 | + |
| 7 | +The following attributes are exported: |
| 8 | + |
| 9 | +* `email_address` - The email address of the suppression. |
| 10 | +* `id` - The unique OCID of the suppression. |
| 11 | +* `reason` - The reason that the email address was suppressed. For more information on the types of bounces, see [Suppresion List](https://docs.us-phoenix-1.oraclecloud.com/Content/Email/Concepts/emaildeliveryoverview.htm#suppressionlist). |
| 12 | +* `time_created` - The date and time a recipient's email address was added to the suppression list, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339. |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | +### Create Operation |
| 17 | +Adds recipient email addresses to the suppression list for a tenancy. |
| 18 | + |
| 19 | + |
| 20 | +The following arguments are supported: |
| 21 | + |
| 22 | +* `compartment_id` - (Required) The OCID of the compartment to contain the suppression. Since suppressions are at the customer level, this must be the tenancy OCID. |
| 23 | +* `email_address` - (Required) The recipient email address of the suppression. |
| 24 | + |
| 25 | + |
| 26 | +### Update Operation |
| 27 | + |
| 28 | + |
| 29 | +The following arguments support updates: |
| 30 | +* NO arguments in this resource support updates |
| 31 | + |
| 32 | +** IMPORTANT ** |
| 33 | +Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values |
| 34 | + |
| 35 | +### Example Usage |
| 36 | + |
| 37 | +```hcl |
| 38 | +resource "oci_email_suppression" "test_suppression" { |
| 39 | + #Required |
| 40 | + compartment_id = "${var.tenancy_ocid}" |
| 41 | + email_address = "${var.suppression_email_address}" |
| 42 | +} |
| 43 | +``` |
| 44 | + |
| 45 | + |
| 46 | +## Suppression Singular DataSource |
| 47 | + |
| 48 | + |
| 49 | +### Get Operation |
| 50 | +Gets the details of a suppressed recipient email address for a given |
| 51 | +`suppressionId`. Each suppression is given a unique OCID. |
| 52 | + |
| 53 | + |
| 54 | +The following arguments are supported: |
| 55 | + |
| 56 | +* `suppression_id` - (Required) The unique OCID of the suppression. |
| 57 | + |
| 58 | + |
| 59 | +### Example Usage |
| 60 | + |
| 61 | +```hcl |
| 62 | +data "oci_email_suppression" "test_suppression" { |
| 63 | + #Required |
| 64 | + suppression_id = "${var.suppression_suppression_id}" |
| 65 | +} |
| 66 | +``` |
| 67 | +# oci_email_suppressions |
| 68 | + |
| 69 | +## Suppression DataSource |
| 70 | + |
| 71 | +Gets a list of suppressions. |
| 72 | + |
| 73 | +### List Operation |
| 74 | +Gets a list of suppressed recipient email addresses for a user. The |
| 75 | +`compartmentId` for suppressions must be a tenancy OCID. The returned list |
| 76 | +is sorted by creation time in descending order. |
| 77 | + |
| 78 | +The following arguments are supported: |
| 79 | + |
| 80 | +* `compartment_id` - (Required) The OCID for the compartment. |
| 81 | +* `email_address` - (Optional) The email address of the suppression. |
| 82 | +* `time_created_greater_than_or_equal_to` - (Optional) Search for suppressions that were created within a specific date range, using this parameter to specify the earliest creation date for the returned list (inclusive). Specifying this parameter without the corresponding `timeCreatedLessThan` parameter will retrieve suppressions created from the given `timeCreatedGreaterThanOrEqualTo` to the current time, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339. **Example:** 2016-12-19T16:39:57.600Z |
| 83 | +* `time_created_less_than` - (Optional) Search for suppressions that were created within a specific date range, using this parameter to specify the latest creation date for the returned list (exclusive). Specifying this parameter without the corresponding `timeCreatedGreaterThanOrEqualTo` parameter will retrieve all suppressions created before the specified end date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339. **Example:** 2016-12-19T16:39:57.600Z |
| 84 | + |
| 85 | + |
| 86 | +The following attributes are exported: |
| 87 | + |
| 88 | +* `suppressions` - The list of suppressions. |
| 89 | + |
| 90 | +### Example Usage |
| 91 | + |
| 92 | +```hcl |
| 93 | +data "oci_email_suppressions" "test_suppressions" { |
| 94 | + #Required |
| 95 | + compartment_id = "${var.tenancy_ocid}" |
| 96 | +
|
| 97 | + #Optional |
| 98 | + email_address = "${var.suppression_email_address}" |
| 99 | + time_created_greater_than_or_equal_to = "${var.suppression_time_created_greater_than_or_equal_to}" |
| 100 | + time_created_less_than = "${var.suppression_time_created_less_than}" |
| 101 | +} |
| 102 | +``` |
0 commit comments