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