Handshake

class Handshake : KotlinCustomResource

Provides a Resource Manager handshake resource. You can invite accounts to join a resource directory for unified management. For information about Resource Manager handshake and how to use it, see What is Resource Manager handshake.

NOTE: Available in v1.82.0+.

Example 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")
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 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
})
}
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

Import

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

$ pulumi import alicloud:resourcemanager/handshake:Handshake example h-QmdexeFm1kE*****

Properties

Link copied to clipboard
val expireTime: Output<String>

The expiration time of the invitation.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val masterAccountId: Output<String>

Resource account master account ID.

Link copied to clipboard

The name of the main account of the resource directory.

Link copied to clipboard
val modifyTime: Output<String>

The modification time of the invitation.

Link copied to clipboard
val note: Output<String>?

Remarks. The maximum length is 1024 characters.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Resource directory ID.

Link copied to clipboard
val status: Output<String>

Invitation status. Valid values: Pending waiting for confirmation, Accepted, Cancelled, Declined, Expired.

Link copied to clipboard
val targetEntity: Output<String>

Invited account ID or login email.

Link copied to clipboard
val targetType: Output<String>

Type of account being invited. Valid values: Account, Email.

Link copied to clipboard
val urn: Output<String>