UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

114 lines 5.38 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.Retrohunt = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Retrohunt is an execution of a Rule over a time range in the past. * * To get more information about Retrohunt, see: * * * [API documentation](https://cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.rules.retrohunts) * * How-to Guides * * [Google SecOps Guides](https://cloud.google.com/chronicle/docs/secops/secops-overview) * * ## Example Usage * * ## Import * * Retrohunt can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/instances/{{instance}}/rules/{{rule}}/retrohunts/{{retrohunt}}` * * * `{{project}}/{{location}}/{{instance}}/{{rule}}/{{retrohunt}}` * * * `{{location}}/{{instance}}/{{rule}}/{{retrohunt}}` * * When using the `pulumi import` command, Retrohunt can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:chronicle/retrohunt:Retrohunt default projects/{{project}}/locations/{{location}}/instances/{{instance}}/rules/{{rule}}/retrohunts/{{retrohunt}} * ``` * * ```sh * $ pulumi import gcp:chronicle/retrohunt:Retrohunt default {{project}}/{{location}}/{{instance}}/{{rule}}/{{retrohunt}} * ``` * * ```sh * $ pulumi import gcp:chronicle/retrohunt:Retrohunt default {{location}}/{{instance}}/{{rule}}/{{retrohunt}} * ``` */ class Retrohunt extends pulumi.CustomResource { /** * Get an existing Retrohunt 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 Retrohunt(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Retrohunt. 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'] === Retrohunt.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["RetrohuntId"] = state ? state.RetrohuntId : undefined; resourceInputs["executionIntervals"] = state ? state.executionIntervals : undefined; resourceInputs["instance"] = state ? state.instance : undefined; resourceInputs["location"] = state ? state.location : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["processInterval"] = state ? state.processInterval : undefined; resourceInputs["progressPercentage"] = state ? state.progressPercentage : undefined; resourceInputs["project"] = state ? state.project : undefined; resourceInputs["rule"] = state ? state.rule : undefined; resourceInputs["state"] = state ? state.state : undefined; } else { const args = argsOrState; if ((!args || args.instance === undefined) && !opts.urn) { throw new Error("Missing required property 'instance'"); } if ((!args || args.location === undefined) && !opts.urn) { throw new Error("Missing required property 'location'"); } if ((!args || args.processInterval === undefined) && !opts.urn) { throw new Error("Missing required property 'processInterval'"); } if ((!args || args.rule === undefined) && !opts.urn) { throw new Error("Missing required property 'rule'"); } resourceInputs["RetrohuntId"] = args ? args.RetrohuntId : undefined; resourceInputs["instance"] = args ? args.instance : undefined; resourceInputs["location"] = args ? args.location : undefined; resourceInputs["processInterval"] = args ? args.processInterval : undefined; resourceInputs["project"] = args ? args.project : undefined; resourceInputs["rule"] = args ? args.rule : undefined; resourceInputs["executionIntervals"] = undefined /*out*/; resourceInputs["name"] = undefined /*out*/; resourceInputs["progressPercentage"] = undefined /*out*/; resourceInputs["state"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Retrohunt.__pulumiType, name, resourceInputs, opts); } } exports.Retrohunt = Retrohunt; /** @internal */ Retrohunt.__pulumiType = 'gcp:chronicle/retrohunt:Retrohunt'; //# sourceMappingURL=retrohunt.js.map