@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
98 lines (97 loc) • 2.76 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get available HuaweiCloud CCE add-on template.
*
* ## 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 addonName = config.requireObject("addonName");
* const addonVersion = config.requireObject("addonVersion");
* const test = huaweicloud.Cce.getAddonTemplate({
* clusterId: clusterId,
* name: addonName,
* version: addonVersion,
* });
* ```
*/
export declare function getAddonTemplate(args: GetAddonTemplateArgs, opts?: pulumi.InvokeOptions): Promise<GetAddonTemplateResult>;
/**
* A collection of arguments for invoking getAddonTemplate.
*/
export interface GetAddonTemplateArgs {
/**
* Specifies the ID of container cluster.
*/
clusterId: string;
/**
* Specifies the add-on name.
*/
name: string;
/**
* Specifies the region in which to obtain the CCE add-ons. If omitted, the provider-level
* region will be used.
*/
region?: string;
/**
* Specifies the add-on version.
*/
version: string;
}
/**
* A collection of values returned by getAddonTemplate.
*/
export interface GetAddonTemplateResult {
readonly clusterId: string;
/**
* The description of the add-on.
*/
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
readonly region: string;
/**
* The detail configuration of the add-on template.
*/
readonly spec: string;
/**
* Whether the add-on template is a stable version.
*/
readonly stable: boolean;
/**
* The cluster information.
*/
readonly supportVersions: outputs.Cce.GetAddonTemplateSupportVersion[];
readonly version: string;
}
export declare function getAddonTemplateOutput(args: GetAddonTemplateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAddonTemplateResult>;
/**
* A collection of arguments for invoking getAddonTemplate.
*/
export interface GetAddonTemplateOutputArgs {
/**
* Specifies the ID of container cluster.
*/
clusterId: pulumi.Input<string>;
/**
* Specifies the add-on name.
*/
name: pulumi.Input<string>;
/**
* Specifies the region in which to obtain the CCE add-ons. If omitted, the provider-level
* region will be used.
*/
region?: pulumi.Input<string>;
/**
* Specifies the add-on version.
*/
version: pulumi.Input<string>;
}