1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. directmail
  5. MailAddress
Alibaba Cloud v3.57.0 published on Saturday, Jun 15, 2024 by Pulumi

alicloud.directmail.MailAddress

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.0 published on Saturday, Jun 15, 2024 by Pulumi

    Provides a Direct Mail Mail Address resource.

    For information about Direct Mail Mail Address and how to use it, see What is Mail Address.

    NOTE: Available since v1.134.0.

    Create MailAddress Resource

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

    Constructor syntax

    new MailAddress(name: string, args: MailAddressArgs, opts?: CustomResourceOptions);
    @overload
    def MailAddress(resource_name: str,
                    args: MailAddressArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def MailAddress(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    account_name: Optional[str] = None,
                    sendtype: Optional[str] = None,
                    password: Optional[str] = None,
                    reply_address: Optional[str] = None)
    func NewMailAddress(ctx *Context, name string, args MailAddressArgs, opts ...ResourceOption) (*MailAddress, error)
    public MailAddress(string name, MailAddressArgs args, CustomResourceOptions? opts = null)
    public MailAddress(String name, MailAddressArgs args)
    public MailAddress(String name, MailAddressArgs args, CustomResourceOptions options)
    
    type: alicloud:directmail:MailAddress
    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 MailAddressArgs
    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 MailAddressArgs
    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 MailAddressArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MailAddressArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MailAddressArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var mailAddressResource = new AliCloud.DirectMail.MailAddress("mailAddressResource", new()
    {
        AccountName = "string",
        Sendtype = "string",
        Password = "string",
        ReplyAddress = "string",
    });
    
    example, err := directmail.NewMailAddress(ctx, "mailAddressResource", &directmail.MailAddressArgs{
    	AccountName:  pulumi.String("string"),
    	Sendtype:     pulumi.String("string"),
    	Password:     pulumi.String("string"),
    	ReplyAddress: pulumi.String("string"),
    })
    
    var mailAddressResource = new MailAddress("mailAddressResource", MailAddressArgs.builder()
        .accountName("string")
        .sendtype("string")
        .password("string")
        .replyAddress("string")
        .build());
    
    mail_address_resource = alicloud.directmail.MailAddress("mailAddressResource",
        account_name="string",
        sendtype="string",
        password="string",
        reply_address="string")
    
    const mailAddressResource = new alicloud.directmail.MailAddress("mailAddressResource", {
        accountName: "string",
        sendtype: "string",
        password: "string",
        replyAddress: "string",
    });
    
    type: alicloud:directmail:MailAddress
    properties:
        accountName: string
        password: string
        replyAddress: string
        sendtype: string
    

    MailAddress Resource Properties

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

    Inputs

    The MailAddress resource accepts the following input properties:

    AccountName string
    The sender address. The email address must be filled in the format of account@domain, and only lowercase letters or numbers can be used.
    Sendtype string
    Account type. Valid values: batch, trigger.
    Password string
    Account password. The password must be length 10-20 string, contains numbers, uppercase letters, lowercase letters at the same time.
    ReplyAddress string
    Return address.
    AccountName string
    The sender address. The email address must be filled in the format of account@domain, and only lowercase letters or numbers can be used.
    Sendtype string
    Account type. Valid values: batch, trigger.
    Password string
    Account password. The password must be length 10-20 string, contains numbers, uppercase letters, lowercase letters at the same time.
    ReplyAddress string
    Return address.
    accountName String
    The sender address. The email address must be filled in the format of account@domain, and only lowercase letters or numbers can be used.
    sendtype String
    Account type. Valid values: batch, trigger.
    password String
    Account password. The password must be length 10-20 string, contains numbers, uppercase letters, lowercase letters at the same time.
    replyAddress String
    Return address.
    accountName string
    The sender address. The email address must be filled in the format of account@domain, and only lowercase letters or numbers can be used.
    sendtype string
    Account type. Valid values: batch, trigger.
    password string
    Account password. The password must be length 10-20 string, contains numbers, uppercase letters, lowercase letters at the same time.
    replyAddress string
    Return address.
    account_name str
    The sender address. The email address must be filled in the format of account@domain, and only lowercase letters or numbers can be used.
    sendtype str
    Account type. Valid values: batch, trigger.
    password str
    Account password. The password must be length 10-20 string, contains numbers, uppercase letters, lowercase letters at the same time.
    reply_address str
    Return address.
    accountName String
    The sender address. The email address must be filled in the format of account@domain, and only lowercase letters or numbers can be used.
    sendtype String
    Account type. Valid values: batch, trigger.
    password String
    Account password. The password must be length 10-20 string, contains numbers, uppercase letters, lowercase letters at the same time.
    replyAddress String
    Return address.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Account Status freeze: 1, normal: 0.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Account Status freeze: 1, normal: 0.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Account Status freeze: 1, normal: 0.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Account Status freeze: 1, normal: 0.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Account Status freeze: 1, normal: 0.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Account Status freeze: 1, normal: 0.

    Look up Existing MailAddress Resource

    Get an existing MailAddress 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?: MailAddressState, opts?: CustomResourceOptions): MailAddress
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_name: Optional[str] = None,
            password: Optional[str] = None,
            reply_address: Optional[str] = None,
            sendtype: Optional[str] = None,
            status: Optional[str] = None) -> MailAddress
    func GetMailAddress(ctx *Context, name string, id IDInput, state *MailAddressState, opts ...ResourceOption) (*MailAddress, error)
    public static MailAddress Get(string name, Input<string> id, MailAddressState? state, CustomResourceOptions? opts = null)
    public static MailAddress get(String name, Output<String> id, MailAddressState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    AccountName string
    The sender address. The email address must be filled in the format of account@domain, and only lowercase letters or numbers can be used.
    Password string
    Account password. The password must be length 10-20 string, contains numbers, uppercase letters, lowercase letters at the same time.
    ReplyAddress string
    Return address.
    Sendtype string
    Account type. Valid values: batch, trigger.
    Status string
    Account Status freeze: 1, normal: 0.
    AccountName string
    The sender address. The email address must be filled in the format of account@domain, and only lowercase letters or numbers can be used.
    Password string
    Account password. The password must be length 10-20 string, contains numbers, uppercase letters, lowercase letters at the same time.
    ReplyAddress string
    Return address.
    Sendtype string
    Account type. Valid values: batch, trigger.
    Status string
    Account Status freeze: 1, normal: 0.
    accountName String
    The sender address. The email address must be filled in the format of account@domain, and only lowercase letters or numbers can be used.
    password String
    Account password. The password must be length 10-20 string, contains numbers, uppercase letters, lowercase letters at the same time.
    replyAddress String
    Return address.
    sendtype String
    Account type. Valid values: batch, trigger.
    status String
    Account Status freeze: 1, normal: 0.
    accountName string
    The sender address. The email address must be filled in the format of account@domain, and only lowercase letters or numbers can be used.
    password string
    Account password. The password must be length 10-20 string, contains numbers, uppercase letters, lowercase letters at the same time.
    replyAddress string
    Return address.
    sendtype string
    Account type. Valid values: batch, trigger.
    status string
    Account Status freeze: 1, normal: 0.
    account_name str
    The sender address. The email address must be filled in the format of account@domain, and only lowercase letters or numbers can be used.
    password str
    Account password. The password must be length 10-20 string, contains numbers, uppercase letters, lowercase letters at the same time.
    reply_address str
    Return address.
    sendtype str
    Account type. Valid values: batch, trigger.
    status str
    Account Status freeze: 1, normal: 0.
    accountName String
    The sender address. The email address must be filled in the format of account@domain, and only lowercase letters or numbers can be used.
    password String
    Account password. The password must be length 10-20 string, contains numbers, uppercase letters, lowercase letters at the same time.
    replyAddress String
    Return address.
    sendtype String
    Account type. Valid values: batch, trigger.
    status String
    Account Status freeze: 1, normal: 0.

    Import

    Direct Mail Mail Address can be imported using the id, e.g.

    $ pulumi import alicloud:directmail/mailAddress:MailAddress example <id>
    

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.0 published on Saturday, Jun 15, 2024 by Pulumi