import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Suppression resource in Oracle Cloud Infrastructure Email service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/email/latest/Suppression * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/email * * Adds recipient email addresses to the suppression list for a tenancy. * Addresses added to the suppression list via the API are denoted as * "MANUAL" in the `reason` field. *Note:* All email addresses added to the * suppression list are normalized to include only lowercase letters. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSuppression = new oci.email.Suppression("test_suppression", { * compartmentId: tenancyOcid, * emailAddress: suppressionEmailAddress, * }); * ``` * * ## Import * * Suppressions can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Email/suppression:Suppression test_suppression "id" * ``` */ export declare class Suppression extends pulumi.CustomResource { /** * Get an existing Suppression resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: SuppressionState, opts?: pulumi.CustomResourceOptions): Suppression; /** * Returns true if the given object is an instance of Suppression. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Suppression; /** * The OCID of the compartment to contain the suppression. Since suppressions are at the customer level, this must be the tenancy OCID. */ readonly compartmentId: pulumi.Output; /** * The recipient email address of the suppression. * * ** 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 */ readonly emailAddress: pulumi.Output; /** * The specific error message returned by a system that resulted in the suppression. This message is usually an SMTP error code with additional descriptive text. Not provided for all types of suppressions. */ readonly errorDetail: pulumi.Output; /** * DNS name of the source of the error that caused the suppression. Will be set to either the remote-mta or reporting-mta field from a delivery status notification (RFC 3464) when available. Not provided for all types of suppressions, and not always known. */ readonly errorSource: pulumi.Output; /** * The value of the Message-ID header from the email that triggered a suppression. This value is as defined in RFC 5322 section 3.6.4, excluding angle-brackets. Not provided for all types of suppressions. */ readonly messageId: pulumi.Output; /** * The reason that the email address was suppressed. For more information on the types of bounces, see [Suppression List](https://docs.cloud.oracle.com/iaas/Content/Email/Concepts/overview.htm#components). */ readonly reason: pulumi.Output; /** * 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](https://tools.ietf.org/html/rfc3339). */ readonly timeCreated: pulumi.Output; /** * The last date and time the suppression prevented submission in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). */ readonly timeLastSuppressed: pulumi.Output; /** * Create a Suppression resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: SuppressionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Suppression resources. */ export interface SuppressionState { /** * The OCID of the compartment to contain the suppression. Since suppressions are at the customer level, this must be the tenancy OCID. */ compartmentId?: pulumi.Input; /** * The recipient email address of the suppression. * * ** 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 */ emailAddress?: pulumi.Input; /** * The specific error message returned by a system that resulted in the suppression. This message is usually an SMTP error code with additional descriptive text. Not provided for all types of suppressions. */ errorDetail?: pulumi.Input; /** * DNS name of the source of the error that caused the suppression. Will be set to either the remote-mta or reporting-mta field from a delivery status notification (RFC 3464) when available. Not provided for all types of suppressions, and not always known. */ errorSource?: pulumi.Input; /** * The value of the Message-ID header from the email that triggered a suppression. This value is as defined in RFC 5322 section 3.6.4, excluding angle-brackets. Not provided for all types of suppressions. */ messageId?: pulumi.Input; /** * The reason that the email address was suppressed. For more information on the types of bounces, see [Suppression List](https://docs.cloud.oracle.com/iaas/Content/Email/Concepts/overview.htm#components). */ reason?: pulumi.Input; /** * 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](https://tools.ietf.org/html/rfc3339). */ timeCreated?: pulumi.Input; /** * The last date and time the suppression prevented submission in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). */ timeLastSuppressed?: pulumi.Input; } /** * The set of arguments for constructing a Suppression resource. */ export interface SuppressionArgs { /** * The OCID of the compartment to contain the suppression. Since suppressions are at the customer level, this must be the tenancy OCID. */ compartmentId: pulumi.Input; /** * The recipient email address of the suppression. * * ** 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 */ emailAddress: pulumi.Input; } //# sourceMappingURL=suppression.d.ts.map