UNPKG

@pulumi/sdwan

Version:

A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1

137 lines 9.68 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.CiscoTrustsecFeatureTemplate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource can manage a Cisco TrustSec feature template. * - Minimum SD-WAN Manager version: `15.0.0` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import sdwan:index/ciscoTrustsecFeatureTemplate:CiscoTrustsecFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd" * ``` */ class CiscoTrustsecFeatureTemplate extends pulumi.CustomResource { /** * Get an existing CiscoTrustsecFeatureTemplate 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 CiscoTrustsecFeatureTemplate(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of CiscoTrustsecFeatureTemplate. 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'] === CiscoTrustsecFeatureTemplate.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["credentialsId"] = state ? state.credentialsId : undefined; resourceInputs["credentialsIdVariable"] = state ? state.credentialsIdVariable : undefined; resourceInputs["credentialsPassword"] = state ? state.credentialsPassword : undefined; resourceInputs["credentialsPasswordVariable"] = state ? state.credentialsPasswordVariable : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["deviceSgt"] = state ? state.deviceSgt : undefined; resourceInputs["deviceSgtVariable"] = state ? state.deviceSgtVariable : undefined; resourceInputs["deviceTypes"] = state ? state.deviceTypes : undefined; resourceInputs["enableEnforcement"] = state ? state.enableEnforcement : undefined; resourceInputs["enableEnforcementVariable"] = state ? state.enableEnforcementVariable : undefined; resourceInputs["enableSxp"] = state ? state.enableSxp : undefined; resourceInputs["maximumListenerHoldTime"] = state ? state.maximumListenerHoldTime : undefined; resourceInputs["maximumListenerHoldTimeVariable"] = state ? state.maximumListenerHoldTimeVariable : undefined; resourceInputs["minimumListenerHoldTime"] = state ? state.minimumListenerHoldTime : undefined; resourceInputs["minimumListenerHoldTimeVariable"] = state ? state.minimumListenerHoldTimeVariable : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["speakerHoldTime"] = state ? state.speakerHoldTime : undefined; resourceInputs["speakerHoldTimeVariable"] = state ? state.speakerHoldTimeVariable : undefined; resourceInputs["sxpConnections"] = state ? state.sxpConnections : undefined; resourceInputs["sxpDefaultPassword"] = state ? state.sxpDefaultPassword : undefined; resourceInputs["sxpDefaultPasswordVariable"] = state ? state.sxpDefaultPasswordVariable : undefined; resourceInputs["sxpKeyChain"] = state ? state.sxpKeyChain : undefined; resourceInputs["sxpKeyChainVariable"] = state ? state.sxpKeyChainVariable : undefined; resourceInputs["sxpLogBindingChanges"] = state ? state.sxpLogBindingChanges : undefined; resourceInputs["sxpLogBindingChangesVariable"] = state ? state.sxpLogBindingChangesVariable : undefined; resourceInputs["sxpNodeId"] = state ? state.sxpNodeId : undefined; resourceInputs["sxpNodeIdType"] = state ? state.sxpNodeIdType : undefined; resourceInputs["sxpNodeIdVariable"] = state ? state.sxpNodeIdVariable : undefined; resourceInputs["sxpReconciliationPeriod"] = state ? state.sxpReconciliationPeriod : undefined; resourceInputs["sxpReconciliationPeriodVariable"] = state ? state.sxpReconciliationPeriodVariable : undefined; resourceInputs["sxpRetryPeriod"] = state ? state.sxpRetryPeriod : undefined; resourceInputs["sxpRetryPeriodVariable"] = state ? state.sxpRetryPeriodVariable : undefined; resourceInputs["sxpSourceIp"] = state ? state.sxpSourceIp : undefined; resourceInputs["sxpSourceIpVariable"] = state ? state.sxpSourceIpVariable : undefined; resourceInputs["templateType"] = state ? state.templateType : undefined; resourceInputs["version"] = state ? state.version : undefined; } else { const args = argsOrState; if ((!args || args.description === undefined) && !opts.urn) { throw new Error("Missing required property 'description'"); } if ((!args || args.deviceTypes === undefined) && !opts.urn) { throw new Error("Missing required property 'deviceTypes'"); } resourceInputs["credentialsId"] = args ? args.credentialsId : undefined; resourceInputs["credentialsIdVariable"] = args ? args.credentialsIdVariable : undefined; resourceInputs["credentialsPassword"] = args ? args.credentialsPassword : undefined; resourceInputs["credentialsPasswordVariable"] = args ? args.credentialsPasswordVariable : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["deviceSgt"] = args ? args.deviceSgt : undefined; resourceInputs["deviceSgtVariable"] = args ? args.deviceSgtVariable : undefined; resourceInputs["deviceTypes"] = args ? args.deviceTypes : undefined; resourceInputs["enableEnforcement"] = args ? args.enableEnforcement : undefined; resourceInputs["enableEnforcementVariable"] = args ? args.enableEnforcementVariable : undefined; resourceInputs["enableSxp"] = args ? args.enableSxp : undefined; resourceInputs["maximumListenerHoldTime"] = args ? args.maximumListenerHoldTime : undefined; resourceInputs["maximumListenerHoldTimeVariable"] = args ? args.maximumListenerHoldTimeVariable : undefined; resourceInputs["minimumListenerHoldTime"] = args ? args.minimumListenerHoldTime : undefined; resourceInputs["minimumListenerHoldTimeVariable"] = args ? args.minimumListenerHoldTimeVariable : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["speakerHoldTime"] = args ? args.speakerHoldTime : undefined; resourceInputs["speakerHoldTimeVariable"] = args ? args.speakerHoldTimeVariable : undefined; resourceInputs["sxpConnections"] = args ? args.sxpConnections : undefined; resourceInputs["sxpDefaultPassword"] = args ? args.sxpDefaultPassword : undefined; resourceInputs["sxpDefaultPasswordVariable"] = args ? args.sxpDefaultPasswordVariable : undefined; resourceInputs["sxpKeyChain"] = args ? args.sxpKeyChain : undefined; resourceInputs["sxpKeyChainVariable"] = args ? args.sxpKeyChainVariable : undefined; resourceInputs["sxpLogBindingChanges"] = args ? args.sxpLogBindingChanges : undefined; resourceInputs["sxpLogBindingChangesVariable"] = args ? args.sxpLogBindingChangesVariable : undefined; resourceInputs["sxpNodeId"] = args ? args.sxpNodeId : undefined; resourceInputs["sxpNodeIdType"] = args ? args.sxpNodeIdType : undefined; resourceInputs["sxpNodeIdVariable"] = args ? args.sxpNodeIdVariable : undefined; resourceInputs["sxpReconciliationPeriod"] = args ? args.sxpReconciliationPeriod : undefined; resourceInputs["sxpReconciliationPeriodVariable"] = args ? args.sxpReconciliationPeriodVariable : undefined; resourceInputs["sxpRetryPeriod"] = args ? args.sxpRetryPeriod : undefined; resourceInputs["sxpRetryPeriodVariable"] = args ? args.sxpRetryPeriodVariable : undefined; resourceInputs["sxpSourceIp"] = args ? args.sxpSourceIp : undefined; resourceInputs["sxpSourceIpVariable"] = args ? args.sxpSourceIpVariable : undefined; resourceInputs["templateType"] = undefined /*out*/; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(CiscoTrustsecFeatureTemplate.__pulumiType, name, resourceInputs, opts); } } exports.CiscoTrustsecFeatureTemplate = CiscoTrustsecFeatureTemplate; /** @internal */ CiscoTrustsecFeatureTemplate.__pulumiType = 'sdwan:index/ciscoTrustsecFeatureTemplate:CiscoTrustsecFeatureTemplate'; //# sourceMappingURL=ciscoTrustsecFeatureTemplate.js.map