// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../../utilities";

/**
 * Retrieves an Identity Aware Proxy (IAP) OAuth client. Requires that the client is owned by IAP.
 */
export function getIdentityAwareProxyClient(args: GetIdentityAwareProxyClientArgs, opts?: pulumi.InvokeOptions): Promise<GetIdentityAwareProxyClientResult> {
    if (!opts) {
        opts = {}
    }

    if (!opts.version) {
        opts.version = utilities.getVersion();
    }
    return pulumi.runtime.invoke("google-native:iap/v1:getIdentityAwareProxyClient", {
        "brandId": args.brandId,
        "identityAwareProxyClientId": args.identityAwareProxyClientId,
        "project": args.project,
    }, opts);
}

export interface GetIdentityAwareProxyClientArgs {
    brandId: string;
    identityAwareProxyClientId: string;
    project?: string;
}

export interface GetIdentityAwareProxyClientResult {
    /**
     * Human-friendly name given to the OAuth client.
     */
    readonly displayName: string;
    /**
     * Unique identifier of the OAuth client.
     */
    readonly name: string;
    /**
     * Client secret of the OAuth client.
     */
    readonly secret: string;
}

export function getIdentityAwareProxyClientOutput(args: GetIdentityAwareProxyClientOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetIdentityAwareProxyClientResult> {
    return pulumi.output(args).apply(a => getIdentityAwareProxyClient(a, opts))
}

export interface GetIdentityAwareProxyClientOutputArgs {
    brandId: pulumi.Input<string>;
    identityAwareProxyClientId: pulumi.Input<string>;
    project?: pulumi.Input<string>;
}
