"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.attachInstancesOutput = exports.attachInstances = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of cen attach instances
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
 *     vpcName: "acc-test-vpc",
 *     cidrBlock: "172.16.0.0/16",
 * });
 * const fooCen = new volcengine.cen.Cen("fooCen", {
 *     cenName: "acc-test-cen",
 *     description: "acc-test",
 *     projectName: "default",
 *     tags: [{
 *         key: "k1",
 *         value: "v1",
 *     }],
 * });
 * const fooAttachInstance = new volcengine.cen.AttachInstance("fooAttachInstance", {
 *     cenId: fooCen.id,
 *     instanceId: fooVpc.id,
 *     instanceRegionId: "cn-beijing",
 *     instanceType: "VPC",
 * });
 * const fooAttachInstances = volcengine.cen.getAttachInstancesOutput({
 *     cenId: fooAttachInstance.cenId,
 * });
 * ```
 */
/** @deprecated volcengine.cen.AttachInstances has been deprecated in favor of volcengine.cen.getAttachInstances */
function attachInstances(args, opts) {
    pulumi.log.warn("attachInstances is deprecated: volcengine.cen.AttachInstances has been deprecated in favor of volcengine.cen.getAttachInstances");
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:cen/attachInstances:AttachInstances", {
        "cenId": args.cenId,
        "instanceId": args.instanceId,
        "instanceRegionId": args.instanceRegionId,
        "instanceType": args.instanceType,
        "outputFile": args.outputFile,
    }, opts);
}
exports.attachInstances = attachInstances;
/**
 * Use this data source to query detailed information of cen attach instances
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
 *     vpcName: "acc-test-vpc",
 *     cidrBlock: "172.16.0.0/16",
 * });
 * const fooCen = new volcengine.cen.Cen("fooCen", {
 *     cenName: "acc-test-cen",
 *     description: "acc-test",
 *     projectName: "default",
 *     tags: [{
 *         key: "k1",
 *         value: "v1",
 *     }],
 * });
 * const fooAttachInstance = new volcengine.cen.AttachInstance("fooAttachInstance", {
 *     cenId: fooCen.id,
 *     instanceId: fooVpc.id,
 *     instanceRegionId: "cn-beijing",
 *     instanceType: "VPC",
 * });
 * const fooAttachInstances = volcengine.cen.getAttachInstancesOutput({
 *     cenId: fooAttachInstance.cenId,
 * });
 * ```
 */
/** @deprecated volcengine.cen.AttachInstances has been deprecated in favor of volcengine.cen.getAttachInstances */
function attachInstancesOutput(args, opts) {
    return pulumi.output(args).apply((a) => attachInstances(a, opts));
}
exports.attachInstancesOutput = attachInstancesOutput;
//# sourceMappingURL=attachInstances.js.map