{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Connect.DeleteIntegrationAssociation
(
DeleteIntegrationAssociation (..),
newDeleteIntegrationAssociation,
deleteIntegrationAssociation_instanceId,
deleteIntegrationAssociation_integrationAssociationId,
DeleteIntegrationAssociationResponse (..),
newDeleteIntegrationAssociationResponse,
)
where
import Amazonka.Connect.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DeleteIntegrationAssociation = DeleteIntegrationAssociation'
{
DeleteIntegrationAssociation -> Text
instanceId :: Prelude.Text,
DeleteIntegrationAssociation -> Text
integrationAssociationId :: Prelude.Text
}
deriving (DeleteIntegrationAssociation
-> DeleteIntegrationAssociation -> Bool
(DeleteIntegrationAssociation
-> DeleteIntegrationAssociation -> Bool)
-> (DeleteIntegrationAssociation
-> DeleteIntegrationAssociation -> Bool)
-> Eq DeleteIntegrationAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteIntegrationAssociation
-> DeleteIntegrationAssociation -> Bool
$c/= :: DeleteIntegrationAssociation
-> DeleteIntegrationAssociation -> Bool
== :: DeleteIntegrationAssociation
-> DeleteIntegrationAssociation -> Bool
$c== :: DeleteIntegrationAssociation
-> DeleteIntegrationAssociation -> Bool
Prelude.Eq, ReadPrec [DeleteIntegrationAssociation]
ReadPrec DeleteIntegrationAssociation
Int -> ReadS DeleteIntegrationAssociation
ReadS [DeleteIntegrationAssociation]
(Int -> ReadS DeleteIntegrationAssociation)
-> ReadS [DeleteIntegrationAssociation]
-> ReadPrec DeleteIntegrationAssociation
-> ReadPrec [DeleteIntegrationAssociation]
-> Read DeleteIntegrationAssociation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteIntegrationAssociation]
$creadListPrec :: ReadPrec [DeleteIntegrationAssociation]
readPrec :: ReadPrec DeleteIntegrationAssociation
$creadPrec :: ReadPrec DeleteIntegrationAssociation
readList :: ReadS [DeleteIntegrationAssociation]
$creadList :: ReadS [DeleteIntegrationAssociation]
readsPrec :: Int -> ReadS DeleteIntegrationAssociation
$creadsPrec :: Int -> ReadS DeleteIntegrationAssociation
Prelude.Read, Int -> DeleteIntegrationAssociation -> ShowS
[DeleteIntegrationAssociation] -> ShowS
DeleteIntegrationAssociation -> String
(Int -> DeleteIntegrationAssociation -> ShowS)
-> (DeleteIntegrationAssociation -> String)
-> ([DeleteIntegrationAssociation] -> ShowS)
-> Show DeleteIntegrationAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteIntegrationAssociation] -> ShowS
$cshowList :: [DeleteIntegrationAssociation] -> ShowS
show :: DeleteIntegrationAssociation -> String
$cshow :: DeleteIntegrationAssociation -> String
showsPrec :: Int -> DeleteIntegrationAssociation -> ShowS
$cshowsPrec :: Int -> DeleteIntegrationAssociation -> ShowS
Prelude.Show, (forall x.
DeleteIntegrationAssociation -> Rep DeleteIntegrationAssociation x)
-> (forall x.
Rep DeleteIntegrationAssociation x -> DeleteIntegrationAssociation)
-> Generic DeleteIntegrationAssociation
forall x.
Rep DeleteIntegrationAssociation x -> DeleteIntegrationAssociation
forall x.
DeleteIntegrationAssociation -> Rep DeleteIntegrationAssociation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteIntegrationAssociation x -> DeleteIntegrationAssociation
$cfrom :: forall x.
DeleteIntegrationAssociation -> Rep DeleteIntegrationAssociation x
Prelude.Generic)
newDeleteIntegrationAssociation ::
Prelude.Text ->
Prelude.Text ->
DeleteIntegrationAssociation
newDeleteIntegrationAssociation :: Text -> Text -> DeleteIntegrationAssociation
newDeleteIntegrationAssociation
Text
pInstanceId_
Text
pIntegrationAssociationId_ =
DeleteIntegrationAssociation' :: Text -> Text -> DeleteIntegrationAssociation
DeleteIntegrationAssociation'
{ $sel:instanceId:DeleteIntegrationAssociation' :: Text
instanceId =
Text
pInstanceId_,
$sel:integrationAssociationId:DeleteIntegrationAssociation' :: Text
integrationAssociationId =
Text
pIntegrationAssociationId_
}
deleteIntegrationAssociation_instanceId :: Lens.Lens' DeleteIntegrationAssociation Prelude.Text
deleteIntegrationAssociation_instanceId :: (Text -> f Text)
-> DeleteIntegrationAssociation -> f DeleteIntegrationAssociation
deleteIntegrationAssociation_instanceId = (DeleteIntegrationAssociation -> Text)
-> (DeleteIntegrationAssociation
-> Text -> DeleteIntegrationAssociation)
-> Lens
DeleteIntegrationAssociation DeleteIntegrationAssociation Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteIntegrationAssociation' {Text
instanceId :: Text
$sel:instanceId:DeleteIntegrationAssociation' :: DeleteIntegrationAssociation -> Text
instanceId} -> Text
instanceId) (\s :: DeleteIntegrationAssociation
s@DeleteIntegrationAssociation' {} Text
a -> DeleteIntegrationAssociation
s {$sel:instanceId:DeleteIntegrationAssociation' :: Text
instanceId = Text
a} :: DeleteIntegrationAssociation)
deleteIntegrationAssociation_integrationAssociationId :: Lens.Lens' DeleteIntegrationAssociation Prelude.Text
deleteIntegrationAssociation_integrationAssociationId :: (Text -> f Text)
-> DeleteIntegrationAssociation -> f DeleteIntegrationAssociation
deleteIntegrationAssociation_integrationAssociationId = (DeleteIntegrationAssociation -> Text)
-> (DeleteIntegrationAssociation
-> Text -> DeleteIntegrationAssociation)
-> Lens
DeleteIntegrationAssociation DeleteIntegrationAssociation Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteIntegrationAssociation' {Text
integrationAssociationId :: Text
$sel:integrationAssociationId:DeleteIntegrationAssociation' :: DeleteIntegrationAssociation -> Text
integrationAssociationId} -> Text
integrationAssociationId) (\s :: DeleteIntegrationAssociation
s@DeleteIntegrationAssociation' {} Text
a -> DeleteIntegrationAssociation
s {$sel:integrationAssociationId:DeleteIntegrationAssociation' :: Text
integrationAssociationId = Text
a} :: DeleteIntegrationAssociation)
instance Core.AWSRequest DeleteIntegrationAssociation where
type
AWSResponse DeleteIntegrationAssociation =
DeleteIntegrationAssociationResponse
request :: DeleteIntegrationAssociation
-> Request DeleteIntegrationAssociation
request = Service
-> DeleteIntegrationAssociation
-> Request DeleteIntegrationAssociation
forall a. ToRequest a => Service -> a -> Request a
Request.delete Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteIntegrationAssociation
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteIntegrationAssociation)))
response =
AWSResponse DeleteIntegrationAssociation
-> Logger
-> Service
-> Proxy DeleteIntegrationAssociation
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteIntegrationAssociation)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
AWSResponse DeleteIntegrationAssociation
DeleteIntegrationAssociationResponse
DeleteIntegrationAssociationResponse'
instance
Prelude.Hashable
DeleteIntegrationAssociation
instance Prelude.NFData DeleteIntegrationAssociation
instance Core.ToHeaders DeleteIntegrationAssociation where
toHeaders :: DeleteIntegrationAssociation -> [Header]
toHeaders =
[Header] -> DeleteIntegrationAssociation -> [Header]
forall a b. a -> b -> a
Prelude.const
( [[Header]] -> [Header]
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath DeleteIntegrationAssociation where
toPath :: DeleteIntegrationAssociation -> ByteString
toPath DeleteIntegrationAssociation' {Text
integrationAssociationId :: Text
instanceId :: Text
$sel:integrationAssociationId:DeleteIntegrationAssociation' :: DeleteIntegrationAssociation -> Text
$sel:instanceId:DeleteIntegrationAssociation' :: DeleteIntegrationAssociation -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/instance/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
instanceId,
ByteString
"/integration-associations/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
integrationAssociationId
]
instance Core.ToQuery DeleteIntegrationAssociation where
toQuery :: DeleteIntegrationAssociation -> QueryString
toQuery = QueryString -> DeleteIntegrationAssociation -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeleteIntegrationAssociationResponse = DeleteIntegrationAssociationResponse'
{
}
deriving (DeleteIntegrationAssociationResponse
-> DeleteIntegrationAssociationResponse -> Bool
(DeleteIntegrationAssociationResponse
-> DeleteIntegrationAssociationResponse -> Bool)
-> (DeleteIntegrationAssociationResponse
-> DeleteIntegrationAssociationResponse -> Bool)
-> Eq DeleteIntegrationAssociationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteIntegrationAssociationResponse
-> DeleteIntegrationAssociationResponse -> Bool
$c/= :: DeleteIntegrationAssociationResponse
-> DeleteIntegrationAssociationResponse -> Bool
== :: DeleteIntegrationAssociationResponse
-> DeleteIntegrationAssociationResponse -> Bool
$c== :: DeleteIntegrationAssociationResponse
-> DeleteIntegrationAssociationResponse -> Bool
Prelude.Eq, ReadPrec [DeleteIntegrationAssociationResponse]
ReadPrec DeleteIntegrationAssociationResponse
Int -> ReadS DeleteIntegrationAssociationResponse
ReadS [DeleteIntegrationAssociationResponse]
(Int -> ReadS DeleteIntegrationAssociationResponse)
-> ReadS [DeleteIntegrationAssociationResponse]
-> ReadPrec DeleteIntegrationAssociationResponse
-> ReadPrec [DeleteIntegrationAssociationResponse]
-> Read DeleteIntegrationAssociationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteIntegrationAssociationResponse]
$creadListPrec :: ReadPrec [DeleteIntegrationAssociationResponse]
readPrec :: ReadPrec DeleteIntegrationAssociationResponse
$creadPrec :: ReadPrec DeleteIntegrationAssociationResponse
readList :: ReadS [DeleteIntegrationAssociationResponse]
$creadList :: ReadS [DeleteIntegrationAssociationResponse]
readsPrec :: Int -> ReadS DeleteIntegrationAssociationResponse
$creadsPrec :: Int -> ReadS DeleteIntegrationAssociationResponse
Prelude.Read, Int -> DeleteIntegrationAssociationResponse -> ShowS
[DeleteIntegrationAssociationResponse] -> ShowS
DeleteIntegrationAssociationResponse -> String
(Int -> DeleteIntegrationAssociationResponse -> ShowS)
-> (DeleteIntegrationAssociationResponse -> String)
-> ([DeleteIntegrationAssociationResponse] -> ShowS)
-> Show DeleteIntegrationAssociationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteIntegrationAssociationResponse] -> ShowS
$cshowList :: [DeleteIntegrationAssociationResponse] -> ShowS
show :: DeleteIntegrationAssociationResponse -> String
$cshow :: DeleteIntegrationAssociationResponse -> String
showsPrec :: Int -> DeleteIntegrationAssociationResponse -> ShowS
$cshowsPrec :: Int -> DeleteIntegrationAssociationResponse -> ShowS
Prelude.Show, (forall x.
DeleteIntegrationAssociationResponse
-> Rep DeleteIntegrationAssociationResponse x)
-> (forall x.
Rep DeleteIntegrationAssociationResponse x
-> DeleteIntegrationAssociationResponse)
-> Generic DeleteIntegrationAssociationResponse
forall x.
Rep DeleteIntegrationAssociationResponse x
-> DeleteIntegrationAssociationResponse
forall x.
DeleteIntegrationAssociationResponse
-> Rep DeleteIntegrationAssociationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteIntegrationAssociationResponse x
-> DeleteIntegrationAssociationResponse
$cfrom :: forall x.
DeleteIntegrationAssociationResponse
-> Rep DeleteIntegrationAssociationResponse x
Prelude.Generic)
newDeleteIntegrationAssociationResponse ::
DeleteIntegrationAssociationResponse
newDeleteIntegrationAssociationResponse :: DeleteIntegrationAssociationResponse
newDeleteIntegrationAssociationResponse =
DeleteIntegrationAssociationResponse
DeleteIntegrationAssociationResponse'
instance
Prelude.NFData
DeleteIntegrationAssociationResponse