UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

66 lines 2 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getClusterOutput = exports.getCluster = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Retrieve information about an EKS Cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * export = async () => { * const example = await aws.eks.getCluster({ * name: "example", * }); * return { * endpoint: example.endpoint, * "kubeconfig-certificate-authority-data": example.certificateAuthorities?.[0]?.data, * }; * } * ``` */ function getCluster(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:eks/getCluster:getCluster", { "name": args.name, "region": args.region, "tags": args.tags, }, opts); } exports.getCluster = getCluster; /** * Retrieve information about an EKS Cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * export = async () => { * const example = await aws.eks.getCluster({ * name: "example", * }); * return { * endpoint: example.endpoint, * "kubeconfig-certificate-authority-data": example.certificateAuthorities?.[0]?.data, * }; * } * ``` */ function getClusterOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:eks/getCluster:getCluster", { "name": args.name, "region": args.region, "tags": args.tags, }, opts); } exports.getClusterOutput = getClusterOutput; //# sourceMappingURL=getCluster.js.map