@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
67 lines (66 loc) • 1.91 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get the add-on instance list of a CCE cluster.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const clusterId = config.requireObject("clusterId");
* const test = huaweicloud.Cce.getAddons({
* clusterId: clusterId,
* });
* ```
*/
export declare function getAddons(args: GetAddonsArgs, opts?: pulumi.InvokeOptions): Promise<GetAddonsResult>;
/**
* A collection of arguments for invoking getAddons.
*/
export interface GetAddonsArgs {
/**
* Specifies the ID of the cluster to which the add-on instance belongs.
*/
clusterId: string;
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: string;
}
/**
* A collection of values returned by getAddons.
*/
export interface GetAddonsResult {
/**
* The cluster ID.
*/
readonly clusterId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The add-on instance list.
*/
readonly items: outputs.Cce.GetAddonsItem[];
readonly region: string;
}
export declare function getAddonsOutput(args: GetAddonsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAddonsResult>;
/**
* A collection of arguments for invoking getAddons.
*/
export interface GetAddonsOutputArgs {
/**
* Specifies the ID of the cluster to which the add-on instance belongs.
*/
clusterId: pulumi.Input<string>;
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
}