@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
93 lines • 4.09 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.AuthenticationPortal = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* AuthenticationPortal resource
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* const exampleConfiguration = new scm.AuthenticationPortal("example_configuration", {
* redirectHost: "192.168.255.254",
* folder: "All",
* authenticationProfile: "test_auth_profile",
* certificateProfile: "EDL-Hosting-Service-Profile",
* tlsServiceProfile: "test_svc_profile",
* gpUdpPort: 12,
* idleTimer: 12,
* timer: 10,
* });
* ```
*/
class AuthenticationPortal extends pulumi.CustomResource {
/**
* Get an existing AuthenticationPortal 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 AuthenticationPortal(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of AuthenticationPortal. 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'] === AuthenticationPortal.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["authenticationProfile"] = state?.authenticationProfile;
resourceInputs["certificateProfile"] = state?.certificateProfile;
resourceInputs["device"] = state?.device;
resourceInputs["folder"] = state?.folder;
resourceInputs["gpUdpPort"] = state?.gpUdpPort;
resourceInputs["idleTimer"] = state?.idleTimer;
resourceInputs["redirectHost"] = state?.redirectHost;
resourceInputs["snippet"] = state?.snippet;
resourceInputs["tfid"] = state?.tfid;
resourceInputs["timer"] = state?.timer;
resourceInputs["tlsServiceProfile"] = state?.tlsServiceProfile;
}
else {
const args = argsOrState;
if (args?.redirectHost === undefined && !opts.urn) {
throw new Error("Missing required property 'redirectHost'");
}
resourceInputs["authenticationProfile"] = args?.authenticationProfile;
resourceInputs["certificateProfile"] = args?.certificateProfile;
resourceInputs["device"] = args?.device;
resourceInputs["folder"] = args?.folder;
resourceInputs["gpUdpPort"] = args?.gpUdpPort;
resourceInputs["idleTimer"] = args?.idleTimer;
resourceInputs["redirectHost"] = args?.redirectHost;
resourceInputs["snippet"] = args?.snippet;
resourceInputs["timer"] = args?.timer;
resourceInputs["tlsServiceProfile"] = args?.tlsServiceProfile;
resourceInputs["tfid"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(AuthenticationPortal.__pulumiType, name, resourceInputs, opts);
}
}
exports.AuthenticationPortal = AuthenticationPortal;
/** @internal */
AuthenticationPortal.__pulumiType = 'scm:index/authenticationPortal:AuthenticationPortal';
//# sourceMappingURL=authenticationPortal.js.map