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.TransferContact

Description

Transfers contacts from one agent or queue to another agent or queue at any point after a contact is created. You can transfer a contact to another queue by providing the flow which orchestrates the contact to the destination queue. This gives you more control over contact handling and helps you adhere to the service level agreement (SLA) guaranteed to your customers.

Note the following requirements:

  • Transfer is supported for only TASK contacts.
  • Do not use both QueueId and UserId in the same call.
  • The following flow types are supported: Inbound flow, Transfer to agent flow, and Transfer to queue flow.
  • The TransferContact API can be called only on active contacts.
  • A contact cannot be transferred more than 11 times.
Synopsis

Creating a Request

data TransferContact Source #

See: newTransferContact smart constructor.

Constructors

TransferContact' 

Fields

Instances

Instances details
ToJSON TransferContact Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

ToHeaders TransferContact Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

ToPath TransferContact Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

ToQuery TransferContact Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

AWSRequest TransferContact Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

Associated Types

type AWSResponse TransferContact #

Generic TransferContact Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

Associated Types

type Rep TransferContact :: Type -> Type #

Read TransferContact Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

Show TransferContact Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

NFData TransferContact Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

Methods

rnf :: TransferContact -> () #

Eq TransferContact Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

Hashable TransferContact Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

type AWSResponse TransferContact Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

type Rep TransferContact Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

type Rep TransferContact = D1 ('MetaData "TransferContact" "Amazonka.Connect.TransferContact" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "TransferContact'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "queueId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "userId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "contactId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "contactFlowId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newTransferContact Source #

Create a value of TransferContact 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:clientToken:TransferContact', transferContact_clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

TransferContact, transferContact_queueId - The identifier for the queue.

TransferContact, transferContact_userId - The identifier for the user.

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

TransferContact, transferContact_contactId - The identifier of the contact in this instance of Amazon Connect.

TransferContact, transferContact_contactFlowId - The identifier of the flow.

Request Lenses

transferContact_clientToken :: Lens' TransferContact (Maybe Text) Source #

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

transferContact_queueId :: Lens' TransferContact (Maybe Text) Source #

The identifier for the queue.

transferContact_userId :: Lens' TransferContact (Maybe Text) Source #

The identifier for the user.

transferContact_instanceId :: Lens' TransferContact Text Source #

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

transferContact_contactId :: Lens' TransferContact Text Source #

The identifier of the contact in this instance of Amazon Connect.

Destructuring the Response

data TransferContactResponse Source #

See: newTransferContactResponse smart constructor.

Constructors

TransferContactResponse' 

Fields

Instances

Instances details
Generic TransferContactResponse Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

Associated Types

type Rep TransferContactResponse :: Type -> Type #

Read TransferContactResponse Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

Show TransferContactResponse Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

NFData TransferContactResponse Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

Methods

rnf :: TransferContactResponse -> () #

Eq TransferContactResponse Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

type Rep TransferContactResponse Source # 
Instance details

Defined in Amazonka.Connect.TransferContact

type Rep TransferContactResponse = D1 ('MetaData "TransferContactResponse" "Amazonka.Connect.TransferContact" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "TransferContactResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "contactArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "contactId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newTransferContactResponse Source #

Create a value of TransferContactResponse 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:contactArn:TransferContactResponse', transferContactResponse_contactArn - The Amazon Resource Name (ARN) of the contact.

TransferContact, transferContactResponse_contactId - The identifier of the contact in this instance of Amazon Connect.

$sel:httpStatus:TransferContactResponse', transferContactResponse_httpStatus - The response's http status code.

Response Lenses

transferContactResponse_contactArn :: Lens' TransferContactResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the contact.

transferContactResponse_contactId :: Lens' TransferContactResponse (Maybe Text) Source #

The identifier of the contact in this instance of Amazon Connect.