{-# 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.IAM.UntagServerCertificate
(
UntagServerCertificate (..),
newUntagServerCertificate,
untagServerCertificate_serverCertificateName,
untagServerCertificate_tagKeys,
UntagServerCertificateResponse (..),
newUntagServerCertificateResponse,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IAM.Types
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 UntagServerCertificate = UntagServerCertificate'
{
UntagServerCertificate -> Text
serverCertificateName :: Prelude.Text,
UntagServerCertificate -> [Text]
tagKeys :: [Prelude.Text]
}
deriving (UntagServerCertificate -> UntagServerCertificate -> Bool
(UntagServerCertificate -> UntagServerCertificate -> Bool)
-> (UntagServerCertificate -> UntagServerCertificate -> Bool)
-> Eq UntagServerCertificate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UntagServerCertificate -> UntagServerCertificate -> Bool
$c/= :: UntagServerCertificate -> UntagServerCertificate -> Bool
== :: UntagServerCertificate -> UntagServerCertificate -> Bool
$c== :: UntagServerCertificate -> UntagServerCertificate -> Bool
Prelude.Eq, ReadPrec [UntagServerCertificate]
ReadPrec UntagServerCertificate
Int -> ReadS UntagServerCertificate
ReadS [UntagServerCertificate]
(Int -> ReadS UntagServerCertificate)
-> ReadS [UntagServerCertificate]
-> ReadPrec UntagServerCertificate
-> ReadPrec [UntagServerCertificate]
-> Read UntagServerCertificate
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UntagServerCertificate]
$creadListPrec :: ReadPrec [UntagServerCertificate]
readPrec :: ReadPrec UntagServerCertificate
$creadPrec :: ReadPrec UntagServerCertificate
readList :: ReadS [UntagServerCertificate]
$creadList :: ReadS [UntagServerCertificate]
readsPrec :: Int -> ReadS UntagServerCertificate
$creadsPrec :: Int -> ReadS UntagServerCertificate
Prelude.Read, Int -> UntagServerCertificate -> ShowS
[UntagServerCertificate] -> ShowS
UntagServerCertificate -> String
(Int -> UntagServerCertificate -> ShowS)
-> (UntagServerCertificate -> String)
-> ([UntagServerCertificate] -> ShowS)
-> Show UntagServerCertificate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UntagServerCertificate] -> ShowS
$cshowList :: [UntagServerCertificate] -> ShowS
show :: UntagServerCertificate -> String
$cshow :: UntagServerCertificate -> String
showsPrec :: Int -> UntagServerCertificate -> ShowS
$cshowsPrec :: Int -> UntagServerCertificate -> ShowS
Prelude.Show, (forall x. UntagServerCertificate -> Rep UntagServerCertificate x)
-> (forall x.
Rep UntagServerCertificate x -> UntagServerCertificate)
-> Generic UntagServerCertificate
forall x. Rep UntagServerCertificate x -> UntagServerCertificate
forall x. UntagServerCertificate -> Rep UntagServerCertificate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UntagServerCertificate x -> UntagServerCertificate
$cfrom :: forall x. UntagServerCertificate -> Rep UntagServerCertificate x
Prelude.Generic)
newUntagServerCertificate ::
Prelude.Text ->
UntagServerCertificate
newUntagServerCertificate :: Text -> UntagServerCertificate
newUntagServerCertificate Text
pServerCertificateName_ =
UntagServerCertificate' :: Text -> [Text] -> UntagServerCertificate
UntagServerCertificate'
{ $sel:serverCertificateName:UntagServerCertificate' :: Text
serverCertificateName =
Text
pServerCertificateName_,
$sel:tagKeys:UntagServerCertificate' :: [Text]
tagKeys = [Text]
forall a. Monoid a => a
Prelude.mempty
}
untagServerCertificate_serverCertificateName :: Lens.Lens' UntagServerCertificate Prelude.Text
untagServerCertificate_serverCertificateName :: (Text -> f Text)
-> UntagServerCertificate -> f UntagServerCertificate
untagServerCertificate_serverCertificateName = (UntagServerCertificate -> Text)
-> (UntagServerCertificate -> Text -> UntagServerCertificate)
-> Lens UntagServerCertificate UntagServerCertificate Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UntagServerCertificate' {Text
serverCertificateName :: Text
$sel:serverCertificateName:UntagServerCertificate' :: UntagServerCertificate -> Text
serverCertificateName} -> Text
serverCertificateName) (\s :: UntagServerCertificate
s@UntagServerCertificate' {} Text
a -> UntagServerCertificate
s {$sel:serverCertificateName:UntagServerCertificate' :: Text
serverCertificateName = Text
a} :: UntagServerCertificate)
untagServerCertificate_tagKeys :: Lens.Lens' UntagServerCertificate [Prelude.Text]
untagServerCertificate_tagKeys :: ([Text] -> f [Text])
-> UntagServerCertificate -> f UntagServerCertificate
untagServerCertificate_tagKeys = (UntagServerCertificate -> [Text])
-> (UntagServerCertificate -> [Text] -> UntagServerCertificate)
-> Lens UntagServerCertificate UntagServerCertificate [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UntagServerCertificate' {[Text]
tagKeys :: [Text]
$sel:tagKeys:UntagServerCertificate' :: UntagServerCertificate -> [Text]
tagKeys} -> [Text]
tagKeys) (\s :: UntagServerCertificate
s@UntagServerCertificate' {} [Text]
a -> UntagServerCertificate
s {$sel:tagKeys:UntagServerCertificate' :: [Text]
tagKeys = [Text]
a} :: UntagServerCertificate) (([Text] -> f [Text])
-> UntagServerCertificate -> f UntagServerCertificate)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> UntagServerCertificate
-> f UntagServerCertificate
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 UntagServerCertificate where
type
AWSResponse UntagServerCertificate =
UntagServerCertificateResponse
request :: UntagServerCertificate -> Request UntagServerCertificate
request = Service -> UntagServerCertificate -> Request UntagServerCertificate
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy UntagServerCertificate
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UntagServerCertificate)))
response =
AWSResponse UntagServerCertificate
-> Logger
-> Service
-> Proxy UntagServerCertificate
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UntagServerCertificate)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
AWSResponse UntagServerCertificate
UntagServerCertificateResponse
UntagServerCertificateResponse'
instance Prelude.Hashable UntagServerCertificate
instance Prelude.NFData UntagServerCertificate
instance Core.ToHeaders UntagServerCertificate where
toHeaders :: UntagServerCertificate -> [Header]
toHeaders = [Header] -> UntagServerCertificate -> [Header]
forall a b. a -> b -> a
Prelude.const [Header]
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath UntagServerCertificate where
toPath :: UntagServerCertificate -> ByteString
toPath = ByteString -> UntagServerCertificate -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UntagServerCertificate where
toQuery :: UntagServerCertificate -> QueryString
toQuery UntagServerCertificate' {[Text]
Text
tagKeys :: [Text]
serverCertificateName :: Text
$sel:tagKeys:UntagServerCertificate' :: UntagServerCertificate -> [Text]
$sel:serverCertificateName:UntagServerCertificate' :: UntagServerCertificate -> 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
"UntagServerCertificate" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-05-08" :: Prelude.ByteString),
ByteString
"ServerCertificateName"
ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
serverCertificateName,
ByteString
"TagKeys" ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" [Text]
tagKeys
]
data UntagServerCertificateResponse = UntagServerCertificateResponse'
{
}
deriving (UntagServerCertificateResponse
-> UntagServerCertificateResponse -> Bool
(UntagServerCertificateResponse
-> UntagServerCertificateResponse -> Bool)
-> (UntagServerCertificateResponse
-> UntagServerCertificateResponse -> Bool)
-> Eq UntagServerCertificateResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UntagServerCertificateResponse
-> UntagServerCertificateResponse -> Bool
$c/= :: UntagServerCertificateResponse
-> UntagServerCertificateResponse -> Bool
== :: UntagServerCertificateResponse
-> UntagServerCertificateResponse -> Bool
$c== :: UntagServerCertificateResponse
-> UntagServerCertificateResponse -> Bool
Prelude.Eq, ReadPrec [UntagServerCertificateResponse]
ReadPrec UntagServerCertificateResponse
Int -> ReadS UntagServerCertificateResponse
ReadS [UntagServerCertificateResponse]
(Int -> ReadS UntagServerCertificateResponse)
-> ReadS [UntagServerCertificateResponse]
-> ReadPrec UntagServerCertificateResponse
-> ReadPrec [UntagServerCertificateResponse]
-> Read UntagServerCertificateResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UntagServerCertificateResponse]
$creadListPrec :: ReadPrec [UntagServerCertificateResponse]
readPrec :: ReadPrec UntagServerCertificateResponse
$creadPrec :: ReadPrec UntagServerCertificateResponse
readList :: ReadS [UntagServerCertificateResponse]
$creadList :: ReadS [UntagServerCertificateResponse]
readsPrec :: Int -> ReadS UntagServerCertificateResponse
$creadsPrec :: Int -> ReadS UntagServerCertificateResponse
Prelude.Read, Int -> UntagServerCertificateResponse -> ShowS
[UntagServerCertificateResponse] -> ShowS
UntagServerCertificateResponse -> String
(Int -> UntagServerCertificateResponse -> ShowS)
-> (UntagServerCertificateResponse -> String)
-> ([UntagServerCertificateResponse] -> ShowS)
-> Show UntagServerCertificateResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UntagServerCertificateResponse] -> ShowS
$cshowList :: [UntagServerCertificateResponse] -> ShowS
show :: UntagServerCertificateResponse -> String
$cshow :: UntagServerCertificateResponse -> String
showsPrec :: Int -> UntagServerCertificateResponse -> ShowS
$cshowsPrec :: Int -> UntagServerCertificateResponse -> ShowS
Prelude.Show, (forall x.
UntagServerCertificateResponse
-> Rep UntagServerCertificateResponse x)
-> (forall x.
Rep UntagServerCertificateResponse x
-> UntagServerCertificateResponse)
-> Generic UntagServerCertificateResponse
forall x.
Rep UntagServerCertificateResponse x
-> UntagServerCertificateResponse
forall x.
UntagServerCertificateResponse
-> Rep UntagServerCertificateResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UntagServerCertificateResponse x
-> UntagServerCertificateResponse
$cfrom :: forall x.
UntagServerCertificateResponse
-> Rep UntagServerCertificateResponse x
Prelude.Generic)
newUntagServerCertificateResponse ::
UntagServerCertificateResponse
newUntagServerCertificateResponse :: UntagServerCertificateResponse
newUntagServerCertificateResponse =
UntagServerCertificateResponse
UntagServerCertificateResponse'
instance
Prelude.NFData
UntagServerCertificateResponse