amazonka-connect-1.6.0: Amazon Connect Service SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Connect.StopContact

Contents

Description

Ends the contact initiated by the StartOutboundVoiceContact operation.

If you are using an IAM account, it must have permissions to the connect:StopContact operation.

Synopsis

Creating a Request

stopContact Source #

Creates a value of StopContact with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • scContactId - The unique identifier of the contact to end. This is the ContactId value returned from the StartOutboundVoiceContact operation.
  • scInstanceId - The identifier of the Amazon Connect instance in which the contact is active.

data StopContact Source #

See: stopContact smart constructor.

Instances

Eq StopContact Source # 
Data StopContact Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> StopContact -> c StopContact #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c StopContact #

toConstr :: StopContact -> Constr #

dataTypeOf :: StopContact -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c StopContact) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c StopContact) #

gmapT :: (forall b. Data b => b -> b) -> StopContact -> StopContact #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> StopContact -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> StopContact -> r #

gmapQ :: (forall d. Data d => d -> u) -> StopContact -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> StopContact -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> StopContact -> m StopContact #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> StopContact -> m StopContact #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> StopContact -> m StopContact #

Read StopContact Source # 
Show StopContact Source # 
Generic StopContact Source # 

Associated Types

type Rep StopContact :: * -> * #

Hashable StopContact Source # 
ToJSON StopContact Source # 
NFData StopContact Source # 

Methods

rnf :: StopContact -> () #

AWSRequest StopContact Source # 
ToHeaders StopContact Source # 

Methods

toHeaders :: StopContact -> [Header] #

ToPath StopContact Source # 
ToQuery StopContact Source # 
type Rep StopContact Source # 
type Rep StopContact = D1 * (MetaData "StopContact" "Network.AWS.Connect.StopContact" "amazonka-connect-1.6.0-Cvyjp9YiCJJ5KbPhYlqW9W" False) (C1 * (MetaCons "StopContact'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_scContactId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_scInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs StopContact Source # 

Request Lenses

scContactId :: Lens' StopContact Text Source #

The unique identifier of the contact to end. This is the ContactId value returned from the StartOutboundVoiceContact operation.

scInstanceId :: Lens' StopContact Text Source #

The identifier of the Amazon Connect instance in which the contact is active.

Destructuring the Response

stopContactResponse Source #

Creates a value of StopContactResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data StopContactResponse Source #

See: stopContactResponse smart constructor.

Instances

Eq StopContactResponse Source # 
Data StopContactResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> StopContactResponse -> c StopContactResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c StopContactResponse #

toConstr :: StopContactResponse -> Constr #

dataTypeOf :: StopContactResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c StopContactResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c StopContactResponse) #

gmapT :: (forall b. Data b => b -> b) -> StopContactResponse -> StopContactResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> StopContactResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> StopContactResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> StopContactResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> StopContactResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> StopContactResponse -> m StopContactResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> StopContactResponse -> m StopContactResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> StopContactResponse -> m StopContactResponse #

Read StopContactResponse Source # 
Show StopContactResponse Source # 
Generic StopContactResponse Source # 
NFData StopContactResponse Source # 

Methods

rnf :: StopContactResponse -> () #

type Rep StopContactResponse Source # 
type Rep StopContactResponse = D1 * (MetaData "StopContactResponse" "Network.AWS.Connect.StopContact" "amazonka-connect-1.6.0-Cvyjp9YiCJJ5KbPhYlqW9W" True) (C1 * (MetaCons "StopContactResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_scrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses

scrsResponseStatus :: Lens' StopContactResponse Int Source #

  • - | The response status code.