import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Suppressions in Oracle Cloud Infrastructure Email service. * * Gets a list of suppressed recipient email addresses for a user. The * `compartmentId` for suppressions must be a tenancy OCID. The returned list * is sorted by creation time in descending order. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSuppressions = oci.email.getSuppressions({ * compartmentId: tenancyOcid, * emailAddress: suppressionEmailAddress, * timeCreatedGreaterThanOrEqualTo: suppressionTimeCreatedGreaterThanOrEqualTo, * timeCreatedLessThan: suppressionTimeCreatedLessThan, * }); * ``` */ export declare function getSuppressions(args: GetSuppressionsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSuppressions. */ export interface GetSuppressionsArgs { /** * The OCID for the compartment. */ compartmentId: string; /** * The email address of the suppression. */ emailAddress?: string; filters?: inputs.Email.GetSuppressionsFilter[]; /** * 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](https://tools.ietf.org/html/rfc3339). * * **Example:** 2016-12-19T16:39:57.600Z */ timeCreatedGreaterThanOrEqualTo?: string; /** * 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](https://tools.ietf.org/html/rfc3339). * * **Example:** 2016-12-19T16:39:57.600Z */ timeCreatedLessThan?: string; } /** * A collection of values returned by getSuppressions. */ export interface GetSuppressionsResult { /** * The OCID of the compartment to contain the suppression. Since suppressions are at the customer level, this must be the tenancy OCID. */ readonly compartmentId: string; /** * The email address of the suppression. */ readonly emailAddress?: string; readonly filters?: outputs.Email.GetSuppressionsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The list of suppressions. */ readonly suppressions: outputs.Email.GetSuppressionsSuppression[]; readonly timeCreatedGreaterThanOrEqualTo?: string; readonly timeCreatedLessThan?: string; } /** * This data source provides the list of Suppressions in Oracle Cloud Infrastructure Email service. * * Gets a list of suppressed recipient email addresses for a user. The * `compartmentId` for suppressions must be a tenancy OCID. The returned list * is sorted by creation time in descending order. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSuppressions = oci.email.getSuppressions({ * compartmentId: tenancyOcid, * emailAddress: suppressionEmailAddress, * timeCreatedGreaterThanOrEqualTo: suppressionTimeCreatedGreaterThanOrEqualTo, * timeCreatedLessThan: suppressionTimeCreatedLessThan, * }); * ``` */ export declare function getSuppressionsOutput(args: GetSuppressionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSuppressions. */ export interface GetSuppressionsOutputArgs { /** * The OCID for the compartment. */ compartmentId: pulumi.Input; /** * The email address of the suppression. */ emailAddress?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * 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](https://tools.ietf.org/html/rfc3339). * * **Example:** 2016-12-19T16:39:57.600Z */ timeCreatedGreaterThanOrEqualTo?: pulumi.Input; /** * 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](https://tools.ietf.org/html/rfc3339). * * **Example:** 2016-12-19T16:39:57.600Z */ timeCreatedLessThan?: pulumi.Input; } //# sourceMappingURL=getSuppressions.d.ts.map