UNPKG

@pulumi/sdwan

Version:

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

115 lines 5.7 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.LocalizedPolicy = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource can manage a Localized Policy . * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdwan from "@pulumi/sdwan"; * * const example = new sdwan.LocalizedPolicy("example", { * name: "Example", * description: "My description", * flowVisibilityIpv4: true, * flowVisibilityIpv6: true, * applicationVisibilityIpv4: true, * applicationVisibilityIpv6: true, * cloudQos: true, * cloudQosServiceSide: true, * implicitAclLogging: true, * logFrequency: 1000, * ipv4VisibilityCacheEntries: 1000, * ipv6VisibilityCacheEntries: 1000, * definitions: [{ * id: "2081c2f4-3f9f-4fee-8078-dcc8904e368d", * type: "acl", * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import sdwan:index/localizedPolicy:LocalizedPolicy example "f6b2c44c-693c-4763-b010-895aa3d236bd" * ``` */ class LocalizedPolicy extends pulumi.CustomResource { /** * Get an existing LocalizedPolicy 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 LocalizedPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of LocalizedPolicy. 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'] === LocalizedPolicy.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["applicationVisibilityIpv4"] = state ? state.applicationVisibilityIpv4 : undefined; resourceInputs["applicationVisibilityIpv6"] = state ? state.applicationVisibilityIpv6 : undefined; resourceInputs["cloudQos"] = state ? state.cloudQos : undefined; resourceInputs["cloudQosServiceSide"] = state ? state.cloudQosServiceSide : undefined; resourceInputs["definitions"] = state ? state.definitions : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["flowVisibilityIpv4"] = state ? state.flowVisibilityIpv4 : undefined; resourceInputs["flowVisibilityIpv6"] = state ? state.flowVisibilityIpv6 : undefined; resourceInputs["implicitAclLogging"] = state ? state.implicitAclLogging : undefined; resourceInputs["ipv4VisibilityCacheEntries"] = state ? state.ipv4VisibilityCacheEntries : undefined; resourceInputs["ipv6VisibilityCacheEntries"] = state ? state.ipv6VisibilityCacheEntries : undefined; resourceInputs["logFrequency"] = state ? state.logFrequency : undefined; resourceInputs["name"] = state ? state.name : 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'"); } resourceInputs["applicationVisibilityIpv4"] = args ? args.applicationVisibilityIpv4 : undefined; resourceInputs["applicationVisibilityIpv6"] = args ? args.applicationVisibilityIpv6 : undefined; resourceInputs["cloudQos"] = args ? args.cloudQos : undefined; resourceInputs["cloudQosServiceSide"] = args ? args.cloudQosServiceSide : undefined; resourceInputs["definitions"] = args ? args.definitions : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["flowVisibilityIpv4"] = args ? args.flowVisibilityIpv4 : undefined; resourceInputs["flowVisibilityIpv6"] = args ? args.flowVisibilityIpv6 : undefined; resourceInputs["implicitAclLogging"] = args ? args.implicitAclLogging : undefined; resourceInputs["ipv4VisibilityCacheEntries"] = args ? args.ipv4VisibilityCacheEntries : undefined; resourceInputs["ipv6VisibilityCacheEntries"] = args ? args.ipv6VisibilityCacheEntries : undefined; resourceInputs["logFrequency"] = args ? args.logFrequency : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(LocalizedPolicy.__pulumiType, name, resourceInputs, opts); } } exports.LocalizedPolicy = LocalizedPolicy; /** @internal */ LocalizedPolicy.__pulumiType = 'sdwan:index/localizedPolicy:LocalizedPolicy'; //# sourceMappingURL=localizedPolicy.js.map