UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

56 lines 1.84 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.getFeatureOutput = exports.getFeature = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Retrieves the details of a specific GKE Hub Feature. Use this data source to retrieve the feature's configuration and state. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const example = gcp.gkehub.getFeature({ * location: "global", * name: "servicemesh", * }); * ``` */ function getFeature(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:gkehub/getFeature:getFeature", { "location": args.location, "name": args.name, "project": args.project, }, opts); } exports.getFeature = getFeature; /** * Retrieves the details of a specific GKE Hub Feature. Use this data source to retrieve the feature's configuration and state. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const example = gcp.gkehub.getFeature({ * location: "global", * name: "servicemesh", * }); * ``` */ function getFeatureOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:gkehub/getFeature:getFeature", { "location": args.location, "name": args.name, "project": args.project, }, opts); } exports.getFeatureOutput = getFeatureOutput; //# sourceMappingURL=getFeature.js.map