"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.getDetectorRecipesOutput = exports.getDetectorRecipes = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * This data source provides the list of Detector Recipes in Oracle Cloud Infrastructure Cloud Guard service.
 *
 * Returns a list of all detector recipes (DetectorRecipe resources) in a compartment, identified by compartmentId.
 *
 * The ListDetectorRecipes operation returns only the detector recipes in `compartmentId` passed.
 * The list does not include any subcompartments of the compartmentId passed.
 *
 * 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 ListDetectorRecipes on the
 * `compartmentId` 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 testDetectorRecipes = oci.cloudguard.getDetectorRecipes({
 *     compartmentId: compartmentId,
 *     accessLevel: detectorRecipeAccessLevel,
 *     compartmentIdInSubtree: detectorRecipeCompartmentIdInSubtree === "true",
 *     displayName: detectorRecipeDisplayName,
 *     resourceMetadataOnly: detectorRecipeResourceMetadataOnly === "true",
 *     state: detectorRecipeState,
 * });
 * ```
 */
function getDetectorRecipes(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("oci:CloudGuard/getDetectorRecipes:getDetectorRecipes", {
        "accessLevel": args.accessLevel,
        "compartmentId": args.compartmentId,
        "compartmentIdInSubtree": args.compartmentIdInSubtree,
        "displayName": args.displayName,
        "filters": args.filters,
        "resourceMetadataOnly": args.resourceMetadataOnly,
        "state": args.state,
    }, opts);
}
exports.getDetectorRecipes = getDetectorRecipes;
/**
 * This data source provides the list of Detector Recipes in Oracle Cloud Infrastructure Cloud Guard service.
 *
 * Returns a list of all detector recipes (DetectorRecipe resources) in a compartment, identified by compartmentId.
 *
 * The ListDetectorRecipes operation returns only the detector recipes in `compartmentId` passed.
 * The list does not include any subcompartments of the compartmentId passed.
 *
 * 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 ListDetectorRecipes on the
 * `compartmentId` 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 testDetectorRecipes = oci.cloudguard.getDetectorRecipes({
 *     compartmentId: compartmentId,
 *     accessLevel: detectorRecipeAccessLevel,
 *     compartmentIdInSubtree: detectorRecipeCompartmentIdInSubtree === "true",
 *     displayName: detectorRecipeDisplayName,
 *     resourceMetadataOnly: detectorRecipeResourceMetadataOnly === "true",
 *     state: detectorRecipeState,
 * });
 * ```
 */
function getDetectorRecipesOutput(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invokeOutput("oci:CloudGuard/getDetectorRecipes:getDetectorRecipes", {
        "accessLevel": args.accessLevel,
        "compartmentId": args.compartmentId,
        "compartmentIdInSubtree": args.compartmentIdInSubtree,
        "displayName": args.displayName,
        "filters": args.filters,
        "resourceMetadataOnly": args.resourceMetadataOnly,
        "state": args.state,
    }, opts);
}
exports.getDetectorRecipesOutput = getDetectorRecipesOutput;
//# sourceMappingURL=getDetectorRecipes.js.map