"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getUserAssessmentProfileAnalyticsOutput = exports.getUserAssessmentProfileAnalytics = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * This data source provides the list of User Assessment Profile Analytics in Oracle Cloud Infrastructure Data Safe service.
 *
 * Gets a list of aggregated user profile details in the specified compartment. This provides information about the
 * overall profiles available. For example, the user profile details include how many users have the profile assigned
 * and do how many use password verification function. This data is especially useful content for dashboards or to support analytics.
 *
 * When you perform the ListProfileAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the
 * parameter accessLevel is set to ACCESSIBLE, then the operation returns compartments in which the requestor has INSPECT
 * permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the
 * root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by
 * compartmentId, then "Not Authorized" is returned.
 *
 * The parameter compartmentIdInSubtree applies when you perform ListProfileAnalytics on the compartmentId passed and when it is
 * set to true, the entire hierarchy of compartments can be returned.
 *
 * To use ListProfileAnalytics to get a full list of all compartments and subcompartments in the tenancy from the root compartment,
 * set the parameter compartmentIdInSubtree to true and accessLevel to ACCESSIBLE.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testUserAssessmentProfileAnalytics = oci.datasafe.getUserAssessmentProfileAnalytics({
 *     compartmentId: compartmentId,
 *     userAssessmentId: testUserAssessment.id,
 *     accessLevel: userAssessmentProfileAnalyticAccessLevel,
 *     compartmentIdInSubtree: userAssessmentProfileAnalyticCompartmentIdInSubtree === "true",
 *     profileName: testProfile.name,
 *     targetId: testTarget.id,
 * });
 * ```
 */
function getUserAssessmentProfileAnalytics(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("oci:DataSafe/getUserAssessmentProfileAnalytics:getUserAssessmentProfileAnalytics", {
        "accessLevel": args.accessLevel,
        "compartmentId": args.compartmentId,
        "compartmentIdInSubtree": args.compartmentIdInSubtree,
        "filters": args.filters,
        "profileName": args.profileName,
        "targetId": args.targetId,
        "userAssessmentId": args.userAssessmentId,
    }, opts);
}
exports.getUserAssessmentProfileAnalytics = getUserAssessmentProfileAnalytics;
/**
 * This data source provides the list of User Assessment Profile Analytics in Oracle Cloud Infrastructure Data Safe service.
 *
 * Gets a list of aggregated user profile details in the specified compartment. This provides information about the
 * overall profiles available. For example, the user profile details include how many users have the profile assigned
 * and do how many use password verification function. This data is especially useful content for dashboards or to support analytics.
 *
 * When you perform the ListProfileAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the
 * parameter accessLevel is set to ACCESSIBLE, then the operation returns compartments in which the requestor has INSPECT
 * permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the
 * root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by
 * compartmentId, then "Not Authorized" is returned.
 *
 * The parameter compartmentIdInSubtree applies when you perform ListProfileAnalytics on the compartmentId passed and when it is
 * set to true, the entire hierarchy of compartments can be returned.
 *
 * To use ListProfileAnalytics to get a full list of all compartments and subcompartments in the tenancy from the root compartment,
 * set the parameter compartmentIdInSubtree to true and accessLevel to ACCESSIBLE.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testUserAssessmentProfileAnalytics = oci.datasafe.getUserAssessmentProfileAnalytics({
 *     compartmentId: compartmentId,
 *     userAssessmentId: testUserAssessment.id,
 *     accessLevel: userAssessmentProfileAnalyticAccessLevel,
 *     compartmentIdInSubtree: userAssessmentProfileAnalyticCompartmentIdInSubtree === "true",
 *     profileName: testProfile.name,
 *     targetId: testTarget.id,
 * });
 * ```
 */
function getUserAssessmentProfileAnalyticsOutput(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invokeOutput("oci:DataSafe/getUserAssessmentProfileAnalytics:getUserAssessmentProfileAnalytics", {
        "accessLevel": args.accessLevel,
        "compartmentId": args.compartmentId,
        "compartmentIdInSubtree": args.compartmentIdInSubtree,
        "filters": args.filters,
        "profileName": args.profileName,
        "targetId": args.targetId,
        "userAssessmentId": args.userAssessmentId,
    }, opts);
}
exports.getUserAssessmentProfileAnalyticsOutput = getUserAssessmentProfileAnalyticsOutput;
//# sourceMappingURL=getUserAssessmentProfileAnalytics.js.map