@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
41 lines • 1.61 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.getIamServiceAccountOutput = exports.getIamServiceAccount = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Get information about a Yandex IAM service account. For more information about accounts, see
* [Yandex.Cloud IAM accounts](https://cloud.yandex.com/docs/iam/concepts/#accounts).
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const builder = pulumi.output(yandex.getIamServiceAccount({
* serviceAccountId: "sa_id",
* }));
* const deployer = pulumi.output(yandex.getIamServiceAccount({
* name: "sa_name",
* }));
* ```
*/
function getIamServiceAccount(args, opts) {
args = args || {};
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("yandex:index/getIamServiceAccount:getIamServiceAccount", {
"folderId": args.folderId,
"name": args.name,
"serviceAccountId": args.serviceAccountId,
}, opts);
}
exports.getIamServiceAccount = getIamServiceAccount;
function getIamServiceAccountOutput(args, opts) {
return pulumi.output(args).apply(a => getIamServiceAccount(a, opts));
}
exports.getIamServiceAccountOutput = getIamServiceAccountOutput;
//# sourceMappingURL=getIamServiceAccount.js.map