@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
122 lines (121 loc) • 4.33 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this resource to accept or reject the shared attachment within HuaweiCloud.
*
* > This resource is only a one-time action resource for operating the attachment. Deleting this resource
* will not clear the corresponding request record, but will only remove the resource information from the tfstate file.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pulumi from "@huaweicloudos/pulumi";
*
* const config = new pulumi.Config();
* const instanceId = config.requireObject("instanceId");
* const attachmentId = config.requireObject("attachmentId");
* const test = new huaweicloud.er.AttachmentAccepter("test", {
* instanceId: instanceId,
* attachmentId: attachmentId,
* action: "accept",
* });
* ```
*/
export declare class AttachmentAccepter extends pulumi.CustomResource {
/**
* Get an existing AttachmentAccepter resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AttachmentAccepterState, opts?: pulumi.CustomResourceOptions): AttachmentAccepter;
/**
* Returns true if the given object is an instance of AttachmentAccepter. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is AttachmentAccepter;
/**
* Specifies the action type.
* The valid values are as follows:
* + **accept**
* + **reject**
*/
readonly action: pulumi.Output<string>;
/**
* Specifies the ID of the attachment to be accept or reject.
*/
readonly attachmentId: pulumi.Output<string>;
/**
* Specifies the ID of the shared ER instance.
*/
readonly instanceId: pulumi.Output<string>;
/**
* Specifies the region in which to create the resource.
* If omitted, the provider-level region will be used.
* Changing this creates a new resource.
*/
readonly region: pulumi.Output<string>;
/**
* Create a AttachmentAccepter resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: AttachmentAccepterArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering AttachmentAccepter resources.
*/
export interface AttachmentAccepterState {
/**
* Specifies the action type.
* The valid values are as follows:
* + **accept**
* + **reject**
*/
action?: pulumi.Input<string>;
/**
* Specifies the ID of the attachment to be accept or reject.
*/
attachmentId?: pulumi.Input<string>;
/**
* Specifies the ID of the shared ER instance.
*/
instanceId?: pulumi.Input<string>;
/**
* Specifies the region in which to create the resource.
* If omitted, the provider-level region will be used.
* Changing this creates a new resource.
*/
region?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a AttachmentAccepter resource.
*/
export interface AttachmentAccepterArgs {
/**
* Specifies the action type.
* The valid values are as follows:
* + **accept**
* + **reject**
*/
action: pulumi.Input<string>;
/**
* Specifies the ID of the attachment to be accept or reject.
*/
attachmentId: pulumi.Input<string>;
/**
* Specifies the ID of the shared ER instance.
*/
instanceId: pulumi.Input<string>;
/**
* Specifies the region in which to create the resource.
* If omitted, the provider-level region will be used.
* Changing this creates a new resource.
*/
region?: pulumi.Input<string>;
}