Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.21.0 published on Tuesday, Jun 14, 2022 by Pulumi

getMscSubContactVerificationMessage

NOTE: Available in v1.156.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var defaultMscSubContract = new AliCloud.MscSubContract("defaultMscSubContract", new AliCloud.MscSubContractArgs
        {
            ContactName = "example_value",
            Position = "CEO",
            Email = "123@163.com",
            Mobile = "153xxxxx906",
        });
        var defaultMscSubContactVerificationMessage = defaultMscSubContract.Id.Apply(id => AliCloud.GetMscSubContactVerificationMessage.Invoke(new AliCloud.GetMscSubContactVerificationMessageInvokeArgs
        {
            ContactId = id,
            Type = 1,
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultMscSubContract, err := alicloud.NewMscSubContract(ctx, "defaultMscSubContract", &alicloud.MscSubContractArgs{
			ContactName: pulumi.String("example_value"),
			Position:    pulumi.String("CEO"),
			Email:       pulumi.String("123@163.com"),
			Mobile:      pulumi.String("153xxxxx906"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default_msc_sub_contract = alicloud.MscSubContract("defaultMscSubContract",
    contact_name="example_value",
    position="CEO",
    email="123@163.com",
    mobile="153xxxxx906")
default_msc_sub_contact_verification_message = default_msc_sub_contract.id.apply(lambda id: alicloud.get_msc_sub_contact_verification_message_output(contact_id=id,
    type=1))
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultMscSubContract = new alicloud.MscSubContract("defaultMscSubContract", {
    contactName: "example_value",
    position: "CEO",
    email: "123@163.com",
    mobile: "153xxxxx906",
});
const defaultMscSubContactVerificationMessage = defaultMscSubContract.id.apply(id => alicloud.getMscSubContactVerificationMessageOutput({
    contactId: id,
    type: 1,
}));

Coming soon!

Using getMscSubContactVerificationMessage

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getMscSubContactVerificationMessage(args: GetMscSubContactVerificationMessageArgs, opts?: InvokeOptions): Promise<GetMscSubContactVerificationMessageResult>
function getMscSubContactVerificationMessageOutput(args: GetMscSubContactVerificationMessageOutputArgs, opts?: InvokeOptions): Output<GetMscSubContactVerificationMessageResult>
def get_msc_sub_contact_verification_message(contact_id: Optional[str] = None,
                                             type: Optional[int] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetMscSubContactVerificationMessageResult
def get_msc_sub_contact_verification_message_output(contact_id: Optional[pulumi.Input[str]] = None,
                                             type: Optional[pulumi.Input[int]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetMscSubContactVerificationMessageResult]
func GetMscSubContactVerificationMessage(ctx *Context, args *GetMscSubContactVerificationMessageArgs, opts ...InvokeOption) (*GetMscSubContactVerificationMessageResult, error)
func GetMscSubContactVerificationMessageOutput(ctx *Context, args *GetMscSubContactVerificationMessageOutputArgs, opts ...InvokeOption) GetMscSubContactVerificationMessageResultOutput

> Note: This function is named GetMscSubContactVerificationMessage in the Go SDK.

public static class GetMscSubContactVerificationMessage 
{
    public static Task<GetMscSubContactVerificationMessageResult> InvokeAsync(GetMscSubContactVerificationMessageArgs args, InvokeOptions? opts = null)
    public static Output<GetMscSubContactVerificationMessageResult> Invoke(GetMscSubContactVerificationMessageInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMscSubContactVerificationMessageResult> getMscSubContactVerificationMessage(GetMscSubContactVerificationMessageArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:index/getMscSubContactVerificationMessage:getMscSubContactVerificationMessage
  Arguments:
    # Arguments dictionary

The following arguments are supported:

ContactId string

The ID of the Contact.

Type int

How a user receives verification messages. Valid values : 1, 2.

  • 1: Send a verification message through the user's mobile.
  • 2: Send a verification message through the user's mail.
ContactId string

The ID of the Contact.

Type int

How a user receives verification messages. Valid values : 1, 2.

  • 1: Send a verification message through the user's mobile.
  • 2: Send a verification message through the user's mail.
contactId String

The ID of the Contact.

type Integer

How a user receives verification messages. Valid values : 1, 2.

  • 1: Send a verification message through the user's mobile.
  • 2: Send a verification message through the user's mail.
contactId string

The ID of the Contact.

type number

How a user receives verification messages. Valid values : 1, 2.

  • 1: Send a verification message through the user's mobile.
  • 2: Send a verification message through the user's mail.
contact_id str

The ID of the Contact.

type int

How a user receives verification messages. Valid values : 1, 2.

  • 1: Send a verification message through the user's mobile.
  • 2: Send a verification message through the user's mail.
contactId String

The ID of the Contact.

type Number

How a user receives verification messages. Valid values : 1, 2.

  • 1: Send a verification message through the user's mobile.
  • 2: Send a verification message through the user's mail.

getMscSubContactVerificationMessage Result

The following output properties are available:

ContactId string
Id string

The provider-assigned unique ID for this managed resource.

Status string

The sending status of the message. Valid values : Success, Failed.

Type int
ContactId string
Id string

The provider-assigned unique ID for this managed resource.

Status string

The sending status of the message. Valid values : Success, Failed.

Type int
contactId String
id String

The provider-assigned unique ID for this managed resource.

status String

The sending status of the message. Valid values : Success, Failed.

type Integer
contactId string
id string

The provider-assigned unique ID for this managed resource.

status string

The sending status of the message. Valid values : Success, Failed.

type number
contact_id str
id str

The provider-assigned unique ID for this managed resource.

status str

The sending status of the message. Valid values : Success, Failed.

type int
contactId String
id String

The provider-assigned unique ID for this managed resource.

status String

The sending status of the message. Valid values : Success, Failed.

type Number

Package Details

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

This Pulumi package is based on the alicloud Terraform Provider.