getUser

suspend fun getUser(argument: GetUserPlainArgs): GetUserResult

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

Example Usage

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());
}
}

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