import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * A list of all services in a project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aiven from "@pulumi/aiven"; * * // Use the `aiven_service_list` data source to query all services in a project. * const allServices = aiven.getServiceList({ * project: "example-project-name", * }); * export const serviceNames = allServices.then(allServices => .map(service => (service.name))); * export const serviceTypes = allServices.then(allServices => .map(service => (service.serviceType))); * const kafkaServices = allServices.then(allServices => .filter(service => service.serviceType == "kafka").map(service => (service))); * export const kafkaServiceNames = kafkaServices.map(service => (service.name)); * ``` */ export declare function getServiceList(args: GetServiceListArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getServiceList. */ export interface GetServiceListArgs { /** * Project name. */ project: string; /** * List of services under the project. */ services?: inputs.GetServiceListService[]; timeouts?: inputs.GetServiceListTimeouts; } /** * A collection of values returned by getServiceList. */ export interface GetServiceListResult { /** * Resource ID, equal to `project`. */ readonly id: string; /** * Project name. */ readonly project: string; /** * List of services under the project. */ readonly services?: outputs.GetServiceListService[]; readonly timeouts?: outputs.GetServiceListTimeouts; } /** * A list of all services in a project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aiven from "@pulumi/aiven"; * * // Use the `aiven_service_list` data source to query all services in a project. * const allServices = aiven.getServiceList({ * project: "example-project-name", * }); * export const serviceNames = allServices.then(allServices => .map(service => (service.name))); * export const serviceTypes = allServices.then(allServices => .map(service => (service.serviceType))); * const kafkaServices = allServices.then(allServices => .filter(service => service.serviceType == "kafka").map(service => (service))); * export const kafkaServiceNames = kafkaServices.map(service => (service.name)); * ``` */ export declare function getServiceListOutput(args: GetServiceListOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getServiceList. */ export interface GetServiceListOutputArgs { /** * Project name. */ project: pulumi.Input; /** * List of services under the project. */ services?: pulumi.Input[] | undefined>; timeouts?: pulumi.Input; } //# sourceMappingURL=getServiceList.d.ts.map