import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
 * This data source provides the Ecd Desktops of the current Alibaba Cloud user.
 *
 * > **NOTE:** Available in v1.144.0+.
 *
 * ## Example Usage
 *
 * Basic Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as alicloud from "@pulumi/alicloud";
 *
 * const defaultSimpleOfficeSite = new alicloud.eds.SimpleOfficeSite("default", {
 *     cidrBlock: "172.16.0.0/12",
 *     desktopAccessType: "Internet",
 *     officeSiteName: "your_office_site_name",
 * });
 * const _default = alicloud.eds.getBundles({
 *     bundleType: "SYSTEM",
 * });
 * const defaultEcdPolicyGroup = new alicloud.eds.EcdPolicyGroup("default", {
 *     policyGroupName: "your_policy_group_name",
 *     clipboard: "readwrite",
 *     localDrive: "read",
 *     authorizeAccessPolicyRules: [{
 *         description: "example_value",
 *         cidrIp: "1.2.3.4/24",
 *     }],
 *     authorizeSecurityPolicyRules: [{
 *         type: "inflow",
 *         policy: "accept",
 *         description: "example_value",
 *         portRange: "80/80",
 *         ipProtocol: "TCP",
 *         priority: "1",
 *         cidrIp: "0.0.0.0/0",
 *     }],
 * });
 * const defaultUser = new alicloud.eds.User("default", {
 *     endUserId: "your_end_user_id",
 *     email: "your_email",
 *     phone: "your_phone",
 *     password: "your_password",
 * });
 * const defaultDesktop = new alicloud.eds.Desktop("default", {
 *     officeSiteId: defaultSimpleOfficeSite.id,
 *     policyGroupId: defaultEcdPolicyGroup.id,
 *     bundleId: _default.then(_default => _default.bundles?.[0]?.id),
 *     desktopName: "your_desktop_name",
 *     endUserIds: [defaultUser.id],
 * });
 * const ids = alicloud.eds.getDesktopsOutput({
 *     ids: [defaultDesktop.id],
 * });
 * export const ecdDesktopId1 = ids.apply(ids => ids.desktops?.[0]?.id);
 * const nameRegex = alicloud.eds.getDesktopsOutput({
 *     nameRegex: defaultDesktop.desktopName,
 * });
 * export const ecdDesktopId2 = nameRegex.apply(nameRegex => nameRegex.desktops?.[0]?.id);
 * ```
 */
export declare function getDesktops(args?: GetDesktopsArgs, opts?: pulumi.InvokeOptions): Promise<GetDesktopsResult>;
/**
 * A collection of arguments for invoking getDesktops.
 */
export interface GetDesktopsArgs {
    /**
     * The desktop name.
     */
    desktopName?: string;
    endUserIds?: string[];
    /**
     * A list of Desktop IDs.
     */
    ids?: string[];
    /**
     * A regex string to filter results by Desktop name.
     */
    nameRegex?: string;
    /**
     * The ID of the Simple Office Site.
     */
    officeSiteId?: string;
    /**
     * File name where to save data source results (after running `pulumi preview`).
     */
    outputFile?: string;
    /**
     * The policy group id of the Desktop.
     */
    policyGroupId?: string;
    /**
     * The status of the Desktop. Valid values: `Deleted`, `Expired`, `Pending`, `Running`, `Starting`, `Stopped`, `Stopping`.
     */
    status?: string;
}
/**
 * A collection of values returned by getDesktops.
 */
export interface GetDesktopsResult {
    readonly desktopName?: string;
    readonly desktops: outputs.eds.GetDesktopsDesktop[];
    readonly endUserIds?: string[];
    /**
     * The provider-assigned unique ID for this managed resource.
     */
    readonly id: string;
    readonly ids: string[];
    readonly nameRegex?: string;
    readonly names: string[];
    readonly officeSiteId?: string;
    readonly outputFile?: string;
    readonly policyGroupId?: string;
    readonly status?: string;
}
/**
 * This data source provides the Ecd Desktops of the current Alibaba Cloud user.
 *
 * > **NOTE:** Available in v1.144.0+.
 *
 * ## Example Usage
 *
 * Basic Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as alicloud from "@pulumi/alicloud";
 *
 * const defaultSimpleOfficeSite = new alicloud.eds.SimpleOfficeSite("default", {
 *     cidrBlock: "172.16.0.0/12",
 *     desktopAccessType: "Internet",
 *     officeSiteName: "your_office_site_name",
 * });
 * const _default = alicloud.eds.getBundles({
 *     bundleType: "SYSTEM",
 * });
 * const defaultEcdPolicyGroup = new alicloud.eds.EcdPolicyGroup("default", {
 *     policyGroupName: "your_policy_group_name",
 *     clipboard: "readwrite",
 *     localDrive: "read",
 *     authorizeAccessPolicyRules: [{
 *         description: "example_value",
 *         cidrIp: "1.2.3.4/24",
 *     }],
 *     authorizeSecurityPolicyRules: [{
 *         type: "inflow",
 *         policy: "accept",
 *         description: "example_value",
 *         portRange: "80/80",
 *         ipProtocol: "TCP",
 *         priority: "1",
 *         cidrIp: "0.0.0.0/0",
 *     }],
 * });
 * const defaultUser = new alicloud.eds.User("default", {
 *     endUserId: "your_end_user_id",
 *     email: "your_email",
 *     phone: "your_phone",
 *     password: "your_password",
 * });
 * const defaultDesktop = new alicloud.eds.Desktop("default", {
 *     officeSiteId: defaultSimpleOfficeSite.id,
 *     policyGroupId: defaultEcdPolicyGroup.id,
 *     bundleId: _default.then(_default => _default.bundles?.[0]?.id),
 *     desktopName: "your_desktop_name",
 *     endUserIds: [defaultUser.id],
 * });
 * const ids = alicloud.eds.getDesktopsOutput({
 *     ids: [defaultDesktop.id],
 * });
 * export const ecdDesktopId1 = ids.apply(ids => ids.desktops?.[0]?.id);
 * const nameRegex = alicloud.eds.getDesktopsOutput({
 *     nameRegex: defaultDesktop.desktopName,
 * });
 * export const ecdDesktopId2 = nameRegex.apply(nameRegex => nameRegex.desktops?.[0]?.id);
 * ```
 */
export declare function getDesktopsOutput(args?: GetDesktopsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDesktopsResult>;
/**
 * A collection of arguments for invoking getDesktops.
 */
export interface GetDesktopsOutputArgs {
    /**
     * The desktop name.
     */
    desktopName?: pulumi.Input<string | undefined>;
    endUserIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
    /**
     * A list of Desktop IDs.
     */
    ids?: pulumi.Input<pulumi.Input<string>[] | undefined>;
    /**
     * A regex string to filter results by Desktop name.
     */
    nameRegex?: pulumi.Input<string | undefined>;
    /**
     * The ID of the Simple Office Site.
     */
    officeSiteId?: pulumi.Input<string | undefined>;
    /**
     * File name where to save data source results (after running `pulumi preview`).
     */
    outputFile?: pulumi.Input<string | undefined>;
    /**
     * The policy group id of the Desktop.
     */
    policyGroupId?: pulumi.Input<string | undefined>;
    /**
     * The status of the Desktop. Valid values: `Deleted`, `Expired`, `Pending`, `Running`, `Starting`, `Stopped`, `Stopping`.
     */
    status?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getDesktops.d.ts.map