@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
71 lines (70 loc) • 2.2 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* 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",
* }));
* ```
*/
export declare function getIamServiceAccount(args?: GetIamServiceAccountArgs, opts?: pulumi.InvokeOptions): Promise<GetIamServiceAccountResult>;
/**
* A collection of arguments for invoking getIamServiceAccount.
*/
export interface GetIamServiceAccountArgs {
/**
* Folder that the resource belongs to. If value is omitted, the default provider folder is used.
*/
folderId?: string;
/**
* Name of a specific service account.
*/
name?: string;
/**
* ID of a specific service account.
*/
serviceAccountId?: string;
}
/**
* A collection of values returned by getIamServiceAccount.
*/
export interface GetIamServiceAccountResult {
readonly createdAt: string;
/**
* Description of the service account.
*/
readonly description: string;
readonly folderId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
readonly serviceAccountId: string;
}
export declare function getIamServiceAccountOutput(args?: GetIamServiceAccountOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetIamServiceAccountResult>;
/**
* A collection of arguments for invoking getIamServiceAccount.
*/
export interface GetIamServiceAccountOutputArgs {
/**
* Folder that the resource belongs to. If value is omitted, the default provider folder is used.
*/
folderId?: pulumi.Input<string>;
/**
* Name of a specific service account.
*/
name?: pulumi.Input<string>;
/**
* ID of a specific service account.
*/
serviceAccountId?: pulumi.Input<string>;
}