Yandex

v0.10.0 published on Thursday, Nov 18, 2021 by Pulumi

getIamUser

Get information about a Yandex IAM user account. For more information about accounts, see Yandex.Cloud IAM accounts.

import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";

const admin = pulumi.output(yandex.getIamUser({
    login: "my-yandex-login",
}));
import pulumi
import pulumi_yandex as yandex

admin = yandex.get_iam_user(login="my-yandex-login")
using Pulumi;
using Yandex = Pulumi.Yandex;

class MyStack : Stack
{
    public MyStack()
    {
        var admin = Output.Create(Yandex.GetIamUser.InvokeAsync(new Yandex.GetIamUserArgs
        {
            Login = "my-yandex-login",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "my-yandex-login"
		_, err := yandex.GetIamUser(ctx, &GetIamUserArgs{
			Login: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

This data source is used to define [IAM User] that can be used by other resources.

Using getIamUser

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getIamUser(args: GetIamUserArgs, opts?: InvokeOptions): Promise<GetIamUserResult>
function getIamUserOutput(args: GetIamUserOutputArgs, opts?: InvokeOptions): Output<GetIamUserResult>
def get_iam_user(login: Optional[str] = None,
                 user_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetIamUserResult
def get_iam_user_output(login: Optional[pulumi.Input[str]] = None,
                 user_id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetIamUserResult]
func GetIamUser(ctx *Context, args *GetIamUserArgs, opts ...InvokeOption) (*GetIamUserResult, error)
func GetIamUserOutput(ctx *Context, args *GetIamUserOutputArgs, opts ...InvokeOption) GetIamUserResultOutput

> Note: This function is named GetIamUser in the Go SDK.

public static class GetIamUser 
{
    public static Task<GetIamUserResult> InvokeAsync(GetIamUserArgs args, InvokeOptions? opts = null)
    public static Output<GetIamUserResult> Invoke(GetIamUserInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Login string
Login name used to sign in to Yandex Passport.
UserId string
User ID used to manage IAM access bindings.
Login string
Login name used to sign in to Yandex Passport.
UserId string
User ID used to manage IAM access bindings.
login string
Login name used to sign in to Yandex Passport.
userId string
User ID used to manage IAM access bindings.
login str
Login name used to sign in to Yandex Passport.
user_id str
User ID used to manage IAM access bindings.

getIamUser Result

The following output properties are available:

DefaultEmail string
Email address of user account.
Id string
The provider-assigned unique ID for this managed resource.
Login string
Login name of IAM user account.
UserId string
ID of IAM user account.
DefaultEmail string
Email address of user account.
Id string
The provider-assigned unique ID for this managed resource.
Login string
Login name of IAM user account.
UserId string
ID of IAM user account.
defaultEmail string
Email address of user account.
id string
The provider-assigned unique ID for this managed resource.
login string
Login name of IAM user account.
userId string
ID of IAM user account.
default_email str
Email address of user account.
id str
The provider-assigned unique ID for this managed resource.
login str
Login name of IAM user account.
user_id str
ID of IAM user account.

Package Details

Repository
https://github.com/pulumi/pulumi-yandex
License
Apache-2.0
Notes
This Pulumi package is based on the yandex Terraform Provider.