"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.getUserAssessmentProfilesOutput = exports.getUserAssessmentProfiles = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * This data source provides the list of User Assessment Profiles in Oracle Cloud Infrastructure Data Safe service.
 *
 * Gets a list of user profiles containing the profile details along with the target id and user counts.
 *
 * The ListProfiles operation returns only the profiles belonging to a certain target. If compartment type user assessment
 * id is provided, then profile information for all the targets belonging to the pertaining compartment is returned.
 * The list does not include any subcompartments of the compartment under consideration.
 *
 * The parameter 'accessLevel' specifies whether to return only those compartments for which the requestor has
 * INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a
 * subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments.
 * This is valid only when 'compartmentIdInSubtree' is set to 'true'.
 *
 * The parameter 'compartmentIdInSubtree' applies when you perform ListUserProfiles on the 'compartmentId' belonging
 * to the assessmentId passed and when it is set to true, the entire hierarchy of compartments can be returned.
 * To get a full list of all compartments and subcompartments in the tenancy (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 testUserAssessmentProfiles = oci.datasafe.getUserAssessmentProfiles({
 *     compartmentId: compartmentId,
 *     userAssessmentId: testUserAssessment.id,
 *     accessLevel: userAssessmentProfileAccessLevel,
 *     compartmentIdInSubtree: userAssessmentProfileCompartmentIdInSubtree === "true",
 *     failedLoginAttemptsGreaterThanOrEqual: userAssessmentProfileFailedLoginAttemptsGreaterThanOrEqual,
 *     failedLoginAttemptsLessThan: userAssessmentProfileFailedLoginAttemptsLessThan,
 *     inactiveAccountTimeGreaterThanOrEqual: userAssessmentProfileInactiveAccountTimeGreaterThanOrEqual,
 *     inactiveAccountTimeLessThan: userAssessmentProfileInactiveAccountTimeLessThan,
 *     isUserCreated: userAssessmentProfileIsUserCreated === "true",
 *     passwordLockTimeGreaterThanOrEqual: userAssessmentProfilePasswordLockTimeGreaterThanOrEqual,
 *     passwordLockTimeLessThan: userAssessmentProfilePasswordLockTimeLessThan,
 *     passwordVerificationFunction: userAssessmentProfilePasswordVerificationFunction,
 *     profileName: testProfile.name,
 *     sessionsPerUserGreaterThanOrEqual: userAssessmentProfileSessionsPerUserGreaterThanOrEqual,
 *     sessionsPerUserLessThan: userAssessmentProfileSessionsPerUserLessThan,
 *     targetId: testTarget.id,
 *     userCountGreaterThanOrEqual: userAssessmentProfileUserCountGreaterThanOrEqual,
 *     userCountLessThan: userAssessmentProfileUserCountLessThan,
 * });
 * ```
 */
function getUserAssessmentProfiles(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("oci:DataSafe/getUserAssessmentProfiles:getUserAssessmentProfiles", {
        "accessLevel": args.accessLevel,
        "compartmentId": args.compartmentId,
        "compartmentIdInSubtree": args.compartmentIdInSubtree,
        "failedLoginAttemptsGreaterThanOrEqual": args.failedLoginAttemptsGreaterThanOrEqual,
        "failedLoginAttemptsLessThan": args.failedLoginAttemptsLessThan,
        "filters": args.filters,
        "inactiveAccountTimeGreaterThanOrEqual": args.inactiveAccountTimeGreaterThanOrEqual,
        "inactiveAccountTimeLessThan": args.inactiveAccountTimeLessThan,
        "isUserCreated": args.isUserCreated,
        "passwordLockTimeGreaterThanOrEqual": args.passwordLockTimeGreaterThanOrEqual,
        "passwordLockTimeLessThan": args.passwordLockTimeLessThan,
        "passwordVerificationFunction": args.passwordVerificationFunction,
        "profileName": args.profileName,
        "sessionsPerUserGreaterThanOrEqual": args.sessionsPerUserGreaterThanOrEqual,
        "sessionsPerUserLessThan": args.sessionsPerUserLessThan,
        "targetId": args.targetId,
        "userAssessmentId": args.userAssessmentId,
        "userCountGreaterThanOrEqual": args.userCountGreaterThanOrEqual,
        "userCountLessThan": args.userCountLessThan,
    }, opts);
}
exports.getUserAssessmentProfiles = getUserAssessmentProfiles;
/**
 * This data source provides the list of User Assessment Profiles in Oracle Cloud Infrastructure Data Safe service.
 *
 * Gets a list of user profiles containing the profile details along with the target id and user counts.
 *
 * The ListProfiles operation returns only the profiles belonging to a certain target. If compartment type user assessment
 * id is provided, then profile information for all the targets belonging to the pertaining compartment is returned.
 * The list does not include any subcompartments of the compartment under consideration.
 *
 * The parameter 'accessLevel' specifies whether to return only those compartments for which the requestor has
 * INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a
 * subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments.
 * This is valid only when 'compartmentIdInSubtree' is set to 'true'.
 *
 * The parameter 'compartmentIdInSubtree' applies when you perform ListUserProfiles on the 'compartmentId' belonging
 * to the assessmentId passed and when it is set to true, the entire hierarchy of compartments can be returned.
 * To get a full list of all compartments and subcompartments in the tenancy (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 testUserAssessmentProfiles = oci.datasafe.getUserAssessmentProfiles({
 *     compartmentId: compartmentId,
 *     userAssessmentId: testUserAssessment.id,
 *     accessLevel: userAssessmentProfileAccessLevel,
 *     compartmentIdInSubtree: userAssessmentProfileCompartmentIdInSubtree === "true",
 *     failedLoginAttemptsGreaterThanOrEqual: userAssessmentProfileFailedLoginAttemptsGreaterThanOrEqual,
 *     failedLoginAttemptsLessThan: userAssessmentProfileFailedLoginAttemptsLessThan,
 *     inactiveAccountTimeGreaterThanOrEqual: userAssessmentProfileInactiveAccountTimeGreaterThanOrEqual,
 *     inactiveAccountTimeLessThan: userAssessmentProfileInactiveAccountTimeLessThan,
 *     isUserCreated: userAssessmentProfileIsUserCreated === "true",
 *     passwordLockTimeGreaterThanOrEqual: userAssessmentProfilePasswordLockTimeGreaterThanOrEqual,
 *     passwordLockTimeLessThan: userAssessmentProfilePasswordLockTimeLessThan,
 *     passwordVerificationFunction: userAssessmentProfilePasswordVerificationFunction,
 *     profileName: testProfile.name,
 *     sessionsPerUserGreaterThanOrEqual: userAssessmentProfileSessionsPerUserGreaterThanOrEqual,
 *     sessionsPerUserLessThan: userAssessmentProfileSessionsPerUserLessThan,
 *     targetId: testTarget.id,
 *     userCountGreaterThanOrEqual: userAssessmentProfileUserCountGreaterThanOrEqual,
 *     userCountLessThan: userAssessmentProfileUserCountLessThan,
 * });
 * ```
 */
function getUserAssessmentProfilesOutput(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invokeOutput("oci:DataSafe/getUserAssessmentProfiles:getUserAssessmentProfiles", {
        "accessLevel": args.accessLevel,
        "compartmentId": args.compartmentId,
        "compartmentIdInSubtree": args.compartmentIdInSubtree,
        "failedLoginAttemptsGreaterThanOrEqual": args.failedLoginAttemptsGreaterThanOrEqual,
        "failedLoginAttemptsLessThan": args.failedLoginAttemptsLessThan,
        "filters": args.filters,
        "inactiveAccountTimeGreaterThanOrEqual": args.inactiveAccountTimeGreaterThanOrEqual,
        "inactiveAccountTimeLessThan": args.inactiveAccountTimeLessThan,
        "isUserCreated": args.isUserCreated,
        "passwordLockTimeGreaterThanOrEqual": args.passwordLockTimeGreaterThanOrEqual,
        "passwordLockTimeLessThan": args.passwordLockTimeLessThan,
        "passwordVerificationFunction": args.passwordVerificationFunction,
        "profileName": args.profileName,
        "sessionsPerUserGreaterThanOrEqual": args.sessionsPerUserGreaterThanOrEqual,
        "sessionsPerUserLessThan": args.sessionsPerUserLessThan,
        "targetId": args.targetId,
        "userAssessmentId": args.userAssessmentId,
        "userCountGreaterThanOrEqual": args.userCountGreaterThanOrEqual,
        "userCountLessThan": args.userCountLessThan,
    }, opts);
}
exports.getUserAssessmentProfilesOutput = getUserAssessmentProfilesOutput;
//# sourceMappingURL=getUserAssessmentProfiles.js.map