UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

90 lines 3.09 kB
"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.getAttachInstancesOutput = exports.getAttachInstances = 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, * }); * ``` */ function getAttachInstances(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("volcengine:cen/getAttachInstances:getAttachInstances", { "cenId": args.cenId, "instanceId": args.instanceId, "instanceRegionId": args.instanceRegionId, "instanceType": args.instanceType, "outputFile": args.outputFile, }, opts); } exports.getAttachInstances = getAttachInstances; /** * 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, * }); * ``` */ function getAttachInstancesOutput(args, opts) { return pulumi.output(args).apply((a) => getAttachInstances(a, opts)); } exports.getAttachInstancesOutput = getAttachInstancesOutput; //# sourceMappingURL=getAttachInstances.js.map