"use strict";
// *** 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.Access = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Provides a resource to manage cloudfs access
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const foo1 = new volcengine.cloudfs.Access("foo1", {
 *     fsName: "tftest2",
 *     securityGroupId: "sg-rrv1klfg5s00v0x578mx14m",
 *     subnetId: "subnet-13fca1crr5d6o3n6nu46cyb5m",
 *     vpcRouteEnabled: false,
 * });
 * ```
 *
 * ## Import
 *
 * CloudFs Access can be imported using the FsName:AccessId, e.g.
 *
 * ```sh
 * $ pulumi import volcengine:cloudfs/access:Access default tfname:access-**rdgmedx3fow
 * ```
 */
class Access extends pulumi.CustomResource {
    /**
     * Get an existing Access 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 Access(name, state, Object.assign(Object.assign({}, opts), { id: id }));
    }
    /**
     * Returns true if the given object is an instance of Access.  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'] === Access.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["accessAccountId"] = state ? state.accessAccountId : undefined;
            resourceInputs["accessIamRole"] = state ? state.accessIamRole : undefined;
            resourceInputs["accessId"] = state ? state.accessId : undefined;
            resourceInputs["accessServiceName"] = state ? state.accessServiceName : undefined;
            resourceInputs["createdTime"] = state ? state.createdTime : undefined;
            resourceInputs["fsName"] = state ? state.fsName : undefined;
            resourceInputs["isDefault"] = state ? state.isDefault : undefined;
            resourceInputs["securityGroupId"] = state ? state.securityGroupId : undefined;
            resourceInputs["status"] = state ? state.status : undefined;
            resourceInputs["subnetId"] = state ? state.subnetId : undefined;
            resourceInputs["vpcId"] = state ? state.vpcId : undefined;
            resourceInputs["vpcRouteEnabled"] = state ? state.vpcRouteEnabled : undefined;
        }
        else {
            const args = argsOrState;
            if ((!args || args.fsName === undefined) && !opts.urn) {
                throw new Error("Missing required property 'fsName'");
            }
            if ((!args || args.securityGroupId === undefined) && !opts.urn) {
                throw new Error("Missing required property 'securityGroupId'");
            }
            if ((!args || args.subnetId === undefined) && !opts.urn) {
                throw new Error("Missing required property 'subnetId'");
            }
            resourceInputs["accessAccountId"] = args ? args.accessAccountId : undefined;
            resourceInputs["accessIamRole"] = args ? args.accessIamRole : undefined;
            resourceInputs["fsName"] = args ? args.fsName : undefined;
            resourceInputs["securityGroupId"] = args ? args.securityGroupId : undefined;
            resourceInputs["subnetId"] = args ? args.subnetId : undefined;
            resourceInputs["vpcRouteEnabled"] = args ? args.vpcRouteEnabled : undefined;
            resourceInputs["accessId"] = undefined /*out*/;
            resourceInputs["accessServiceName"] = undefined /*out*/;
            resourceInputs["createdTime"] = undefined /*out*/;
            resourceInputs["isDefault"] = undefined /*out*/;
            resourceInputs["status"] = undefined /*out*/;
            resourceInputs["vpcId"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(Access.__pulumiType, name, resourceInputs, opts);
    }
}
exports.Access = Access;
/** @internal */
Access.__pulumiType = 'volcengine:cloudfs/access:Access';
//# sourceMappingURL=access.js.map