{-# 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.Signer.CancelSigningProfile
(
CancelSigningProfile (..),
newCancelSigningProfile,
cancelSigningProfile_profileName,
CancelSigningProfileResponse (..),
newCancelSigningProfileResponse,
)
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.Signer.Types
data CancelSigningProfile = CancelSigningProfile'
{
CancelSigningProfile -> Text
profileName :: Prelude.Text
}
deriving (CancelSigningProfile -> CancelSigningProfile -> Bool
(CancelSigningProfile -> CancelSigningProfile -> Bool)
-> (CancelSigningProfile -> CancelSigningProfile -> Bool)
-> Eq CancelSigningProfile
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CancelSigningProfile -> CancelSigningProfile -> Bool
$c/= :: CancelSigningProfile -> CancelSigningProfile -> Bool
== :: CancelSigningProfile -> CancelSigningProfile -> Bool
$c== :: CancelSigningProfile -> CancelSigningProfile -> Bool
Prelude.Eq, ReadPrec [CancelSigningProfile]
ReadPrec CancelSigningProfile
Int -> ReadS CancelSigningProfile
ReadS [CancelSigningProfile]
(Int -> ReadS CancelSigningProfile)
-> ReadS [CancelSigningProfile]
-> ReadPrec CancelSigningProfile
-> ReadPrec [CancelSigningProfile]
-> Read CancelSigningProfile
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CancelSigningProfile]
$creadListPrec :: ReadPrec [CancelSigningProfile]
readPrec :: ReadPrec CancelSigningProfile
$creadPrec :: ReadPrec CancelSigningProfile
readList :: ReadS [CancelSigningProfile]
$creadList :: ReadS [CancelSigningProfile]
readsPrec :: Int -> ReadS CancelSigningProfile
$creadsPrec :: Int -> ReadS CancelSigningProfile
Prelude.Read, Int -> CancelSigningProfile -> ShowS
[CancelSigningProfile] -> ShowS
CancelSigningProfile -> String
(Int -> CancelSigningProfile -> ShowS)
-> (CancelSigningProfile -> String)
-> ([CancelSigningProfile] -> ShowS)
-> Show CancelSigningProfile
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CancelSigningProfile] -> ShowS
$cshowList :: [CancelSigningProfile] -> ShowS
show :: CancelSigningProfile -> String
$cshow :: CancelSigningProfile -> String
showsPrec :: Int -> CancelSigningProfile -> ShowS
$cshowsPrec :: Int -> CancelSigningProfile -> ShowS
Prelude.Show, (forall x. CancelSigningProfile -> Rep CancelSigningProfile x)
-> (forall x. Rep CancelSigningProfile x -> CancelSigningProfile)
-> Generic CancelSigningProfile
forall x. Rep CancelSigningProfile x -> CancelSigningProfile
forall x. CancelSigningProfile -> Rep CancelSigningProfile x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CancelSigningProfile x -> CancelSigningProfile
$cfrom :: forall x. CancelSigningProfile -> Rep CancelSigningProfile x
Prelude.Generic)
newCancelSigningProfile ::
Prelude.Text ->
CancelSigningProfile
newCancelSigningProfile :: Text -> CancelSigningProfile
newCancelSigningProfile Text
pProfileName_ =
CancelSigningProfile' :: Text -> CancelSigningProfile
CancelSigningProfile' {$sel:profileName:CancelSigningProfile' :: Text
profileName = Text
pProfileName_}
cancelSigningProfile_profileName :: Lens.Lens' CancelSigningProfile Prelude.Text
cancelSigningProfile_profileName :: (Text -> f Text) -> CancelSigningProfile -> f CancelSigningProfile
cancelSigningProfile_profileName = (CancelSigningProfile -> Text)
-> (CancelSigningProfile -> Text -> CancelSigningProfile)
-> Lens CancelSigningProfile CancelSigningProfile Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CancelSigningProfile' {Text
profileName :: Text
$sel:profileName:CancelSigningProfile' :: CancelSigningProfile -> Text
profileName} -> Text
profileName) (\s :: CancelSigningProfile
s@CancelSigningProfile' {} Text
a -> CancelSigningProfile
s {$sel:profileName:CancelSigningProfile' :: Text
profileName = Text
a} :: CancelSigningProfile)
instance Core.AWSRequest CancelSigningProfile where
type
AWSResponse CancelSigningProfile =
CancelSigningProfileResponse
request :: CancelSigningProfile -> Request CancelSigningProfile
request = Service -> CancelSigningProfile -> Request CancelSigningProfile
forall a. ToRequest a => Service -> a -> Request a
Request.delete Service
defaultService
response :: Logger
-> Service
-> Proxy CancelSigningProfile
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CancelSigningProfile)))
response =
AWSResponse CancelSigningProfile
-> Logger
-> Service
-> Proxy CancelSigningProfile
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CancelSigningProfile)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull AWSResponse CancelSigningProfile
CancelSigningProfileResponse
CancelSigningProfileResponse'
instance Prelude.Hashable CancelSigningProfile
instance Prelude.NFData CancelSigningProfile
instance Core.ToHeaders CancelSigningProfile where
toHeaders :: CancelSigningProfile -> [Header]
toHeaders =
[Header] -> CancelSigningProfile -> [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 CancelSigningProfile where
toPath :: CancelSigningProfile -> ByteString
toPath CancelSigningProfile' {Text
profileName :: Text
$sel:profileName:CancelSigningProfile' :: CancelSigningProfile -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/signing-profiles/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
profileName]
instance Core.ToQuery CancelSigningProfile where
toQuery :: CancelSigningProfile -> QueryString
toQuery = QueryString -> CancelSigningProfile -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CancelSigningProfileResponse = CancelSigningProfileResponse'
{
}
deriving (CancelSigningProfileResponse
-> CancelSigningProfileResponse -> Bool
(CancelSigningProfileResponse
-> CancelSigningProfileResponse -> Bool)
-> (CancelSigningProfileResponse
-> CancelSigningProfileResponse -> Bool)
-> Eq CancelSigningProfileResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CancelSigningProfileResponse
-> CancelSigningProfileResponse -> Bool
$c/= :: CancelSigningProfileResponse
-> CancelSigningProfileResponse -> Bool
== :: CancelSigningProfileResponse
-> CancelSigningProfileResponse -> Bool
$c== :: CancelSigningProfileResponse
-> CancelSigningProfileResponse -> Bool
Prelude.Eq, ReadPrec [CancelSigningProfileResponse]
ReadPrec CancelSigningProfileResponse
Int -> ReadS CancelSigningProfileResponse
ReadS [CancelSigningProfileResponse]
(Int -> ReadS CancelSigningProfileResponse)
-> ReadS [CancelSigningProfileResponse]
-> ReadPrec CancelSigningProfileResponse
-> ReadPrec [CancelSigningProfileResponse]
-> Read CancelSigningProfileResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CancelSigningProfileResponse]
$creadListPrec :: ReadPrec [CancelSigningProfileResponse]
readPrec :: ReadPrec CancelSigningProfileResponse
$creadPrec :: ReadPrec CancelSigningProfileResponse
readList :: ReadS [CancelSigningProfileResponse]
$creadList :: ReadS [CancelSigningProfileResponse]
readsPrec :: Int -> ReadS CancelSigningProfileResponse
$creadsPrec :: Int -> ReadS CancelSigningProfileResponse
Prelude.Read, Int -> CancelSigningProfileResponse -> ShowS
[CancelSigningProfileResponse] -> ShowS
CancelSigningProfileResponse -> String
(Int -> CancelSigningProfileResponse -> ShowS)
-> (CancelSigningProfileResponse -> String)
-> ([CancelSigningProfileResponse] -> ShowS)
-> Show CancelSigningProfileResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CancelSigningProfileResponse] -> ShowS
$cshowList :: [CancelSigningProfileResponse] -> ShowS
show :: CancelSigningProfileResponse -> String
$cshow :: CancelSigningProfileResponse -> String
showsPrec :: Int -> CancelSigningProfileResponse -> ShowS
$cshowsPrec :: Int -> CancelSigningProfileResponse -> ShowS
Prelude.Show, (forall x.
CancelSigningProfileResponse -> Rep CancelSigningProfileResponse x)
-> (forall x.
Rep CancelSigningProfileResponse x -> CancelSigningProfileResponse)
-> Generic CancelSigningProfileResponse
forall x.
Rep CancelSigningProfileResponse x -> CancelSigningProfileResponse
forall x.
CancelSigningProfileResponse -> Rep CancelSigningProfileResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CancelSigningProfileResponse x -> CancelSigningProfileResponse
$cfrom :: forall x.
CancelSigningProfileResponse -> Rep CancelSigningProfileResponse x
Prelude.Generic)
newCancelSigningProfileResponse ::
CancelSigningProfileResponse
newCancelSigningProfileResponse :: CancelSigningProfileResponse
newCancelSigningProfileResponse =
CancelSigningProfileResponse
CancelSigningProfileResponse'
instance Prelude.NFData CancelSigningProfileResponse