Handshake
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
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
// Add a Resource Manager handshake.
var example = new AliCloud.ResourceManager.Handshake("example", new AliCloud.ResourceManager.HandshakeArgs
{
Note = "test resource manager handshake",
TargetEntity = "1182775234******",
TargetType = "Account",
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
# Add a Resource Manager handshake.
example = alicloud.resourcemanager.Handshake("example",
note="test resource manager handshake",
target_entity="1182775234******",
target_type="Account")import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Add a Resource Manager handshake.
const example = new alicloud.resourcemanager.Handshake("example", {
note: "test resource manager handshake",
targetEntity: "1182775234******",
targetType: "Account",
});Create a Handshake Resource
new Handshake(name: string, args: HandshakeArgs, opts?: CustomResourceOptions);def Handshake(resource_name, opts=None, note=None, target_entity=None, target_type=None, __props__=None);func NewHandshake(ctx *Context, name string, args HandshakeArgs, opts ...ResourceOption) (*Handshake, error)public Handshake(string name, HandshakeArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
Handshake Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Handshake resource accepts the following input properties:
- Target
Entity string Invited account ID or login email.
- Target
Type string Type of account being invited. Valid values:
Account,Email.- Note string
Remarks. The maximum length is 1024 characters.
- Target
Entity string Invited account ID or login email.
- Target
Type string Type of account being invited. Valid values:
Account,Email.- Note string
Remarks. The maximum length is 1024 characters.
- target
Entity string Invited account ID or login email.
- target
Type string Type of account being invited. Valid values:
Account,Email.- note string
Remarks. The maximum length is 1024 characters.
- target_
entity str Invited account ID or login email.
- target_
type str Type of account being invited. Valid values:
Account,Email.- note str
Remarks. The maximum length is 1024 characters.
Outputs
All input properties are implicitly available as output properties. Additionally, the Handshake resource produces the following output properties:
- Expire
Time string The expiration time of the invitation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Master
Account stringId Resource account master account ID.
- Master
Account stringName The name of the main account of the resource directory.
- Modify
Time string The modification time of the invitation.
- Resource
Directory stringId Resource directory ID.
- Status string
Invitation status. Valid values:
Pendingwaiting for confirmation,Accepted,Cancelled,Declined,Expired.
- Expire
Time string The expiration time of the invitation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Master
Account stringId Resource account master account ID.
- Master
Account stringName The name of the main account of the resource directory.
- Modify
Time string The modification time of the invitation.
- Resource
Directory stringId Resource directory ID.
- Status string
Invitation status. Valid values:
Pendingwaiting for confirmation,Accepted,Cancelled,Declined,Expired.
- expire
Time string The expiration time of the invitation.
- id string
- The provider-assigned unique ID for this managed resource.
- master
Account stringId Resource account master account ID.
- master
Account stringName The name of the main account of the resource directory.
- modify
Time string The modification time of the invitation.
- resource
Directory stringId Resource directory ID.
- status string
Invitation status. Valid values:
Pendingwaiting for confirmation,Accepted,Cancelled,Declined,Expired.
- expire_
time str The expiration time of the invitation.
- id str
- The provider-assigned unique ID for this managed resource.
- master_
account_ strid Resource account master account ID.
- master_
account_ strname The name of the main account of the resource directory.
- modify_
time str The modification time of the invitation.
- resource_
directory_ strid Resource directory ID.
- status str
Invitation status. Valid values:
Pendingwaiting for confirmation,Accepted,Cancelled,Declined,Expired.
Look up an 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): Handshakestatic get(resource_name, id, opts=None, expire_time=None, master_account_id=None, master_account_name=None, modify_time=None, note=None, resource_directory_id=None, status=None, target_entity=None, target_type=None, __props__=None);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)- 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.
The following state arguments are supported:
- Expire
Time string The expiration time of the invitation.
- Master
Account stringId Resource account master account ID.
- Master
Account stringName The name of the main account of the resource directory.
- Modify
Time string The modification time of the invitation.
- Note string
Remarks. The maximum length is 1024 characters.
- Resource
Directory stringId Resource directory ID.
- Status string
Invitation status. Valid values:
Pendingwaiting for confirmation,Accepted,Cancelled,Declined,Expired.- Target
Entity string Invited account ID or login email.
- Target
Type string Type of account being invited. Valid values:
Account,Email.
- Expire
Time string The expiration time of the invitation.
- Master
Account stringId Resource account master account ID.
- Master
Account stringName The name of the main account of the resource directory.
- Modify
Time string The modification time of the invitation.
- Note string
Remarks. The maximum length is 1024 characters.
- Resource
Directory stringId Resource directory ID.
- Status string
Invitation status. Valid values:
Pendingwaiting for confirmation,Accepted,Cancelled,Declined,Expired.- Target
Entity string Invited account ID or login email.
- Target
Type string Type of account being invited. Valid values:
Account,Email.
- expire
Time string The expiration time of the invitation.
- master
Account stringId Resource account master account ID.
- master
Account stringName The name of the main account of the resource directory.
- modify
Time string The modification time of the invitation.
- note string
Remarks. The maximum length is 1024 characters.
- resource
Directory stringId Resource directory ID.
- status string
Invitation status. Valid values:
Pendingwaiting for confirmation,Accepted,Cancelled,Declined,Expired.- target
Entity string Invited account ID or login email.
- target
Type string Type of account being invited. Valid values:
Account,Email.
- expire_
time str The expiration time of the invitation.
- master_
account_ strid Resource account master account ID.
- master_
account_ strname The name of the main account of the resource directory.
- modify_
time str The modification time of the invitation.
- note str
Remarks. The maximum length is 1024 characters.
- resource_
directory_ strid Resource directory ID.
- status str
Invitation status. Valid values:
Pendingwaiting for confirmation,Accepted,Cancelled,Declined,Expired.- target_
entity str Invited account ID or login email.
- target_
type str Type of account being invited. Valid values:
Account,Email.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.