tencentcloud.SesSendEmail
Explore with Pulumi AI
Provides a resource to create a ses send_email
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const sendEmail = new tencentcloud.SesSendEmail("sendEmail", {
destinations: ["1055482519@qq.com"],
fromEmailAddress: "aaa@iac-tf.cloud",
replyToAddresses: "aaa@iac-tf.cloud",
subject: "test subject",
template: {
templateData: "{\"name\":\"xxx\",\"age\":\"xx\"}",
templateId: 99629,
},
triggerType: 1,
unsubscribe: "1",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
send_email = tencentcloud.SesSendEmail("sendEmail",
destinations=["1055482519@qq.com"],
from_email_address="aaa@iac-tf.cloud",
reply_to_addresses="aaa@iac-tf.cloud",
subject="test subject",
template={
"template_data": "{\"name\":\"xxx\",\"age\":\"xx\"}",
"template_id": 99629,
},
trigger_type=1,
unsubscribe="1")
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.NewSesSendEmail(ctx, "sendEmail", &tencentcloud.SesSendEmailArgs{
Destinations: pulumi.StringArray{
pulumi.String("1055482519@qq.com"),
},
FromEmailAddress: pulumi.String("aaa@iac-tf.cloud"),
ReplyToAddresses: pulumi.String("aaa@iac-tf.cloud"),
Subject: pulumi.String("test subject"),
Template: &tencentcloud.SesSendEmailTemplateArgs{
TemplateData: pulumi.String("{\"name\":\"xxx\",\"age\":\"xx\"}"),
TemplateId: pulumi.Float64(99629),
},
TriggerType: pulumi.Float64(1),
Unsubscribe: pulumi.String("1"),
})
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 sendEmail = new Tencentcloud.SesSendEmail("sendEmail", new()
{
Destinations = new[]
{
"1055482519@qq.com",
},
FromEmailAddress = "aaa@iac-tf.cloud",
ReplyToAddresses = "aaa@iac-tf.cloud",
Subject = "test subject",
Template = new Tencentcloud.Inputs.SesSendEmailTemplateArgs
{
TemplateData = "{\"name\":\"xxx\",\"age\":\"xx\"}",
TemplateId = 99629,
},
TriggerType = 1,
Unsubscribe = "1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.SesSendEmail;
import com.pulumi.tencentcloud.SesSendEmailArgs;
import com.pulumi.tencentcloud.inputs.SesSendEmailTemplateArgs;
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 sendEmail = new SesSendEmail("sendEmail", SesSendEmailArgs.builder()
.destinations("1055482519@qq.com")
.fromEmailAddress("aaa@iac-tf.cloud")
.replyToAddresses("aaa@iac-tf.cloud")
.subject("test subject")
.template(SesSendEmailTemplateArgs.builder()
.templateData("{\"name\":\"xxx\",\"age\":\"xx\"}")
.templateId(99629)
.build())
.triggerType(1)
.unsubscribe("1")
.build());
}
}
resources:
sendEmail:
type: tencentcloud:SesSendEmail
properties:
destinations:
- 1055482519@qq.com
fromEmailAddress: aaa@iac-tf.cloud
replyToAddresses: aaa@iac-tf.cloud
subject: test subject
template:
templateData: '{"name":"xxx","age":"xx"}'
templateId: 99629
triggerType: 1
unsubscribe: '1'
Create SesSendEmail Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SesSendEmail(name: string, args: SesSendEmailArgs, opts?: CustomResourceOptions);
@overload
def SesSendEmail(resource_name: str,
args: SesSendEmailArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SesSendEmail(resource_name: str,
opts: Optional[ResourceOptions] = None,
destinations: Optional[Sequence[str]] = None,
from_email_address: Optional[str] = None,
subject: Optional[str] = None,
attachments: Optional[Sequence[SesSendEmailAttachmentArgs]] = None,
bccs: Optional[Sequence[str]] = None,
ccs: Optional[Sequence[str]] = None,
reply_to_addresses: Optional[str] = None,
ses_send_email_id: Optional[str] = None,
template: Optional[SesSendEmailTemplateArgs] = None,
trigger_type: Optional[float] = None,
unsubscribe: Optional[str] = None)
func NewSesSendEmail(ctx *Context, name string, args SesSendEmailArgs, opts ...ResourceOption) (*SesSendEmail, error)
public SesSendEmail(string name, SesSendEmailArgs args, CustomResourceOptions? opts = null)
public SesSendEmail(String name, SesSendEmailArgs args)
public SesSendEmail(String name, SesSendEmailArgs args, CustomResourceOptions options)
type: tencentcloud:SesSendEmail
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 SesSendEmailArgs
- 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 SesSendEmailArgs
- 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 SesSendEmailArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SesSendEmailArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SesSendEmailArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
SesSendEmail 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 SesSendEmail resource accepts the following input properties:
- Destinations List<string>
- Recipient email addresses. You can send an email to up to 50 recipients at a time. Note: the email content will display all recipient addresses. To send one-to-one emails to several recipients, please call the API multiple times to send the emails.
- From
Email stringAddress - Sender address. Enter a sender address, for example, noreply@mail.qcloud.com.To display the sender name, enter the address in the following format:Sender.
- Subject string
- Email subject.
- Attachments
List<Ses
Send Email Attachment> - Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
- Bccs List<string>
- The email address of the cc recipient can support up to 20 cc recipients.
- Ccs List<string>
- Cc recipient email address, up to 20 people can be copied.
- 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
Send stringEmail Id - ID of the resource.
- Template
Ses
Send Email Template - Template parameters for template-based sending. As Simple has been disused, Template is required.
- Trigger
Type double - Email triggering type. 0 (default): non-trigger-based, suitable for marketing emails and non-immediate emails;1: trigger-based, suitable for immediate emails such as emails containing verification codes.If the size of an email exceeds a specified value,the system will automatically choose the non-trigger-based type.
- 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.
- Destinations []string
- Recipient email addresses. You can send an email to up to 50 recipients at a time. Note: the email content will display all recipient addresses. To send one-to-one emails to several recipients, please call the API multiple times to send the emails.
- From
Email stringAddress - Sender address. Enter a sender address, for example, noreply@mail.qcloud.com.To display the sender name, enter the address in the following format:Sender.
- Subject string
- Email subject.
- Attachments
[]Ses
Send Email Attachment Args - Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
- Bccs []string
- The email address of the cc recipient can support up to 20 cc recipients.
- Ccs []string
- Cc recipient email address, up to 20 people can be copied.
- 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
Send stringEmail Id - ID of the resource.
- Template
Ses
Send Email Template Args - Template parameters for template-based sending. As Simple has been disused, Template is required.
- Trigger
Type float64 - Email triggering type. 0 (default): non-trigger-based, suitable for marketing emails and non-immediate emails;1: trigger-based, suitable for immediate emails such as emails containing verification codes.If the size of an email exceeds a specified value,the system will automatically choose the non-trigger-based type.
- 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.
- destinations List<String>
- Recipient email addresses. You can send an email to up to 50 recipients at a time. Note: the email content will display all recipient addresses. To send one-to-one emails to several recipients, please call the API multiple times to send the emails.
- from
Email StringAddress - Sender address. Enter a sender address, for example, noreply@mail.qcloud.com.To display the sender name, enter the address in the following format:Sender.
- subject String
- Email subject.
- attachments
List<Ses
Send Email Attachment> - Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
- bccs List<String>
- The email address of the cc recipient can support up to 20 cc recipients.
- ccs List<String>
- Cc recipient email address, up to 20 people can be copied.
- 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
Send StringEmail Id - ID of the resource.
- template
Ses
Send Email Template - Template parameters for template-based sending. As Simple has been disused, Template is required.
- trigger
Type Double - Email triggering type. 0 (default): non-trigger-based, suitable for marketing emails and non-immediate emails;1: trigger-based, suitable for immediate emails such as emails containing verification codes.If the size of an email exceeds a specified value,the system will automatically choose the non-trigger-based type.
- 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.
- destinations string[]
- Recipient email addresses. You can send an email to up to 50 recipients at a time. Note: the email content will display all recipient addresses. To send one-to-one emails to several recipients, please call the API multiple times to send the emails.
- from
Email stringAddress - Sender address. Enter a sender address, for example, noreply@mail.qcloud.com.To display the sender name, enter the address in the following format:Sender.
- subject string
- Email subject.
- attachments
Ses
Send Email Attachment[] - Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
- bccs string[]
- The email address of the cc recipient can support up to 20 cc recipients.
- ccs string[]
- Cc recipient email address, up to 20 people can be copied.
- 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
Send stringEmail Id - ID of the resource.
- template
Ses
Send Email Template - Template parameters for template-based sending. As Simple has been disused, Template is required.
- trigger
Type number - Email triggering type. 0 (default): non-trigger-based, suitable for marketing emails and non-immediate emails;1: trigger-based, suitable for immediate emails such as emails containing verification codes.If the size of an email exceeds a specified value,the system will automatically choose the non-trigger-based type.
- 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.
- destinations Sequence[str]
- Recipient email addresses. You can send an email to up to 50 recipients at a time. Note: the email content will display all recipient addresses. To send one-to-one emails to several recipients, please call the API multiple times to send the emails.
- from_
email_ straddress - Sender address. Enter a sender address, for example, noreply@mail.qcloud.com.To display the sender name, enter the address in the following format:Sender.
- subject str
- Email subject.
- attachments
Sequence[Ses
Send Email Attachment Args] - Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
- bccs Sequence[str]
- The email address of the cc recipient can support up to 20 cc recipients.
- ccs Sequence[str]
- Cc recipient email address, up to 20 people can be copied.
- 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_
send_ stremail_ id - ID of the resource.
- template
Ses
Send Email Template Args - Template parameters for template-based sending. As Simple has been disused, Template is required.
- trigger_
type float - Email triggering type. 0 (default): non-trigger-based, suitable for marketing emails and non-immediate emails;1: trigger-based, suitable for immediate emails such as emails containing verification codes.If the size of an email exceeds a specified value,the system will automatically choose the non-trigger-based type.
- 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.
- destinations List<String>
- Recipient email addresses. You can send an email to up to 50 recipients at a time. Note: the email content will display all recipient addresses. To send one-to-one emails to several recipients, please call the API multiple times to send the emails.
- from
Email StringAddress - Sender address. Enter a sender address, for example, noreply@mail.qcloud.com.To display the sender name, enter the address in the following format:Sender.
- subject String
- Email subject.
- attachments List<Property Map>
- Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
- bccs List<String>
- The email address of the cc recipient can support up to 20 cc recipients.
- ccs List<String>
- Cc recipient email address, up to 20 people can be copied.
- 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
Send StringEmail Id - ID of the resource.
- template Property Map
- Template parameters for template-based sending. As Simple has been disused, Template is required.
- trigger
Type Number - Email triggering type. 0 (default): non-trigger-based, suitable for marketing emails and non-immediate emails;1: trigger-based, suitable for immediate emails such as emails containing verification codes.If the size of an email exceeds a specified value,the system will automatically choose the non-trigger-based type.
- 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 SesSendEmail 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 SesSendEmail Resource
Get an existing SesSendEmail 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?: SesSendEmailState, opts?: CustomResourceOptions): SesSendEmail
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
attachments: Optional[Sequence[SesSendEmailAttachmentArgs]] = None,
bccs: Optional[Sequence[str]] = None,
ccs: Optional[Sequence[str]] = None,
destinations: Optional[Sequence[str]] = None,
from_email_address: Optional[str] = None,
reply_to_addresses: Optional[str] = None,
ses_send_email_id: Optional[str] = None,
subject: Optional[str] = None,
template: Optional[SesSendEmailTemplateArgs] = None,
trigger_type: Optional[float] = None,
unsubscribe: Optional[str] = None) -> SesSendEmail
func GetSesSendEmail(ctx *Context, name string, id IDInput, state *SesSendEmailState, opts ...ResourceOption) (*SesSendEmail, error)
public static SesSendEmail Get(string name, Input<string> id, SesSendEmailState? state, CustomResourceOptions? opts = null)
public static SesSendEmail get(String name, Output<String> id, SesSendEmailState state, CustomResourceOptions options)
resources: _: type: tencentcloud:SesSendEmail 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.
- Attachments
List<Ses
Send Email Attachment> - Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
- Bccs List<string>
- The email address of the cc recipient can support up to 20 cc recipients.
- Ccs List<string>
- Cc recipient email address, up to 20 people can be copied.
- Destinations List<string>
- Recipient email addresses. You can send an email to up to 50 recipients at a time. Note: the email content will display all recipient addresses. To send one-to-one emails to several recipients, please call the API multiple times to send the emails.
- From
Email stringAddress - Sender address. Enter a sender address, for example, noreply@mail.qcloud.com.To display the sender name, enter the address in the following format:Sender.
- 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
Send stringEmail Id - ID of the resource.
- Subject string
- Email subject.
- Template
Ses
Send Email Template - Template parameters for template-based sending. As Simple has been disused, Template is required.
- Trigger
Type double - Email triggering type. 0 (default): non-trigger-based, suitable for marketing emails and non-immediate emails;1: trigger-based, suitable for immediate emails such as emails containing verification codes.If the size of an email exceeds a specified value,the system will automatically choose the non-trigger-based type.
- 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.
- Attachments
[]Ses
Send Email Attachment Args - Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
- Bccs []string
- The email address of the cc recipient can support up to 20 cc recipients.
- Ccs []string
- Cc recipient email address, up to 20 people can be copied.
- Destinations []string
- Recipient email addresses. You can send an email to up to 50 recipients at a time. Note: the email content will display all recipient addresses. To send one-to-one emails to several recipients, please call the API multiple times to send the emails.
- From
Email stringAddress - Sender address. Enter a sender address, for example, noreply@mail.qcloud.com.To display the sender name, enter the address in the following format:Sender.
- 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
Send stringEmail Id - ID of the resource.
- Subject string
- Email subject.
- Template
Ses
Send Email Template Args - Template parameters for template-based sending. As Simple has been disused, Template is required.
- Trigger
Type float64 - Email triggering type. 0 (default): non-trigger-based, suitable for marketing emails and non-immediate emails;1: trigger-based, suitable for immediate emails such as emails containing verification codes.If the size of an email exceeds a specified value,the system will automatically choose the non-trigger-based type.
- 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.
- attachments
List<Ses
Send Email Attachment> - Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
- bccs List<String>
- The email address of the cc recipient can support up to 20 cc recipients.
- ccs List<String>
- Cc recipient email address, up to 20 people can be copied.
- destinations List<String>
- Recipient email addresses. You can send an email to up to 50 recipients at a time. Note: the email content will display all recipient addresses. To send one-to-one emails to several recipients, please call the API multiple times to send the emails.
- from
Email StringAddress - Sender address. Enter a sender address, for example, noreply@mail.qcloud.com.To display the sender name, enter the address in the following format:Sender.
- 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
Send StringEmail Id - ID of the resource.
- subject String
- Email subject.
- template
Ses
Send Email Template - Template parameters for template-based sending. As Simple has been disused, Template is required.
- trigger
Type Double - Email triggering type. 0 (default): non-trigger-based, suitable for marketing emails and non-immediate emails;1: trigger-based, suitable for immediate emails such as emails containing verification codes.If the size of an email exceeds a specified value,the system will automatically choose the non-trigger-based type.
- 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.
- attachments
Ses
Send Email Attachment[] - Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
- bccs string[]
- The email address of the cc recipient can support up to 20 cc recipients.
- ccs string[]
- Cc recipient email address, up to 20 people can be copied.
- destinations string[]
- Recipient email addresses. You can send an email to up to 50 recipients at a time. Note: the email content will display all recipient addresses. To send one-to-one emails to several recipients, please call the API multiple times to send the emails.
- from
Email stringAddress - Sender address. Enter a sender address, for example, noreply@mail.qcloud.com.To display the sender name, enter the address in the following format:Sender.
- 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
Send stringEmail Id - ID of the resource.
- subject string
- Email subject.
- template
Ses
Send Email Template - Template parameters for template-based sending. As Simple has been disused, Template is required.
- trigger
Type number - Email triggering type. 0 (default): non-trigger-based, suitable for marketing emails and non-immediate emails;1: trigger-based, suitable for immediate emails such as emails containing verification codes.If the size of an email exceeds a specified value,the system will automatically choose the non-trigger-based type.
- 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.
- attachments
Sequence[Ses
Send Email Attachment Args] - Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
- bccs Sequence[str]
- The email address of the cc recipient can support up to 20 cc recipients.
- ccs Sequence[str]
- Cc recipient email address, up to 20 people can be copied.
- destinations Sequence[str]
- Recipient email addresses. You can send an email to up to 50 recipients at a time. Note: the email content will display all recipient addresses. To send one-to-one emails to several recipients, please call the API multiple times to send the emails.
- from_
email_ straddress - Sender address. Enter a sender address, for example, noreply@mail.qcloud.com.To display the sender name, enter the address in the following format:Sender.
- 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_
send_ stremail_ id - ID of the resource.
- subject str
- Email subject.
- template
Ses
Send Email Template Args - Template parameters for template-based sending. As Simple has been disused, Template is required.
- trigger_
type float - Email triggering type. 0 (default): non-trigger-based, suitable for marketing emails and non-immediate emails;1: trigger-based, suitable for immediate emails such as emails containing verification codes.If the size of an email exceeds a specified value,the system will automatically choose the non-trigger-based type.
- 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.
- attachments List<Property Map>
- Parameters for the attachments to be sent. The TencentCloud API supports a request packet of up to 8 MB in size,and the size of the attachment content will increase by 1.5 times after Base64 encoding. Therefore,you need to keep the total size of all attachments below 4 MB. If the entire request exceeds 8 MB,the API will return an error.
- bccs List<String>
- The email address of the cc recipient can support up to 20 cc recipients.
- ccs List<String>
- Cc recipient email address, up to 20 people can be copied.
- destinations List<String>
- Recipient email addresses. You can send an email to up to 50 recipients at a time. Note: the email content will display all recipient addresses. To send one-to-one emails to several recipients, please call the API multiple times to send the emails.
- from
Email StringAddress - Sender address. Enter a sender address, for example, noreply@mail.qcloud.com.To display the sender name, enter the address in the following format:Sender.
- 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
Send StringEmail Id - ID of the resource.
- subject String
- Email subject.
- template Property Map
- Template parameters for template-based sending. As Simple has been disused, Template is required.
- trigger
Type Number - Email triggering type. 0 (default): non-trigger-based, suitable for marketing emails and non-immediate emails;1: trigger-based, suitable for immediate emails such as emails containing verification codes.If the size of an email exceeds a specified value,the system will automatically choose the non-trigger-based type.
- 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
SesSendEmailAttachment, SesSendEmailAttachmentArgs
- 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..
SesSendEmailTemplate, SesSendEmailTemplateArgs
- 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.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.