@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
111 lines • 6.37 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.AuthenticationRule = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Retrieves a config item.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* const example = new scm.AuthenticationRule("example", {});
* ```
*/
class AuthenticationRule extends pulumi.CustomResource {
/**
* Get an existing AuthenticationRule 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 AuthenticationRule(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of AuthenticationRule. 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'] === AuthenticationRule.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["authenticationEnforcement"] = state ? state.authenticationEnforcement : undefined;
resourceInputs["categories"] = state ? state.categories : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["destinationHips"] = state ? state.destinationHips : undefined;
resourceInputs["destinations"] = state ? state.destinations : undefined;
resourceInputs["device"] = state ? state.device : undefined;
resourceInputs["disabled"] = state ? state.disabled : undefined;
resourceInputs["folder"] = state ? state.folder : undefined;
resourceInputs["froms"] = state ? state.froms : undefined;
resourceInputs["groupTag"] = state ? state.groupTag : undefined;
resourceInputs["hipProfiles"] = state ? state.hipProfiles : undefined;
resourceInputs["logAuthenticationTimeout"] = state ? state.logAuthenticationTimeout : undefined;
resourceInputs["logSetting"] = state ? state.logSetting : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["negateDestination"] = state ? state.negateDestination : undefined;
resourceInputs["negateSource"] = state ? state.negateSource : undefined;
resourceInputs["position"] = state ? state.position : undefined;
resourceInputs["services"] = state ? state.services : undefined;
resourceInputs["snippet"] = state ? state.snippet : undefined;
resourceInputs["sourceHips"] = state ? state.sourceHips : undefined;
resourceInputs["sourceUsers"] = state ? state.sourceUsers : undefined;
resourceInputs["sources"] = state ? state.sources : undefined;
resourceInputs["tags"] = state ? state.tags : undefined;
resourceInputs["tfid"] = state ? state.tfid : undefined;
resourceInputs["timeout"] = state ? state.timeout : undefined;
resourceInputs["tos"] = state ? state.tos : undefined;
}
else {
const args = argsOrState;
resourceInputs["authenticationEnforcement"] = args ? args.authenticationEnforcement : undefined;
resourceInputs["categories"] = args ? args.categories : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["destinationHips"] = args ? args.destinationHips : undefined;
resourceInputs["destinations"] = args ? args.destinations : undefined;
resourceInputs["device"] = args ? args.device : undefined;
resourceInputs["disabled"] = args ? args.disabled : undefined;
resourceInputs["folder"] = args ? args.folder : undefined;
resourceInputs["froms"] = args ? args.froms : undefined;
resourceInputs["groupTag"] = args ? args.groupTag : undefined;
resourceInputs["hipProfiles"] = args ? args.hipProfiles : undefined;
resourceInputs["logAuthenticationTimeout"] = args ? args.logAuthenticationTimeout : undefined;
resourceInputs["logSetting"] = args ? args.logSetting : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["negateDestination"] = args ? args.negateDestination : undefined;
resourceInputs["negateSource"] = args ? args.negateSource : undefined;
resourceInputs["position"] = args ? args.position : undefined;
resourceInputs["services"] = args ? args.services : undefined;
resourceInputs["snippet"] = args ? args.snippet : undefined;
resourceInputs["sourceHips"] = args ? args.sourceHips : undefined;
resourceInputs["sourceUsers"] = args ? args.sourceUsers : undefined;
resourceInputs["sources"] = args ? args.sources : undefined;
resourceInputs["tags"] = args ? args.tags : undefined;
resourceInputs["timeout"] = args ? args.timeout : undefined;
resourceInputs["tos"] = args ? args.tos : undefined;
resourceInputs["tfid"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(AuthenticationRule.__pulumiType, name, resourceInputs, opts);
}
}
exports.AuthenticationRule = AuthenticationRule;
/** @internal */
AuthenticationRule.__pulumiType = 'scm:index/authenticationRule:AuthenticationRule';
//# sourceMappingURL=authenticationRule.js.map