alicloud.directmail.MailAddress
Explore with Pulumi AI
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.
Constructor 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:
- Account
Name 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.
- Reply
Address string - Return address.
- Account
Name 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.
- Reply
Address string - Return address.
- account
Name 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.
- reply
Address String - Return address.
- account
Name 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.
- reply
Address 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.
- account
Name 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.
- reply
Address String - Return address.
Outputs
All input properties are implicitly available as output properties. Additionally, the MailAddress resource produces the following output properties:
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.
- Account
Name 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.
- Reply
Address string - Return address.
- Sendtype string
- Account type. Valid values:
batch
,trigger
. - Status string
- Account Status freeze: 1, normal: 0.
- Account
Name 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.
- Reply
Address string - Return address.
- Sendtype string
- Account type. Valid values:
batch
,trigger
. - Status string
- Account Status freeze: 1, normal: 0.
- account
Name 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.
- reply
Address String - Return address.
- sendtype String
- Account type. Valid values:
batch
,trigger
. - status String
- Account Status freeze: 1, normal: 0.
- account
Name 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.
- reply
Address 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.
- account
Name 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.
- reply
Address 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.