1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. SesBatchSendEmail
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.SesBatchSendEmail

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

    Provides a resource to create a ses batch_send_email

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const batchSendEmail = new tencentcloud.SesBatchSendEmail("batchSendEmail", {
        adLocation: 0,
        cycleParam: {
            beginTime: "2023-09-07 15:10:00",
            intervalTime: 1,
        },
        fromEmailAddress: "aaa@iac-tf.cloud",
        receiverId: 1063742,
        replyToAddresses: "reply@mail.qcloud.com",
        subject: "terraform test",
        taskType: 1,
        template: {
            templateData: "{\"name\":\"xxx\",\"age\":\"xx\"}",
            templateId: 99629,
        },
        timedParam: {
            beginTime: "2023-09-07 15:20:00",
        },
        unsubscribe: "0",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    batch_send_email = tencentcloud.SesBatchSendEmail("batchSendEmail",
        ad_location=0,
        cycle_param={
            "begin_time": "2023-09-07 15:10:00",
            "interval_time": 1,
        },
        from_email_address="aaa@iac-tf.cloud",
        receiver_id=1063742,
        reply_to_addresses="reply@mail.qcloud.com",
        subject="terraform test",
        task_type=1,
        template={
            "template_data": "{\"name\":\"xxx\",\"age\":\"xx\"}",
            "template_id": 99629,
        },
        timed_param={
            "begin_time": "2023-09-07 15:20:00",
        },
        unsubscribe="0")
    
    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.NewSesBatchSendEmail(ctx, "batchSendEmail", &tencentcloud.SesBatchSendEmailArgs{
    			AdLocation: pulumi.Float64(0),
    			CycleParam: &tencentcloud.SesBatchSendEmailCycleParamArgs{
    				BeginTime:    pulumi.String("2023-09-07 15:10:00"),
    				IntervalTime: pulumi.Float64(1),
    			},
    			FromEmailAddress: pulumi.String("aaa@iac-tf.cloud"),
    			ReceiverId:       pulumi.Float64(1063742),
    			ReplyToAddresses: pulumi.String("reply@mail.qcloud.com"),
    			Subject:          pulumi.String("terraform test"),
    			TaskType:         pulumi.Float64(1),
    			Template: &tencentcloud.SesBatchSendEmailTemplateArgs{
    				TemplateData: pulumi.String("{\"name\":\"xxx\",\"age\":\"xx\"}"),
    				TemplateId:   pulumi.Float64(99629),
    			},
    			TimedParam: &tencentcloud.SesBatchSendEmailTimedParamArgs{
    				BeginTime: pulumi.String("2023-09-07 15:20:00"),
    			},
    			Unsubscribe: pulumi.String("0"),
    		})
    		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 batchSendEmail = new Tencentcloud.SesBatchSendEmail("batchSendEmail", new()
        {
            AdLocation = 0,
            CycleParam = new Tencentcloud.Inputs.SesBatchSendEmailCycleParamArgs
            {
                BeginTime = "2023-09-07 15:10:00",
                IntervalTime = 1,
            },
            FromEmailAddress = "aaa@iac-tf.cloud",
            ReceiverId = 1063742,
            ReplyToAddresses = "reply@mail.qcloud.com",
            Subject = "terraform test",
            TaskType = 1,
            Template = new Tencentcloud.Inputs.SesBatchSendEmailTemplateArgs
            {
                TemplateData = "{\"name\":\"xxx\",\"age\":\"xx\"}",
                TemplateId = 99629,
            },
            TimedParam = new Tencentcloud.Inputs.SesBatchSendEmailTimedParamArgs
            {
                BeginTime = "2023-09-07 15:20:00",
            },
            Unsubscribe = "0",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.SesBatchSendEmail;
    import com.pulumi.tencentcloud.SesBatchSendEmailArgs;
    import com.pulumi.tencentcloud.inputs.SesBatchSendEmailCycleParamArgs;
    import com.pulumi.tencentcloud.inputs.SesBatchSendEmailTemplateArgs;
    import com.pulumi.tencentcloud.inputs.SesBatchSendEmailTimedParamArgs;
    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) {
            var batchSendEmail = new SesBatchSendEmail("batchSendEmail", SesBatchSendEmailArgs.builder()
                .adLocation(0)
                .cycleParam(SesBatchSendEmailCycleParamArgs.builder()
                    .beginTime("2023-09-07 15:10:00")
                    .intervalTime(1)
                    .build())
                .fromEmailAddress("aaa@iac-tf.cloud")
                .receiverId(1063742)
                .replyToAddresses("reply@mail.qcloud.com")
                .subject("terraform test")
                .taskType(1)
                .template(SesBatchSendEmailTemplateArgs.builder()
                    .templateData("{\"name\":\"xxx\",\"age\":\"xx\"}")
                    .templateId(99629)
                    .build())
                .timedParam(SesBatchSendEmailTimedParamArgs.builder()
                    .beginTime("2023-09-07 15:20:00")
                    .build())
                .unsubscribe("0")
                .build());
    
        }
    }
    
    resources:
      batchSendEmail:
        type: tencentcloud:SesBatchSendEmail
        properties:
          adLocation: 0
          cycleParam:
            beginTime: 2023-09-07 15:10:00
            intervalTime: 1
          fromEmailAddress: aaa@iac-tf.cloud
          receiverId: 1.063742e+06
          replyToAddresses: reply@mail.qcloud.com
          subject: terraform test
          taskType: 1
          template:
            templateData: '{"name":"xxx","age":"xx"}'
            templateId: 99629
          timedParam:
            beginTime: 2023-09-07 15:20:00
          unsubscribe: '0'
    

    Create SesBatchSendEmail Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SesBatchSendEmail(name: string, args: SesBatchSendEmailArgs, opts?: CustomResourceOptions);
    @overload
    def SesBatchSendEmail(resource_name: str,
                          args: SesBatchSendEmailArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def SesBatchSendEmail(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          from_email_address: Optional[str] = None,
                          receiver_id: Optional[float] = None,
                          subject: Optional[str] = None,
                          task_type: Optional[float] = None,
                          ad_location: Optional[float] = None,
                          attachments: Optional[Sequence[SesBatchSendEmailAttachmentArgs]] = None,
                          cycle_param: Optional[SesBatchSendEmailCycleParamArgs] = None,
                          reply_to_addresses: Optional[str] = None,
                          ses_batch_send_email_id: Optional[str] = None,
                          template: Optional[SesBatchSendEmailTemplateArgs] = None,
                          timed_param: Optional[SesBatchSendEmailTimedParamArgs] = None,
                          unsubscribe: Optional[str] = None)
    func NewSesBatchSendEmail(ctx *Context, name string, args SesBatchSendEmailArgs, opts ...ResourceOption) (*SesBatchSendEmail, error)
    public SesBatchSendEmail(string name, SesBatchSendEmailArgs args, CustomResourceOptions? opts = null)
    public SesBatchSendEmail(String name, SesBatchSendEmailArgs args)
    public SesBatchSendEmail(String name, SesBatchSendEmailArgs args, CustomResourceOptions options)
    
    type: tencentcloud:SesBatchSendEmail
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SesBatchSendEmailArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SesBatchSendEmailArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SesBatchSendEmailArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SesBatchSendEmailArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SesBatchSendEmailArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    SesBatchSendEmail Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SesBatchSendEmail resource accepts the following input properties:

    FromEmailAddress string
    Sender address. Enter a sender address such as noreply@mail.qcloud.com. To display the sender name, enter the address in the following format:sender <email address>. For example:Tencent Cloud team <noreply@mail.qcloud.com>.
    ReceiverId double
    Recipient group ID.
    Subject string
    Email subject.
    TaskType double
    Task type. 1: immediate; 2: scheduled; 3: recurring.
    AdLocation double
    Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
    Attachments List<SesBatchSendEmailAttachment>
    Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
    CycleParam SesBatchSendEmailCycleParam
    Parameter required for a recurring sending task.
    ReplyToAddresses string
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    SesBatchSendEmailId string
    ID of the resource.
    Template SesBatchSendEmailTemplate
    Template when emails are sent using a template.
    TimedParam SesBatchSendEmailTimedParam
    Parameter required for a scheduled sending task.
    Unsubscribe string
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    FromEmailAddress string
    Sender address. Enter a sender address such as noreply@mail.qcloud.com. To display the sender name, enter the address in the following format:sender &amp;lt;email address&amp;gt;. For example:Tencent Cloud team &amp;lt;noreply@mail.qcloud.com&amp;gt;.
    ReceiverId float64
    Recipient group ID.
    Subject string
    Email subject.
    TaskType float64
    Task type. 1: immediate; 2: scheduled; 3: recurring.
    AdLocation float64
    Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
    Attachments []SesBatchSendEmailAttachmentArgs
    Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
    CycleParam SesBatchSendEmailCycleParamArgs
    Parameter required for a recurring sending task.
    ReplyToAddresses string
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    SesBatchSendEmailId string
    ID of the resource.
    Template SesBatchSendEmailTemplateArgs
    Template when emails are sent using a template.
    TimedParam SesBatchSendEmailTimedParamArgs
    Parameter required for a scheduled sending task.
    Unsubscribe string
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    fromEmailAddress String
    Sender address. Enter a sender address such as noreply@mail.qcloud.com. To display the sender name, enter the address in the following format:sender &amp;lt;email address&amp;gt;. For example:Tencent Cloud team &amp;lt;noreply@mail.qcloud.com&amp;gt;.
    receiverId Double
    Recipient group ID.
    subject String
    Email subject.
    taskType Double
    Task type. 1: immediate; 2: scheduled; 3: recurring.
    adLocation Double
    Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
    attachments List<SesBatchSendEmailAttachment>
    Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
    cycleParam SesBatchSendEmailCycleParam
    Parameter required for a recurring sending task.
    replyToAddresses String
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    sesBatchSendEmailId String
    ID of the resource.
    template SesBatchSendEmailTemplate
    Template when emails are sent using a template.
    timedParam SesBatchSendEmailTimedParam
    Parameter required for a scheduled sending task.
    unsubscribe String
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    fromEmailAddress string
    Sender address. Enter a sender address such as noreply@mail.qcloud.com. To display the sender name, enter the address in the following format:sender &amp;lt;email address&amp;gt;. For example:Tencent Cloud team &amp;lt;noreply@mail.qcloud.com&amp;gt;.
    receiverId number
    Recipient group ID.
    subject string
    Email subject.
    taskType number
    Task type. 1: immediate; 2: scheduled; 3: recurring.
    adLocation number
    Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
    attachments SesBatchSendEmailAttachment[]
    Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
    cycleParam SesBatchSendEmailCycleParam
    Parameter required for a recurring sending task.
    replyToAddresses string
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    sesBatchSendEmailId string
    ID of the resource.
    template SesBatchSendEmailTemplate
    Template when emails are sent using a template.
    timedParam SesBatchSendEmailTimedParam
    Parameter required for a scheduled sending task.
    unsubscribe string
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    from_email_address str
    Sender address. Enter a sender address such as noreply@mail.qcloud.com. To display the sender name, enter the address in the following format:sender &amp;lt;email address&amp;gt;. For example:Tencent Cloud team &amp;lt;noreply@mail.qcloud.com&amp;gt;.
    receiver_id float
    Recipient group ID.
    subject str
    Email subject.
    task_type float
    Task type. 1: immediate; 2: scheduled; 3: recurring.
    ad_location float
    Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
    attachments Sequence[SesBatchSendEmailAttachmentArgs]
    Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
    cycle_param SesBatchSendEmailCycleParamArgs
    Parameter required for a recurring sending task.
    reply_to_addresses str
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    ses_batch_send_email_id str
    ID of the resource.
    template SesBatchSendEmailTemplateArgs
    Template when emails are sent using a template.
    timed_param SesBatchSendEmailTimedParamArgs
    Parameter required for a scheduled sending task.
    unsubscribe str
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    fromEmailAddress String
    Sender address. Enter a sender address such as noreply@mail.qcloud.com. To display the sender name, enter the address in the following format:sender &amp;lt;email address&amp;gt;. For example:Tencent Cloud team &amp;lt;noreply@mail.qcloud.com&amp;gt;.
    receiverId Number
    Recipient group ID.
    subject String
    Email subject.
    taskType Number
    Task type. 1: immediate; 2: scheduled; 3: recurring.
    adLocation Number
    Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
    attachments List<Property Map>
    Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
    cycleParam Property Map
    Parameter required for a recurring sending task.
    replyToAddresses String
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    sesBatchSendEmailId String
    ID of the resource.
    template Property Map
    Template when emails are sent using a template.
    timedParam Property Map
    Parameter required for a scheduled sending task.
    unsubscribe String
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SesBatchSendEmail resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SesBatchSendEmail Resource

    Get an existing SesBatchSendEmail resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SesBatchSendEmailState, opts?: CustomResourceOptions): SesBatchSendEmail
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ad_location: Optional[float] = None,
            attachments: Optional[Sequence[SesBatchSendEmailAttachmentArgs]] = None,
            cycle_param: Optional[SesBatchSendEmailCycleParamArgs] = None,
            from_email_address: Optional[str] = None,
            receiver_id: Optional[float] = None,
            reply_to_addresses: Optional[str] = None,
            ses_batch_send_email_id: Optional[str] = None,
            subject: Optional[str] = None,
            task_type: Optional[float] = None,
            template: Optional[SesBatchSendEmailTemplateArgs] = None,
            timed_param: Optional[SesBatchSendEmailTimedParamArgs] = None,
            unsubscribe: Optional[str] = None) -> SesBatchSendEmail
    func GetSesBatchSendEmail(ctx *Context, name string, id IDInput, state *SesBatchSendEmailState, opts ...ResourceOption) (*SesBatchSendEmail, error)
    public static SesBatchSendEmail Get(string name, Input<string> id, SesBatchSendEmailState? state, CustomResourceOptions? opts = null)
    public static SesBatchSendEmail get(String name, Output<String> id, SesBatchSendEmailState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:SesBatchSendEmail    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AdLocation double
    Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
    Attachments List<SesBatchSendEmailAttachment>
    Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
    CycleParam SesBatchSendEmailCycleParam
    Parameter required for a recurring sending task.
    FromEmailAddress string
    Sender address. Enter a sender address such as noreply@mail.qcloud.com. To display the sender name, enter the address in the following format:sender &amp;lt;email address&amp;gt;. For example:Tencent Cloud team &amp;lt;noreply@mail.qcloud.com&amp;gt;.
    ReceiverId double
    Recipient group ID.
    ReplyToAddresses string
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    SesBatchSendEmailId string
    ID of the resource.
    Subject string
    Email subject.
    TaskType double
    Task type. 1: immediate; 2: scheduled; 3: recurring.
    Template SesBatchSendEmailTemplate
    Template when emails are sent using a template.
    TimedParam SesBatchSendEmailTimedParam
    Parameter required for a scheduled sending task.
    Unsubscribe string
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    AdLocation float64
    Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
    Attachments []SesBatchSendEmailAttachmentArgs
    Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
    CycleParam SesBatchSendEmailCycleParamArgs
    Parameter required for a recurring sending task.
    FromEmailAddress string
    Sender address. Enter a sender address such as noreply@mail.qcloud.com. To display the sender name, enter the address in the following format:sender &amp;lt;email address&amp;gt;. For example:Tencent Cloud team &amp;lt;noreply@mail.qcloud.com&amp;gt;.
    ReceiverId float64
    Recipient group ID.
    ReplyToAddresses string
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    SesBatchSendEmailId string
    ID of the resource.
    Subject string
    Email subject.
    TaskType float64
    Task type. 1: immediate; 2: scheduled; 3: recurring.
    Template SesBatchSendEmailTemplateArgs
    Template when emails are sent using a template.
    TimedParam SesBatchSendEmailTimedParamArgs
    Parameter required for a scheduled sending task.
    Unsubscribe string
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    adLocation Double
    Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
    attachments List<SesBatchSendEmailAttachment>
    Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
    cycleParam SesBatchSendEmailCycleParam
    Parameter required for a recurring sending task.
    fromEmailAddress String
    Sender address. Enter a sender address such as noreply@mail.qcloud.com. To display the sender name, enter the address in the following format:sender &amp;lt;email address&amp;gt;. For example:Tencent Cloud team &amp;lt;noreply@mail.qcloud.com&amp;gt;.
    receiverId Double
    Recipient group ID.
    replyToAddresses String
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    sesBatchSendEmailId String
    ID of the resource.
    subject String
    Email subject.
    taskType Double
    Task type. 1: immediate; 2: scheduled; 3: recurring.
    template SesBatchSendEmailTemplate
    Template when emails are sent using a template.
    timedParam SesBatchSendEmailTimedParam
    Parameter required for a scheduled sending task.
    unsubscribe String
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    adLocation number
    Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
    attachments SesBatchSendEmailAttachment[]
    Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
    cycleParam SesBatchSendEmailCycleParam
    Parameter required for a recurring sending task.
    fromEmailAddress string
    Sender address. Enter a sender address such as noreply@mail.qcloud.com. To display the sender name, enter the address in the following format:sender &amp;lt;email address&amp;gt;. For example:Tencent Cloud team &amp;lt;noreply@mail.qcloud.com&amp;gt;.
    receiverId number
    Recipient group ID.
    replyToAddresses string
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    sesBatchSendEmailId string
    ID of the resource.
    subject string
    Email subject.
    taskType number
    Task type. 1: immediate; 2: scheduled; 3: recurring.
    template SesBatchSendEmailTemplate
    Template when emails are sent using a template.
    timedParam SesBatchSendEmailTimedParam
    Parameter required for a scheduled sending task.
    unsubscribe string
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    ad_location float
    Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
    attachments Sequence[SesBatchSendEmailAttachmentArgs]
    Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
    cycle_param SesBatchSendEmailCycleParamArgs
    Parameter required for a recurring sending task.
    from_email_address str
    Sender address. Enter a sender address such as noreply@mail.qcloud.com. To display the sender name, enter the address in the following format:sender &amp;lt;email address&amp;gt;. For example:Tencent Cloud team &amp;lt;noreply@mail.qcloud.com&amp;gt;.
    receiver_id float
    Recipient group ID.
    reply_to_addresses str
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    ses_batch_send_email_id str
    ID of the resource.
    subject str
    Email subject.
    task_type float
    Task type. 1: immediate; 2: scheduled; 3: recurring.
    template SesBatchSendEmailTemplateArgs
    Template when emails are sent using a template.
    timed_param SesBatchSendEmailTimedParamArgs
    Parameter required for a scheduled sending task.
    unsubscribe str
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.
    adLocation Number
    Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
    attachments List<Property Map>
    Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
    cycleParam Property Map
    Parameter required for a recurring sending task.
    fromEmailAddress String
    Sender address. Enter a sender address such as noreply@mail.qcloud.com. To display the sender name, enter the address in the following format:sender &amp;lt;email address&amp;gt;. For example:Tencent Cloud team &amp;lt;noreply@mail.qcloud.com&amp;gt;.
    receiverId Number
    Recipient group ID.
    replyToAddresses String
    Reply-to address. You can enter a valid personal email address that can receive emails. If this parameter is left empty, reply emails will fail to be sent.
    sesBatchSendEmailId String
    ID of the resource.
    subject String
    Email subject.
    taskType Number
    Task type. 1: immediate; 2: scheduled; 3: recurring.
    template Property Map
    Template when emails are sent using a template.
    timedParam Property Map
    Parameter required for a scheduled sending task.
    unsubscribe String
    Unsubscribe link option. 0: Do not add unsubscribe link; 1: English 2: Simplified Chinese; 3: Traditional Chinese; 4: Spanish; 5: French; 6: German; 7: Japanese; 8: Korean; 9: Arabic; 10: Thai.

    Supporting Types

    SesBatchSendEmailAttachment, SesBatchSendEmailAttachmentArgs

    Content string
    Base64-encoded attachment content. You can send attachments of up to 4 MB in the total size.Note: The TencentCloud API supports a request packet of up to 8 MB in size, and the size of the attachmentcontent will increase by 1.5 times after Base64 encoding. Therefore, you need to keep the total size of allattachments below 4 MB. If the entire request exceeds 8 MB, the API will return an error.
    FileName string
    Attachment name, which cannot exceed 255 characters. Some attachment types are not supported. For details, see Attachment Types..
    Content string
    Base64-encoded attachment content. You can send attachments of up to 4 MB in the total size.Note: The TencentCloud API supports a request packet of up to 8 MB in size, and the size of the attachmentcontent will increase by 1.5 times after Base64 encoding. Therefore, you need to keep the total size of allattachments below 4 MB. If the entire request exceeds 8 MB, the API will return an error.
    FileName string
    Attachment name, which cannot exceed 255 characters. Some attachment types are not supported. For details, see Attachment Types..
    content String
    Base64-encoded attachment content. You can send attachments of up to 4 MB in the total size.Note: The TencentCloud API supports a request packet of up to 8 MB in size, and the size of the attachmentcontent will increase by 1.5 times after Base64 encoding. Therefore, you need to keep the total size of allattachments below 4 MB. If the entire request exceeds 8 MB, the API will return an error.
    fileName String
    Attachment name, which cannot exceed 255 characters. Some attachment types are not supported. For details, see Attachment Types..
    content string
    Base64-encoded attachment content. You can send attachments of up to 4 MB in the total size.Note: The TencentCloud API supports a request packet of up to 8 MB in size, and the size of the attachmentcontent will increase by 1.5 times after Base64 encoding. Therefore, you need to keep the total size of allattachments below 4 MB. If the entire request exceeds 8 MB, the API will return an error.
    fileName string
    Attachment name, which cannot exceed 255 characters. Some attachment types are not supported. For details, see Attachment Types..
    content str
    Base64-encoded attachment content. You can send attachments of up to 4 MB in the total size.Note: The TencentCloud API supports a request packet of up to 8 MB in size, and the size of the attachmentcontent will increase by 1.5 times after Base64 encoding. Therefore, you need to keep the total size of allattachments below 4 MB. If the entire request exceeds 8 MB, the API will return an error.
    file_name str
    Attachment name, which cannot exceed 255 characters. Some attachment types are not supported. For details, see Attachment Types..
    content String
    Base64-encoded attachment content. You can send attachments of up to 4 MB in the total size.Note: The TencentCloud API supports a request packet of up to 8 MB in size, and the size of the attachmentcontent will increase by 1.5 times after Base64 encoding. Therefore, you need to keep the total size of allattachments below 4 MB. If the entire request exceeds 8 MB, the API will return an error.
    fileName String
    Attachment name, which cannot exceed 255 characters. Some attachment types are not supported. For details, see Attachment Types..

    SesBatchSendEmailCycleParam, SesBatchSendEmailCycleParamArgs

    BeginTime string
    Start time of the task.
    IntervalTime double
    Task recurrence in hours.
    TermCycle double
    Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
    BeginTime string
    Start time of the task.
    IntervalTime float64
    Task recurrence in hours.
    TermCycle float64
    Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
    beginTime String
    Start time of the task.
    intervalTime Double
    Task recurrence in hours.
    termCycle Double
    Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
    beginTime string
    Start time of the task.
    intervalTime number
    Task recurrence in hours.
    termCycle number
    Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
    begin_time str
    Start time of the task.
    interval_time float
    Task recurrence in hours.
    term_cycle float
    Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
    beginTime String
    Start time of the task.
    intervalTime Number
    Task recurrence in hours.
    termCycle Number
    Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.

    SesBatchSendEmailTemplate, SesBatchSendEmailTemplateArgs

    TemplateData string
    Variable parameters in the template. Please use json.dump to format the JSON object into a string type.The object is a set of key-value pairs. Each key denotes a variable, which is represented by {{key}}. The key will be replaced with the correspondingvalue (represented by {{value}}) when sending the email.Note: The parameter value cannot be data of a complex type such as HTML.Example: {name:xxx,age:xx}.
    TemplateId double
    Template ID. If you do not have any template, please create one.
    TemplateData string
    Variable parameters in the template. Please use json.dump to format the JSON object into a string type.The object is a set of key-value pairs. Each key denotes a variable, which is represented by {{key}}. The key will be replaced with the correspondingvalue (represented by {{value}}) when sending the email.Note: The parameter value cannot be data of a complex type such as HTML.Example: {name:xxx,age:xx}.
    TemplateId float64
    Template ID. If you do not have any template, please create one.
    templateData String
    Variable parameters in the template. Please use json.dump to format the JSON object into a string type.The object is a set of key-value pairs. Each key denotes a variable, which is represented by {{key}}. The key will be replaced with the correspondingvalue (represented by {{value}}) when sending the email.Note: The parameter value cannot be data of a complex type such as HTML.Example: {name:xxx,age:xx}.
    templateId Double
    Template ID. If you do not have any template, please create one.
    templateData string
    Variable parameters in the template. Please use json.dump to format the JSON object into a string type.The object is a set of key-value pairs. Each key denotes a variable, which is represented by {{key}}. The key will be replaced with the correspondingvalue (represented by {{value}}) when sending the email.Note: The parameter value cannot be data of a complex type such as HTML.Example: {name:xxx,age:xx}.
    templateId number
    Template ID. If you do not have any template, please create one.
    template_data str
    Variable parameters in the template. Please use json.dump to format the JSON object into a string type.The object is a set of key-value pairs. Each key denotes a variable, which is represented by {{key}}. The key will be replaced with the correspondingvalue (represented by {{value}}) when sending the email.Note: The parameter value cannot be data of a complex type such as HTML.Example: {name:xxx,age:xx}.
    template_id float
    Template ID. If you do not have any template, please create one.
    templateData String
    Variable parameters in the template. Please use json.dump to format the JSON object into a string type.The object is a set of key-value pairs. Each key denotes a variable, which is represented by {{key}}. The key will be replaced with the correspondingvalue (represented by {{value}}) when sending the email.Note: The parameter value cannot be data of a complex type such as HTML.Example: {name:xxx,age:xx}.
    templateId Number
    Template ID. If you do not have any template, please create one.

    SesBatchSendEmailTimedParam, SesBatchSendEmailTimedParamArgs

    BeginTime string
    Start time of a scheduled sending task.
    BeginTime string
    Start time of a scheduled sending task.
    beginTime String
    Start time of a scheduled sending task.
    beginTime string
    Start time of a scheduled sending task.
    begin_time str
    Start time of a scheduled sending task.
    beginTime String
    Start time of a scheduled sending task.

    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.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack