@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
112 lines • 4.32 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.RadiusServerProfile = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* RadiusServerProfile resource
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* const chapRadiusProfile = new scm.RadiusServerProfile("chap_radius_profile", {
* name: "CHAP_only_rsp_1",
* folder: "All",
* retries: 5,
* timeout: 60,
* protocol: {
* chap: {},
* },
* servers: [{
* name: "Chap_Server_Primary",
* ipAddress: "10.1.1.10",
* port: 1812,
* secret: "-AQ==lhyuV6U/j9Trb9JL9L0UoBecg9Y=kTOWntGhZ1KFyLD+etKQ3g==",
* }],
* });
* const papRadiusProfile = new scm.RadiusServerProfile("pap_radius_profile", {
* name: "pap_only_rsp_1",
* folder: "All",
* retries: 5,
* timeout: 60,
* protocol: {
* pap: {},
* },
* servers: [{
* name: "pap_Server_Primary",
* ipAddress: "10.1.1.10",
* port: 1812,
* secret: "-AQ==lhyuV6U/j9Trb9JL9L0UoBecg9Y=kTOWntGhZ1KFyLD+etKQ3g==",
* }],
* });
* ```
*/
class RadiusServerProfile extends pulumi.CustomResource {
/**
* Get an existing RadiusServerProfile 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 RadiusServerProfile(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of RadiusServerProfile. 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'] === RadiusServerProfile.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["device"] = state?.device;
resourceInputs["folder"] = state?.folder;
resourceInputs["name"] = state?.name;
resourceInputs["protocol"] = state?.protocol;
resourceInputs["retries"] = state?.retries;
resourceInputs["servers"] = state?.servers;
resourceInputs["snippet"] = state?.snippet;
resourceInputs["tfid"] = state?.tfid;
resourceInputs["timeout"] = state?.timeout;
}
else {
const args = argsOrState;
if (args?.protocol === undefined && !opts.urn) {
throw new Error("Missing required property 'protocol'");
}
if (args?.servers === undefined && !opts.urn) {
throw new Error("Missing required property 'servers'");
}
resourceInputs["device"] = args?.device;
resourceInputs["folder"] = args?.folder;
resourceInputs["name"] = args?.name;
resourceInputs["protocol"] = args?.protocol;
resourceInputs["retries"] = args?.retries;
resourceInputs["servers"] = args?.servers;
resourceInputs["snippet"] = args?.snippet;
resourceInputs["timeout"] = args?.timeout;
resourceInputs["tfid"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(RadiusServerProfile.__pulumiType, name, resourceInputs, opts);
}
}
exports.RadiusServerProfile = RadiusServerProfile;
/** @internal */
RadiusServerProfile.__pulumiType = 'scm:index/radiusServerProfile:RadiusServerProfile';
//# sourceMappingURL=radiusServerProfile.js.map