UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

148 lines 5.68 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.edgeNodePoolsOutput = exports.edgeNodePools = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to query detailed information of veecp edge node pools * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooZones = volcengine.ecs.getZones({}); * const fooVpc = new volcengine.vpc.Vpc("fooVpc", { * vpcName: "acc-test-project1", * cidrBlock: "172.16.0.0/16", * }); * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", { * subnetName: "acc-subnet-test-2", * cidrBlock: "172.16.0.0/24", * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id), * vpcId: fooVpc.id, * }); * const fooSecurityGroup = new volcengine.vpc.SecurityGroup("fooSecurityGroup", { * vpcId: fooVpc.id, * securityGroupName: "acc-test-security-group2", * }); * const fooCluster = new volcengine.veecp.Cluster("fooCluster", { * description: "created by terraform", * deleteProtectionEnabled: false, * profile: "Edge", * clusterConfig: { * subnetIds: [fooSubnet.id], * apiServerPublicAccessEnabled: true, * apiServerPublicAccessConfig: { * publicAccessNetworkConfig: { * billingType: "PostPaidByBandwidth", * bandwidth: 1, * }, * }, * resourcePublicAccessDefaultEnabled: true, * }, * podsConfig: { * podNetworkMode: "Flannel", * flannelConfig: { * podCidrs: ["172.22.224.0/20"], * maxPodsPerNode: 64, * }, * }, * servicesConfig: { * serviceCidrsv4s: ["172.30.0.0/18"], * }, * }); * const fooEdgeNodePool = new volcengine.veecp.EdgeNodePool("fooEdgeNodePool", {clusterId: fooCluster.id}); * const fooEdgeNodePools = volcengine.veecp.getEdgeNodePoolsOutput({ * clusterIds: [fooCluster.id], * ids: [fooEdgeNodePool.id], * }); * ``` */ /** @deprecated volcengine.veecp.EdgeNodePools has been deprecated in favor of volcengine.veecp.getEdgeNodePools */ function edgeNodePools(args, opts) { pulumi.log.warn("edgeNodePools is deprecated: volcengine.veecp.EdgeNodePools has been deprecated in favor of volcengine.veecp.getEdgeNodePools"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("volcengine:veecp/edgeNodePools:EdgeNodePools", { "addByAuto": args.addByAuto, "addByList": args.addByList, "addByScript": args.addByScript, "autoScalingEnabled": args.autoScalingEnabled, "clusterIds": args.clusterIds, "createClientToken": args.createClientToken, "ids": args.ids, "nameRegex": args.nameRegex, "nodePoolTypes": args.nodePoolTypes, "outputFile": args.outputFile, "statuses": args.statuses, "updateClientToken": args.updateClientToken, }, opts); } exports.edgeNodePools = edgeNodePools; /** * Use this data source to query detailed information of veecp edge node pools * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooZones = volcengine.ecs.getZones({}); * const fooVpc = new volcengine.vpc.Vpc("fooVpc", { * vpcName: "acc-test-project1", * cidrBlock: "172.16.0.0/16", * }); * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", { * subnetName: "acc-subnet-test-2", * cidrBlock: "172.16.0.0/24", * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id), * vpcId: fooVpc.id, * }); * const fooSecurityGroup = new volcengine.vpc.SecurityGroup("fooSecurityGroup", { * vpcId: fooVpc.id, * securityGroupName: "acc-test-security-group2", * }); * const fooCluster = new volcengine.veecp.Cluster("fooCluster", { * description: "created by terraform", * deleteProtectionEnabled: false, * profile: "Edge", * clusterConfig: { * subnetIds: [fooSubnet.id], * apiServerPublicAccessEnabled: true, * apiServerPublicAccessConfig: { * publicAccessNetworkConfig: { * billingType: "PostPaidByBandwidth", * bandwidth: 1, * }, * }, * resourcePublicAccessDefaultEnabled: true, * }, * podsConfig: { * podNetworkMode: "Flannel", * flannelConfig: { * podCidrs: ["172.22.224.0/20"], * maxPodsPerNode: 64, * }, * }, * servicesConfig: { * serviceCidrsv4s: ["172.30.0.0/18"], * }, * }); * const fooEdgeNodePool = new volcengine.veecp.EdgeNodePool("fooEdgeNodePool", {clusterId: fooCluster.id}); * const fooEdgeNodePools = volcengine.veecp.getEdgeNodePoolsOutput({ * clusterIds: [fooCluster.id], * ids: [fooEdgeNodePool.id], * }); * ``` */ /** @deprecated volcengine.veecp.EdgeNodePools has been deprecated in favor of volcengine.veecp.getEdgeNodePools */ function edgeNodePoolsOutput(args, opts) { return pulumi.output(args).apply((a) => edgeNodePools(a, opts)); } exports.edgeNodePoolsOutput = edgeNodePoolsOutput; //# sourceMappingURL=edgeNodePools.js.map