UNPKG

@crowdstrike/pulumi

Version:

A Pulumi package for creating and managing CrowdStrike resources. Based on terraform-provider-crowdstrike: version v0.0.4

85 lines 4.15 kB
"use strict"; // *** 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.DefaultSensorUpdatePolicy = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource allows management of the default sensor update policy in the CrowdStrike Falcon platform. Destruction of this resource *will not* delete the default sensor update policy or remove any configured settings. * * ## API Scopes * * The following API scopes are required: * * - Sensor update policies | Read & Write * * ## Import * * A default sensor update policy can be imported by specifying the policy id. * * ```sh * $ pulumi import crowdstrike:index/defaultSensorUpdatePolicy:DefaultSensorUpdatePolicy default 7fb858a949034a0cbca175f660f1e769 * ``` */ class DefaultSensorUpdatePolicy extends pulumi.CustomResource { /** * Get an existing DefaultSensorUpdatePolicy 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 DefaultSensorUpdatePolicy(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of DefaultSensorUpdatePolicy. 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'] === DefaultSensorUpdatePolicy.__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["lastUpdated"] = state ? state.lastUpdated : 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["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(DefaultSensorUpdatePolicy.__pulumiType, name, resourceInputs, opts); } } exports.DefaultSensorUpdatePolicy = DefaultSensorUpdatePolicy; /** @internal */ DefaultSensorUpdatePolicy.__pulumiType = 'crowdstrike:index/defaultSensorUpdatePolicy:DefaultSensorUpdatePolicy'; //# sourceMappingURL=defaultSensorUpdatePolicy.js.map