@pulumi/sdwan
Version:
A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1
133 lines • 5.63 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.CiscoLoggingFeatureTemplate = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource can manage a Cisco Logging 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.CiscoLoggingFeatureTemplate("example", {
* name: "Example",
* description: "My Example",
* deviceTypes: ["vedge-C8000V"],
* diskLogging: true,
* maxSize: 10,
* logRotations: 10,
* tlsProfiles: [{
* name: "PROF1",
* version: "TLSv1.2",
* authenticationType: "Server",
* ciphersuiteList: ["aes-128-cbc-sha"],
* }],
* ipv4Servers: [{
* hostnameIp: "2.2.2.2",
* vpnId: 1,
* sourceInterface: "e1",
* loggingLevel: "information",
* enableTls: true,
* customProfile: true,
* profile: "PROF1",
* }],
* ipv6Servers: [{
* hostnameIp: "2001::1",
* vpnId: 1,
* sourceInterface: "e1",
* loggingLevel: "information",
* enableTls: true,
* customProfile: true,
* profile: "PROF1",
* }],
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* ```sh
* $ pulumi import sdwan:index/ciscoLoggingFeatureTemplate:CiscoLoggingFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd"
* ```
*/
class CiscoLoggingFeatureTemplate extends pulumi.CustomResource {
/**
* Get an existing CiscoLoggingFeatureTemplate 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 CiscoLoggingFeatureTemplate(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of CiscoLoggingFeatureTemplate. 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'] === CiscoLoggingFeatureTemplate.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["description"] = state?.description;
resourceInputs["deviceTypes"] = state?.deviceTypes;
resourceInputs["diskLogging"] = state?.diskLogging;
resourceInputs["diskLoggingVariable"] = state?.diskLoggingVariable;
resourceInputs["ipv4Servers"] = state?.ipv4Servers;
resourceInputs["ipv6Servers"] = state?.ipv6Servers;
resourceInputs["logRotations"] = state?.logRotations;
resourceInputs["logRotationsVariable"] = state?.logRotationsVariable;
resourceInputs["maxSize"] = state?.maxSize;
resourceInputs["maxSizeVariable"] = state?.maxSizeVariable;
resourceInputs["name"] = state?.name;
resourceInputs["templateType"] = state?.templateType;
resourceInputs["tlsProfiles"] = state?.tlsProfiles;
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["description"] = args?.description;
resourceInputs["deviceTypes"] = args?.deviceTypes;
resourceInputs["diskLogging"] = args?.diskLogging;
resourceInputs["diskLoggingVariable"] = args?.diskLoggingVariable;
resourceInputs["ipv4Servers"] = args?.ipv4Servers;
resourceInputs["ipv6Servers"] = args?.ipv6Servers;
resourceInputs["logRotations"] = args?.logRotations;
resourceInputs["logRotationsVariable"] = args?.logRotationsVariable;
resourceInputs["maxSize"] = args?.maxSize;
resourceInputs["maxSizeVariable"] = args?.maxSizeVariable;
resourceInputs["name"] = args?.name;
resourceInputs["tlsProfiles"] = args?.tlsProfiles;
resourceInputs["templateType"] = undefined /*out*/;
resourceInputs["version"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(CiscoLoggingFeatureTemplate.__pulumiType, name, resourceInputs, opts);
}
}
exports.CiscoLoggingFeatureTemplate = CiscoLoggingFeatureTemplate;
/** @internal */
CiscoLoggingFeatureTemplate.__pulumiType = 'sdwan:index/ciscoLoggingFeatureTemplate:CiscoLoggingFeatureTemplate';
//# sourceMappingURL=ciscoLoggingFeatureTemplate.js.map