"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.grantInstancesOutput = exports.grantInstances = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of cen grant instances
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const foo = volcengine.cen.getGrantInstances({
 *     instanceId: "vpc-2bysvq1xx543k2dx0eeul****",
 *     instanceRegionId: "cn-beijing",
 *     instanceType: "VPC",
 * });
 * ```
 */
/** @deprecated volcengine.cen.GrantInstances has been deprecated in favor of volcengine.cen.getGrantInstances */
function grantInstances(args, opts) {
    pulumi.log.warn("grantInstances is deprecated: volcengine.cen.GrantInstances has been deprecated in favor of volcengine.cen.getGrantInstances");
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:cen/grantInstances:GrantInstances", {
        "instanceId": args.instanceId,
        "instanceRegionId": args.instanceRegionId,
        "instanceType": args.instanceType,
        "outputFile": args.outputFile,
    }, opts);
}
exports.grantInstances = grantInstances;
/**
 * Use this data source to query detailed information of cen grant instances
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 *
 * const foo = volcengine.cen.getGrantInstances({
 *     instanceId: "vpc-2bysvq1xx543k2dx0eeul****",
 *     instanceRegionId: "cn-beijing",
 *     instanceType: "VPC",
 * });
 * ```
 */
/** @deprecated volcengine.cen.GrantInstances has been deprecated in favor of volcengine.cen.getGrantInstances */
function grantInstancesOutput(args, opts) {
    return pulumi.output(args).apply((a) => grantInstances(a, opts));
}
exports.grantInstancesOutput = grantInstancesOutput;
//# sourceMappingURL=grantInstances.js.map