get User
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",
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
bar = aws.elasticache.get_user(user_id="example")
Content copied to clipboard
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
variables:
bar:
fn::invoke:
function: aws:elasticache:getUser
arguments:
userId: example
Content copied to clipboard
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
access String
String for what access a user possesses within the associated ElastiCache replication groups or clusters.
authentication Modes
engine
no Password Required
passwords
user Id
Identifier for the user.
user Name
User name of the user.
See also
Return
A collection of values returned by getUser.
Parameters
argument
Builder for com.pulumi.aws.elasticache.kotlin.inputs.GetUserPlainArgs.