UNPKG

@pulumi/scm

Version:

A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1

135 lines 7.41 kB
"use strict"; // *** 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.DecryptionRule = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Retrieves a config item. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * const example = new scm.DecryptionRule("example", {}); * ``` */ class DecryptionRule extends pulumi.CustomResource { /** * Get an existing DecryptionRule 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 DecryptionRule(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of DecryptionRule. 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'] === DecryptionRule.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["action"] = state ? state.action : undefined; resourceInputs["categories"] = state ? state.categories : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["destinationHips"] = state ? state.destinationHips : undefined; resourceInputs["destinations"] = state ? state.destinations : undefined; resourceInputs["device"] = state ? state.device : undefined; resourceInputs["disabled"] = state ? state.disabled : undefined; resourceInputs["folder"] = state ? state.folder : undefined; resourceInputs["froms"] = state ? state.froms : undefined; resourceInputs["logFail"] = state ? state.logFail : undefined; resourceInputs["logSetting"] = state ? state.logSetting : undefined; resourceInputs["logSuccess"] = state ? state.logSuccess : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["negateDestination"] = state ? state.negateDestination : undefined; resourceInputs["negateSource"] = state ? state.negateSource : undefined; resourceInputs["position"] = state ? state.position : undefined; resourceInputs["profile"] = state ? state.profile : undefined; resourceInputs["services"] = state ? state.services : undefined; resourceInputs["snippet"] = state ? state.snippet : undefined; resourceInputs["sourceHips"] = state ? state.sourceHips : undefined; resourceInputs["sourceUsers"] = state ? state.sourceUsers : undefined; resourceInputs["sources"] = state ? state.sources : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["tfid"] = state ? state.tfid : undefined; resourceInputs["tos"] = state ? state.tos : undefined; resourceInputs["type"] = state ? state.type : undefined; } else { const args = argsOrState; if ((!args || args.action === undefined) && !opts.urn) { throw new Error("Missing required property 'action'"); } if ((!args || args.categories === undefined) && !opts.urn) { throw new Error("Missing required property 'categories'"); } if ((!args || args.destinations === undefined) && !opts.urn) { throw new Error("Missing required property 'destinations'"); } if ((!args || args.froms === undefined) && !opts.urn) { throw new Error("Missing required property 'froms'"); } if ((!args || args.services === undefined) && !opts.urn) { throw new Error("Missing required property 'services'"); } if ((!args || args.sourceUsers === undefined) && !opts.urn) { throw new Error("Missing required property 'sourceUsers'"); } if ((!args || args.sources === undefined) && !opts.urn) { throw new Error("Missing required property 'sources'"); } if ((!args || args.tos === undefined) && !opts.urn) { throw new Error("Missing required property 'tos'"); } resourceInputs["action"] = args ? args.action : undefined; resourceInputs["categories"] = args ? args.categories : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["destinationHips"] = args ? args.destinationHips : undefined; resourceInputs["destinations"] = args ? args.destinations : undefined; resourceInputs["device"] = args ? args.device : undefined; resourceInputs["disabled"] = args ? args.disabled : undefined; resourceInputs["folder"] = args ? args.folder : undefined; resourceInputs["froms"] = args ? args.froms : undefined; resourceInputs["logFail"] = args ? args.logFail : undefined; resourceInputs["logSetting"] = args ? args.logSetting : undefined; resourceInputs["logSuccess"] = args ? args.logSuccess : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["negateDestination"] = args ? args.negateDestination : undefined; resourceInputs["negateSource"] = args ? args.negateSource : undefined; resourceInputs["position"] = args ? args.position : undefined; resourceInputs["profile"] = args ? args.profile : undefined; resourceInputs["services"] = args ? args.services : undefined; resourceInputs["snippet"] = args ? args.snippet : undefined; resourceInputs["sourceHips"] = args ? args.sourceHips : undefined; resourceInputs["sourceUsers"] = args ? args.sourceUsers : undefined; resourceInputs["sources"] = args ? args.sources : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["tos"] = args ? args.tos : undefined; resourceInputs["type"] = args ? args.type : undefined; resourceInputs["tfid"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(DecryptionRule.__pulumiType, name, resourceInputs, opts); } } exports.DecryptionRule = DecryptionRule; /** @internal */ DecryptionRule.__pulumiType = 'scm:index/decryptionRule:DecryptionRule'; //# sourceMappingURL=decryptionRule.js.map