tencentcloud.SesBatchSendEmail
Explore with Pulumi AI
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:
- From
Email stringAddress - 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>.
- Receiver
Id double - Recipient group ID.
- Subject string
- Email subject.
- Task
Type double - Task type. 1: immediate; 2: scheduled; 3: recurring.
- Ad
Location double - Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
- Attachments
List<Ses
Batch Send Email Attachment> - Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
- Cycle
Param SesBatch Send Email Cycle Param - Parameter required for a recurring sending task.
- Reply
To stringAddresses - 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 stringSend Email Id - ID of the resource.
- Template
Ses
Batch Send Email Template - Template when emails are sent using a template.
- Timed
Param SesBatch Send Email Timed Param - 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 stringAddress - 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 &lt;email address&gt;. For example:Tencent Cloud team &lt;noreply@mail.qcloud.com&gt;.
- Receiver
Id float64 - Recipient group ID.
- Subject string
- Email subject.
- Task
Type float64 - Task type. 1: immediate; 2: scheduled; 3: recurring.
- Ad
Location float64 - Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
- Attachments
[]Ses
Batch Send Email Attachment Args - Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
- Cycle
Param SesBatch Send Email Cycle Param Args - Parameter required for a recurring sending task.
- Reply
To stringAddresses - 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 stringSend Email Id - ID of the resource.
- Template
Ses
Batch Send Email Template Args - Template when emails are sent using a template.
- Timed
Param SesBatch Send Email Timed Param Args - 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 StringAddress - 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 &lt;email address&gt;. For example:Tencent Cloud team &lt;noreply@mail.qcloud.com&gt;.
- receiver
Id Double - Recipient group ID.
- subject String
- Email subject.
- task
Type Double - Task type. 1: immediate; 2: scheduled; 3: recurring.
- ad
Location Double - Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
- attachments
List<Ses
Batch Send Email Attachment> - Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
- cycle
Param SesBatch Send Email Cycle Param - Parameter required for a recurring sending task.
- reply
To StringAddresses - 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 StringSend Email Id - ID of the resource.
- template
Ses
Batch Send Email Template - Template when emails are sent using a template.
- timed
Param SesBatch Send Email Timed Param - 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 stringAddress - 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 &lt;email address&gt;. For example:Tencent Cloud team &lt;noreply@mail.qcloud.com&gt;.
- receiver
Id number - Recipient group ID.
- subject string
- Email subject.
- task
Type number - Task type. 1: immediate; 2: scheduled; 3: recurring.
- ad
Location number - Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
- attachments
Ses
Batch Send Email Attachment[] - Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
- cycle
Param SesBatch Send Email Cycle Param - Parameter required for a recurring sending task.
- reply
To stringAddresses - 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 stringSend Email Id - ID of the resource.
- template
Ses
Batch Send Email Template - Template when emails are sent using a template.
- timed
Param SesBatch Send Email Timed Param - 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_ straddress - 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 &lt;email address&gt;. For example:Tencent Cloud team &lt;noreply@mail.qcloud.com&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[Ses
Batch Send Email Attachment Args] - Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
- cycle_
param SesBatch Send Email Cycle Param Args - Parameter required for a recurring sending task.
- reply_
to_ straddresses - 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_ strsend_ email_ id - ID of the resource.
- template
Ses
Batch Send Email Template Args - Template when emails are sent using a template.
- timed_
param SesBatch Send Email Timed Param Args - 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.
- from
Email StringAddress - 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 &lt;email address&gt;. For example:Tencent Cloud team &lt;noreply@mail.qcloud.com&gt;.
- receiver
Id Number - Recipient group ID.
- subject String
- Email subject.
- task
Type Number - Task type. 1: immediate; 2: scheduled; 3: recurring.
- ad
Location 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.
- cycle
Param Property Map - Parameter required for a recurring sending task.
- reply
To StringAddresses - 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 StringSend Email Id - ID of the resource.
- template Property Map
- Template when emails are sent using a template.
- timed
Param 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.
- Ad
Location double - Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
- Attachments
List<Ses
Batch Send Email Attachment> - Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
- Cycle
Param SesBatch Send Email Cycle Param - Parameter required for a recurring sending task.
- From
Email stringAddress - 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 &lt;email address&gt;. For example:Tencent Cloud team &lt;noreply@mail.qcloud.com&gt;.
- Receiver
Id double - Recipient group ID.
- Reply
To stringAddresses - 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 stringSend Email Id - ID of the resource.
- Subject string
- Email subject.
- Task
Type double - Task type. 1: immediate; 2: scheduled; 3: recurring.
- Template
Ses
Batch Send Email Template - Template when emails are sent using a template.
- Timed
Param SesBatch Send Email Timed Param - 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 float64 - Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
- Attachments
[]Ses
Batch Send Email Attachment Args - Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
- Cycle
Param SesBatch Send Email Cycle Param Args - Parameter required for a recurring sending task.
- From
Email stringAddress - 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 &lt;email address&gt;. For example:Tencent Cloud team &lt;noreply@mail.qcloud.com&gt;.
- Receiver
Id float64 - Recipient group ID.
- Reply
To stringAddresses - 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 stringSend Email Id - ID of the resource.
- Subject string
- Email subject.
- Task
Type float64 - Task type. 1: immediate; 2: scheduled; 3: recurring.
- Template
Ses
Batch Send Email Template Args - Template when emails are sent using a template.
- Timed
Param SesBatch Send Email Timed Param Args - 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 Double - Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
- attachments
List<Ses
Batch Send Email Attachment> - Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
- cycle
Param SesBatch Send Email Cycle Param - Parameter required for a recurring sending task.
- from
Email StringAddress - 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 &lt;email address&gt;. For example:Tencent Cloud team &lt;noreply@mail.qcloud.com&gt;.
- receiver
Id Double - Recipient group ID.
- reply
To StringAddresses - 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 StringSend Email Id - ID of the resource.
- subject String
- Email subject.
- task
Type Double - Task type. 1: immediate; 2: scheduled; 3: recurring.
- template
Ses
Batch Send Email Template - Template when emails are sent using a template.
- timed
Param SesBatch Send Email Timed Param - 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 number - Whether to add an ad tag. 0: Add no tag; 1: Add before the subject; 2: Add after the subject.
- attachments
Ses
Batch Send Email Attachment[] - Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
- cycle
Param SesBatch Send Email Cycle Param - Parameter required for a recurring sending task.
- from
Email stringAddress - 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 &lt;email address&gt;. For example:Tencent Cloud team &lt;noreply@mail.qcloud.com&gt;.
- receiver
Id number - Recipient group ID.
- reply
To stringAddresses - 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 stringSend Email Id - ID of the resource.
- subject string
- Email subject.
- task
Type number - Task type. 1: immediate; 2: scheduled; 3: recurring.
- template
Ses
Batch Send Email Template - Template when emails are sent using a template.
- timed
Param SesBatch Send Email Timed Param - 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[Ses
Batch Send Email Attachment Args] - Attachment parameters to set when you need to send attachments. This parameter is currently unavailable.
- cycle_
param SesBatch Send Email Cycle Param Args - Parameter required for a recurring sending task.
- from_
email_ straddress - 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 &lt;email address&gt;. For example:Tencent Cloud team &lt;noreply@mail.qcloud.com&gt;.
- receiver_
id float - Recipient group ID.
- reply_
to_ straddresses - 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_ strsend_ email_ id - ID of the resource.
- subject str
- Email subject.
- task_
type float - Task type. 1: immediate; 2: scheduled; 3: recurring.
- template
Ses
Batch Send Email Template Args - Template when emails are sent using a template.
- timed_
param SesBatch Send Email Timed Param Args - 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.
- ad
Location 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.
- cycle
Param Property Map - Parameter required for a recurring sending task.
- from
Email StringAddress - 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 &lt;email address&gt;. For example:Tencent Cloud team &lt;noreply@mail.qcloud.com&gt;.
- receiver
Id Number - Recipient group ID.
- reply
To StringAddresses - 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 StringSend Email Id - ID of the resource.
- subject String
- Email subject.
- task
Type Number - Task type. 1: immediate; 2: scheduled; 3: recurring.
- template Property Map
- Template when emails are sent using a template.
- timed
Param 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.
- File
Name 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.
- File
Name 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.
- file
Name 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.
- file
Name 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.
- file
Name String - Attachment name, which cannot exceed 255 characters. Some attachment types are not supported. For details, see Attachment Types..
SesBatchSendEmailCycleParam, SesBatchSendEmailCycleParamArgs
- Begin
Time string - Start time of the task.
- Interval
Time double - Task recurrence in hours.
- Term
Cycle double - Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
- Begin
Time string - Start time of the task.
- Interval
Time float64 - Task recurrence in hours.
- Term
Cycle float64 - Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
- begin
Time String - Start time of the task.
- interval
Time Double - Task recurrence in hours.
- term
Cycle Double - Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
- begin
Time string - Start time of the task.
- interval
Time number - Task recurrence in hours.
- term
Cycle 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.
- begin
Time String - Start time of the task.
- interval
Time Number - Task recurrence in hours.
- term
Cycle Number - Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
SesBatchSendEmailTemplate, SesBatchSendEmailTemplateArgs
- Template
Data 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}.
- Template
Id double - Template ID. If you do not have any template, please create one.
- Template
Data 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}.
- Template
Id float64 - Template ID. If you do not have any template, please create one.
- template
Data 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}.
- template
Id Double - Template ID. If you do not have any template, please create one.
- template
Data 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}.
- template
Id 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.
- template
Data 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}.
- template
Id Number - Template ID. If you do not have any template, please create one.
SesBatchSendEmailTimedParam, SesBatchSendEmailTimedParamArgs
- Begin
Time string - Start time of a scheduled sending task.
- Begin
Time string - Start time of a scheduled sending task.
- begin
Time String - Start time of a scheduled sending task.
- begin
Time string - Start time of a scheduled sending task.
- begin_
time str - Start time of a scheduled sending task.
- begin
Time 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.