Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.19.0 published on Friday, Mar 18, 2022 by Pulumi

MailAddress

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 in v1.134.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new AliCloud.DirectMail.MailAddress("example", new AliCloud.DirectMail.MailAddressArgs
        {
            AccountName = "example_value@email.com",
            Sendtype = "batch",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/directmail"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := directmail.NewMailAddress(ctx, "example", &directmail.MailAddressArgs{
			AccountName: pulumi.String("example_value@email.com"),
			Sendtype:    pulumi.String("batch"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

example = alicloud.directmail.MailAddress("example",
    account_name="example_value@email.com",
    sendtype="batch")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.directmail.MailAddress("example", {
    accountName: "example_value@email.com",
    sendtype: "batch",
});

Coming soon!

Create a MailAddress Resource

new MailAddress(name: string, args: MailAddressArgs, opts?: CustomResourceOptions);
@overload
def MailAddress(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                account_name: Optional[str] = None,
                password: Optional[str] = None,
                reply_address: Optional[str] = None,
                sendtype: Optional[str] = None)
@overload
def MailAddress(resource_name: str,
                args: MailAddressArgs,
                opts: Optional[ResourceOptions] = 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.

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.

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 an 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>

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.