Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Alibaba Cloud

v3.8.0 published on Monday, Oct 4, 2021 by Pulumi

Receivers

Provides a Direct Mail Receivers resource.

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

NOTE: Available in v1.125.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new AliCloud.DirectMail.Receivers("example", new AliCloud.DirectMail.ReceiversArgs
        {
            ReceiversAlias = "tf-vme8@onaliyun.com",
            ReceiversName = "vme8",
        });
    }

}
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.NewReceivers(ctx, "example", &directmail.ReceiversArgs{
			ReceiversAlias: pulumi.String("tf-vme8@onaliyun.com"),
			ReceiversName:  pulumi.String("vme8"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.directmail.Receivers("example",
    receivers_alias="tf-vme8@onaliyun.com",
    receivers_name="vme8")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.directmail.Receivers("example", {
    receiversAlias: "tf-vme8@onaliyun.com",
    receiversName: "vme8",
});

Create a Receivers Resource

new Receivers(name: string, args: ReceiversArgs, opts?: CustomResourceOptions);
@overload
def Receivers(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              description: Optional[str] = None,
              receivers_alias: Optional[str] = None,
              receivers_name: Optional[str] = None)
@overload
def Receivers(resource_name: str,
              args: ReceiversArgs,
              opts: Optional[ResourceOptions] = None)
func NewReceivers(ctx *Context, name string, args ReceiversArgs, opts ...ResourceOption) (*Receivers, error)
public Receivers(string name, ReceiversArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ReceiversArgs
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 ReceiversArgs
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 ReceiversArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ReceiversArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

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

ReceiversAlias string
The alias of receivers. Must email address and less than 30 characters in length.
ReceiversName string
The name of the resource. The length that cannot be repeated is 1-30 characters.
Description string
The description of receivers and 1-50 characters in length.
ReceiversAlias string
The alias of receivers. Must email address and less than 30 characters in length.
ReceiversName string
The name of the resource. The length that cannot be repeated is 1-30 characters.
Description string
The description of receivers and 1-50 characters in length.
receiversAlias string
The alias of receivers. Must email address and less than 30 characters in length.
receiversName string
The name of the resource. The length that cannot be repeated is 1-30 characters.
description string
The description of receivers and 1-50 characters in length.
receivers_alias str
The alias of receivers. Must email address and less than 30 characters in length.
receivers_name str
The name of the resource. The length that cannot be repeated is 1-30 characters.
description str
The description of receivers and 1-50 characters in length.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Status int
The status of the resource. 0 means uploading, 1 means upload completed.
Id string
The provider-assigned unique ID for this managed resource.
Status int
The status of the resource. 0 means uploading, 1 means upload completed.
id string
The provider-assigned unique ID for this managed resource.
status number
The status of the resource. 0 means uploading, 1 means upload completed.
id str
The provider-assigned unique ID for this managed resource.
status int
The status of the resource. 0 means uploading, 1 means upload completed.

Look up an Existing Receivers Resource

Get an existing Receivers 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?: ReceiversState, opts?: CustomResourceOptions): Receivers
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        receivers_alias: Optional[str] = None,
        receivers_name: Optional[str] = None,
        status: Optional[int] = None) -> Receivers
func GetReceivers(ctx *Context, name string, id IDInput, state *ReceiversState, opts ...ResourceOption) (*Receivers, error)
public static Receivers Get(string name, Input<string> id, ReceiversState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Description string
The description of receivers and 1-50 characters in length.
ReceiversAlias string
The alias of receivers. Must email address and less than 30 characters in length.
ReceiversName string
The name of the resource. The length that cannot be repeated is 1-30 characters.
Status int
The status of the resource. 0 means uploading, 1 means upload completed.
Description string
The description of receivers and 1-50 characters in length.
ReceiversAlias string
The alias of receivers. Must email address and less than 30 characters in length.
ReceiversName string
The name of the resource. The length that cannot be repeated is 1-30 characters.
Status int
The status of the resource. 0 means uploading, 1 means upload completed.
description string
The description of receivers and 1-50 characters in length.
receiversAlias string
The alias of receivers. Must email address and less than 30 characters in length.
receiversName string
The name of the resource. The length that cannot be repeated is 1-30 characters.
status number
The status of the resource. 0 means uploading, 1 means upload completed.
description str
The description of receivers and 1-50 characters in length.
receivers_alias str
The alias of receivers. Must email address and less than 30 characters in length.
receivers_name str
The name of the resource. The length that cannot be repeated is 1-30 characters.
status int
The status of the resource. 0 means uploading, 1 means upload completed.

Import

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

 $ pulumi import alicloud:directmail/receivers:Receivers 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.