@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
112 lines (111 loc) • 3.34 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get a list of ModelArts notebook images.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const test = huaweicloud.ModelArts.getNotebookImages({
* type: "BUILD_IN",
* });
* export const imageId = test.then(test => test.images?[0]?.id);
* ```
*/
export declare function getNotebookImages(args?: GetNotebookImagesArgs, opts?: pulumi.InvokeOptions): Promise<GetNotebookImagesResult>;
/**
* A collection of arguments for invoking getNotebookImages.
*/
export interface GetNotebookImagesArgs {
/**
* Specifies the CPU architecture of image. The value can be **x86_64** and **aarch64**.
*/
cpuArch?: string;
/**
* Specifies the name of image.
*/
name?: string;
/**
* Specifies the name of the organization (namespace) which image belongs to.
*/
organization?: string;
/**
* Specifies the region in which to obtain images. If omitted, the provider-level region
* will be used.
*/
region?: string;
/**
* Specifies the type of image. The options are:
* + `BUILD_IN`: The system built-in image.
* + `DEDICATED`: User-saved images.
*/
type?: string;
/**
* Specifies the workspace ID which image belongs to.
*/
workspaceId?: string;
}
/**
* A collection of values returned by getNotebookImages.
*/
export interface GetNotebookImagesResult {
/**
* The CPU architecture of the image. The value can be **x86_64** and **aarch64**.
*/
readonly cpuArch?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Indicates a list of all images found. Structure is documented below.
*/
readonly images: outputs.ModelArts.GetNotebookImagesImage[];
/**
* The name of the image.
*/
readonly name?: string;
readonly organization?: string;
readonly region: string;
/**
* The type of the image.
*/
readonly type?: string;
readonly workspaceId?: string;
}
export declare function getNotebookImagesOutput(args?: GetNotebookImagesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetNotebookImagesResult>;
/**
* A collection of arguments for invoking getNotebookImages.
*/
export interface GetNotebookImagesOutputArgs {
/**
* Specifies the CPU architecture of image. The value can be **x86_64** and **aarch64**.
*/
cpuArch?: pulumi.Input<string>;
/**
* Specifies the name of image.
*/
name?: pulumi.Input<string>;
/**
* Specifies the name of the organization (namespace) which image belongs to.
*/
organization?: pulumi.Input<string>;
/**
* Specifies the region in which to obtain images. If omitted, the provider-level region
* will be used.
*/
region?: pulumi.Input<string>;
/**
* Specifies the type of image. The options are:
* + `BUILD_IN`: The system built-in image.
* + `DEDICATED`: User-saved images.
*/
type?: pulumi.Input<string>;
/**
* Specifies the workspace ID which image belongs to.
*/
workspaceId?: pulumi.Input<string>;
}