@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
97 lines • 5.22 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.UserProvisioning = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Provides a resource to manage cloud identity user provisioning
* ## Import
*
* CloudIdentityUserProvisioning can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:cloud_identity/userProvisioning:UserProvisioning default resource_id
* ```
*/
class UserProvisioning extends pulumi.CustomResource {
/**
* Get an existing UserProvisioning 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 UserProvisioning(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of UserProvisioning. 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'] === UserProvisioning.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["deletionStrategy"] = state ? state.deletionStrategy : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["duplicationStrategy"] = state ? state.duplicationStrategy : undefined;
resourceInputs["duplicationSuffix"] = state ? state.duplicationSuffix : undefined;
resourceInputs["identitySourceStrategy"] = state ? state.identitySourceStrategy : undefined;
resourceInputs["policyName"] = state ? state.policyName : undefined;
resourceInputs["principalId"] = state ? state.principalId : undefined;
resourceInputs["principalName"] = state ? state.principalName : undefined;
resourceInputs["principalType"] = state ? state.principalType : undefined;
resourceInputs["provisionStatus"] = state ? state.provisionStatus : undefined;
resourceInputs["targetId"] = state ? state.targetId : undefined;
}
else {
const args = argsOrState;
if ((!args || args.deletionStrategy === undefined) && !opts.urn) {
throw new Error("Missing required property 'deletionStrategy'");
}
if ((!args || args.duplicationStrategy === undefined) && !opts.urn) {
throw new Error("Missing required property 'duplicationStrategy'");
}
if ((!args || args.identitySourceStrategy === undefined) && !opts.urn) {
throw new Error("Missing required property 'identitySourceStrategy'");
}
if ((!args || args.principalId === undefined) && !opts.urn) {
throw new Error("Missing required property 'principalId'");
}
if ((!args || args.principalType === undefined) && !opts.urn) {
throw new Error("Missing required property 'principalType'");
}
if ((!args || args.targetId === undefined) && !opts.urn) {
throw new Error("Missing required property 'targetId'");
}
resourceInputs["deletionStrategy"] = args ? args.deletionStrategy : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["duplicationStrategy"] = args ? args.duplicationStrategy : undefined;
resourceInputs["duplicationSuffix"] = args ? args.duplicationSuffix : undefined;
resourceInputs["identitySourceStrategy"] = args ? args.identitySourceStrategy : undefined;
resourceInputs["policyName"] = args ? args.policyName : undefined;
resourceInputs["principalId"] = args ? args.principalId : undefined;
resourceInputs["principalType"] = args ? args.principalType : undefined;
resourceInputs["targetId"] = args ? args.targetId : undefined;
resourceInputs["principalName"] = undefined /*out*/;
resourceInputs["provisionStatus"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(UserProvisioning.__pulumiType, name, resourceInputs, opts);
}
}
exports.UserProvisioning = UserProvisioning;
/** @internal */
UserProvisioning.__pulumiType = 'volcengine:cloud_identity/userProvisioning:UserProvisioning';
//# sourceMappingURL=userProvisioning.js.map