amazonka-connect-2.0: Amazon Connect Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Connect.GetCurrentUserData

Description

Gets the real-time active user data from the specified Amazon Connect instance.

Synopsis

Creating a Request

data GetCurrentUserData Source #

See: newGetCurrentUserData smart constructor.

Constructors

GetCurrentUserData' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of results to return per page.

  • nextToken :: Maybe Text

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

  • instanceId :: Text

    The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

  • filters :: UserDataFilters

    The filters to apply to returned user data. You can filter up to the following limits:

    • Queues: 100
    • Routing profiles: 100
    • Agents: 100
    • Contact states: 9
    • User hierarchy groups: 1

    The user data is retrieved for only the specified values/resources in the filter. A maximum of one filter can be passed from queues, routing profiles, agents, and user hierarchy groups.

    Currently tagging is only supported on the resources that are passed in the filter.

Instances

Instances details
ToJSON GetCurrentUserData Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

ToHeaders GetCurrentUserData Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

ToPath GetCurrentUserData Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

ToQuery GetCurrentUserData Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

AWSRequest GetCurrentUserData Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

Associated Types

type AWSResponse GetCurrentUserData #

Generic GetCurrentUserData Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

Associated Types

type Rep GetCurrentUserData :: Type -> Type #

Read GetCurrentUserData Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

Show GetCurrentUserData Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

NFData GetCurrentUserData Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

Methods

rnf :: GetCurrentUserData -> () #

Eq GetCurrentUserData Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

Hashable GetCurrentUserData Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

type AWSResponse GetCurrentUserData Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

type Rep GetCurrentUserData Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

type Rep GetCurrentUserData = D1 ('MetaData "GetCurrentUserData" "Amazonka.Connect.GetCurrentUserData" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "GetCurrentUserData'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UserDataFilters))))

newGetCurrentUserData Source #

Create a value of GetCurrentUserData with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:maxResults:GetCurrentUserData', getCurrentUserData_maxResults - The maximum number of results to return per page.

GetCurrentUserData, getCurrentUserData_nextToken - The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

GetCurrentUserData, getCurrentUserData_instanceId - The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

$sel:filters:GetCurrentUserData', getCurrentUserData_filters - The filters to apply to returned user data. You can filter up to the following limits:

  • Queues: 100
  • Routing profiles: 100
  • Agents: 100
  • Contact states: 9
  • User hierarchy groups: 1

The user data is retrieved for only the specified values/resources in the filter. A maximum of one filter can be passed from queues, routing profiles, agents, and user hierarchy groups.

Currently tagging is only supported on the resources that are passed in the filter.

Request Lenses

getCurrentUserData_maxResults :: Lens' GetCurrentUserData (Maybe Natural) Source #

The maximum number of results to return per page.

getCurrentUserData_nextToken :: Lens' GetCurrentUserData (Maybe Text) Source #

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

getCurrentUserData_instanceId :: Lens' GetCurrentUserData Text Source #

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

getCurrentUserData_filters :: Lens' GetCurrentUserData UserDataFilters Source #

The filters to apply to returned user data. You can filter up to the following limits:

  • Queues: 100
  • Routing profiles: 100
  • Agents: 100
  • Contact states: 9
  • User hierarchy groups: 1

The user data is retrieved for only the specified values/resources in the filter. A maximum of one filter can be passed from queues, routing profiles, agents, and user hierarchy groups.

Currently tagging is only supported on the resources that are passed in the filter.

Destructuring the Response

data GetCurrentUserDataResponse Source #

See: newGetCurrentUserDataResponse smart constructor.

Constructors

GetCurrentUserDataResponse' 

Fields

Instances

Instances details
Generic GetCurrentUserDataResponse Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

Associated Types

type Rep GetCurrentUserDataResponse :: Type -> Type #

Read GetCurrentUserDataResponse Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

Show GetCurrentUserDataResponse Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

NFData GetCurrentUserDataResponse Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

Eq GetCurrentUserDataResponse Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

type Rep GetCurrentUserDataResponse Source # 
Instance details

Defined in Amazonka.Connect.GetCurrentUserData

type Rep GetCurrentUserDataResponse = D1 ('MetaData "GetCurrentUserDataResponse" "Amazonka.Connect.GetCurrentUserData" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "GetCurrentUserDataResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "approximateTotalCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "userDataList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [UserData])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetCurrentUserDataResponse Source #

Create a value of GetCurrentUserDataResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:approximateTotalCount:GetCurrentUserDataResponse', getCurrentUserDataResponse_approximateTotalCount - The total count of the result, regardless of the current page size.

GetCurrentUserData, getCurrentUserDataResponse_nextToken - If there are additional results, this is the token for the next set of results.

$sel:userDataList:GetCurrentUserDataResponse', getCurrentUserDataResponse_userDataList - A list of the user data that is returned.

$sel:httpStatus:GetCurrentUserDataResponse', getCurrentUserDataResponse_httpStatus - The response's http status code.

Response Lenses

getCurrentUserDataResponse_approximateTotalCount :: Lens' GetCurrentUserDataResponse (Maybe Integer) Source #

The total count of the result, regardless of the current page size.

getCurrentUserDataResponse_nextToken :: Lens' GetCurrentUserDataResponse (Maybe Text) Source #

If there are additional results, this is the token for the next set of results.