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