@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
88 lines • 4.14 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.DosProtectionRule = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* DosProtectionRule resource
*/
class DosProtectionRule extends pulumi.CustomResource {
/**
* Get an existing DosProtectionRule 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 DosProtectionRule(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of DosProtectionRule. 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'] === DosProtectionRule.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["action"] = state?.action;
resourceInputs["description"] = state?.description;
resourceInputs["destinations"] = state?.destinations;
resourceInputs["device"] = state?.device;
resourceInputs["disabled"] = state?.disabled;
resourceInputs["folder"] = state?.folder;
resourceInputs["froms"] = state?.froms;
resourceInputs["logSetting"] = state?.logSetting;
resourceInputs["name"] = state?.name;
resourceInputs["position"] = state?.position;
resourceInputs["protection"] = state?.protection;
resourceInputs["schedule"] = state?.schedule;
resourceInputs["services"] = state?.services;
resourceInputs["snippet"] = state?.snippet;
resourceInputs["sourceUsers"] = state?.sourceUsers;
resourceInputs["sources"] = state?.sources;
resourceInputs["tags"] = state?.tags;
resourceInputs["tfid"] = state?.tfid;
resourceInputs["tos"] = state?.tos;
}
else {
const args = argsOrState;
resourceInputs["action"] = args?.action;
resourceInputs["description"] = args?.description;
resourceInputs["destinations"] = args?.destinations;
resourceInputs["device"] = args?.device;
resourceInputs["disabled"] = args?.disabled;
resourceInputs["folder"] = args?.folder;
resourceInputs["froms"] = args?.froms;
resourceInputs["logSetting"] = args?.logSetting;
resourceInputs["name"] = args?.name;
resourceInputs["position"] = args?.position;
resourceInputs["protection"] = args?.protection;
resourceInputs["schedule"] = args?.schedule;
resourceInputs["services"] = args?.services;
resourceInputs["snippet"] = args?.snippet;
resourceInputs["sourceUsers"] = args?.sourceUsers;
resourceInputs["sources"] = args?.sources;
resourceInputs["tags"] = args?.tags;
resourceInputs["tos"] = args?.tos;
resourceInputs["tfid"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(DosProtectionRule.__pulumiType, name, resourceInputs, opts);
}
}
exports.DosProtectionRule = DosProtectionRule;
/** @internal */
DosProtectionRule.__pulumiType = 'scm:index/dosProtectionRule:DosProtectionRule';
//# sourceMappingURL=dosProtectionRule.js.map