1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. getMscSubContactVerificationMessage
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.getMscSubContactVerificationMessage

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    NOTE: Available in v1.156.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const defaultMscSubContract = new alicloud.MscSubContract("default", {
        contactName: "example_value",
        position: "CEO",
        email: "123@163.com",
        mobile: "153xxxxx906",
    });
    const default = defaultMscSubContract.id.apply(id => alicloud.getMscSubContactVerificationMessageOutput({
        contactId: id,
        type: 1,
    }));
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default_msc_sub_contract = alicloud.MscSubContract("default",
        contact_name="example_value",
        position="CEO",
        email="123@163.com",
        mobile="153xxxxx906")
    default = default_msc_sub_contract.id.apply(lambda id: alicloud.get_msc_sub_contact_verification_message_output(contact_id=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, "default", &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
    		}
    		_ = defaultMscSubContract.ID().ApplyT(func(id string) (alicloud.GetMscSubContactVerificationMessageResult, error) {
    			return alicloud.GetMscSubContactVerificationMessageResult(interface{}(alicloud.GetMscSubContactVerificationMessageOutput(ctx, alicloud.GetMscSubContactVerificationMessageOutputArgs{
    				ContactId: id,
    				Type:      1,
    			}, nil))), nil
    		}).(alicloud.GetMscSubContactVerificationMessageResultOutput)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var defaultMscSubContract = new AliCloud.MscSubContract("default", new()
        {
            ContactName = "example_value",
            Position = "CEO",
            Email = "123@163.com",
            Mobile = "153xxxxx906",
        });
    
        var @default = AliCloud.GetMscSubContactVerificationMessage.Invoke(new()
        {
            ContactId = defaultMscSubContract.Id,
            Type = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.MscSubContract;
    import com.pulumi.alicloud.MscSubContractArgs;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetMscSubContactVerificationMessageArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var defaultMscSubContract = new MscSubContract("defaultMscSubContract", MscSubContractArgs.builder()
                .contactName("example_value")
                .position("CEO")
                .email("123@163.com")
                .mobile("153xxxxx906")
                .build());
    
            final var default = AlicloudFunctions.getMscSubContactVerificationMessage(GetMscSubContactVerificationMessageArgs.builder()
                .contactId(defaultMscSubContract.id())
                .type(1)
                .build());
    
        }
    }
    
    resources:
      defaultMscSubContract:
        type: alicloud:MscSubContract
        name: default
        properties:
          contactName: example_value
          position: CEO
          email: 123@163.com
          mobile: 153xxxxx906
    variables:
      default:
        fn::invoke:
          Function: alicloud:getMscSubContactVerificationMessage
          Arguments:
            contactId: ${defaultMscSubContract.id}
            type: 1
    

    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.
    ContactId string
    The ID of the Contact.
    Type int
    How a user receives verification messages. Valid values : 1, 2.
    contactId String
    The ID of the Contact.
    type Integer
    How a user receives verification messages. Valid values : 1, 2.
    contactId string
    The ID of the Contact.
    type number
    How a user receives verification messages. Valid values : 1, 2.
    contact_id str
    The ID of the Contact.
    type int
    How a user receives verification messages. Valid values : 1, 2.
    contactId String
    The ID of the Contact.
    type Number
    How a user receives verification messages. Valid values : 1, 2.

    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
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi