@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
77 lines (76 loc) • 2.51 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get available public VPC endpoint services.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const allServices = pulumi.output(huaweicloud.Vpcep.getPublicServices());
* const dnsService = pulumi.output(huaweicloud.Vpcep.getPublicServices({
* serviceName: "dns",
* }));
* ```
*/
export declare function getPublicServices(args?: GetPublicServicesArgs, opts?: pulumi.InvokeOptions): Promise<GetPublicServicesResult>;
/**
* A collection of arguments for invoking getPublicServices.
*/
export interface GetPublicServicesArgs {
/**
* The region in which to obtain the public VPC endpoint services. If omitted, the
* provider-level region will be used.
*/
region?: string;
/**
* Specifies the unique ID of the public VPC endpoint service.
*/
serviceId?: string;
/**
* Specifies the name of the public VPC endpoint service. The value is not
* case-sensitive and supports fuzzy match.
*/
serviceName?: string;
}
/**
* A collection of values returned by getPublicServices.
*/
export interface GetPublicServicesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly region: string;
readonly serviceId?: string;
/**
* The name of the public VPC endpoint service.
*/
readonly serviceName?: string;
/**
* Indicates the public VPC endpoint services information. Structure is documented below.
*/
readonly services: outputs.Vpcep.GetPublicServicesService[];
}
export declare function getPublicServicesOutput(args?: GetPublicServicesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPublicServicesResult>;
/**
* A collection of arguments for invoking getPublicServices.
*/
export interface GetPublicServicesOutputArgs {
/**
* The region in which to obtain the public VPC endpoint services. If omitted, the
* provider-level region will be used.
*/
region?: pulumi.Input<string>;
/**
* Specifies the unique ID of the public VPC endpoint service.
*/
serviceId?: pulumi.Input<string>;
/**
* Specifies the name of the public VPC endpoint service. The value is not
* case-sensitive and supports fuzzy match.
*/
serviceName?: pulumi.Input<string>;
}