{-# 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.SQS.UntagQueue
(
UntagQueue (..),
newUntagQueue,
untagQueue_queueUrl,
untagQueue_tagKeys,
UntagQueueResponse (..),
newUntagQueueResponse,
)
where
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
import Amazonka.SQS.Types
data UntagQueue = UntagQueue'
{
UntagQueue -> Text
queueUrl :: Prelude.Text,
UntagQueue -> [Text]
tagKeys :: [Prelude.Text]
}
deriving (UntagQueue -> UntagQueue -> Bool
(UntagQueue -> UntagQueue -> Bool)
-> (UntagQueue -> UntagQueue -> Bool) -> Eq UntagQueue
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UntagQueue -> UntagQueue -> Bool
$c/= :: UntagQueue -> UntagQueue -> Bool
== :: UntagQueue -> UntagQueue -> Bool
$c== :: UntagQueue -> UntagQueue -> Bool
Prelude.Eq, ReadPrec [UntagQueue]
ReadPrec UntagQueue
Int -> ReadS UntagQueue
ReadS [UntagQueue]
(Int -> ReadS UntagQueue)
-> ReadS [UntagQueue]
-> ReadPrec UntagQueue
-> ReadPrec [UntagQueue]
-> Read UntagQueue
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UntagQueue]
$creadListPrec :: ReadPrec [UntagQueue]
readPrec :: ReadPrec UntagQueue
$creadPrec :: ReadPrec UntagQueue
readList :: ReadS [UntagQueue]
$creadList :: ReadS [UntagQueue]
readsPrec :: Int -> ReadS UntagQueue
$creadsPrec :: Int -> ReadS UntagQueue
Prelude.Read, Int -> UntagQueue -> ShowS
[UntagQueue] -> ShowS
UntagQueue -> String
(Int -> UntagQueue -> ShowS)
-> (UntagQueue -> String)
-> ([UntagQueue] -> ShowS)
-> Show UntagQueue
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UntagQueue] -> ShowS
$cshowList :: [UntagQueue] -> ShowS
show :: UntagQueue -> String
$cshow :: UntagQueue -> String
showsPrec :: Int -> UntagQueue -> ShowS
$cshowsPrec :: Int -> UntagQueue -> ShowS
Prelude.Show, (forall x. UntagQueue -> Rep UntagQueue x)
-> (forall x. Rep UntagQueue x -> UntagQueue) -> Generic UntagQueue
forall x. Rep UntagQueue x -> UntagQueue
forall x. UntagQueue -> Rep UntagQueue x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UntagQueue x -> UntagQueue
$cfrom :: forall x. UntagQueue -> Rep UntagQueue x
Prelude.Generic)
newUntagQueue ::
Prelude.Text ->
UntagQueue
newUntagQueue :: Text -> UntagQueue
newUntagQueue Text
pQueueUrl_ =
UntagQueue' :: Text -> [Text] -> UntagQueue
UntagQueue'
{ $sel:queueUrl:UntagQueue' :: Text
queueUrl = Text
pQueueUrl_,
$sel:tagKeys:UntagQueue' :: [Text]
tagKeys = [Text]
forall a. Monoid a => a
Prelude.mempty
}
untagQueue_queueUrl :: Lens.Lens' UntagQueue Prelude.Text
untagQueue_queueUrl :: (Text -> f Text) -> UntagQueue -> f UntagQueue
untagQueue_queueUrl = (UntagQueue -> Text)
-> (UntagQueue -> Text -> UntagQueue)
-> Lens UntagQueue UntagQueue Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UntagQueue' {Text
queueUrl :: Text
$sel:queueUrl:UntagQueue' :: UntagQueue -> Text
queueUrl} -> Text
queueUrl) (\s :: UntagQueue
s@UntagQueue' {} Text
a -> UntagQueue
s {$sel:queueUrl:UntagQueue' :: Text
queueUrl = Text
a} :: UntagQueue)
untagQueue_tagKeys :: Lens.Lens' UntagQueue [Prelude.Text]
untagQueue_tagKeys :: ([Text] -> f [Text]) -> UntagQueue -> f UntagQueue
untagQueue_tagKeys = (UntagQueue -> [Text])
-> (UntagQueue -> [Text] -> UntagQueue)
-> Lens UntagQueue UntagQueue [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UntagQueue' {[Text]
tagKeys :: [Text]
$sel:tagKeys:UntagQueue' :: UntagQueue -> [Text]
tagKeys} -> [Text]
tagKeys) (\s :: UntagQueue
s@UntagQueue' {} [Text]
a -> UntagQueue
s {$sel:tagKeys:UntagQueue' :: [Text]
tagKeys = [Text]
a} :: UntagQueue) (([Text] -> f [Text]) -> UntagQueue -> f UntagQueue)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> UntagQueue
-> f UntagQueue
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest UntagQueue where
type AWSResponse UntagQueue = UntagQueueResponse
request :: UntagQueue -> Request UntagQueue
request = Service -> UntagQueue -> Request UntagQueue
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy UntagQueue
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UntagQueue)))
response = AWSResponse UntagQueue
-> Logger
-> Service
-> Proxy UntagQueue
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UntagQueue)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull AWSResponse UntagQueue
UntagQueueResponse
UntagQueueResponse'
instance Prelude.Hashable UntagQueue
instance Prelude.NFData UntagQueue
instance Core.ToHeaders UntagQueue where
toHeaders :: UntagQueue -> [Header]
toHeaders = [Header] -> UntagQueue -> [Header]
forall a b. a -> b -> a
Prelude.const [Header]
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath UntagQueue where
toPath :: UntagQueue -> ByteString
toPath = ByteString -> UntagQueue -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UntagQueue where
toQuery :: UntagQueue -> QueryString
toQuery UntagQueue' {[Text]
Text
tagKeys :: [Text]
queueUrl :: Text
$sel:tagKeys:UntagQueue' :: UntagQueue -> [Text]
$sel:queueUrl:UntagQueue' :: UntagQueue -> Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"UntagQueue" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2012-11-05" :: Prelude.ByteString),
ByteString
"QueueUrl" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
queueUrl,
ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"TagKey" [Text]
tagKeys
]
data UntagQueueResponse = UntagQueueResponse'
{
}
deriving (UntagQueueResponse -> UntagQueueResponse -> Bool
(UntagQueueResponse -> UntagQueueResponse -> Bool)
-> (UntagQueueResponse -> UntagQueueResponse -> Bool)
-> Eq UntagQueueResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UntagQueueResponse -> UntagQueueResponse -> Bool
$c/= :: UntagQueueResponse -> UntagQueueResponse -> Bool
== :: UntagQueueResponse -> UntagQueueResponse -> Bool
$c== :: UntagQueueResponse -> UntagQueueResponse -> Bool
Prelude.Eq, ReadPrec [UntagQueueResponse]
ReadPrec UntagQueueResponse
Int -> ReadS UntagQueueResponse
ReadS [UntagQueueResponse]
(Int -> ReadS UntagQueueResponse)
-> ReadS [UntagQueueResponse]
-> ReadPrec UntagQueueResponse
-> ReadPrec [UntagQueueResponse]
-> Read UntagQueueResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UntagQueueResponse]
$creadListPrec :: ReadPrec [UntagQueueResponse]
readPrec :: ReadPrec UntagQueueResponse
$creadPrec :: ReadPrec UntagQueueResponse
readList :: ReadS [UntagQueueResponse]
$creadList :: ReadS [UntagQueueResponse]
readsPrec :: Int -> ReadS UntagQueueResponse
$creadsPrec :: Int -> ReadS UntagQueueResponse
Prelude.Read, Int -> UntagQueueResponse -> ShowS
[UntagQueueResponse] -> ShowS
UntagQueueResponse -> String
(Int -> UntagQueueResponse -> ShowS)
-> (UntagQueueResponse -> String)
-> ([UntagQueueResponse] -> ShowS)
-> Show UntagQueueResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UntagQueueResponse] -> ShowS
$cshowList :: [UntagQueueResponse] -> ShowS
show :: UntagQueueResponse -> String
$cshow :: UntagQueueResponse -> String
showsPrec :: Int -> UntagQueueResponse -> ShowS
$cshowsPrec :: Int -> UntagQueueResponse -> ShowS
Prelude.Show, (forall x. UntagQueueResponse -> Rep UntagQueueResponse x)
-> (forall x. Rep UntagQueueResponse x -> UntagQueueResponse)
-> Generic UntagQueueResponse
forall x. Rep UntagQueueResponse x -> UntagQueueResponse
forall x. UntagQueueResponse -> Rep UntagQueueResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UntagQueueResponse x -> UntagQueueResponse
$cfrom :: forall x. UntagQueueResponse -> Rep UntagQueueResponse x
Prelude.Generic)
newUntagQueueResponse ::
UntagQueueResponse
newUntagQueueResponse :: UntagQueueResponse
newUntagQueueResponse = UntagQueueResponse
UntagQueueResponse'
instance Prelude.NFData UntagQueueResponse