@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
58 lines • 2.12 kB
JavaScript
;
// *** 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.getGroupLookupOutput = exports.getGroupLookup = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to look up the resource name of a Cloud Identity Group by its [EntityKey](https://cloud.google.com/identity/docs/reference/rest/v1/EntityKey), i.e. the group's email.
*
* https://cloud.google.com/identity/docs/concepts/overview#groups
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const group = gcp.cloudidentity.getGroupLookup({
* groupKey: {
* id: "my-group@example.com",
* },
* });
* ```
*/
function getGroupLookup(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:cloudidentity/getGroupLookup:getGroupLookup", {
"groupKey": args.groupKey,
}, opts);
}
exports.getGroupLookup = getGroupLookup;
/**
* Use this data source to look up the resource name of a Cloud Identity Group by its [EntityKey](https://cloud.google.com/identity/docs/reference/rest/v1/EntityKey), i.e. the group's email.
*
* https://cloud.google.com/identity/docs/concepts/overview#groups
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const group = gcp.cloudidentity.getGroupLookup({
* groupKey: {
* id: "my-group@example.com",
* },
* });
* ```
*/
function getGroupLookupOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:cloudidentity/getGroupLookup:getGroupLookup", {
"groupKey": args.groupKey,
}, opts);
}
exports.getGroupLookupOutput = getGroupLookupOutput;
//# sourceMappingURL=getGroupLookup.js.map