Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws.memorydb.getUser
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
Provides information about a MemoryDB User.
Example Usage
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")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/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
})
}
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 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());
}
}
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:memorydb/getUser:getUser
arguments:
# arguments dictionary
The following arguments are supported:
- User
Name string - Name of the user.
- Dictionary<string, string>
- Map of tags assigned to the user.
- User
Name string - Name of the user.
- map[string]string
- Map of tags assigned to the user.
- user
Name String - Name of the user.
- Map<String,String>
- Map of tags assigned to the user.
- user
Name string - Name of the user.
- {[key: string]: string}
- Map of tags assigned to the user.
- user_
name str - Name of the user.
- Mapping[str, str]
- Map of tags assigned to the user.
- user
Name String - Name of the user.
- Map<String>
- Map of tags assigned to the user.
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 - Minimum engine version supported for the user.
- Dictionary<string, string>
- Map of tags assigned to the user.
- 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 - Minimum engine version supported for the user.
- map[string]string
- Map of tags assigned to the user.
- 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 - Minimum engine version supported for the user.
- Map<String,String>
- Map of tags assigned to the user.
- 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 - Minimum engine version supported for the user.
- {[key: string]: string}
- Map of tags assigned to the user.
- 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 - Minimum engine version supported for the user.
- Mapping[str, str]
- Map of tags assigned to the user.
- 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 - Minimum engine version supported for the user.
- Map<String>
- Map of tags assigned to the user.
- user
Name String
Supporting Types
GetUserAuthenticationMode
- Password
Count int - Number of passwords belonging to the user if
type
is set topassword
. - Type string
- Type of authentication configured.
- Password
Count int - Number of passwords belonging to the user if
type
is set topassword
. - Type string
- Type of authentication configured.
- password
Count Integer - Number of passwords belonging to the user if
type
is set topassword
. - type String
- Type of authentication configured.
- password
Count number - Number of passwords belonging to the user if
type
is set topassword
. - type string
- Type of authentication configured.
- password_
count int - Number of passwords belonging to the user if
type
is set topassword
. - type str
- Type of authentication configured.
- password
Count Number - Number of passwords belonging to the user if
type
is set topassword
. - type String
- Type of authentication configured.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi