UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

95 lines (94 loc) 3.74 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages an IMS image share accepter resource within HuaweiCloud. * * > Creating resource means accepting shared image, while destroying resource means rejecting shared image. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const config = new pulumi.Config(); * const imageId = config.requireObject("imageId"); * const test = new huaweicloud.ims.ImageShareAccepter("test", {imageId: imageId}); * ``` */ export declare class ImageShareAccepter extends pulumi.CustomResource { /** * Get an existing ImageShareAccepter 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?: ImageShareAccepterState, opts?: pulumi.CustomResourceOptions): ImageShareAccepter; /** * Returns true if the given object is an instance of ImageShareAccepter. 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 ImageShareAccepter; /** * Specifies the ID of the image. */ readonly imageId: pulumi.Output<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ readonly region: pulumi.Output<string>; /** * Specifies the ID of a vault. This parameter is mandatory if you want * to accept a shared full-ECS image created from a CBR backup. */ readonly vaultId: pulumi.Output<string>; /** * Create a ImageShareAccepter 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: ImageShareAccepterArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ImageShareAccepter resources. */ export interface ImageShareAccepterState { /** * Specifies the ID of the image. */ imageId?: pulumi.Input<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ region?: pulumi.Input<string>; /** * Specifies the ID of a vault. This parameter is mandatory if you want * to accept a shared full-ECS image created from a CBR backup. */ vaultId?: pulumi.Input<string>; } /** * The set of arguments for constructing a ImageShareAccepter resource. */ export interface ImageShareAccepterArgs { /** * Specifies the ID of the image. */ imageId: pulumi.Input<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ region?: pulumi.Input<string>; /** * Specifies the ID of a vault. This parameter is mandatory if you want * to accept a shared full-ECS image created from a CBR backup. */ vaultId?: pulumi.Input<string>; }