{-# 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.AmplifyBackend.DeleteBackend
(
DeleteBackend (..),
newDeleteBackend,
deleteBackend_appId,
deleteBackend_backendEnvironmentName,
DeleteBackendResponse (..),
newDeleteBackendResponse,
deleteBackendResponse_status,
deleteBackendResponse_jobId,
deleteBackendResponse_operation,
deleteBackendResponse_error,
deleteBackendResponse_appId,
deleteBackendResponse_backendEnvironmentName,
deleteBackendResponse_httpStatus,
)
where
import Amazonka.AmplifyBackend.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 DeleteBackend = DeleteBackend'
{
DeleteBackend -> Text
appId :: Prelude.Text,
DeleteBackend -> Text
backendEnvironmentName :: Prelude.Text
}
deriving (DeleteBackend -> DeleteBackend -> Bool
(DeleteBackend -> DeleteBackend -> Bool)
-> (DeleteBackend -> DeleteBackend -> Bool) -> Eq DeleteBackend
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteBackend -> DeleteBackend -> Bool
$c/= :: DeleteBackend -> DeleteBackend -> Bool
== :: DeleteBackend -> DeleteBackend -> Bool
$c== :: DeleteBackend -> DeleteBackend -> Bool
Prelude.Eq, ReadPrec [DeleteBackend]
ReadPrec DeleteBackend
Int -> ReadS DeleteBackend
ReadS [DeleteBackend]
(Int -> ReadS DeleteBackend)
-> ReadS [DeleteBackend]
-> ReadPrec DeleteBackend
-> ReadPrec [DeleteBackend]
-> Read DeleteBackend
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteBackend]
$creadListPrec :: ReadPrec [DeleteBackend]
readPrec :: ReadPrec DeleteBackend
$creadPrec :: ReadPrec DeleteBackend
readList :: ReadS [DeleteBackend]
$creadList :: ReadS [DeleteBackend]
readsPrec :: Int -> ReadS DeleteBackend
$creadsPrec :: Int -> ReadS DeleteBackend
Prelude.Read, Int -> DeleteBackend -> ShowS
[DeleteBackend] -> ShowS
DeleteBackend -> String
(Int -> DeleteBackend -> ShowS)
-> (DeleteBackend -> String)
-> ([DeleteBackend] -> ShowS)
-> Show DeleteBackend
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteBackend] -> ShowS
$cshowList :: [DeleteBackend] -> ShowS
show :: DeleteBackend -> String
$cshow :: DeleteBackend -> String
showsPrec :: Int -> DeleteBackend -> ShowS
$cshowsPrec :: Int -> DeleteBackend -> ShowS
Prelude.Show, (forall x. DeleteBackend -> Rep DeleteBackend x)
-> (forall x. Rep DeleteBackend x -> DeleteBackend)
-> Generic DeleteBackend
forall x. Rep DeleteBackend x -> DeleteBackend
forall x. DeleteBackend -> Rep DeleteBackend x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteBackend x -> DeleteBackend
$cfrom :: forall x. DeleteBackend -> Rep DeleteBackend x
Prelude.Generic)
newDeleteBackend ::
Prelude.Text ->
Prelude.Text ->
DeleteBackend
newDeleteBackend :: Text -> Text -> DeleteBackend
newDeleteBackend Text
pAppId_ Text
pBackendEnvironmentName_ =
DeleteBackend' :: Text -> Text -> DeleteBackend
DeleteBackend'
{ $sel:appId:DeleteBackend' :: Text
appId = Text
pAppId_,
$sel:backendEnvironmentName:DeleteBackend' :: Text
backendEnvironmentName = Text
pBackendEnvironmentName_
}
deleteBackend_appId :: Lens.Lens' DeleteBackend Prelude.Text
deleteBackend_appId :: (Text -> f Text) -> DeleteBackend -> f DeleteBackend
deleteBackend_appId = (DeleteBackend -> Text)
-> (DeleteBackend -> Text -> DeleteBackend)
-> Lens DeleteBackend DeleteBackend Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackend' {Text
appId :: Text
$sel:appId:DeleteBackend' :: DeleteBackend -> Text
appId} -> Text
appId) (\s :: DeleteBackend
s@DeleteBackend' {} Text
a -> DeleteBackend
s {$sel:appId:DeleteBackend' :: Text
appId = Text
a} :: DeleteBackend)
deleteBackend_backendEnvironmentName :: Lens.Lens' DeleteBackend Prelude.Text
deleteBackend_backendEnvironmentName :: (Text -> f Text) -> DeleteBackend -> f DeleteBackend
deleteBackend_backendEnvironmentName = (DeleteBackend -> Text)
-> (DeleteBackend -> Text -> DeleteBackend)
-> Lens DeleteBackend DeleteBackend Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackend' {Text
backendEnvironmentName :: Text
$sel:backendEnvironmentName:DeleteBackend' :: DeleteBackend -> Text
backendEnvironmentName} -> Text
backendEnvironmentName) (\s :: DeleteBackend
s@DeleteBackend' {} Text
a -> DeleteBackend
s {$sel:backendEnvironmentName:DeleteBackend' :: Text
backendEnvironmentName = Text
a} :: DeleteBackend)
instance Core.AWSRequest DeleteBackend where
type
AWSResponse DeleteBackend =
DeleteBackendResponse
request :: DeleteBackend -> Request DeleteBackend
request = Service -> DeleteBackend -> Request DeleteBackend
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteBackend
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DeleteBackend)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DeleteBackend))
-> Logger
-> Service
-> Proxy DeleteBackend
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DeleteBackend)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DeleteBackendResponse
DeleteBackendResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DeleteBackendResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DeleteBackendResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"status")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DeleteBackendResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DeleteBackendResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"jobId")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DeleteBackendResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> DeleteBackendResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"operation")
Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> DeleteBackendResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Maybe Text -> Int -> DeleteBackendResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"error")
Either
String (Maybe Text -> Maybe Text -> Int -> DeleteBackendResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> DeleteBackendResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"appId")
Either String (Maybe Text -> Int -> DeleteBackendResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DeleteBackendResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"backendEnvironmentName")
Either String (Int -> DeleteBackendResponse)
-> Either String Int -> Either String DeleteBackendResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DeleteBackend
instance Prelude.NFData DeleteBackend
instance Core.ToHeaders DeleteBackend where
toHeaders :: DeleteBackend -> ResponseHeaders
toHeaders =
ResponseHeaders -> DeleteBackend -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON DeleteBackend where
toJSON :: DeleteBackend -> Value
toJSON = Value -> DeleteBackend -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)
instance Core.ToPath DeleteBackend where
toPath :: DeleteBackend -> ByteString
toPath DeleteBackend' {Text
backendEnvironmentName :: Text
appId :: Text
$sel:backendEnvironmentName:DeleteBackend' :: DeleteBackend -> Text
$sel:appId:DeleteBackend' :: DeleteBackend -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/backend/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
appId,
ByteString
"/environments/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
backendEnvironmentName,
ByteString
"/remove"
]
instance Core.ToQuery DeleteBackend where
toQuery :: DeleteBackend -> QueryString
toQuery = QueryString -> DeleteBackend -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeleteBackendResponse = DeleteBackendResponse'
{
DeleteBackendResponse -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
DeleteBackendResponse -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
DeleteBackendResponse -> Maybe Text
operation :: Prelude.Maybe Prelude.Text,
DeleteBackendResponse -> Maybe Text
error :: Prelude.Maybe Prelude.Text,
DeleteBackendResponse -> Maybe Text
appId :: Prelude.Maybe Prelude.Text,
DeleteBackendResponse -> Maybe Text
backendEnvironmentName :: Prelude.Maybe Prelude.Text,
DeleteBackendResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DeleteBackendResponse -> DeleteBackendResponse -> Bool
(DeleteBackendResponse -> DeleteBackendResponse -> Bool)
-> (DeleteBackendResponse -> DeleteBackendResponse -> Bool)
-> Eq DeleteBackendResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteBackendResponse -> DeleteBackendResponse -> Bool
$c/= :: DeleteBackendResponse -> DeleteBackendResponse -> Bool
== :: DeleteBackendResponse -> DeleteBackendResponse -> Bool
$c== :: DeleteBackendResponse -> DeleteBackendResponse -> Bool
Prelude.Eq, ReadPrec [DeleteBackendResponse]
ReadPrec DeleteBackendResponse
Int -> ReadS DeleteBackendResponse
ReadS [DeleteBackendResponse]
(Int -> ReadS DeleteBackendResponse)
-> ReadS [DeleteBackendResponse]
-> ReadPrec DeleteBackendResponse
-> ReadPrec [DeleteBackendResponse]
-> Read DeleteBackendResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteBackendResponse]
$creadListPrec :: ReadPrec [DeleteBackendResponse]
readPrec :: ReadPrec DeleteBackendResponse
$creadPrec :: ReadPrec DeleteBackendResponse
readList :: ReadS [DeleteBackendResponse]
$creadList :: ReadS [DeleteBackendResponse]
readsPrec :: Int -> ReadS DeleteBackendResponse
$creadsPrec :: Int -> ReadS DeleteBackendResponse
Prelude.Read, Int -> DeleteBackendResponse -> ShowS
[DeleteBackendResponse] -> ShowS
DeleteBackendResponse -> String
(Int -> DeleteBackendResponse -> ShowS)
-> (DeleteBackendResponse -> String)
-> ([DeleteBackendResponse] -> ShowS)
-> Show DeleteBackendResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteBackendResponse] -> ShowS
$cshowList :: [DeleteBackendResponse] -> ShowS
show :: DeleteBackendResponse -> String
$cshow :: DeleteBackendResponse -> String
showsPrec :: Int -> DeleteBackendResponse -> ShowS
$cshowsPrec :: Int -> DeleteBackendResponse -> ShowS
Prelude.Show, (forall x. DeleteBackendResponse -> Rep DeleteBackendResponse x)
-> (forall x. Rep DeleteBackendResponse x -> DeleteBackendResponse)
-> Generic DeleteBackendResponse
forall x. Rep DeleteBackendResponse x -> DeleteBackendResponse
forall x. DeleteBackendResponse -> Rep DeleteBackendResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteBackendResponse x -> DeleteBackendResponse
$cfrom :: forall x. DeleteBackendResponse -> Rep DeleteBackendResponse x
Prelude.Generic)
newDeleteBackendResponse ::
Prelude.Int ->
DeleteBackendResponse
newDeleteBackendResponse :: Int -> DeleteBackendResponse
newDeleteBackendResponse Int
pHttpStatus_ =
DeleteBackendResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DeleteBackendResponse
DeleteBackendResponse'
{ $sel:status:DeleteBackendResponse' :: Maybe Text
status = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobId:DeleteBackendResponse' :: Maybe Text
jobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:operation:DeleteBackendResponse' :: Maybe Text
operation = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:error:DeleteBackendResponse' :: Maybe Text
error = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:appId:DeleteBackendResponse' :: Maybe Text
appId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:backendEnvironmentName:DeleteBackendResponse' :: Maybe Text
backendEnvironmentName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DeleteBackendResponse' :: Int
httpStatus = Int
pHttpStatus_
}
deleteBackendResponse_status :: Lens.Lens' DeleteBackendResponse (Prelude.Maybe Prelude.Text)
deleteBackendResponse_status :: (Maybe Text -> f (Maybe Text))
-> DeleteBackendResponse -> f DeleteBackendResponse
deleteBackendResponse_status = (DeleteBackendResponse -> Maybe Text)
-> (DeleteBackendResponse -> Maybe Text -> DeleteBackendResponse)
-> Lens
DeleteBackendResponse
DeleteBackendResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendResponse' {Maybe Text
status :: Maybe Text
$sel:status:DeleteBackendResponse' :: DeleteBackendResponse -> Maybe Text
status} -> Maybe Text
status) (\s :: DeleteBackendResponse
s@DeleteBackendResponse' {} Maybe Text
a -> DeleteBackendResponse
s {$sel:status:DeleteBackendResponse' :: Maybe Text
status = Maybe Text
a} :: DeleteBackendResponse)
deleteBackendResponse_jobId :: Lens.Lens' DeleteBackendResponse (Prelude.Maybe Prelude.Text)
deleteBackendResponse_jobId :: (Maybe Text -> f (Maybe Text))
-> DeleteBackendResponse -> f DeleteBackendResponse
deleteBackendResponse_jobId = (DeleteBackendResponse -> Maybe Text)
-> (DeleteBackendResponse -> Maybe Text -> DeleteBackendResponse)
-> Lens
DeleteBackendResponse
DeleteBackendResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendResponse' {Maybe Text
jobId :: Maybe Text
$sel:jobId:DeleteBackendResponse' :: DeleteBackendResponse -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: DeleteBackendResponse
s@DeleteBackendResponse' {} Maybe Text
a -> DeleteBackendResponse
s {$sel:jobId:DeleteBackendResponse' :: Maybe Text
jobId = Maybe Text
a} :: DeleteBackendResponse)
deleteBackendResponse_operation :: Lens.Lens' DeleteBackendResponse (Prelude.Maybe Prelude.Text)
deleteBackendResponse_operation :: (Maybe Text -> f (Maybe Text))
-> DeleteBackendResponse -> f DeleteBackendResponse
deleteBackendResponse_operation = (DeleteBackendResponse -> Maybe Text)
-> (DeleteBackendResponse -> Maybe Text -> DeleteBackendResponse)
-> Lens
DeleteBackendResponse
DeleteBackendResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendResponse' {Maybe Text
operation :: Maybe Text
$sel:operation:DeleteBackendResponse' :: DeleteBackendResponse -> Maybe Text
operation} -> Maybe Text
operation) (\s :: DeleteBackendResponse
s@DeleteBackendResponse' {} Maybe Text
a -> DeleteBackendResponse
s {$sel:operation:DeleteBackendResponse' :: Maybe Text
operation = Maybe Text
a} :: DeleteBackendResponse)
deleteBackendResponse_error :: Lens.Lens' DeleteBackendResponse (Prelude.Maybe Prelude.Text)
deleteBackendResponse_error :: (Maybe Text -> f (Maybe Text))
-> DeleteBackendResponse -> f DeleteBackendResponse
deleteBackendResponse_error = (DeleteBackendResponse -> Maybe Text)
-> (DeleteBackendResponse -> Maybe Text -> DeleteBackendResponse)
-> Lens
DeleteBackendResponse
DeleteBackendResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendResponse' {Maybe Text
error :: Maybe Text
$sel:error:DeleteBackendResponse' :: DeleteBackendResponse -> Maybe Text
error} -> Maybe Text
error) (\s :: DeleteBackendResponse
s@DeleteBackendResponse' {} Maybe Text
a -> DeleteBackendResponse
s {$sel:error:DeleteBackendResponse' :: Maybe Text
error = Maybe Text
a} :: DeleteBackendResponse)
deleteBackendResponse_appId :: Lens.Lens' DeleteBackendResponse (Prelude.Maybe Prelude.Text)
deleteBackendResponse_appId :: (Maybe Text -> f (Maybe Text))
-> DeleteBackendResponse -> f DeleteBackendResponse
deleteBackendResponse_appId = (DeleteBackendResponse -> Maybe Text)
-> (DeleteBackendResponse -> Maybe Text -> DeleteBackendResponse)
-> Lens
DeleteBackendResponse
DeleteBackendResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendResponse' {Maybe Text
appId :: Maybe Text
$sel:appId:DeleteBackendResponse' :: DeleteBackendResponse -> Maybe Text
appId} -> Maybe Text
appId) (\s :: DeleteBackendResponse
s@DeleteBackendResponse' {} Maybe Text
a -> DeleteBackendResponse
s {$sel:appId:DeleteBackendResponse' :: Maybe Text
appId = Maybe Text
a} :: DeleteBackendResponse)
deleteBackendResponse_backendEnvironmentName :: Lens.Lens' DeleteBackendResponse (Prelude.Maybe Prelude.Text)
deleteBackendResponse_backendEnvironmentName :: (Maybe Text -> f (Maybe Text))
-> DeleteBackendResponse -> f DeleteBackendResponse
deleteBackendResponse_backendEnvironmentName = (DeleteBackendResponse -> Maybe Text)
-> (DeleteBackendResponse -> Maybe Text -> DeleteBackendResponse)
-> Lens
DeleteBackendResponse
DeleteBackendResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendResponse' {Maybe Text
backendEnvironmentName :: Maybe Text
$sel:backendEnvironmentName:DeleteBackendResponse' :: DeleteBackendResponse -> Maybe Text
backendEnvironmentName} -> Maybe Text
backendEnvironmentName) (\s :: DeleteBackendResponse
s@DeleteBackendResponse' {} Maybe Text
a -> DeleteBackendResponse
s {$sel:backendEnvironmentName:DeleteBackendResponse' :: Maybe Text
backendEnvironmentName = Maybe Text
a} :: DeleteBackendResponse)
deleteBackendResponse_httpStatus :: Lens.Lens' DeleteBackendResponse Prelude.Int
deleteBackendResponse_httpStatus :: (Int -> f Int) -> DeleteBackendResponse -> f DeleteBackendResponse
deleteBackendResponse_httpStatus = (DeleteBackendResponse -> Int)
-> (DeleteBackendResponse -> Int -> DeleteBackendResponse)
-> Lens DeleteBackendResponse DeleteBackendResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendResponse' {Int
httpStatus :: Int
$sel:httpStatus:DeleteBackendResponse' :: DeleteBackendResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DeleteBackendResponse
s@DeleteBackendResponse' {} Int
a -> DeleteBackendResponse
s {$sel:httpStatus:DeleteBackendResponse' :: Int
httpStatus = Int
a} :: DeleteBackendResponse)
instance Prelude.NFData DeleteBackendResponse