"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.kubeconfigsOutput = exports.kubeconfigs = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of vke kubeconfigs
 * ## 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-vpc",
 *     cidrBlock: "172.16.0.0/16",
 * });
 * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
 *     subnetName: "acc-test-subnet",
 *     cidrBlock: "172.16.0.0/24",
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     vpcId: fooVpc.id,
 * });
 * const fooSecurityGroup = new volcengine.vpc.SecurityGroup("fooSecurityGroup", {
 *     securityGroupName: "acc-test-security-group",
 *     vpcId: fooVpc.id,
 * });
 * const fooCluster = new volcengine.vke.Cluster("fooCluster", {
 *     description: "created by terraform",
 *     deleteProtectionEnabled: false,
 *     clusterConfig: {
 *         subnetIds: [fooSubnet.id],
 *         apiServerPublicAccessEnabled: true,
 *         apiServerPublicAccessConfig: {
 *             publicAccessNetworkConfig: {
 *                 billingType: "PostPaidByBandwidth",
 *                 bandwidth: 1,
 *             },
 *         },
 *         resourcePublicAccessDefaultEnabled: true,
 *     },
 *     podsConfig: {
 *         podNetworkMode: "VpcCniShared",
 *         vpcCniConfig: {
 *             subnetIds: [fooSubnet.id],
 *         },
 *     },
 *     servicesConfig: {
 *         serviceCidrsv4s: ["172.30.0.0/18"],
 *     },
 *     tags: [{
 *         key: "tf-k1",
 *         value: "tf-v1",
 *     }],
 * });
 * const foo1 = new volcengine.vke.Kubeconfig("foo1", {
 *     clusterId: fooCluster.id,
 *     type: "Private",
 *     validDuration: 2,
 * });
 * const foo2 = new volcengine.vke.Kubeconfig("foo2", {
 *     clusterId: fooCluster.id,
 *     type: "Public",
 *     validDuration: 2,
 * });
 * const fooKubeconfigs = volcengine.vke.getKubeconfigsOutput({
 *     ids: [
 *         foo1.id,
 *         foo2.id,
 *     ],
 * });
 * ```
 */
/** @deprecated volcengine.vke.Kubeconfigs has been deprecated in favor of volcengine.vke.getKubeconfigs */
function kubeconfigs(args, opts) {
    pulumi.log.warn("kubeconfigs is deprecated: volcengine.vke.Kubeconfigs has been deprecated in favor of volcengine.vke.getKubeconfigs");
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:vke/kubeconfigs:Kubeconfigs", {
        "clusterIds": args.clusterIds,
        "ids": args.ids,
        "nameRegex": args.nameRegex,
        "outputFile": args.outputFile,
        "pageNumber": args.pageNumber,
        "pageSize": args.pageSize,
        "roleIds": args.roleIds,
        "types": args.types,
        "userIds": args.userIds,
    }, opts);
}
exports.kubeconfigs = kubeconfigs;
/**
 * Use this data source to query detailed information of vke kubeconfigs
 * ## 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-vpc",
 *     cidrBlock: "172.16.0.0/16",
 * });
 * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
 *     subnetName: "acc-test-subnet",
 *     cidrBlock: "172.16.0.0/24",
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     vpcId: fooVpc.id,
 * });
 * const fooSecurityGroup = new volcengine.vpc.SecurityGroup("fooSecurityGroup", {
 *     securityGroupName: "acc-test-security-group",
 *     vpcId: fooVpc.id,
 * });
 * const fooCluster = new volcengine.vke.Cluster("fooCluster", {
 *     description: "created by terraform",
 *     deleteProtectionEnabled: false,
 *     clusterConfig: {
 *         subnetIds: [fooSubnet.id],
 *         apiServerPublicAccessEnabled: true,
 *         apiServerPublicAccessConfig: {
 *             publicAccessNetworkConfig: {
 *                 billingType: "PostPaidByBandwidth",
 *                 bandwidth: 1,
 *             },
 *         },
 *         resourcePublicAccessDefaultEnabled: true,
 *     },
 *     podsConfig: {
 *         podNetworkMode: "VpcCniShared",
 *         vpcCniConfig: {
 *             subnetIds: [fooSubnet.id],
 *         },
 *     },
 *     servicesConfig: {
 *         serviceCidrsv4s: ["172.30.0.0/18"],
 *     },
 *     tags: [{
 *         key: "tf-k1",
 *         value: "tf-v1",
 *     }],
 * });
 * const foo1 = new volcengine.vke.Kubeconfig("foo1", {
 *     clusterId: fooCluster.id,
 *     type: "Private",
 *     validDuration: 2,
 * });
 * const foo2 = new volcengine.vke.Kubeconfig("foo2", {
 *     clusterId: fooCluster.id,
 *     type: "Public",
 *     validDuration: 2,
 * });
 * const fooKubeconfigs = volcengine.vke.getKubeconfigsOutput({
 *     ids: [
 *         foo1.id,
 *         foo2.id,
 *     ],
 * });
 * ```
 */
/** @deprecated volcengine.vke.Kubeconfigs has been deprecated in favor of volcengine.vke.getKubeconfigs */
function kubeconfigsOutput(args, opts) {
    return pulumi.output(args).apply((a) => kubeconfigs(a, opts));
}
exports.kubeconfigsOutput = kubeconfigsOutput;
//# sourceMappingURL=kubeconfigs.js.map