1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getSesBlackEmailAddress
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getSesBlackEmailAddress

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of ses black_email_address

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const blackEmailAddress = tencentcloud.getSesBlackEmailAddress({
        emailAddress: "xxx@mail.qcloud.com",
        endDate: "2020-09-23",
        startDate: "2020-09-22",
        taskId: "7000",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    black_email_address = tencentcloud.get_ses_black_email_address(email_address="xxx@mail.qcloud.com",
        end_date="2020-09-23",
        start_date="2020-09-22",
        task_id="7000")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetSesBlackEmailAddress(ctx, &tencentcloud.GetSesBlackEmailAddressArgs{
    			EmailAddress: pulumi.StringRef("xxx@mail.qcloud.com"),
    			EndDate:      "2020-09-23",
    			StartDate:    "2020-09-22",
    			TaskId:       pulumi.StringRef("7000"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var blackEmailAddress = Tencentcloud.GetSesBlackEmailAddress.Invoke(new()
        {
            EmailAddress = "xxx@mail.qcloud.com",
            EndDate = "2020-09-23",
            StartDate = "2020-09-22",
            TaskId = "7000",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetSesBlackEmailAddressArgs;
    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 blackEmailAddress = TencentcloudFunctions.getSesBlackEmailAddress(GetSesBlackEmailAddressArgs.builder()
                .emailAddress("xxx@mail.qcloud.com")
                .endDate("2020-09-23")
                .startDate("2020-09-22")
                .taskId("7000")
                .build());
    
        }
    }
    
    variables:
      blackEmailAddress:
        fn::invoke:
          function: tencentcloud:getSesBlackEmailAddress
          arguments:
            emailAddress: xxx@mail.qcloud.com
            endDate: 2020-09-23
            startDate: 2020-09-22
            taskId: '7000'
    

    Using getSesBlackEmailAddress

    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 getSesBlackEmailAddress(args: GetSesBlackEmailAddressArgs, opts?: InvokeOptions): Promise<GetSesBlackEmailAddressResult>
    function getSesBlackEmailAddressOutput(args: GetSesBlackEmailAddressOutputArgs, opts?: InvokeOptions): Output<GetSesBlackEmailAddressResult>
    def get_ses_black_email_address(email_address: Optional[str] = None,
                                    end_date: Optional[str] = None,
                                    id: Optional[str] = None,
                                    result_output_file: Optional[str] = None,
                                    start_date: Optional[str] = None,
                                    task_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetSesBlackEmailAddressResult
    def get_ses_black_email_address_output(email_address: Optional[pulumi.Input[str]] = None,
                                    end_date: Optional[pulumi.Input[str]] = None,
                                    id: Optional[pulumi.Input[str]] = None,
                                    result_output_file: Optional[pulumi.Input[str]] = None,
                                    start_date: Optional[pulumi.Input[str]] = None,
                                    task_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetSesBlackEmailAddressResult]
    func GetSesBlackEmailAddress(ctx *Context, args *GetSesBlackEmailAddressArgs, opts ...InvokeOption) (*GetSesBlackEmailAddressResult, error)
    func GetSesBlackEmailAddressOutput(ctx *Context, args *GetSesBlackEmailAddressOutputArgs, opts ...InvokeOption) GetSesBlackEmailAddressResultOutput

    > Note: This function is named GetSesBlackEmailAddress in the Go SDK.

    public static class GetSesBlackEmailAddress 
    {
        public static Task<GetSesBlackEmailAddressResult> InvokeAsync(GetSesBlackEmailAddressArgs args, InvokeOptions? opts = null)
        public static Output<GetSesBlackEmailAddressResult> Invoke(GetSesBlackEmailAddressInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSesBlackEmailAddressResult> getSesBlackEmailAddress(GetSesBlackEmailAddressArgs args, InvokeOptions options)
    public static Output<GetSesBlackEmailAddressResult> getSesBlackEmailAddress(GetSesBlackEmailAddressArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getSesBlackEmailAddress:getSesBlackEmailAddress
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EndDate string
    End date in the format of YYYY-MM-DD.
    StartDate string
    Start date in the format of YYYY-MM-DD.
    EmailAddress string
    You can specify an email address to query.
    Id string
    ResultOutputFile string
    Used to save results.
    TaskId string
    You can specify a task ID to query.
    EndDate string
    End date in the format of YYYY-MM-DD.
    StartDate string
    Start date in the format of YYYY-MM-DD.
    EmailAddress string
    You can specify an email address to query.
    Id string
    ResultOutputFile string
    Used to save results.
    TaskId string
    You can specify a task ID to query.
    endDate String
    End date in the format of YYYY-MM-DD.
    startDate String
    Start date in the format of YYYY-MM-DD.
    emailAddress String
    You can specify an email address to query.
    id String
    resultOutputFile String
    Used to save results.
    taskId String
    You can specify a task ID to query.
    endDate string
    End date in the format of YYYY-MM-DD.
    startDate string
    Start date in the format of YYYY-MM-DD.
    emailAddress string
    You can specify an email address to query.
    id string
    resultOutputFile string
    Used to save results.
    taskId string
    You can specify a task ID to query.
    end_date str
    End date in the format of YYYY-MM-DD.
    start_date str
    Start date in the format of YYYY-MM-DD.
    email_address str
    You can specify an email address to query.
    id str
    result_output_file str
    Used to save results.
    task_id str
    You can specify a task ID to query.
    endDate String
    End date in the format of YYYY-MM-DD.
    startDate String
    Start date in the format of YYYY-MM-DD.
    emailAddress String
    You can specify an email address to query.
    id String
    resultOutputFile String
    Used to save results.
    taskId String
    You can specify a task ID to query.

    getSesBlackEmailAddress Result

    The following output properties are available:

    BlackLists List<GetSesBlackEmailAddressBlackList>
    List of blocklisted addresses.
    EndDate string
    Id string
    StartDate string
    EmailAddress string
    Blocklisted email address.
    ResultOutputFile string
    TaskId string
    BlackLists []GetSesBlackEmailAddressBlackList
    List of blocklisted addresses.
    EndDate string
    Id string
    StartDate string
    EmailAddress string
    Blocklisted email address.
    ResultOutputFile string
    TaskId string
    blackLists List<GetSesBlackEmailAddressBlackList>
    List of blocklisted addresses.
    endDate String
    id String
    startDate String
    emailAddress String
    Blocklisted email address.
    resultOutputFile String
    taskId String
    blackLists GetSesBlackEmailAddressBlackList[]
    List of blocklisted addresses.
    endDate string
    id string
    startDate string
    emailAddress string
    Blocklisted email address.
    resultOutputFile string
    taskId string
    black_lists Sequence[GetSesBlackEmailAddressBlackList]
    List of blocklisted addresses.
    end_date str
    id str
    start_date str
    email_address str
    Blocklisted email address.
    result_output_file str
    task_id str
    blackLists List<Property Map>
    List of blocklisted addresses.
    endDate String
    id String
    startDate String
    emailAddress String
    Blocklisted email address.
    resultOutputFile String
    taskId String

    Supporting Types

    GetSesBlackEmailAddressBlackList

    BounceTime string
    Time when the email address is blocklisted.
    EmailAddress string
    You can specify an email address to query.
    BounceTime string
    Time when the email address is blocklisted.
    EmailAddress string
    You can specify an email address to query.
    bounceTime String
    Time when the email address is blocklisted.
    emailAddress String
    You can specify an email address to query.
    bounceTime string
    Time when the email address is blocklisted.
    emailAddress string
    You can specify an email address to query.
    bounce_time str
    Time when the email address is blocklisted.
    email_address str
    You can specify an email address to query.
    bounceTime String
    Time when the email address is blocklisted.
    emailAddress String
    You can specify an email address to query.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack