1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. resourcemanager
  5. Handshake
Alibaba Cloud v3.86.0 published on Saturday, Sep 20, 2025 by Pulumi

alicloud.resourcemanager.Handshake

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.86.0 published on Saturday, Sep 20, 2025 by Pulumi

    Provides a Resource Manager Handshake resource.

    For information about Resource Manager Handshake and how to use it, see What is Handshake.

    NOTE: Available since v1.82.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    // Add a Resource Manager handshake.
    const example = new alicloud.resourcemanager.Handshake("example", {
        targetEntity: "1182775234******",
        targetType: "Account",
        note: "test resource manager handshake",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    # Add a Resource Manager handshake.
    example = alicloud.resourcemanager.Handshake("example",
        target_entity="1182775234******",
        target_type="Account",
        note="test resource manager handshake")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Add a Resource Manager handshake.
    		_, err := resourcemanager.NewHandshake(ctx, "example", &resourcemanager.HandshakeArgs{
    			TargetEntity: pulumi.String("1182775234******"),
    			TargetType:   pulumi.String("Account"),
    			Note:         pulumi.String("test resource manager handshake"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        // Add a Resource Manager handshake.
        var example = new AliCloud.ResourceManager.Handshake("example", new()
        {
            TargetEntity = "1182775234******",
            TargetType = "Account",
            Note = "test resource manager handshake",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.resourcemanager.Handshake;
    import com.pulumi.alicloud.resourcemanager.HandshakeArgs;
    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) {
            // Add a Resource Manager handshake.
            var example = new Handshake("example", HandshakeArgs.builder()
                .targetEntity("1182775234******")
                .targetType("Account")
                .note("test resource manager handshake")
                .build());
    
        }
    }
    
    resources:
      # Add a Resource Manager handshake.
      example:
        type: alicloud:resourcemanager:Handshake
        properties:
          targetEntity: 1182775234******
          targetType: Account
          note: test resource manager handshake
    

    Create Handshake Resource

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

    Constructor syntax

    new Handshake(name: string, args: HandshakeArgs, opts?: CustomResourceOptions);
    @overload
    def Handshake(resource_name: str,
                  args: HandshakeArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Handshake(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  target_entity: Optional[str] = None,
                  target_type: Optional[str] = None,
                  note: Optional[str] = None)
    func NewHandshake(ctx *Context, name string, args HandshakeArgs, opts ...ResourceOption) (*Handshake, error)
    public Handshake(string name, HandshakeArgs args, CustomResourceOptions? opts = null)
    public Handshake(String name, HandshakeArgs args)
    public Handshake(String name, HandshakeArgs args, CustomResourceOptions options)
    
    type: alicloud:resourcemanager:Handshake
    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 HandshakeArgs
    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 HandshakeArgs
    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 HandshakeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HandshakeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HandshakeArgs
    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 handshakeResource = new AliCloud.ResourceManager.Handshake("handshakeResource", new()
    {
        TargetEntity = "string",
        TargetType = "string",
        Note = "string",
    });
    
    example, err := resourcemanager.NewHandshake(ctx, "handshakeResource", &resourcemanager.HandshakeArgs{
    	TargetEntity: pulumi.String("string"),
    	TargetType:   pulumi.String("string"),
    	Note:         pulumi.String("string"),
    })
    
    var handshakeResource = new Handshake("handshakeResource", HandshakeArgs.builder()
        .targetEntity("string")
        .targetType("string")
        .note("string")
        .build());
    
    handshake_resource = alicloud.resourcemanager.Handshake("handshakeResource",
        target_entity="string",
        target_type="string",
        note="string")
    
    const handshakeResource = new alicloud.resourcemanager.Handshake("handshakeResource", {
        targetEntity: "string",
        targetType: "string",
        note: "string",
    });
    
    type: alicloud:resourcemanager:Handshake
    properties:
        note: string
        targetEntity: string
        targetType: string
    

    Handshake Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Handshake resource accepts the following input properties:

    TargetEntity string
    The ID or logon email address of the account that you want to invite.
    TargetType string
    The type of the invited account. Valid values:

    • Account: indicates the ID of the account.
    • Email: indicates the logon email address of the account.
    Note string
    The description of the invitation. The description can be up to 1,024 characters in length.
    TargetEntity string
    The ID or logon email address of the account that you want to invite.
    TargetType string
    The type of the invited account. Valid values:

    • Account: indicates the ID of the account.
    • Email: indicates the logon email address of the account.
    Note string
    The description of the invitation. The description can be up to 1,024 characters in length.
    targetEntity String
    The ID or logon email address of the account that you want to invite.
    targetType String
    The type of the invited account. Valid values:

    • Account: indicates the ID of the account.
    • Email: indicates the logon email address of the account.
    note String
    The description of the invitation. The description can be up to 1,024 characters in length.
    targetEntity string
    The ID or logon email address of the account that you want to invite.
    targetType string
    The type of the invited account. Valid values:

    • Account: indicates the ID of the account.
    • Email: indicates the logon email address of the account.
    note string
    The description of the invitation. The description can be up to 1,024 characters in length.
    target_entity str
    The ID or logon email address of the account that you want to invite.
    target_type str
    The type of the invited account. Valid values:

    • Account: indicates the ID of the account.
    • Email: indicates the logon email address of the account.
    note str
    The description of the invitation. The description can be up to 1,024 characters in length.
    targetEntity String
    The ID or logon email address of the account that you want to invite.
    targetType String
    The type of the invited account. Valid values:

    • Account: indicates the ID of the account.
    • Email: indicates the logon email address of the account.
    note String
    The description of the invitation. The description can be up to 1,024 characters in length.

    Outputs

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

    CreateTime string
    The time when the invitation was created. The time is displayed in UTC.
    ExpireTime string
    The time when the invitation expires. The time is displayed in UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    MasterAccountId string
    The ID of the management account of the resource directory.
    MasterAccountName string
    The name of the management account of the resource directory.
    ModifyTime string
    The time when the invitation was modified. The time is displayed in UTC.
    ResourceDirectoryId string
    The ID of the resource directory.
    Status string
    The status of the invitation.
    CreateTime string
    The time when the invitation was created. The time is displayed in UTC.
    ExpireTime string
    The time when the invitation expires. The time is displayed in UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    MasterAccountId string
    The ID of the management account of the resource directory.
    MasterAccountName string
    The name of the management account of the resource directory.
    ModifyTime string
    The time when the invitation was modified. The time is displayed in UTC.
    ResourceDirectoryId string
    The ID of the resource directory.
    Status string
    The status of the invitation.
    createTime String
    The time when the invitation was created. The time is displayed in UTC.
    expireTime String
    The time when the invitation expires. The time is displayed in UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    masterAccountId String
    The ID of the management account of the resource directory.
    masterAccountName String
    The name of the management account of the resource directory.
    modifyTime String
    The time when the invitation was modified. The time is displayed in UTC.
    resourceDirectoryId String
    The ID of the resource directory.
    status String
    The status of the invitation.
    createTime string
    The time when the invitation was created. The time is displayed in UTC.
    expireTime string
    The time when the invitation expires. The time is displayed in UTC.
    id string
    The provider-assigned unique ID for this managed resource.
    masterAccountId string
    The ID of the management account of the resource directory.
    masterAccountName string
    The name of the management account of the resource directory.
    modifyTime string
    The time when the invitation was modified. The time is displayed in UTC.
    resourceDirectoryId string
    The ID of the resource directory.
    status string
    The status of the invitation.
    create_time str
    The time when the invitation was created. The time is displayed in UTC.
    expire_time str
    The time when the invitation expires. The time is displayed in UTC.
    id str
    The provider-assigned unique ID for this managed resource.
    master_account_id str
    The ID of the management account of the resource directory.
    master_account_name str
    The name of the management account of the resource directory.
    modify_time str
    The time when the invitation was modified. The time is displayed in UTC.
    resource_directory_id str
    The ID of the resource directory.
    status str
    The status of the invitation.
    createTime String
    The time when the invitation was created. The time is displayed in UTC.
    expireTime String
    The time when the invitation expires. The time is displayed in UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    masterAccountId String
    The ID of the management account of the resource directory.
    masterAccountName String
    The name of the management account of the resource directory.
    modifyTime String
    The time when the invitation was modified. The time is displayed in UTC.
    resourceDirectoryId String
    The ID of the resource directory.
    status String
    The status of the invitation.

    Look up Existing Handshake Resource

    Get an existing Handshake 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?: HandshakeState, opts?: CustomResourceOptions): Handshake
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            expire_time: Optional[str] = None,
            master_account_id: Optional[str] = None,
            master_account_name: Optional[str] = None,
            modify_time: Optional[str] = None,
            note: Optional[str] = None,
            resource_directory_id: Optional[str] = None,
            status: Optional[str] = None,
            target_entity: Optional[str] = None,
            target_type: Optional[str] = None) -> Handshake
    func GetHandshake(ctx *Context, name string, id IDInput, state *HandshakeState, opts ...ResourceOption) (*Handshake, error)
    public static Handshake Get(string name, Input<string> id, HandshakeState? state, CustomResourceOptions? opts = null)
    public static Handshake get(String name, Output<String> id, HandshakeState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:resourcemanager:Handshake    get:      id: ${id}
    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:
    CreateTime string
    The time when the invitation was created. The time is displayed in UTC.
    ExpireTime string
    The time when the invitation expires. The time is displayed in UTC.
    MasterAccountId string
    The ID of the management account of the resource directory.
    MasterAccountName string
    The name of the management account of the resource directory.
    ModifyTime string
    The time when the invitation was modified. The time is displayed in UTC.
    Note string
    The description of the invitation. The description can be up to 1,024 characters in length.
    ResourceDirectoryId string
    The ID of the resource directory.
    Status string
    The status of the invitation.
    TargetEntity string
    The ID or logon email address of the account that you want to invite.
    TargetType string
    The type of the invited account. Valid values:

    • Account: indicates the ID of the account.
    • Email: indicates the logon email address of the account.
    CreateTime string
    The time when the invitation was created. The time is displayed in UTC.
    ExpireTime string
    The time when the invitation expires. The time is displayed in UTC.
    MasterAccountId string
    The ID of the management account of the resource directory.
    MasterAccountName string
    The name of the management account of the resource directory.
    ModifyTime string
    The time when the invitation was modified. The time is displayed in UTC.
    Note string
    The description of the invitation. The description can be up to 1,024 characters in length.
    ResourceDirectoryId string
    The ID of the resource directory.
    Status string
    The status of the invitation.
    TargetEntity string
    The ID or logon email address of the account that you want to invite.
    TargetType string
    The type of the invited account. Valid values:

    • Account: indicates the ID of the account.
    • Email: indicates the logon email address of the account.
    createTime String
    The time when the invitation was created. The time is displayed in UTC.
    expireTime String
    The time when the invitation expires. The time is displayed in UTC.
    masterAccountId String
    The ID of the management account of the resource directory.
    masterAccountName String
    The name of the management account of the resource directory.
    modifyTime String
    The time when the invitation was modified. The time is displayed in UTC.
    note String
    The description of the invitation. The description can be up to 1,024 characters in length.
    resourceDirectoryId String
    The ID of the resource directory.
    status String
    The status of the invitation.
    targetEntity String
    The ID or logon email address of the account that you want to invite.
    targetType String
    The type of the invited account. Valid values:

    • Account: indicates the ID of the account.
    • Email: indicates the logon email address of the account.
    createTime string
    The time when the invitation was created. The time is displayed in UTC.
    expireTime string
    The time when the invitation expires. The time is displayed in UTC.
    masterAccountId string
    The ID of the management account of the resource directory.
    masterAccountName string
    The name of the management account of the resource directory.
    modifyTime string
    The time when the invitation was modified. The time is displayed in UTC.
    note string
    The description of the invitation. The description can be up to 1,024 characters in length.
    resourceDirectoryId string
    The ID of the resource directory.
    status string
    The status of the invitation.
    targetEntity string
    The ID or logon email address of the account that you want to invite.
    targetType string
    The type of the invited account. Valid values:

    • Account: indicates the ID of the account.
    • Email: indicates the logon email address of the account.
    create_time str
    The time when the invitation was created. The time is displayed in UTC.
    expire_time str
    The time when the invitation expires. The time is displayed in UTC.
    master_account_id str
    The ID of the management account of the resource directory.
    master_account_name str
    The name of the management account of the resource directory.
    modify_time str
    The time when the invitation was modified. The time is displayed in UTC.
    note str
    The description of the invitation. The description can be up to 1,024 characters in length.
    resource_directory_id str
    The ID of the resource directory.
    status str
    The status of the invitation.
    target_entity str
    The ID or logon email address of the account that you want to invite.
    target_type str
    The type of the invited account. Valid values:

    • Account: indicates the ID of the account.
    • Email: indicates the logon email address of the account.
    createTime String
    The time when the invitation was created. The time is displayed in UTC.
    expireTime String
    The time when the invitation expires. The time is displayed in UTC.
    masterAccountId String
    The ID of the management account of the resource directory.
    masterAccountName String
    The name of the management account of the resource directory.
    modifyTime String
    The time when the invitation was modified. The time is displayed in UTC.
    note String
    The description of the invitation. The description can be up to 1,024 characters in length.
    resourceDirectoryId String
    The ID of the resource directory.
    status String
    The status of the invitation.
    targetEntity String
    The ID or logon email address of the account that you want to invite.
    targetType String
    The type of the invited account. Valid values:

    • Account: indicates the ID of the account.
    • Email: indicates the logon email address of the account.

    Import

    Resource Manager Handshake can be imported using the id, e.g.

    $ pulumi import alicloud:resourcemanager/handshake:Handshake 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.86.0 published on Saturday, Sep 20, 2025 by Pulumi