Viewing docs for AWS v5.43.0 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi
published on Tuesday, Mar 10, 2026 by Pulumi
Viewing docs for AWS v5.43.0 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi
published on Tuesday, Mar 10, 2026 by Pulumi
Provides information about a MemoryDB User.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.MemoryDb.GetUser.Invoke(new()
{
UserName = "my-user",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/memorydb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := memorydb.LookupUser(ctx, &memorydb.LookupUserArgs{
UserName: "my-user",
}, 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.memorydb.MemorydbFunctions;
import com.pulumi.aws.memorydb.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 example = MemorydbFunctions.getUser(GetUserArgs.builder()
.userName("my-user")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.memorydb.getUser({
userName: "my-user",
});
import pulumi
import pulumi_aws as aws
example = aws.memorydb.get_user(user_name="my-user")
variables:
example:
fn::invoke:
Function: aws:memorydb:getUser
Arguments:
userName: my-user
Using getUser
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 getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>
function getUserOutput(args: GetUserOutputArgs, opts?: InvokeOptions): Output<GetUserResult>def get_user(tags: Optional[Mapping[str, str]] = None,
user_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
user_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserResult]func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)
func LookupUserOutput(ctx *Context, args *LookupUserOutputArgs, opts ...InvokeOption) LookupUserResultOutput> Note: This function is named LookupUser in the Go SDK.
public static class GetUser
{
public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
public static Output<GetUserResult> Invoke(GetUserInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
fn::invoke:
function: aws:memorydb/getUser:getUser
arguments:
# arguments dictionaryThe following arguments are supported:
- User
Name string - Name of the user.
- Dictionary<string, string>
- Map of tags assigned to the subnet group.
- User
Name string - Name of the user.
- map[string]string
- Map of tags assigned to the subnet group.
- user
Name String - Name of the user.
- Map<String,String>
- Map of tags assigned to the subnet group.
- user
Name string - Name of the user.
- {[key: string]: string}
- Map of tags assigned to the subnet group.
- user_
name str - Name of the user.
- Mapping[str, str]
- Map of tags assigned to the subnet group.
- user
Name String - Name of the user.
- Map<String>
- Map of tags assigned to the subnet group.
getUser Result
The following output properties are available:
- Access
String string - Access permissions string used for this user.
- Arn string
- ARN of the user.
- Authentication
Modes List<GetUser Authentication Mode> - Denotes the user's authentication properties.
- Id string
- The provider-assigned unique ID for this managed resource.
- Minimum
Engine stringVersion - The minimum engine version supported for the user.
- Dictionary<string, string>
- Map of tags assigned to the subnet group.
- User
Name string
- Access
String string - Access permissions string used for this user.
- Arn string
- ARN of the user.
- Authentication
Modes []GetUser Authentication Mode - Denotes the user's authentication properties.
- Id string
- The provider-assigned unique ID for this managed resource.
- Minimum
Engine stringVersion - The minimum engine version supported for the user.
- map[string]string
- Map of tags assigned to the subnet group.
- User
Name string
- access
String String - Access permissions string used for this user.
- arn String
- ARN of the user.
- authentication
Modes List<GetUser Authentication Mode> - Denotes the user's authentication properties.
- id String
- The provider-assigned unique ID for this managed resource.
- minimum
Engine StringVersion - The minimum engine version supported for the user.
- Map<String,String>
- Map of tags assigned to the subnet group.
- user
Name String
- access
String string - Access permissions string used for this user.
- arn string
- ARN of the user.
- authentication
Modes GetUser Authentication Mode[] - Denotes the user's authentication properties.
- id string
- The provider-assigned unique ID for this managed resource.
- minimum
Engine stringVersion - The minimum engine version supported for the user.
- {[key: string]: string}
- Map of tags assigned to the subnet group.
- user
Name string
- access_
string str - Access permissions string used for this user.
- arn str
- ARN of the user.
- authentication_
modes Sequence[GetUser Authentication Mode] - Denotes the user's authentication properties.
- id str
- The provider-assigned unique ID for this managed resource.
- minimum_
engine_ strversion - The minimum engine version supported for the user.
- Mapping[str, str]
- Map of tags assigned to the subnet group.
- user_
name str
- access
String String - Access permissions string used for this user.
- arn String
- ARN of the user.
- authentication
Modes List<Property Map> - Denotes the user's authentication properties.
- id String
- The provider-assigned unique ID for this managed resource.
- minimum
Engine StringVersion - The minimum engine version supported for the user.
- Map<String>
- Map of tags assigned to the subnet group.
- user
Name String
Supporting Types
GetUserAuthenticationMode
- Password
Count int - The number of passwords belonging to the user.
- Type string
- Whether the user requires a password to authenticate.
- Password
Count int - The number of passwords belonging to the user.
- Type string
- Whether the user requires a password to authenticate.
- password
Count Integer - The number of passwords belonging to the user.
- type String
- Whether the user requires a password to authenticate.
- password
Count number - The number of passwords belonging to the user.
- type string
- Whether the user requires a password to authenticate.
- password_
count int - The number of passwords belonging to the user.
- type str
- Whether the user requires a password to authenticate.
- password
Count Number - The number of passwords belonging to the user.
- type String
- Whether the user requires a password to authenticate.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v5.43.0 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi
published on Tuesday, Mar 10, 2026 by Pulumi
