@gtheocrwd/pulumi-crowdstrike
Version:
A Pulumi package for creating and managing Crowdstrike resources. Based on terraform-provider-crowdstrike: version v0.0.5
93 lines • 4.6 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.SensorUpdatePolicy = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource allows management of sensor update policies in the CrowdStrike Falcon platform. Sensor update policies allow you to control the update process across a set of hosts.
*
* ## API Scopes
*
* The following API scopes are required:
*
* - Sensor update policies | Read & Write
*
* ## Import
*
* prevention policy can be imported by specifying the policy id.
*
* ```sh
* $ pulumi import crowdstrike:index/sensorUpdatePolicy:SensorUpdatePolicy example 7fb858a949034a0cbca175f660f1e769
* ```
*/
class SensorUpdatePolicy extends pulumi.CustomResource {
/**
* Get an existing SensorUpdatePolicy 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 SensorUpdatePolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of SensorUpdatePolicy. 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'] === SensorUpdatePolicy.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["build"] = state ? state.build : undefined;
resourceInputs["buildArm64"] = state ? state.buildArm64 : undefined;
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["schedule"] = state ? state.schedule : undefined;
resourceInputs["uninstallProtection"] = state ? state.uninstallProtection : undefined;
}
else {
const args = argsOrState;
if ((!args || args.build === undefined) && !opts.urn) {
throw new Error("Missing required property 'build'");
}
if ((!args || args.platformName === undefined) && !opts.urn) {
throw new Error("Missing required property 'platformName'");
}
if ((!args || args.schedule === undefined) && !opts.urn) {
throw new Error("Missing required property 'schedule'");
}
resourceInputs["build"] = args ? args.build : undefined;
resourceInputs["buildArm64"] = args ? args.buildArm64 : undefined;
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["schedule"] = args ? args.schedule : undefined;
resourceInputs["uninstallProtection"] = args ? args.uninstallProtection : undefined;
resourceInputs["lastUpdated"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(SensorUpdatePolicy.__pulumiType, name, resourceInputs, opts);
}
}
exports.SensorUpdatePolicy = SensorUpdatePolicy;
/** @internal */
SensorUpdatePolicy.__pulumiType = 'crowdstrike:index/sensorUpdatePolicy:SensorUpdatePolicy';
//# sourceMappingURL=sensorUpdatePolicy.js.map