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

tencentcloud.SesReceiver

Explore with Pulumi AI

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

    Provides a resource to create a ses receiver

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const receiver = new tencentcloud.SesReceiver("receiver", {
        datas: [
            {
                email: "abc@abc.com",
            },
            {
                email: "abcd@abcd.com",
            },
        ],
        desc: "description",
        receiversName: "terraform_test",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    receiver = tencentcloud.SesReceiver("receiver",
        datas=[
            {
                "email": "abc@abc.com",
            },
            {
                "email": "abcd@abcd.com",
            },
        ],
        desc="description",
        receivers_name="terraform_test")
    
    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.NewSesReceiver(ctx, "receiver", &tencentcloud.SesReceiverArgs{
    			Datas: tencentcloud.SesReceiverDataArray{
    				&tencentcloud.SesReceiverDataArgs{
    					Email: pulumi.String("abc@abc.com"),
    				},
    				&tencentcloud.SesReceiverDataArgs{
    					Email: pulumi.String("abcd@abcd.com"),
    				},
    			},
    			Desc:          pulumi.String("description"),
    			ReceiversName: pulumi.String("terraform_test"),
    		})
    		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 receiver = new Tencentcloud.SesReceiver("receiver", new()
        {
            Datas = new[]
            {
                new Tencentcloud.Inputs.SesReceiverDataArgs
                {
                    Email = "abc@abc.com",
                },
                new Tencentcloud.Inputs.SesReceiverDataArgs
                {
                    Email = "abcd@abcd.com",
                },
            },
            Desc = "description",
            ReceiversName = "terraform_test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.SesReceiver;
    import com.pulumi.tencentcloud.SesReceiverArgs;
    import com.pulumi.tencentcloud.inputs.SesReceiverDataArgs;
    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 receiver = new SesReceiver("receiver", SesReceiverArgs.builder()
                .datas(            
                    SesReceiverDataArgs.builder()
                        .email("abc@abc.com")
                        .build(),
                    SesReceiverDataArgs.builder()
                        .email("abcd@abcd.com")
                        .build())
                .desc("description")
                .receiversName("terraform_test")
                .build());
    
        }
    }
    
    resources:
      receiver:
        type: tencentcloud:SesReceiver
        properties:
          datas:
            - email: abc@abc.com
            - email: abcd@abcd.com
          desc: description
          receiversName: terraform_test
    
    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const receiver = new tencentcloud.SesReceiver("receiver", {
        datas: [
            {
                email: "abc@abc.com",
                templateData: "{\"name\":\"xxx\",\"age\":\"xx\"}",
            },
            {
                email: "abcd@abcd.com",
                templateData: "{\"name\":\"xxx\",\"age\":\"xx\"}",
            },
        ],
        desc: "description",
        receiversName: "terraform_test",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    receiver = tencentcloud.SesReceiver("receiver",
        datas=[
            {
                "email": "abc@abc.com",
                "template_data": "{\"name\":\"xxx\",\"age\":\"xx\"}",
            },
            {
                "email": "abcd@abcd.com",
                "template_data": "{\"name\":\"xxx\",\"age\":\"xx\"}",
            },
        ],
        desc="description",
        receivers_name="terraform_test")
    
    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.NewSesReceiver(ctx, "receiver", &tencentcloud.SesReceiverArgs{
    			Datas: tencentcloud.SesReceiverDataArray{
    				&tencentcloud.SesReceiverDataArgs{
    					Email:        pulumi.String("abc@abc.com"),
    					TemplateData: pulumi.String("{\"name\":\"xxx\",\"age\":\"xx\"}"),
    				},
    				&tencentcloud.SesReceiverDataArgs{
    					Email:        pulumi.String("abcd@abcd.com"),
    					TemplateData: pulumi.String("{\"name\":\"xxx\",\"age\":\"xx\"}"),
    				},
    			},
    			Desc:          pulumi.String("description"),
    			ReceiversName: pulumi.String("terraform_test"),
    		})
    		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 receiver = new Tencentcloud.SesReceiver("receiver", new()
        {
            Datas = new[]
            {
                new Tencentcloud.Inputs.SesReceiverDataArgs
                {
                    Email = "abc@abc.com",
                    TemplateData = "{\"name\":\"xxx\",\"age\":\"xx\"}",
                },
                new Tencentcloud.Inputs.SesReceiverDataArgs
                {
                    Email = "abcd@abcd.com",
                    TemplateData = "{\"name\":\"xxx\",\"age\":\"xx\"}",
                },
            },
            Desc = "description",
            ReceiversName = "terraform_test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.SesReceiver;
    import com.pulumi.tencentcloud.SesReceiverArgs;
    import com.pulumi.tencentcloud.inputs.SesReceiverDataArgs;
    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 receiver = new SesReceiver("receiver", SesReceiverArgs.builder()
                .datas(            
                    SesReceiverDataArgs.builder()
                        .email("abc@abc.com")
                        .templateData("{\"name\":\"xxx\",\"age\":\"xx\"}")
                        .build(),
                    SesReceiverDataArgs.builder()
                        .email("abcd@abcd.com")
                        .templateData("{\"name\":\"xxx\",\"age\":\"xx\"}")
                        .build())
                .desc("description")
                .receiversName("terraform_test")
                .build());
    
        }
    }
    
    resources:
      receiver:
        type: tencentcloud:SesReceiver
        properties:
          datas:
            - email: abc@abc.com
              templateData: '{"name":"xxx","age":"xx"}'
            - email: abcd@abcd.com
              templateData: '{"name":"xxx","age":"xx"}'
          desc: description
          receiversName: terraform_test
    

    Create SesReceiver Resource

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

    Constructor syntax

    new SesReceiver(name: string, args: SesReceiverArgs, opts?: CustomResourceOptions);
    @overload
    def SesReceiver(resource_name: str,
                    args: SesReceiverArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def SesReceiver(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    datas: Optional[Sequence[SesReceiverDataArgs]] = None,
                    receivers_name: Optional[str] = None,
                    desc: Optional[str] = None,
                    ses_receiver_id: Optional[str] = None)
    func NewSesReceiver(ctx *Context, name string, args SesReceiverArgs, opts ...ResourceOption) (*SesReceiver, error)
    public SesReceiver(string name, SesReceiverArgs args, CustomResourceOptions? opts = null)
    public SesReceiver(String name, SesReceiverArgs args)
    public SesReceiver(String name, SesReceiverArgs args, CustomResourceOptions options)
    
    type: tencentcloud:SesReceiver
    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 SesReceiverArgs
    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 SesReceiverArgs
    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 SesReceiverArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SesReceiverArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SesReceiverArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    SesReceiver 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 SesReceiver resource accepts the following input properties:

    Datas List<SesReceiverData>
    Recipient email and template parameters in array format. The number of recipients is limited to within 20,000. If there is an object in the data list that inputs template_data, then other objects are also required.
    ReceiversName string
    Recipient group name.
    Desc string
    Recipient group description.
    SesReceiverId string
    ID of the resource.
    Datas []SesReceiverDataArgs
    Recipient email and template parameters in array format. The number of recipients is limited to within 20,000. If there is an object in the data list that inputs template_data, then other objects are also required.
    ReceiversName string
    Recipient group name.
    Desc string
    Recipient group description.
    SesReceiverId string
    ID of the resource.
    datas List<SesReceiverData>
    Recipient email and template parameters in array format. The number of recipients is limited to within 20,000. If there is an object in the data list that inputs template_data, then other objects are also required.
    receiversName String
    Recipient group name.
    desc String
    Recipient group description.
    sesReceiverId String
    ID of the resource.
    datas SesReceiverData[]
    Recipient email and template parameters in array format. The number of recipients is limited to within 20,000. If there is an object in the data list that inputs template_data, then other objects are also required.
    receiversName string
    Recipient group name.
    desc string
    Recipient group description.
    sesReceiverId string
    ID of the resource.
    datas Sequence[SesReceiverDataArgs]
    Recipient email and template parameters in array format. The number of recipients is limited to within 20,000. If there is an object in the data list that inputs template_data, then other objects are also required.
    receivers_name str
    Recipient group name.
    desc str
    Recipient group description.
    ses_receiver_id str
    ID of the resource.
    datas List<Property Map>
    Recipient email and template parameters in array format. The number of recipients is limited to within 20,000. If there is an object in the data list that inputs template_data, then other objects are also required.
    receiversName String
    Recipient group name.
    desc String
    Recipient group description.
    sesReceiverId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SesReceiver 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 SesReceiver Resource

    Get an existing SesReceiver 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?: SesReceiverState, opts?: CustomResourceOptions): SesReceiver
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            datas: Optional[Sequence[SesReceiverDataArgs]] = None,
            desc: Optional[str] = None,
            receivers_name: Optional[str] = None,
            ses_receiver_id: Optional[str] = None) -> SesReceiver
    func GetSesReceiver(ctx *Context, name string, id IDInput, state *SesReceiverState, opts ...ResourceOption) (*SesReceiver, error)
    public static SesReceiver Get(string name, Input<string> id, SesReceiverState? state, CustomResourceOptions? opts = null)
    public static SesReceiver get(String name, Output<String> id, SesReceiverState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:SesReceiver    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:
    Datas List<SesReceiverData>
    Recipient email and template parameters in array format. The number of recipients is limited to within 20,000. If there is an object in the data list that inputs template_data, then other objects are also required.
    Desc string
    Recipient group description.
    ReceiversName string
    Recipient group name.
    SesReceiverId string
    ID of the resource.
    Datas []SesReceiverDataArgs
    Recipient email and template parameters in array format. The number of recipients is limited to within 20,000. If there is an object in the data list that inputs template_data, then other objects are also required.
    Desc string
    Recipient group description.
    ReceiversName string
    Recipient group name.
    SesReceiverId string
    ID of the resource.
    datas List<SesReceiverData>
    Recipient email and template parameters in array format. The number of recipients is limited to within 20,000. If there is an object in the data list that inputs template_data, then other objects are also required.
    desc String
    Recipient group description.
    receiversName String
    Recipient group name.
    sesReceiverId String
    ID of the resource.
    datas SesReceiverData[]
    Recipient email and template parameters in array format. The number of recipients is limited to within 20,000. If there is an object in the data list that inputs template_data, then other objects are also required.
    desc string
    Recipient group description.
    receiversName string
    Recipient group name.
    sesReceiverId string
    ID of the resource.
    datas Sequence[SesReceiverDataArgs]
    Recipient email and template parameters in array format. The number of recipients is limited to within 20,000. If there is an object in the data list that inputs template_data, then other objects are also required.
    desc str
    Recipient group description.
    receivers_name str
    Recipient group name.
    ses_receiver_id str
    ID of the resource.
    datas List<Property Map>
    Recipient email and template parameters in array format. The number of recipients is limited to within 20,000. If there is an object in the data list that inputs template_data, then other objects are also required.
    desc String
    Recipient group description.
    receiversName String
    Recipient group name.
    sesReceiverId String
    ID of the resource.

    Supporting Types

    SesReceiverData, SesReceiverDataArgs

    Email string
    Recipient email addresses.
    TemplateData string
    Variable parameters in the template, please use json.dump to format the JSON object as a string type. The object is a set of key-value pairs, where each key represents a variable in the template, and the variables in the template are represented by {{key}}, and the corresponding values will be replaced with {{value}} when sent.Note: Parameter values cannot be complex data such as HTML. The total length of TemplateData (the entire JSON structure) should be less than 800 bytes.
    Email string
    Recipient email addresses.
    TemplateData string
    Variable parameters in the template, please use json.dump to format the JSON object as a string type. The object is a set of key-value pairs, where each key represents a variable in the template, and the variables in the template are represented by {{key}}, and the corresponding values will be replaced with {{value}} when sent.Note: Parameter values cannot be complex data such as HTML. The total length of TemplateData (the entire JSON structure) should be less than 800 bytes.
    email String
    Recipient email addresses.
    templateData String
    Variable parameters in the template, please use json.dump to format the JSON object as a string type. The object is a set of key-value pairs, where each key represents a variable in the template, and the variables in the template are represented by {{key}}, and the corresponding values will be replaced with {{value}} when sent.Note: Parameter values cannot be complex data such as HTML. The total length of TemplateData (the entire JSON structure) should be less than 800 bytes.
    email string
    Recipient email addresses.
    templateData string
    Variable parameters in the template, please use json.dump to format the JSON object as a string type. The object is a set of key-value pairs, where each key represents a variable in the template, and the variables in the template are represented by {{key}}, and the corresponding values will be replaced with {{value}} when sent.Note: Parameter values cannot be complex data such as HTML. The total length of TemplateData (the entire JSON structure) should be less than 800 bytes.
    email str
    Recipient email addresses.
    template_data str
    Variable parameters in the template, please use json.dump to format the JSON object as a string type. The object is a set of key-value pairs, where each key represents a variable in the template, and the variables in the template are represented by {{key}}, and the corresponding values will be replaced with {{value}} when sent.Note: Parameter values cannot be complex data such as HTML. The total length of TemplateData (the entire JSON structure) should be less than 800 bytes.
    email String
    Recipient email addresses.
    templateData String
    Variable parameters in the template, please use json.dump to format the JSON object as a string type. The object is a set of key-value pairs, where each key represents a variable in the template, and the variables in the template are represented by {{key}}, and the corresponding values will be replaced with {{value}} when sent.Note: Parameter values cannot be complex data such as HTML. The total length of TemplateData (the entire JSON structure) should be less than 800 bytes.

    Import

    ses email_address can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/sesReceiver:SesReceiver receiver receiverId
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

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