@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
65 lines (64 loc) • 1.76 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get a list of EIPs belong to a specific IEC site.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const sitesTest = huaweicloud.Iec.getSites({});
* const site = sitesTest.then(sitesTest => huaweicloud.Iec.getEips({
* siteId: sitesTest.sites?[0]?.id,
* }));
* ```
*/
export declare function getEips(args: GetEipsArgs, opts?: pulumi.InvokeOptions): Promise<GetEipsResult>;
/**
* A collection of arguments for invoking getEips.
*/
export interface GetEipsArgs {
/**
* Specifies the ID of the port.
*/
portId?: string;
/**
* Specifies the ID of the IEC site.
*/
siteId: string;
}
/**
* A collection of values returned by getEips.
*/
export interface GetEipsResult {
/**
* A list of all the EIPs found. The object is documented below.
*/
readonly eips: outputs.Iec.GetEipsEip[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly portId?: string;
readonly siteId: string;
/**
* The located information of the iec site. It contains area, province and city.
*/
readonly siteInfo: string;
}
export declare function getEipsOutput(args: GetEipsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetEipsResult>;
/**
* A collection of arguments for invoking getEips.
*/
export interface GetEipsOutputArgs {
/**
* Specifies the ID of the port.
*/
portId?: pulumi.Input<string>;
/**
* Specifies the ID of the IEC site.
*/
siteId: pulumi.Input<string>;
}