1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. MscSubContract
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.MscSubContract

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    Provides a Msc Sub Contact resource.

    NOTE: Available since v1.132.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tfexample";
    const _default = new alicloud.MscSubContract("default", {
        contactName: name,
        position: "CEO",
        email: "123@163.com",
        mobile: "15388888888",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tfexample"
    default = alicloud.MscSubContract("default",
        contact_name=name,
        position="CEO",
        email="123@163.com",
        mobile="15388888888")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tfexample"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := alicloud.NewMscSubContract(ctx, "default", &alicloud.MscSubContractArgs{
    			ContactName: pulumi.String(name),
    			Position:    pulumi.String("CEO"),
    			Email:       pulumi.String("123@163.com"),
    			Mobile:      pulumi.String("15388888888"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tfexample";
        var @default = new AliCloud.MscSubContract("default", new()
        {
            ContactName = name,
            Position = "CEO",
            Email = "123@163.com",
            Mobile = "15388888888",
        });
    
    });
    
    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 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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("tfexample");
            var default_ = new MscSubContract("default", MscSubContractArgs.builder()
                .contactName(name)
                .position("CEO")
                .email("123@163.com")
                .mobile("15388888888")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tfexample
    resources:
      default:
        type: alicloud:MscSubContract
        properties:
          contactName: ${name}
          position: CEO
          email: 123@163.com
          mobile: '15388888888'
    

    Create MscSubContract Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MscSubContract(name: string, args: MscSubContractArgs, opts?: CustomResourceOptions);
    @overload
    def MscSubContract(resource_name: str,
                       args: MscSubContractArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def MscSubContract(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       contact_name: Optional[str] = None,
                       email: Optional[str] = None,
                       mobile: Optional[str] = None,
                       position: Optional[str] = None)
    func NewMscSubContract(ctx *Context, name string, args MscSubContractArgs, opts ...ResourceOption) (*MscSubContract, error)
    public MscSubContract(string name, MscSubContractArgs args, CustomResourceOptions? opts = null)
    public MscSubContract(String name, MscSubContractArgs args)
    public MscSubContract(String name, MscSubContractArgs args, CustomResourceOptions options)
    
    type: alicloud:MscSubContract
    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 MscSubContractArgs
    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 MscSubContractArgs
    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 MscSubContractArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MscSubContractArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MscSubContractArgs
    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 mscSubContractResource = new AliCloud.MscSubContract("mscSubContractResource", new()
    {
        ContactName = "string",
        Email = "string",
        Mobile = "string",
        Position = "string",
    });
    
    example, err := alicloud.NewMscSubContract(ctx, "mscSubContractResource", &alicloud.MscSubContractArgs{
    	ContactName: pulumi.String("string"),
    	Email:       pulumi.String("string"),
    	Mobile:      pulumi.String("string"),
    	Position:    pulumi.String("string"),
    })
    
    var mscSubContractResource = new MscSubContract("mscSubContractResource", MscSubContractArgs.builder()
        .contactName("string")
        .email("string")
        .mobile("string")
        .position("string")
        .build());
    
    msc_sub_contract_resource = alicloud.MscSubContract("mscSubContractResource",
        contact_name="string",
        email="string",
        mobile="string",
        position="string")
    
    const mscSubContractResource = new alicloud.MscSubContract("mscSubContractResource", {
        contactName: "string",
        email: "string",
        mobile: "string",
        position: "string",
    });
    
    type: alicloud:MscSubContract
    properties:
        contactName: string
        email: string
        mobile: string
        position: string
    

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

    ContactName string
    The User's Contact Name. Note: The name must be 2 to 12 characters in length.
    Email string
    The User's Contact Email Address.
    Mobile string
    The User's Telephone.
    Position string

    The User's Position. Valid values: CEO, Technical Director, Maintenance Director, Project Director,Finance Director and Other.

    NOTE: When the user creates a contact, the user should use alicloud.getMscSubContactVerificationMessage to receive the verification message and confirm it.

    ContactName string
    The User's Contact Name. Note: The name must be 2 to 12 characters in length.
    Email string
    The User's Contact Email Address.
    Mobile string
    The User's Telephone.
    Position string

    The User's Position. Valid values: CEO, Technical Director, Maintenance Director, Project Director,Finance Director and Other.

    NOTE: When the user creates a contact, the user should use alicloud.getMscSubContactVerificationMessage to receive the verification message and confirm it.

    contactName String
    The User's Contact Name. Note: The name must be 2 to 12 characters in length.
    email String
    The User's Contact Email Address.
    mobile String
    The User's Telephone.
    position String

    The User's Position. Valid values: CEO, Technical Director, Maintenance Director, Project Director,Finance Director and Other.

    NOTE: When the user creates a contact, the user should use alicloud.getMscSubContactVerificationMessage to receive the verification message and confirm it.

    contactName string
    The User's Contact Name. Note: The name must be 2 to 12 characters in length.
    email string
    The User's Contact Email Address.
    mobile string
    The User's Telephone.
    position string

    The User's Position. Valid values: CEO, Technical Director, Maintenance Director, Project Director,Finance Director and Other.

    NOTE: When the user creates a contact, the user should use alicloud.getMscSubContactVerificationMessage to receive the verification message and confirm it.

    contact_name str
    The User's Contact Name. Note: The name must be 2 to 12 characters in length.
    email str
    The User's Contact Email Address.
    mobile str
    The User's Telephone.
    position str

    The User's Position. Valid values: CEO, Technical Director, Maintenance Director, Project Director,Finance Director and Other.

    NOTE: When the user creates a contact, the user should use alicloud.getMscSubContactVerificationMessage to receive the verification message and confirm it.

    contactName String
    The User's Contact Name. Note: The name must be 2 to 12 characters in length.
    email String
    The User's Contact Email Address.
    mobile String
    The User's Telephone.
    position String

    The User's Position. Valid values: CEO, Technical Director, Maintenance Director, Project Director,Finance Director and Other.

    NOTE: When the user creates a contact, the user should use alicloud.getMscSubContactVerificationMessage to receive the verification message and confirm it.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MscSubContract Resource

    Get an existing MscSubContract 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?: MscSubContractState, opts?: CustomResourceOptions): MscSubContract
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            contact_name: Optional[str] = None,
            email: Optional[str] = None,
            mobile: Optional[str] = None,
            position: Optional[str] = None) -> MscSubContract
    func GetMscSubContract(ctx *Context, name string, id IDInput, state *MscSubContractState, opts ...ResourceOption) (*MscSubContract, error)
    public static MscSubContract Get(string name, Input<string> id, MscSubContractState? state, CustomResourceOptions? opts = null)
    public static MscSubContract get(String name, Output<String> id, MscSubContractState 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.
    The following state arguments are supported:
    ContactName string
    The User's Contact Name. Note: The name must be 2 to 12 characters in length.
    Email string
    The User's Contact Email Address.
    Mobile string
    The User's Telephone.
    Position string

    The User's Position. Valid values: CEO, Technical Director, Maintenance Director, Project Director,Finance Director and Other.

    NOTE: When the user creates a contact, the user should use alicloud.getMscSubContactVerificationMessage to receive the verification message and confirm it.

    ContactName string
    The User's Contact Name. Note: The name must be 2 to 12 characters in length.
    Email string
    The User's Contact Email Address.
    Mobile string
    The User's Telephone.
    Position string

    The User's Position. Valid values: CEO, Technical Director, Maintenance Director, Project Director,Finance Director and Other.

    NOTE: When the user creates a contact, the user should use alicloud.getMscSubContactVerificationMessage to receive the verification message and confirm it.

    contactName String
    The User's Contact Name. Note: The name must be 2 to 12 characters in length.
    email String
    The User's Contact Email Address.
    mobile String
    The User's Telephone.
    position String

    The User's Position. Valid values: CEO, Technical Director, Maintenance Director, Project Director,Finance Director and Other.

    NOTE: When the user creates a contact, the user should use alicloud.getMscSubContactVerificationMessage to receive the verification message and confirm it.

    contactName string
    The User's Contact Name. Note: The name must be 2 to 12 characters in length.
    email string
    The User's Contact Email Address.
    mobile string
    The User's Telephone.
    position string

    The User's Position. Valid values: CEO, Technical Director, Maintenance Director, Project Director,Finance Director and Other.

    NOTE: When the user creates a contact, the user should use alicloud.getMscSubContactVerificationMessage to receive the verification message and confirm it.

    contact_name str
    The User's Contact Name. Note: The name must be 2 to 12 characters in length.
    email str
    The User's Contact Email Address.
    mobile str
    The User's Telephone.
    position str

    The User's Position. Valid values: CEO, Technical Director, Maintenance Director, Project Director,Finance Director and Other.

    NOTE: When the user creates a contact, the user should use alicloud.getMscSubContactVerificationMessage to receive the verification message and confirm it.

    contactName String
    The User's Contact Name. Note: The name must be 2 to 12 characters in length.
    email String
    The User's Contact Email Address.
    mobile String
    The User's Telephone.
    position String

    The User's Position. Valid values: CEO, Technical Director, Maintenance Director, Project Director,Finance Director and Other.

    NOTE: When the user creates a contact, the user should use alicloud.getMscSubContactVerificationMessage to receive the verification message and confirm it.

    Import

    Msc Sub Contact can be imported using the id, e.g.

    $ pulumi import alicloud:index/mscSubContract:MscSubContract 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.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi