UNPKG

@pulumi/sdwan

Version:

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

109 lines 5.78 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.ObjectGroupPolicyDefinition = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource can manage a Object Group Policy Definition . * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdwan from "@pulumi/sdwan"; * * const example = new sdwan.ObjectGroupPolicyDefinition("example", { * name: "Example", * description: "My description", * ipv4Prefix: "10.1.1.0/24", * fqdn: "cisco.com", * port: "80-90", * geoLocation: "AF", * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import sdwan:index/objectGroupPolicyDefinition:ObjectGroupPolicyDefinition example "f6b2c44c-693c-4763-b010-895aa3d236bd" * ``` */ class ObjectGroupPolicyDefinition extends pulumi.CustomResource { /** * Get an existing ObjectGroupPolicyDefinition 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 ObjectGroupPolicyDefinition(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ObjectGroupPolicyDefinition. 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'] === ObjectGroupPolicyDefinition.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["dataFqdnPrefixListId"] = state ? state.dataFqdnPrefixListId : undefined; resourceInputs["dataFqdnPrefixListVersion"] = state ? state.dataFqdnPrefixListVersion : undefined; resourceInputs["dataIpv4PrefixListId"] = state ? state.dataIpv4PrefixListId : undefined; resourceInputs["dataIpv4PrefixListVersion"] = state ? state.dataIpv4PrefixListVersion : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["fqdn"] = state ? state.fqdn : undefined; resourceInputs["geoLocation"] = state ? state.geoLocation : undefined; resourceInputs["geoLocationListId"] = state ? state.geoLocationListId : undefined; resourceInputs["geoLocationListVersion"] = state ? state.geoLocationListVersion : undefined; resourceInputs["ipv4Prefix"] = state ? state.ipv4Prefix : undefined; resourceInputs["ipv4PrefixVariable"] = state ? state.ipv4PrefixVariable : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["port"] = state ? state.port : undefined; resourceInputs["portListId"] = state ? state.portListId : undefined; resourceInputs["portListVersion"] = state ? state.portListVersion : 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["dataFqdnPrefixListId"] = args ? args.dataFqdnPrefixListId : undefined; resourceInputs["dataFqdnPrefixListVersion"] = args ? args.dataFqdnPrefixListVersion : undefined; resourceInputs["dataIpv4PrefixListId"] = args ? args.dataIpv4PrefixListId : undefined; resourceInputs["dataIpv4PrefixListVersion"] = args ? args.dataIpv4PrefixListVersion : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["fqdn"] = args ? args.fqdn : undefined; resourceInputs["geoLocation"] = args ? args.geoLocation : undefined; resourceInputs["geoLocationListId"] = args ? args.geoLocationListId : undefined; resourceInputs["geoLocationListVersion"] = args ? args.geoLocationListVersion : undefined; resourceInputs["ipv4Prefix"] = args ? args.ipv4Prefix : undefined; resourceInputs["ipv4PrefixVariable"] = args ? args.ipv4PrefixVariable : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["port"] = args ? args.port : undefined; resourceInputs["portListId"] = args ? args.portListId : undefined; resourceInputs["portListVersion"] = args ? args.portListVersion : undefined; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ObjectGroupPolicyDefinition.__pulumiType, name, resourceInputs, opts); } } exports.ObjectGroupPolicyDefinition = ObjectGroupPolicyDefinition; /** @internal */ ObjectGroupPolicyDefinition.__pulumiType = 'sdwan:index/objectGroupPolicyDefinition:ObjectGroupPolicyDefinition'; //# sourceMappingURL=objectGroupPolicyDefinition.js.map