@gtheocrwd/pulumi-crowdstrike
Version:
A Pulumi package for creating and managing Crowdstrike resources. Based on terraform-provider-crowdstrike: version v0.0.5
83 lines • 3.97 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.FilevantagePolicy = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource allows management of a FileVantage policy. A FileVantage policy is a collection of file integrity rules and rule groups that you can apply to host groups.
*
* ## API Scopes
*
* The following API scopes are required:
*
* - Falcon FileVantage | Read & Write
*
* ## Import
*
* filvantage policy can be imported by specifying the policy id.
*
* ```sh
* $ pulumi import crowdstrike:index/filevantagePolicy:FilevantagePolicy example 7fb858a949034a0cbca175f660f1e769
* ```
*/
class FilevantagePolicy extends pulumi.CustomResource {
/**
* Get an existing FilevantagePolicy resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, state, opts) {
return new FilevantagePolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of FilevantagePolicy. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === FilevantagePolicy.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["enabled"] = state ? state.enabled : undefined;
resourceInputs["hostGroups"] = state ? state.hostGroups : undefined;
resourceInputs["lastUpdated"] = state ? state.lastUpdated : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["platformName"] = state ? state.platformName : undefined;
resourceInputs["ruleGroups"] = state ? state.ruleGroups : undefined;
resourceInputs["scheduledExclusions"] = state ? state.scheduledExclusions : undefined;
}
else {
const args = argsOrState;
if ((!args || args.platformName === undefined) && !opts.urn) {
throw new Error("Missing required property 'platformName'");
}
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["enabled"] = args ? args.enabled : undefined;
resourceInputs["hostGroups"] = args ? args.hostGroups : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["platformName"] = args ? args.platformName : undefined;
resourceInputs["ruleGroups"] = args ? args.ruleGroups : undefined;
resourceInputs["scheduledExclusions"] = args ? args.scheduledExclusions : undefined;
resourceInputs["lastUpdated"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(FilevantagePolicy.__pulumiType, name, resourceInputs, opts);
}
}
exports.FilevantagePolicy = FilevantagePolicy;
/** @internal */
FilevantagePolicy.__pulumiType = 'crowdstrike:index/filevantagePolicy:FilevantagePolicy';
//# sourceMappingURL=filevantagePolicy.js.map