aws.connect.getUser
Provides details about a specific Amazon Connect User.
Example Usage
By name
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.connect.getUser({
    instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
    name: "Example",
});
import pulumi
import pulumi_aws as aws
example = aws.connect.get_user(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
    name="Example")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/connect"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := connect.LookupUser(ctx, &connect.LookupUserArgs{
			InstanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
			Name:       pulumi.StringRef("Example"),
		}, 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.Connect.GetUser.Invoke(new()
    {
        InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
        Name = "Example",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.ConnectFunctions;
import com.pulumi.aws.connect.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 = ConnectFunctions.getUser(GetUserArgs.builder()
            .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
            .name("Example")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:connect:getUser
      arguments:
        instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
        name: Example
By user_id
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.connect.getUser({
    instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
    userId: "cccccccc-bbbb-cccc-dddd-111111111111",
});
import pulumi
import pulumi_aws as aws
example = aws.connect.get_user(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
    user_id="cccccccc-bbbb-cccc-dddd-111111111111")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/connect"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := connect.LookupUser(ctx, &connect.LookupUserArgs{
			InstanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
			UserId:     pulumi.StringRef("cccccccc-bbbb-cccc-dddd-111111111111"),
		}, 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.Connect.GetUser.Invoke(new()
    {
        InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
        UserId = "cccccccc-bbbb-cccc-dddd-111111111111",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.ConnectFunctions;
import com.pulumi.aws.connect.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 = ConnectFunctions.getUser(GetUserArgs.builder()
            .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
            .userId("cccccccc-bbbb-cccc-dddd-111111111111")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:connect:getUser
      arguments:
        instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
        userId: cccccccc-bbbb-cccc-dddd-111111111111
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(instance_id: Optional[str] = None,
             name: Optional[str] = None,
             region: Optional[str] = None,
             tags: Optional[Mapping[str, str]] = None,
             user_id: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(instance_id: Optional[pulumi.Input[str]] = None,
             name: Optional[pulumi.Input[str]] = None,
             region: Optional[pulumi.Input[str]] = None,
             tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
             user_id: 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:connect/getUser:getUser
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Instance
Id string - Reference to the hosting Amazon Connect Instance
 - Name string
 - Returns information on a specific User by name
 - Region string
 - Region where this resource will be managed. Defaults to the Region set in the provider configuration.
 - Dictionary<string, string>
 - A map of tags to assign to the User.
 - User
Id string Returns information on a specific User by User id
NOTE:
instance_idand one of eithernameoruser_idis required.
- Instance
Id string - Reference to the hosting Amazon Connect Instance
 - Name string
 - Returns information on a specific User by name
 - Region string
 - Region where this resource will be managed. Defaults to the Region set in the provider configuration.
 - map[string]string
 - A map of tags to assign to the User.
 - User
Id string Returns information on a specific User by User id
NOTE:
instance_idand one of eithernameoruser_idis required.
- instance
Id String - Reference to the hosting Amazon Connect Instance
 - name String
 - Returns information on a specific User by name
 - region String
 - Region where this resource will be managed. Defaults to the Region set in the provider configuration.
 - Map<String,String>
 - A map of tags to assign to the User.
 - user
Id String Returns information on a specific User by User id
NOTE:
instance_idand one of eithernameoruser_idis required.
- instance
Id string - Reference to the hosting Amazon Connect Instance
 - name string
 - Returns information on a specific User by name
 - region string
 - Region where this resource will be managed. Defaults to the Region set in the provider configuration.
 - {[key: string]: string}
 - A map of tags to assign to the User.
 - user
Id string Returns information on a specific User by User id
NOTE:
instance_idand one of eithernameoruser_idis required.
- instance_
id str - Reference to the hosting Amazon Connect Instance
 - name str
 - Returns information on a specific User by name
 - region str
 - Region where this resource will be managed. Defaults to the Region set in the provider configuration.
 - Mapping[str, str]
 - A map of tags to assign to the User.
 - user_
id str Returns information on a specific User by User id
NOTE:
instance_idand one of eithernameoruser_idis required.
- instance
Id String - Reference to the hosting Amazon Connect Instance
 - name String
 - Returns information on a specific User by name
 - region String
 - Region where this resource will be managed. Defaults to the Region set in the provider configuration.
 - Map<String>
 - A map of tags to assign to the User.
 - user
Id String Returns information on a specific User by User id
NOTE:
instance_idand one of eithernameoruser_idis required.
getUser Result
The following output properties are available:
- Arn string
 - The Amazon Resource Name (ARN) of the User.
 - Directory
User stringId  - The identifier of the user account in the directory used for identity management.
 - Hierarchy
Group stringId  - The identifier of the hierarchy group for the user.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Identity
Infos List<GetUser Identity Info>  - A block that contains information about the identity of the user. Documented below.
 - Instance
Id string - Specifies the identifier of the hosting Amazon Connect Instance.
 - Name string
 - Phone
Configs List<GetUser Phone Config>  - A block that contains information about the phone settings for the user. Documented below.
 - Region string
 - Routing
Profile stringId  - The identifier of the routing profile for the user.
 - Security
Profile List<string>Ids  - A list of identifiers for the security profiles for the user.
 - Dictionary<string, string>
 - A map of tags to assign to the User.
 - User
Id string 
- Arn string
 - The Amazon Resource Name (ARN) of the User.
 - Directory
User stringId  - The identifier of the user account in the directory used for identity management.
 - Hierarchy
Group stringId  - The identifier of the hierarchy group for the user.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Identity
Infos []GetUser Identity Info  - A block that contains information about the identity of the user. Documented below.
 - Instance
Id string - Specifies the identifier of the hosting Amazon Connect Instance.
 - Name string
 - Phone
Configs []GetUser Phone Config  - A block that contains information about the phone settings for the user. Documented below.
 - Region string
 - Routing
Profile stringId  - The identifier of the routing profile for the user.
 - Security
Profile []stringIds  - A list of identifiers for the security profiles for the user.
 - map[string]string
 - A map of tags to assign to the User.
 - User
Id string 
- arn String
 - The Amazon Resource Name (ARN) of the User.
 - directory
User StringId  - The identifier of the user account in the directory used for identity management.
 - hierarchy
Group StringId  - The identifier of the hierarchy group for the user.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - identity
Infos List<GetUser Identity Info>  - A block that contains information about the identity of the user. Documented below.
 - instance
Id String - Specifies the identifier of the hosting Amazon Connect Instance.
 - name String
 - phone
Configs List<GetUser Phone Config>  - A block that contains information about the phone settings for the user. Documented below.
 - region String
 - routing
Profile StringId  - The identifier of the routing profile for the user.
 - security
Profile List<String>Ids  - A list of identifiers for the security profiles for the user.
 - Map<String,String>
 - A map of tags to assign to the User.
 - user
Id String 
- arn string
 - The Amazon Resource Name (ARN) of the User.
 - directory
User stringId  - The identifier of the user account in the directory used for identity management.
 - hierarchy
Group stringId  - The identifier of the hierarchy group for the user.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - identity
Infos GetUser Identity Info[]  - A block that contains information about the identity of the user. Documented below.
 - instance
Id string - Specifies the identifier of the hosting Amazon Connect Instance.
 - name string
 - phone
Configs GetUser Phone Config[]  - A block that contains information about the phone settings for the user. Documented below.
 - region string
 - routing
Profile stringId  - The identifier of the routing profile for the user.
 - security
Profile string[]Ids  - A list of identifiers for the security profiles for the user.
 - {[key: string]: string}
 - A map of tags to assign to the User.
 - user
Id string 
- arn str
 - The Amazon Resource Name (ARN) of the User.
 - directory_
user_ strid  - The identifier of the user account in the directory used for identity management.
 - hierarchy_
group_ strid  - The identifier of the hierarchy group for the user.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - identity_
infos Sequence[GetUser Identity Info]  - A block that contains information about the identity of the user. Documented below.
 - instance_
id str - Specifies the identifier of the hosting Amazon Connect Instance.
 - name str
 - phone_
configs Sequence[GetUser Phone Config]  - A block that contains information about the phone settings for the user. Documented below.
 - region str
 - routing_
profile_ strid  - The identifier of the routing profile for the user.
 - security_
profile_ Sequence[str]ids  - A list of identifiers for the security profiles for the user.
 - Mapping[str, str]
 - A map of tags to assign to the User.
 - user_
id str 
- arn String
 - The Amazon Resource Name (ARN) of the User.
 - directory
User StringId  - The identifier of the user account in the directory used for identity management.
 - hierarchy
Group StringId  - The identifier of the hierarchy group for the user.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - identity
Infos List<Property Map> - A block that contains information about the identity of the user. Documented below.
 - instance
Id String - Specifies the identifier of the hosting Amazon Connect Instance.
 - name String
 - phone
Configs List<Property Map> - A block that contains information about the phone settings for the user. Documented below.
 - region String
 - routing
Profile StringId  - The identifier of the routing profile for the user.
 - security
Profile List<String>Ids  - A list of identifiers for the security profiles for the user.
 - Map<String>
 - A map of tags to assign to the User.
 - user
Id String 
Supporting Types
GetUserIdentityInfo   
- Email string
 - The email address.
 - First
Name string - The first name.
 - Last
Name string - The last name.
 - Secondary
Email string - The secondary email address. If present, email notifications will be sent to this email address instead of the primary one.
 
- Email string
 - The email address.
 - First
Name string - The first name.
 - Last
Name string - The last name.
 - Secondary
Email string - The secondary email address. If present, email notifications will be sent to this email address instead of the primary one.
 
- email String
 - The email address.
 - first
Name String - The first name.
 - last
Name String - The last name.
 - secondary
Email String - The secondary email address. If present, email notifications will be sent to this email address instead of the primary one.
 
- email string
 - The email address.
 - first
Name string - The first name.
 - last
Name string - The last name.
 - secondary
Email string - The secondary email address. If present, email notifications will be sent to this email address instead of the primary one.
 
- email str
 - The email address.
 - first_
name str - The first name.
 - last_
name str - The last name.
 - secondary_
email str - The secondary email address. If present, email notifications will be sent to this email address instead of the primary one.
 
- email String
 - The email address.
 - first
Name String - The first name.
 - last
Name String - The last name.
 - secondary
Email String - The secondary email address. If present, email notifications will be sent to this email address instead of the primary one.
 
GetUserPhoneConfig   
- After
Contact intWork Time Limit  - The After Call Work (ACW) timeout setting, in seconds.
 - Auto
Accept bool - When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically.
 - Desk
Phone stringNumber  - The phone number for the user's desk phone.
 - Phone
Type string - The phone type. Valid values are 
DESK_PHONEandSOFT_PHONE. 
- After
Contact intWork Time Limit  - The After Call Work (ACW) timeout setting, in seconds.
 - Auto
Accept bool - When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically.
 - Desk
Phone stringNumber  - The phone number for the user's desk phone.
 - Phone
Type string - The phone type. Valid values are 
DESK_PHONEandSOFT_PHONE. 
- after
Contact IntegerWork Time Limit  - The After Call Work (ACW) timeout setting, in seconds.
 - auto
Accept Boolean - When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically.
 - desk
Phone StringNumber  - The phone number for the user's desk phone.
 - phone
Type String - The phone type. Valid values are 
DESK_PHONEandSOFT_PHONE. 
- after
Contact numberWork Time Limit  - The After Call Work (ACW) timeout setting, in seconds.
 - auto
Accept boolean - When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically.
 - desk
Phone stringNumber  - The phone number for the user's desk phone.
 - phone
Type string - The phone type. Valid values are 
DESK_PHONEandSOFT_PHONE. 
- after_
contact_ intwork_ time_ limit  - The After Call Work (ACW) timeout setting, in seconds.
 - auto_
accept bool - When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically.
 - desk_
phone_ strnumber  - The phone number for the user's desk phone.
 - phone_
type str - The phone type. Valid values are 
DESK_PHONEandSOFT_PHONE. 
- after
Contact NumberWork Time Limit  - The After Call Work (ACW) timeout setting, in seconds.
 - auto
Accept Boolean - When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically.
 - desk
Phone StringNumber  - The phone number for the user's desk phone.
 - phone
Type String - The phone type. Valid values are 
DESK_PHONEandSOFT_PHONE. 
Package Details
- Repository
 - AWS Classic pulumi/pulumi-aws
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
awsTerraform Provider. 
