Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Email.getSuppression
Explore with Pulumi AI
This data source provides details about a specific Suppression resource in Oracle Cloud Infrastructure Email service.
Gets the details of a suppressed recipient email address for a given
suppressionId
. Each suppression is given a unique OCID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSuppression = oci.Email.getSuppression({
suppressionId: testSuppressionOciEmailSuppression.id,
});
import pulumi
import pulumi_oci as oci
test_suppression = oci.Email.get_suppression(suppression_id=test_suppression_oci_email_suppression["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Email"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Email.GetSuppression(ctx, &email.GetSuppressionArgs{
SuppressionId: testSuppressionOciEmailSuppression.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testSuppression = Oci.Email.GetSuppression.Invoke(new()
{
SuppressionId = testSuppressionOciEmailSuppression.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Email.EmailFunctions;
import com.pulumi.oci.Email.inputs.GetSuppressionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testSuppression = EmailFunctions.getSuppression(GetSuppressionArgs.builder()
.suppressionId(testSuppressionOciEmailSuppression.id())
.build());
}
}
variables:
testSuppression:
fn::invoke:
Function: oci:Email:getSuppression
Arguments:
suppressionId: ${testSuppressionOciEmailSuppression.id}
Using getSuppression
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSuppression(args: GetSuppressionArgs, opts?: InvokeOptions): Promise<GetSuppressionResult>
function getSuppressionOutput(args: GetSuppressionOutputArgs, opts?: InvokeOptions): Output<GetSuppressionResult>
def get_suppression(suppression_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSuppressionResult
def get_suppression_output(suppression_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSuppressionResult]
func GetSuppression(ctx *Context, args *GetSuppressionArgs, opts ...InvokeOption) (*GetSuppressionResult, error)
func GetSuppressionOutput(ctx *Context, args *GetSuppressionOutputArgs, opts ...InvokeOption) GetSuppressionResultOutput
> Note: This function is named GetSuppression
in the Go SDK.
public static class GetSuppression
{
public static Task<GetSuppressionResult> InvokeAsync(GetSuppressionArgs args, InvokeOptions? opts = null)
public static Output<GetSuppressionResult> Invoke(GetSuppressionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSuppressionResult> getSuppression(GetSuppressionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Email/getSuppression:getSuppression
arguments:
# arguments dictionary
The following arguments are supported:
- Suppression
Id string - The unique OCID of the suppression.
- Suppression
Id string - The unique OCID of the suppression.
- suppression
Id String - The unique OCID of the suppression.
- suppression
Id string - The unique OCID of the suppression.
- suppression_
id str - The unique OCID of the suppression.
- suppression
Id String - The unique OCID of the suppression.
getSuppression Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment to contain the suppression. Since suppressions are at the customer level, this must be the tenancy OCID.
- Email
Address string - The email address of the suppression.
- Error
Detail string - 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.
- Error
Source string - 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.
- Id string
- The unique OCID of the suppression.
- Message
Id string - 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.
- Reason string
- The reason that the email address was suppressed. For more information on the types of bounces, see Suppression List.
- Suppression
Id string - Time
Created string - 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.
- Time
Last stringSuppressed - The last date and time the suppression prevented submission in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
- Compartment
Id string - The OCID of the compartment to contain the suppression. Since suppressions are at the customer level, this must be the tenancy OCID.
- Email
Address string - The email address of the suppression.
- Error
Detail string - 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.
- Error
Source string - 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.
- Id string
- The unique OCID of the suppression.
- Message
Id string - 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.
- Reason string
- The reason that the email address was suppressed. For more information on the types of bounces, see Suppression List.
- Suppression
Id string - Time
Created string - 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.
- Time
Last stringSuppressed - The last date and time the suppression prevented submission in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
- compartment
Id String - The OCID of the compartment to contain the suppression. Since suppressions are at the customer level, this must be the tenancy OCID.
- email
Address String - The email address of the suppression.
- error
Detail String - 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.
- error
Source String - 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.
- id String
- The unique OCID of the suppression.
- message
Id String - 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.
- reason String
- The reason that the email address was suppressed. For more information on the types of bounces, see Suppression List.
- suppression
Id String - time
Created String - 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.
- time
Last StringSuppressed - The last date and time the suppression prevented submission in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
- compartment
Id string - The OCID of the compartment to contain the suppression. Since suppressions are at the customer level, this must be the tenancy OCID.
- email
Address string - The email address of the suppression.
- error
Detail string - 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.
- error
Source string - 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.
- id string
- The unique OCID of the suppression.
- message
Id string - 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.
- reason string
- The reason that the email address was suppressed. For more information on the types of bounces, see Suppression List.
- suppression
Id string - time
Created string - 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.
- time
Last stringSuppressed - The last date and time the suppression prevented submission in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
- compartment_
id str - The OCID of the compartment to contain the suppression. Since suppressions are at the customer level, this must be the tenancy OCID.
- email_
address str - The email address of the suppression.
- error_
detail str - 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.
- error_
source str - 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.
- id str
- The unique OCID of the suppression.
- message_
id str - 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.
- reason str
- The reason that the email address was suppressed. For more information on the types of bounces, see Suppression List.
- suppression_
id str - time_
created str - 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.
- time_
last_ strsuppressed - The last date and time the suppression prevented submission in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
- compartment
Id String - The OCID of the compartment to contain the suppression. Since suppressions are at the customer level, this must be the tenancy OCID.
- email
Address String - The email address of the suppression.
- error
Detail String - 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.
- error
Source String - 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.
- id String
- The unique OCID of the suppression.
- message
Id String - 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.
- reason String
- The reason that the email address was suppressed. For more information on the types of bounces, see Suppression List.
- suppression
Id String - time
Created String - 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.
- time
Last StringSuppressed - The last date and time the suppression prevented submission in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.