@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
151 lines • 5.48 kB
JavaScript
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Profile = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure VoIP profiles.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.voip.Profile("trname", {
* comment: "test",
* sccp: {
* blockMcast: "disable",
* logCallSummary: "disable",
* logViolations: "disable",
* maxCalls: 0,
* status: "enable",
* verifyHeader: "disable",
* },
* sip: {
* ackRate: 0,
* byeRate: 0,
* callKeepalive: 0,
* cancelRate: 0,
* contactFixup: "enable",
* hntRestrictSourceIp: "disable",
* hostedNatTraversal: "disable",
* infoRate: 0,
* inviteRate: 0,
* ipsRtp: "enable",
* logCallSummary: "enable",
* logViolations: "disable",
* maxBodyLength: 0,
* maxDialogs: 0,
* maxIdleDialogs: 0,
* maxLineLength: 998,
* messageRate: 0,
* natTrace: "enable",
* noSdpFixup: "disable",
* notifyRate: 0,
* openContactPinhole: "enable",
* openRecordRoutePinhole: "enable",
* openRegisterPinhole: "enable",
* openViaPinhole: "disable",
* optionsRate: 0,
* prackRate: 0,
* preserveOverride: "disable",
* provisionalInviteExpiryTime: 210,
* publishRate: 0,
* referRate: 0,
* registerContactTrace: "disable",
* registerRate: 0,
* rfc2543Branch: "disable",
* rtp: "enable",
* sslAlgorithm: "high",
* sslClientRenegotiation: "allow",
* sslMaxVersion: "tls-1.2",
* sslMinVersion: "tls-1.1",
* sslMode: "off",
* sslPfs: "allow",
* sslSendEmptyFrags: "enable",
* status: "enable",
* strictRegister: "enable",
* subscribeRate: 0,
* unknownHeader: "pass",
* updateRate: 0,
* },
* });
* ```
*
* ## Import
*
* Voip Profile can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:voip/profile:Profile labelname {{name}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:voip/profile:Profile labelname {{name}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Profile extends pulumi.CustomResource {
/**
* Get an existing Profile 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 Profile(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Profile. 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'] === Profile.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["comment"] = state ? state.comment : undefined;
resourceInputs["featureSet"] = state ? state.featureSet : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["msrp"] = state ? state.msrp : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["sccp"] = state ? state.sccp : undefined;
resourceInputs["sip"] = state ? state.sip : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
resourceInputs["comment"] = args ? args.comment : undefined;
resourceInputs["featureSet"] = args ? args.featureSet : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["msrp"] = args ? args.msrp : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["sccp"] = args ? args.sccp : undefined;
resourceInputs["sip"] = args ? args.sip : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Profile.__pulumiType, name, resourceInputs, opts);
}
}
exports.Profile = Profile;
/** @internal */
Profile.__pulumiType = 'fortios:voip/profile:Profile';
//# sourceMappingURL=profile.js.map
;