getUser

suspend fun getUser(argument: GetUserPlainArgs): GetUserResult

Use this data source to get information about an ElastiCache User.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const bar = aws.elasticache.getUser({
userId: "example",
});
import pulumi
import pulumi_aws as aws
bar = aws.elasticache.get_user(user_id="example")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var bar = Aws.ElastiCache.GetUser.Invoke(new()
{
UserId = "example",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/elasticache"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := elasticache.LookupUser(ctx, &elasticache.LookupUserArgs{
UserId: "example",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.elasticache.ElasticacheFunctions;
import com.pulumi.aws.elasticache.inputs.GetUserArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var bar = ElasticacheFunctions.getUser(GetUserArgs.builder()
.userId("example")
.build());
}
}
variables:
bar:
fn::invoke:
function: aws:elasticache:getUser
arguments:
userId: example

Return

A collection of values returned by getUser.

Parameters

argument

A collection of arguments for invoking getUser.


suspend fun getUser(accessString: String? = null, authenticationModes: List<GetUserAuthenticationMode>? = null, engine: String? = null, noPasswordRequired: Boolean? = null, passwords: List<String>? = null, userId: String, userName: String? = null): GetUserResult

Return

A collection of values returned by getUser.

Parameters

accessString

String for what access a user possesses within the associated ElastiCache replication groups or clusters.

authenticationModes
engine
noPasswordRequired
passwords
userId

Identifier for the user.

userName

User name of the user.

See also


suspend fun getUser(argument: suspend GetUserPlainArgsBuilder.() -> Unit): GetUserResult

Return

A collection of values returned by getUser.

Parameters

argument

Builder for com.pulumi.aws.elasticache.kotlin.inputs.GetUserPlainArgs.

See also