directmail

package
v3.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetReceiversReceiverse

type GetReceiversReceiverse struct {
	// The creation time of the resource.
	CreateTime string `pulumi:"createTime"`
	// The description.
	Description string `pulumi:"description"`
	// The ID of the Receivers.
	Id string `pulumi:"id"`
	// -The Receivers Alias.
	ReceiversAlias string `pulumi:"receiversAlias"`
	// The first ID of the resource.
	ReceiversId string `pulumi:"receiversId"`
	// The name of the resource.
	ReceiversName string `pulumi:"receiversName"`
	// The status of the resource.
	Status int `pulumi:"status"`
}

type GetReceiversReceiverseArgs

type GetReceiversReceiverseArgs struct {
	// The creation time of the resource.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The description.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the Receivers.
	Id pulumi.StringInput `pulumi:"id"`
	// -The Receivers Alias.
	ReceiversAlias pulumi.StringInput `pulumi:"receiversAlias"`
	// The first ID of the resource.
	ReceiversId pulumi.StringInput `pulumi:"receiversId"`
	// The name of the resource.
	ReceiversName pulumi.StringInput `pulumi:"receiversName"`
	// The status of the resource.
	Status pulumi.IntInput `pulumi:"status"`
}

func (GetReceiversReceiverseArgs) ElementType

func (GetReceiversReceiverseArgs) ElementType() reflect.Type

func (GetReceiversReceiverseArgs) ToGetReceiversReceiverseOutput

func (i GetReceiversReceiverseArgs) ToGetReceiversReceiverseOutput() GetReceiversReceiverseOutput

func (GetReceiversReceiverseArgs) ToGetReceiversReceiverseOutputWithContext

func (i GetReceiversReceiverseArgs) ToGetReceiversReceiverseOutputWithContext(ctx context.Context) GetReceiversReceiverseOutput

type GetReceiversReceiverseArray

type GetReceiversReceiverseArray []GetReceiversReceiverseInput

func (GetReceiversReceiverseArray) ElementType

func (GetReceiversReceiverseArray) ToGetReceiversReceiverseArrayOutput

func (i GetReceiversReceiverseArray) ToGetReceiversReceiverseArrayOutput() GetReceiversReceiverseArrayOutput

func (GetReceiversReceiverseArray) ToGetReceiversReceiverseArrayOutputWithContext

func (i GetReceiversReceiverseArray) ToGetReceiversReceiverseArrayOutputWithContext(ctx context.Context) GetReceiversReceiverseArrayOutput

type GetReceiversReceiverseArrayInput

type GetReceiversReceiverseArrayInput interface {
	pulumi.Input

	ToGetReceiversReceiverseArrayOutput() GetReceiversReceiverseArrayOutput
	ToGetReceiversReceiverseArrayOutputWithContext(context.Context) GetReceiversReceiverseArrayOutput
}

GetReceiversReceiverseArrayInput is an input type that accepts GetReceiversReceiverseArray and GetReceiversReceiverseArrayOutput values. You can construct a concrete instance of `GetReceiversReceiverseArrayInput` via:

GetReceiversReceiverseArray{ GetReceiversReceiverseArgs{...} }

type GetReceiversReceiverseArrayOutput

type GetReceiversReceiverseArrayOutput struct{ *pulumi.OutputState }

func (GetReceiversReceiverseArrayOutput) ElementType

func (GetReceiversReceiverseArrayOutput) Index

func (GetReceiversReceiverseArrayOutput) ToGetReceiversReceiverseArrayOutput

func (o GetReceiversReceiverseArrayOutput) ToGetReceiversReceiverseArrayOutput() GetReceiversReceiverseArrayOutput

func (GetReceiversReceiverseArrayOutput) ToGetReceiversReceiverseArrayOutputWithContext

func (o GetReceiversReceiverseArrayOutput) ToGetReceiversReceiverseArrayOutputWithContext(ctx context.Context) GetReceiversReceiverseArrayOutput

type GetReceiversReceiverseInput

type GetReceiversReceiverseInput interface {
	pulumi.Input

	ToGetReceiversReceiverseOutput() GetReceiversReceiverseOutput
	ToGetReceiversReceiverseOutputWithContext(context.Context) GetReceiversReceiverseOutput
}

GetReceiversReceiverseInput is an input type that accepts GetReceiversReceiverseArgs and GetReceiversReceiverseOutput values. You can construct a concrete instance of `GetReceiversReceiverseInput` via:

GetReceiversReceiverseArgs{...}

type GetReceiversReceiverseOutput

type GetReceiversReceiverseOutput struct{ *pulumi.OutputState }

func (GetReceiversReceiverseOutput) CreateTime

The creation time of the resource.

func (GetReceiversReceiverseOutput) Description

The description.

func (GetReceiversReceiverseOutput) ElementType

func (GetReceiversReceiverseOutput) Id

The ID of the Receivers.

func (GetReceiversReceiverseOutput) ReceiversAlias

-The Receivers Alias.

func (GetReceiversReceiverseOutput) ReceiversId

The first ID of the resource.

func (GetReceiversReceiverseOutput) ReceiversName

The name of the resource.

func (GetReceiversReceiverseOutput) Status

The status of the resource.

func (GetReceiversReceiverseOutput) ToGetReceiversReceiverseOutput

func (o GetReceiversReceiverseOutput) ToGetReceiversReceiverseOutput() GetReceiversReceiverseOutput

func (GetReceiversReceiverseOutput) ToGetReceiversReceiverseOutputWithContext

func (o GetReceiversReceiverseOutput) ToGetReceiversReceiverseOutputWithContext(ctx context.Context) GetReceiversReceiverseOutput

type LookupReceiversArgs

type LookupReceiversArgs struct {
	// A list of Receivers IDs.
	Ids []string `pulumi:"ids"`
	// The key word.
	KeyWord *string `pulumi:"keyWord"`
	// A regex string to filter results by Receivers name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of the resource.
	Status *int `pulumi:"status"`
}

A collection of arguments for invoking getReceivers.

type LookupReceiversResult

type LookupReceiversResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id          string                   `pulumi:"id"`
	Ids         []string                 `pulumi:"ids"`
	KeyWord     *string                  `pulumi:"keyWord"`
	NameRegex   *string                  `pulumi:"nameRegex"`
	Names       []string                 `pulumi:"names"`
	OutputFile  *string                  `pulumi:"outputFile"`
	Receiverses []GetReceiversReceiverse `pulumi:"receiverses"`
	Status      *int                     `pulumi:"status"`
}

A collection of values returned by getReceivers.

func LookupReceivers

func LookupReceivers(ctx *pulumi.Context, args *LookupReceiversArgs, opts ...pulumi.InvokeOption) (*LookupReceiversResult, error)

This data source provides the Direct Mail Receiverses of the current Alibaba Cloud user.

> **NOTE:** Available in v1.125.0+.

## Example Usage

Basic Usage

```go 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 {
		opt0 := "the_resource_name"
		example, err := directmail.LookupReceivers(ctx, &directmail.LookupReceiversArgs{
			Ids: []string{
				"ca73b1e4fb0df7c935a5097a****",
			},
			NameRegex: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstDirectMailReceiversId", example.Receiverses[0].Id)
		return nil
	})
}

```

type Receivers

type Receivers struct {
	pulumi.CustomResourceState

	// The description of receivers and 1-50 characters in length.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The alias of receivers. Must email address and less than 30 characters in length.
	ReceiversAlias pulumi.StringOutput `pulumi:"receiversAlias"`
	// The name of the resource. The length that cannot be repeated is 1-30 characters.
	ReceiversName pulumi.StringOutput `pulumi:"receiversName"`
	// The status of the resource. `0` means uploading, `1` means upload completed.
	Status pulumi.IntOutput `pulumi:"status"`
}

Provides a Direct Mail Receivers resource.

For information about Direct Mail Receivers and how to use it, see [What is Direct Mail Receivers](https://www.alibabacloud.com/help/en/doc-detail/29414.htm).

> **NOTE:** Available in v1.125.0+.

## Example Usage

Basic Usage

```go 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

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

```sh

$ pulumi import alicloud:directmail/receivers:Receivers example <id>

```

func GetReceivers

func GetReceivers(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ReceiversState, opts ...pulumi.ResourceOption) (*Receivers, error)

GetReceivers gets an existing Receivers resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewReceivers

func NewReceivers(ctx *pulumi.Context,
	name string, args *ReceiversArgs, opts ...pulumi.ResourceOption) (*Receivers, error)

NewReceivers registers a new resource with the given unique name, arguments, and options.

func (*Receivers) ElementType

func (*Receivers) ElementType() reflect.Type

func (*Receivers) ToReceiversOutput

func (i *Receivers) ToReceiversOutput() ReceiversOutput

func (*Receivers) ToReceiversOutputWithContext

func (i *Receivers) ToReceiversOutputWithContext(ctx context.Context) ReceiversOutput

func (*Receivers) ToReceiversPtrOutput

func (i *Receivers) ToReceiversPtrOutput() ReceiversPtrOutput

func (*Receivers) ToReceiversPtrOutputWithContext

func (i *Receivers) ToReceiversPtrOutputWithContext(ctx context.Context) ReceiversPtrOutput

type ReceiversArgs

type ReceiversArgs struct {
	// The description of receivers and 1-50 characters in length.
	Description pulumi.StringPtrInput
	// The alias of receivers. Must email address and less than 30 characters in length.
	ReceiversAlias pulumi.StringInput
	// The name of the resource. The length that cannot be repeated is 1-30 characters.
	ReceiversName pulumi.StringInput
}

The set of arguments for constructing a Receivers resource.

func (ReceiversArgs) ElementType

func (ReceiversArgs) ElementType() reflect.Type

type ReceiversArray

type ReceiversArray []ReceiversInput

func (ReceiversArray) ElementType

func (ReceiversArray) ElementType() reflect.Type

func (ReceiversArray) ToReceiversArrayOutput

func (i ReceiversArray) ToReceiversArrayOutput() ReceiversArrayOutput

func (ReceiversArray) ToReceiversArrayOutputWithContext

func (i ReceiversArray) ToReceiversArrayOutputWithContext(ctx context.Context) ReceiversArrayOutput

type ReceiversArrayInput

type ReceiversArrayInput interface {
	pulumi.Input

	ToReceiversArrayOutput() ReceiversArrayOutput
	ToReceiversArrayOutputWithContext(context.Context) ReceiversArrayOutput
}

ReceiversArrayInput is an input type that accepts ReceiversArray and ReceiversArrayOutput values. You can construct a concrete instance of `ReceiversArrayInput` via:

ReceiversArray{ ReceiversArgs{...} }

type ReceiversArrayOutput

type ReceiversArrayOutput struct{ *pulumi.OutputState }

func (ReceiversArrayOutput) ElementType

func (ReceiversArrayOutput) ElementType() reflect.Type

func (ReceiversArrayOutput) Index

func (ReceiversArrayOutput) ToReceiversArrayOutput

func (o ReceiversArrayOutput) ToReceiversArrayOutput() ReceiversArrayOutput

func (ReceiversArrayOutput) ToReceiversArrayOutputWithContext

func (o ReceiversArrayOutput) ToReceiversArrayOutputWithContext(ctx context.Context) ReceiversArrayOutput

type ReceiversInput

type ReceiversInput interface {
	pulumi.Input

	ToReceiversOutput() ReceiversOutput
	ToReceiversOutputWithContext(ctx context.Context) ReceiversOutput
}

type ReceiversMap

type ReceiversMap map[string]ReceiversInput

func (ReceiversMap) ElementType

func (ReceiversMap) ElementType() reflect.Type

func (ReceiversMap) ToReceiversMapOutput

func (i ReceiversMap) ToReceiversMapOutput() ReceiversMapOutput

func (ReceiversMap) ToReceiversMapOutputWithContext

func (i ReceiversMap) ToReceiversMapOutputWithContext(ctx context.Context) ReceiversMapOutput

type ReceiversMapInput

type ReceiversMapInput interface {
	pulumi.Input

	ToReceiversMapOutput() ReceiversMapOutput
	ToReceiversMapOutputWithContext(context.Context) ReceiversMapOutput
}

ReceiversMapInput is an input type that accepts ReceiversMap and ReceiversMapOutput values. You can construct a concrete instance of `ReceiversMapInput` via:

ReceiversMap{ "key": ReceiversArgs{...} }

type ReceiversMapOutput

type ReceiversMapOutput struct{ *pulumi.OutputState }

func (ReceiversMapOutput) ElementType

func (ReceiversMapOutput) ElementType() reflect.Type

func (ReceiversMapOutput) MapIndex

func (ReceiversMapOutput) ToReceiversMapOutput

func (o ReceiversMapOutput) ToReceiversMapOutput() ReceiversMapOutput

func (ReceiversMapOutput) ToReceiversMapOutputWithContext

func (o ReceiversMapOutput) ToReceiversMapOutputWithContext(ctx context.Context) ReceiversMapOutput

type ReceiversOutput

type ReceiversOutput struct {
	*pulumi.OutputState
}

func (ReceiversOutput) ElementType

func (ReceiversOutput) ElementType() reflect.Type

func (ReceiversOutput) ToReceiversOutput

func (o ReceiversOutput) ToReceiversOutput() ReceiversOutput

func (ReceiversOutput) ToReceiversOutputWithContext

func (o ReceiversOutput) ToReceiversOutputWithContext(ctx context.Context) ReceiversOutput

func (ReceiversOutput) ToReceiversPtrOutput

func (o ReceiversOutput) ToReceiversPtrOutput() ReceiversPtrOutput

func (ReceiversOutput) ToReceiversPtrOutputWithContext

func (o ReceiversOutput) ToReceiversPtrOutputWithContext(ctx context.Context) ReceiversPtrOutput

type ReceiversPtrInput

type ReceiversPtrInput interface {
	pulumi.Input

	ToReceiversPtrOutput() ReceiversPtrOutput
	ToReceiversPtrOutputWithContext(ctx context.Context) ReceiversPtrOutput
}

type ReceiversPtrOutput

type ReceiversPtrOutput struct {
	*pulumi.OutputState
}

func (ReceiversPtrOutput) ElementType

func (ReceiversPtrOutput) ElementType() reflect.Type

func (ReceiversPtrOutput) ToReceiversPtrOutput

func (o ReceiversPtrOutput) ToReceiversPtrOutput() ReceiversPtrOutput

func (ReceiversPtrOutput) ToReceiversPtrOutputWithContext

func (o ReceiversPtrOutput) ToReceiversPtrOutputWithContext(ctx context.Context) ReceiversPtrOutput

type ReceiversState

type ReceiversState struct {
	// The description of receivers and 1-50 characters in length.
	Description pulumi.StringPtrInput
	// The alias of receivers. Must email address and less than 30 characters in length.
	ReceiversAlias pulumi.StringPtrInput
	// The name of the resource. The length that cannot be repeated is 1-30 characters.
	ReceiversName pulumi.StringPtrInput
	// The status of the resource. `0` means uploading, `1` means upload completed.
	Status pulumi.IntPtrInput
}

func (ReceiversState) ElementType

func (ReceiversState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL