@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
209 lines (208 loc) • 7.82 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages DLI package resource within HuaweiCloud
*
* ## Example Usage
* ### Upload the specified python script as a resource package
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pulumi from "@huaweicloudos/pulumi";
*
* const config = new pulumi.Config();
* const groupName = config.requireObject("groupName");
* const accessDomainName = config.requireObject("accessDomainName");
* const queue = new huaweicloud.dli.Package("queue", {
* groupName: groupName,
* objectPath: `https://${accessDomainName}/dli/packages/object_file.py`,
* type: "pyFile",
* });
* ```
*/
export declare class Package extends pulumi.CustomResource {
/**
* Get an existing Package 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?: PackageState, opts?: pulumi.CustomResourceOptions): Package;
/**
* Returns true if the given object is an instance of Package. 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 Package;
/**
* Time when a queue is created.
*/
readonly createdAt: pulumi.Output<string>;
/**
* Specifies the group name which the package belongs to.
* Changing this parameter will delete the current package and upload a new package.
*/
readonly groupName: pulumi.Output<string | undefined>;
/**
* Specifies whether to upload resource packages in asynchronous mode.
* The default value is **false**. Changing this parameter will delete the current package and upload a new package.
*/
readonly isAsync: pulumi.Output<boolean>;
/**
* The package name.
*/
readonly objectName: pulumi.Output<string>;
/**
* Specifies the OBS storage path where the package is located.
* For example, `https://{bucket_name}.obs.{region}.myhuaweicloud.com/dli/packages/object_file.py`.
* Changing this parameter will delete the current package and upload a new package.
*/
readonly objectPath: pulumi.Output<string>;
/**
* Specifies the name of the package owner. The owner must be IAM user.
*/
readonly owner: pulumi.Output<string>;
/**
* Specifies the region in which to upload packages.
* If omitted, the provider-level region will be used.
* Changing this parameter will delete the current package and upload a new package.
*/
readonly region: pulumi.Output<string>;
/**
* Status of a package group to be uploaded.
*/
readonly status: pulumi.Output<string>;
/**
* Specifies the key/value pairs to associate with the package.
*/
readonly tags: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* Specifies the package type.
* + **jar**: `.jar` or jar related files.
* + **pyFile**: `.py` or python related files.
* + **file**: Other user files.
* + **modelFile**: User AI model files.
*/
readonly type: pulumi.Output<string>;
/**
* The last time when the package configuration update has completed.
*/
readonly updatedAt: pulumi.Output<string>;
/**
* Create a Package 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: PackageArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Package resources.
*/
export interface PackageState {
/**
* Time when a queue is created.
*/
createdAt?: pulumi.Input<string>;
/**
* Specifies the group name which the package belongs to.
* Changing this parameter will delete the current package and upload a new package.
*/
groupName?: pulumi.Input<string>;
/**
* Specifies whether to upload resource packages in asynchronous mode.
* The default value is **false**. Changing this parameter will delete the current package and upload a new package.
*/
isAsync?: pulumi.Input<boolean>;
/**
* The package name.
*/
objectName?: pulumi.Input<string>;
/**
* Specifies the OBS storage path where the package is located.
* For example, `https://{bucket_name}.obs.{region}.myhuaweicloud.com/dli/packages/object_file.py`.
* Changing this parameter will delete the current package and upload a new package.
*/
objectPath?: pulumi.Input<string>;
/**
* Specifies the name of the package owner. The owner must be IAM user.
*/
owner?: pulumi.Input<string>;
/**
* Specifies the region in which to upload packages.
* If omitted, the provider-level region will be used.
* Changing this parameter will delete the current package and upload a new package.
*/
region?: pulumi.Input<string>;
/**
* Status of a package group to be uploaded.
*/
status?: pulumi.Input<string>;
/**
* Specifies the key/value pairs to associate with the package.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Specifies the package type.
* + **jar**: `.jar` or jar related files.
* + **pyFile**: `.py` or python related files.
* + **file**: Other user files.
* + **modelFile**: User AI model files.
*/
type?: pulumi.Input<string>;
/**
* The last time when the package configuration update has completed.
*/
updatedAt?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Package resource.
*/
export interface PackageArgs {
/**
* Specifies the group name which the package belongs to.
* Changing this parameter will delete the current package and upload a new package.
*/
groupName?: pulumi.Input<string>;
/**
* Specifies whether to upload resource packages in asynchronous mode.
* The default value is **false**. Changing this parameter will delete the current package and upload a new package.
*/
isAsync?: pulumi.Input<boolean>;
/**
* Specifies the OBS storage path where the package is located.
* For example, `https://{bucket_name}.obs.{region}.myhuaweicloud.com/dli/packages/object_file.py`.
* Changing this parameter will delete the current package and upload a new package.
*/
objectPath: pulumi.Input<string>;
/**
* Specifies the name of the package owner. The owner must be IAM user.
*/
owner?: pulumi.Input<string>;
/**
* Specifies the region in which to upload packages.
* If omitted, the provider-level region will be used.
* Changing this parameter will delete the current package and upload a new package.
*/
region?: pulumi.Input<string>;
/**
* Specifies the key/value pairs to associate with the package.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Specifies the package type.
* + **jar**: `.jar` or jar related files.
* + **pyFile**: `.py` or python related files.
* + **file**: Other user files.
* + **modelFile**: User AI model files.
*/
type: pulumi.Input<string>;
}