Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi
yandex.getIamUser
Explore with Pulumi AI
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)
}
public static CompletableFuture<GetIamUserResult> getIamUser(GetIamUserArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: yandex:index/getIamUser:getIamUser
arguments:
# arguments dictionary
The following arguments are supported:
getIamUser Result
The following output properties are available:
- Default
Email 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.
- User
Id string - ID of IAM user account.
- Default
Email 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.
- User
Id string - ID of IAM user account.
- default
Email 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.
- user
Id String - ID of IAM user account.
- default
Email 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.
- user
Id 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.
- default
Email 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.
- user
Id String - ID of IAM user account.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.