AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.connect.getUser
Explore with Pulumi AI
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/v6/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/v6/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,
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,
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:connect/getUser:getUser
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - Reference to the hosting Amazon Connect Instance
- Name string
- Returns information on a specific User by name
- Dictionary<string, string>
- A map of tags to assign to the User.
- User
Id string - Returns information on a specific User by User id
- Instance
Id string - Reference to the hosting Amazon Connect Instance
- Name string
- Returns information on a specific User by name
- map[string]string
- A map of tags to assign to the User.
- User
Id string - Returns information on a specific User by User id
- instance
Id String - Reference to the hosting Amazon Connect Instance
- name String
- Returns information on a specific User by name
- Map<String,String>
- A map of tags to assign to the User.
- user
Id String - Returns information on a specific User by User id
- instance
Id string - Reference to the hosting Amazon Connect Instance
- name string
- Returns information on a specific User by name
- {[key: string]: string}
- A map of tags to assign to the User.
- user
Id string - Returns information on a specific User by User id
- instance_
id str - Reference to the hosting Amazon Connect Instance
- name str
- Returns information on a specific User by name
- Mapping[str, str]
- A map of tags to assign to the User.
- user_
id str - Returns information on a specific User by User id
- instance
Id String - Reference to the hosting Amazon Connect Instance
- name String
- Returns information on a specific User by name
- Map<String>
- A map of tags to assign to the User.
- user
Id String - Returns information on a specific User by User id
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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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 str
- The email address.
- first_
name str - The first name.
- last_
name str - The last name.
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_PHONE
andSOFT_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_PHONE
andSOFT_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_PHONE
andSOFT_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_PHONE
andSOFT_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_PHONE
andSOFT_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_PHONE
andSOFT_PHONE
.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.