UNPKG

@pulumi/gcp

Version:

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

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