@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
52 lines • 2.27 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.getWorkloadIdentityPoolOutput = exports.getWorkloadIdentityPool = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Get a IAM workload identity pool from Google Cloud by its id.
* > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const foo = gcp.iam.getWorkloadIdentityPool({
* workloadIdentityPoolId: "foo-pool",
* });
* ```
*/
function getWorkloadIdentityPool(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:iam/getWorkloadIdentityPool:getWorkloadIdentityPool", {
"project": args.project,
"workloadIdentityPoolId": args.workloadIdentityPoolId,
}, opts);
}
exports.getWorkloadIdentityPool = getWorkloadIdentityPool;
/**
* Get a IAM workload identity pool from Google Cloud by its id.
* > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const foo = gcp.iam.getWorkloadIdentityPool({
* workloadIdentityPoolId: "foo-pool",
* });
* ```
*/
function getWorkloadIdentityPoolOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:iam/getWorkloadIdentityPool:getWorkloadIdentityPool", {
"project": args.project,
"workloadIdentityPoolId": args.workloadIdentityPoolId,
}, opts);
}
exports.getWorkloadIdentityPoolOutput = getWorkloadIdentityPoolOutput;
//# sourceMappingURL=getWorkloadIdentityPool.js.map