UNPKG

@pulumi/sdwan

Version:

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

148 lines 6.88 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.CiscoSecurityFeatureTemplate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource can manage a Cisco Security feature template. * - Minimum SD-WAN Manager version: `15.0.0` * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdwan from "@pulumi/sdwan"; * * const example = new sdwan.CiscoSecurityFeatureTemplate("example", { * name: "Example", * description: "My Example", * deviceTypes: ["vedge-C8000V"], * rekeyInterval: 86400, * replayWindow: "64", * extendedArWindow: 256, * authenticationTypes: ["none"], * integrityTypes: ["none"], * pairwiseKeying: true, * keychains: [{ * name: "CHAIN1", * keyId: 1, * }], * keys: [{ * id: "1", * chainName: "CHAIN1", * sendId: 0, * receiveId: 0, * cryptoAlgorithm: "hmac-sha-256", * keyString: "abc123", * sendLifetimeLocal: true, * sendLifetimeStartTime: "2022-12-31T23:59", * sendLifetimeEndTimeFormat: "infinite", * sendLifetimeDuration: 1000, * sendLifetimeEndTime: "2032-12-31T23:59", * sendLifetimeInfinite: true, * acceptLifetimeLocal: true, * acceptLifetimeStartTime: "2022-12-31T23:59", * acceptLifetimeEndTimeFormat: "infinite", * acceptLifetimeDuration: 1000, * acceptLifetimeEndTime: "2032-12-31T23:59", * acceptLifetimeInfinite: true, * includeTcpOptions: false, * acceptAoMismatch: true, * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import sdwan:index/ciscoSecurityFeatureTemplate:CiscoSecurityFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd" * ``` */ class CiscoSecurityFeatureTemplate extends pulumi.CustomResource { /** * Get an existing CiscoSecurityFeatureTemplate 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 CiscoSecurityFeatureTemplate(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of CiscoSecurityFeatureTemplate. 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'] === CiscoSecurityFeatureTemplate.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["authenticationTypeVariable"] = state?.authenticationTypeVariable; resourceInputs["authenticationTypes"] = state?.authenticationTypes; resourceInputs["description"] = state?.description; resourceInputs["deviceTypes"] = state?.deviceTypes; resourceInputs["extendedArWindow"] = state?.extendedArWindow; resourceInputs["extendedArWindowVariable"] = state?.extendedArWindowVariable; resourceInputs["integrityTypeVariable"] = state?.integrityTypeVariable; resourceInputs["integrityTypes"] = state?.integrityTypes; resourceInputs["keychains"] = state?.keychains; resourceInputs["keys"] = state?.keys; resourceInputs["name"] = state?.name; resourceInputs["pairwiseKeying"] = state?.pairwiseKeying; resourceInputs["pairwiseKeyingVariable"] = state?.pairwiseKeyingVariable; resourceInputs["rekeyInterval"] = state?.rekeyInterval; resourceInputs["rekeyIntervalVariable"] = state?.rekeyIntervalVariable; resourceInputs["replayWindow"] = state?.replayWindow; resourceInputs["replayWindowVariable"] = state?.replayWindowVariable; resourceInputs["templateType"] = state?.templateType; resourceInputs["version"] = state?.version; } else { const args = argsOrState; if (args?.description === undefined && !opts.urn) { throw new Error("Missing required property 'description'"); } if (args?.deviceTypes === undefined && !opts.urn) { throw new Error("Missing required property 'deviceTypes'"); } resourceInputs["authenticationTypeVariable"] = args?.authenticationTypeVariable; resourceInputs["authenticationTypes"] = args?.authenticationTypes; resourceInputs["description"] = args?.description; resourceInputs["deviceTypes"] = args?.deviceTypes; resourceInputs["extendedArWindow"] = args?.extendedArWindow; resourceInputs["extendedArWindowVariable"] = args?.extendedArWindowVariable; resourceInputs["integrityTypeVariable"] = args?.integrityTypeVariable; resourceInputs["integrityTypes"] = args?.integrityTypes; resourceInputs["keychains"] = args?.keychains; resourceInputs["keys"] = args?.keys; resourceInputs["name"] = args?.name; resourceInputs["pairwiseKeying"] = args?.pairwiseKeying; resourceInputs["pairwiseKeyingVariable"] = args?.pairwiseKeyingVariable; resourceInputs["rekeyInterval"] = args?.rekeyInterval; resourceInputs["rekeyIntervalVariable"] = args?.rekeyIntervalVariable; resourceInputs["replayWindow"] = args?.replayWindow; resourceInputs["replayWindowVariable"] = args?.replayWindowVariable; resourceInputs["templateType"] = undefined /*out*/; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(CiscoSecurityFeatureTemplate.__pulumiType, name, resourceInputs, opts); } } exports.CiscoSecurityFeatureTemplate = CiscoSecurityFeatureTemplate; /** @internal */ CiscoSecurityFeatureTemplate.__pulumiType = 'sdwan:index/ciscoSecurityFeatureTemplate:CiscoSecurityFeatureTemplate'; //# sourceMappingURL=ciscoSecurityFeatureTemplate.js.map