@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
218 lines • 14 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.Sdnconnector = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure connection to SDN Connector.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.system.Sdnconnector("trname", {
* azureRegion: "global",
* haStatus: "disable",
* password: "deWdf321ds",
* server: "1.1.1.1",
* serverPort: 3,
* status: "disable",
* type: "aci",
* updateInterval: 60,
* useMetadataIam: "disable",
* username: "sg",
* });
* ```
*
* ## Import
*
* System SdnConnector can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:system/sdnconnector:Sdnconnector labelname {{name}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:system/sdnconnector:Sdnconnector labelname {{name}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Sdnconnector extends pulumi.CustomResource {
/**
* Get an existing Sdnconnector 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 Sdnconnector(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Sdnconnector. 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'] === Sdnconnector.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["accessKey"] = state ? state.accessKey : undefined;
resourceInputs["altResourceIp"] = state ? state.altResourceIp : undefined;
resourceInputs["apiKey"] = state ? state.apiKey : undefined;
resourceInputs["azureRegion"] = state ? state.azureRegion : undefined;
resourceInputs["clientId"] = state ? state.clientId : undefined;
resourceInputs["clientSecret"] = state ? state.clientSecret : undefined;
resourceInputs["compartmentId"] = state ? state.compartmentId : undefined;
resourceInputs["compartmentLists"] = state ? state.compartmentLists : undefined;
resourceInputs["computeGeneration"] = state ? state.computeGeneration : undefined;
resourceInputs["domain"] = state ? state.domain : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["externalAccountLists"] = state ? state.externalAccountLists : undefined;
resourceInputs["externalIps"] = state ? state.externalIps : undefined;
resourceInputs["forwardingRules"] = state ? state.forwardingRules : undefined;
resourceInputs["gcpProject"] = state ? state.gcpProject : undefined;
resourceInputs["gcpProjectLists"] = state ? state.gcpProjectLists : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["groupName"] = state ? state.groupName : undefined;
resourceInputs["haStatus"] = state ? state.haStatus : undefined;
resourceInputs["ibmRegion"] = state ? state.ibmRegion : undefined;
resourceInputs["ibmRegionGen1"] = state ? state.ibmRegionGen1 : undefined;
resourceInputs["ibmRegionGen2"] = state ? state.ibmRegionGen2 : undefined;
resourceInputs["keyPasswd"] = state ? state.keyPasswd : undefined;
resourceInputs["loginEndpoint"] = state ? state.loginEndpoint : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["nics"] = state ? state.nics : undefined;
resourceInputs["ociCert"] = state ? state.ociCert : undefined;
resourceInputs["ociFingerprint"] = state ? state.ociFingerprint : undefined;
resourceInputs["ociRegion"] = state ? state.ociRegion : undefined;
resourceInputs["ociRegionLists"] = state ? state.ociRegionLists : undefined;
resourceInputs["ociRegionType"] = state ? state.ociRegionType : undefined;
resourceInputs["password"] = state ? state.password : undefined;
resourceInputs["privateKey"] = state ? state.privateKey : undefined;
resourceInputs["proxy"] = state ? state.proxy : undefined;
resourceInputs["region"] = state ? state.region : undefined;
resourceInputs["resourceGroup"] = state ? state.resourceGroup : undefined;
resourceInputs["resourceUrl"] = state ? state.resourceUrl : undefined;
resourceInputs["routeTables"] = state ? state.routeTables : undefined;
resourceInputs["routes"] = state ? state.routes : undefined;
resourceInputs["secretKey"] = state ? state.secretKey : undefined;
resourceInputs["secretToken"] = state ? state.secretToken : undefined;
resourceInputs["server"] = state ? state.server : undefined;
resourceInputs["serverCaCert"] = state ? state.serverCaCert : undefined;
resourceInputs["serverCert"] = state ? state.serverCert : undefined;
resourceInputs["serverLists"] = state ? state.serverLists : undefined;
resourceInputs["serverPort"] = state ? state.serverPort : undefined;
resourceInputs["serviceAccount"] = state ? state.serviceAccount : undefined;
resourceInputs["status"] = state ? state.status : undefined;
resourceInputs["subscriptionId"] = state ? state.subscriptionId : undefined;
resourceInputs["tenantId"] = state ? state.tenantId : undefined;
resourceInputs["type"] = state ? state.type : undefined;
resourceInputs["updateInterval"] = state ? state.updateInterval : undefined;
resourceInputs["useMetadataIam"] = state ? state.useMetadataIam : undefined;
resourceInputs["userId"] = state ? state.userId : undefined;
resourceInputs["username"] = state ? state.username : undefined;
resourceInputs["vcenterPassword"] = state ? state.vcenterPassword : undefined;
resourceInputs["vcenterServer"] = state ? state.vcenterServer : undefined;
resourceInputs["vcenterUsername"] = state ? state.vcenterUsername : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
resourceInputs["verifyCertificate"] = state ? state.verifyCertificate : undefined;
resourceInputs["vpcId"] = state ? state.vpcId : undefined;
}
else {
const args = argsOrState;
if ((!args || args.status === undefined) && !opts.urn) {
throw new Error("Missing required property 'status'");
}
if ((!args || args.type === undefined) && !opts.urn) {
throw new Error("Missing required property 'type'");
}
resourceInputs["accessKey"] = (args === null || args === void 0 ? void 0 : args.accessKey) ? pulumi.secret(args.accessKey) : undefined;
resourceInputs["altResourceIp"] = args ? args.altResourceIp : undefined;
resourceInputs["apiKey"] = (args === null || args === void 0 ? void 0 : args.apiKey) ? pulumi.secret(args.apiKey) : undefined;
resourceInputs["azureRegion"] = args ? args.azureRegion : undefined;
resourceInputs["clientId"] = args ? args.clientId : undefined;
resourceInputs["clientSecret"] = (args === null || args === void 0 ? void 0 : args.clientSecret) ? pulumi.secret(args.clientSecret) : undefined;
resourceInputs["compartmentId"] = args ? args.compartmentId : undefined;
resourceInputs["compartmentLists"] = args ? args.compartmentLists : undefined;
resourceInputs["computeGeneration"] = args ? args.computeGeneration : undefined;
resourceInputs["domain"] = args ? args.domain : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["externalAccountLists"] = args ? args.externalAccountLists : undefined;
resourceInputs["externalIps"] = args ? args.externalIps : undefined;
resourceInputs["forwardingRules"] = args ? args.forwardingRules : undefined;
resourceInputs["gcpProject"] = args ? args.gcpProject : undefined;
resourceInputs["gcpProjectLists"] = args ? args.gcpProjectLists : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["groupName"] = args ? args.groupName : undefined;
resourceInputs["haStatus"] = args ? args.haStatus : undefined;
resourceInputs["ibmRegion"] = args ? args.ibmRegion : undefined;
resourceInputs["ibmRegionGen1"] = args ? args.ibmRegionGen1 : undefined;
resourceInputs["ibmRegionGen2"] = args ? args.ibmRegionGen2 : undefined;
resourceInputs["keyPasswd"] = (args === null || args === void 0 ? void 0 : args.keyPasswd) ? pulumi.secret(args.keyPasswd) : undefined;
resourceInputs["loginEndpoint"] = args ? args.loginEndpoint : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["nics"] = args ? args.nics : undefined;
resourceInputs["ociCert"] = args ? args.ociCert : undefined;
resourceInputs["ociFingerprint"] = args ? args.ociFingerprint : undefined;
resourceInputs["ociRegion"] = args ? args.ociRegion : undefined;
resourceInputs["ociRegionLists"] = args ? args.ociRegionLists : undefined;
resourceInputs["ociRegionType"] = args ? args.ociRegionType : undefined;
resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
resourceInputs["privateKey"] = (args === null || args === void 0 ? void 0 : args.privateKey) ? pulumi.secret(args.privateKey) : undefined;
resourceInputs["proxy"] = args ? args.proxy : undefined;
resourceInputs["region"] = args ? args.region : undefined;
resourceInputs["resourceGroup"] = args ? args.resourceGroup : undefined;
resourceInputs["resourceUrl"] = args ? args.resourceUrl : undefined;
resourceInputs["routeTables"] = args ? args.routeTables : undefined;
resourceInputs["routes"] = args ? args.routes : undefined;
resourceInputs["secretKey"] = (args === null || args === void 0 ? void 0 : args.secretKey) ? pulumi.secret(args.secretKey) : undefined;
resourceInputs["secretToken"] = (args === null || args === void 0 ? void 0 : args.secretToken) ? pulumi.secret(args.secretToken) : undefined;
resourceInputs["server"] = args ? args.server : undefined;
resourceInputs["serverCaCert"] = args ? args.serverCaCert : undefined;
resourceInputs["serverCert"] = args ? args.serverCert : undefined;
resourceInputs["serverLists"] = args ? args.serverLists : undefined;
resourceInputs["serverPort"] = args ? args.serverPort : undefined;
resourceInputs["serviceAccount"] = args ? args.serviceAccount : undefined;
resourceInputs["status"] = args ? args.status : undefined;
resourceInputs["subscriptionId"] = args ? args.subscriptionId : undefined;
resourceInputs["tenantId"] = args ? args.tenantId : undefined;
resourceInputs["type"] = args ? args.type : undefined;
resourceInputs["updateInterval"] = args ? args.updateInterval : undefined;
resourceInputs["useMetadataIam"] = args ? args.useMetadataIam : undefined;
resourceInputs["userId"] = args ? args.userId : undefined;
resourceInputs["username"] = args ? args.username : undefined;
resourceInputs["vcenterPassword"] = (args === null || args === void 0 ? void 0 : args.vcenterPassword) ? pulumi.secret(args.vcenterPassword) : undefined;
resourceInputs["vcenterServer"] = args ? args.vcenterServer : undefined;
resourceInputs["vcenterUsername"] = args ? args.vcenterUsername : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
resourceInputs["verifyCertificate"] = args ? args.verifyCertificate : undefined;
resourceInputs["vpcId"] = args ? args.vpcId : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["accessKey", "apiKey", "clientSecret", "keyPasswd", "password", "privateKey", "secretKey", "secretToken", "vcenterPassword"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(Sdnconnector.__pulumiType, name, resourceInputs, opts);
}
}
exports.Sdnconnector = Sdnconnector;
/** @internal */
Sdnconnector.__pulumiType = 'fortios:system/sdnconnector:Sdnconnector';
//# sourceMappingURL=sdnconnector.js.map
;