{-# 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.DeleteBackendAPI
(
DeleteBackendAPI (..),
newDeleteBackendAPI,
deleteBackendAPI_resourceConfig,
deleteBackendAPI_appId,
deleteBackendAPI_backendEnvironmentName,
deleteBackendAPI_resourceName,
DeleteBackendAPIResponse (..),
newDeleteBackendAPIResponse,
deleteBackendAPIResponse_status,
deleteBackendAPIResponse_jobId,
deleteBackendAPIResponse_operation,
deleteBackendAPIResponse_error,
deleteBackendAPIResponse_appId,
deleteBackendAPIResponse_backendEnvironmentName,
deleteBackendAPIResponse_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 DeleteBackendAPI = DeleteBackendAPI'
{
DeleteBackendAPI -> Maybe BackendAPIResourceConfig
resourceConfig :: Prelude.Maybe BackendAPIResourceConfig,
DeleteBackendAPI -> Text
appId :: Prelude.Text,
DeleteBackendAPI -> Text
backendEnvironmentName :: Prelude.Text,
DeleteBackendAPI -> Text
resourceName :: Prelude.Text
}
deriving (DeleteBackendAPI -> DeleteBackendAPI -> Bool
(DeleteBackendAPI -> DeleteBackendAPI -> Bool)
-> (DeleteBackendAPI -> DeleteBackendAPI -> Bool)
-> Eq DeleteBackendAPI
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteBackendAPI -> DeleteBackendAPI -> Bool
$c/= :: DeleteBackendAPI -> DeleteBackendAPI -> Bool
== :: DeleteBackendAPI -> DeleteBackendAPI -> Bool
$c== :: DeleteBackendAPI -> DeleteBackendAPI -> Bool
Prelude.Eq, ReadPrec [DeleteBackendAPI]
ReadPrec DeleteBackendAPI
Int -> ReadS DeleteBackendAPI
ReadS [DeleteBackendAPI]
(Int -> ReadS DeleteBackendAPI)
-> ReadS [DeleteBackendAPI]
-> ReadPrec DeleteBackendAPI
-> ReadPrec [DeleteBackendAPI]
-> Read DeleteBackendAPI
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteBackendAPI]
$creadListPrec :: ReadPrec [DeleteBackendAPI]
readPrec :: ReadPrec DeleteBackendAPI
$creadPrec :: ReadPrec DeleteBackendAPI
readList :: ReadS [DeleteBackendAPI]
$creadList :: ReadS [DeleteBackendAPI]
readsPrec :: Int -> ReadS DeleteBackendAPI
$creadsPrec :: Int -> ReadS DeleteBackendAPI
Prelude.Read, Int -> DeleteBackendAPI -> ShowS
[DeleteBackendAPI] -> ShowS
DeleteBackendAPI -> String
(Int -> DeleteBackendAPI -> ShowS)
-> (DeleteBackendAPI -> String)
-> ([DeleteBackendAPI] -> ShowS)
-> Show DeleteBackendAPI
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteBackendAPI] -> ShowS
$cshowList :: [DeleteBackendAPI] -> ShowS
show :: DeleteBackendAPI -> String
$cshow :: DeleteBackendAPI -> String
showsPrec :: Int -> DeleteBackendAPI -> ShowS
$cshowsPrec :: Int -> DeleteBackendAPI -> ShowS
Prelude.Show, (forall x. DeleteBackendAPI -> Rep DeleteBackendAPI x)
-> (forall x. Rep DeleteBackendAPI x -> DeleteBackendAPI)
-> Generic DeleteBackendAPI
forall x. Rep DeleteBackendAPI x -> DeleteBackendAPI
forall x. DeleteBackendAPI -> Rep DeleteBackendAPI x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteBackendAPI x -> DeleteBackendAPI
$cfrom :: forall x. DeleteBackendAPI -> Rep DeleteBackendAPI x
Prelude.Generic)
newDeleteBackendAPI ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
DeleteBackendAPI
newDeleteBackendAPI :: Text -> Text -> Text -> DeleteBackendAPI
newDeleteBackendAPI
Text
pAppId_
Text
pBackendEnvironmentName_
Text
pResourceName_ =
DeleteBackendAPI' :: Maybe BackendAPIResourceConfig
-> Text -> Text -> Text -> DeleteBackendAPI
DeleteBackendAPI'
{ $sel:resourceConfig:DeleteBackendAPI' :: Maybe BackendAPIResourceConfig
resourceConfig = Maybe BackendAPIResourceConfig
forall a. Maybe a
Prelude.Nothing,
$sel:appId:DeleteBackendAPI' :: Text
appId = Text
pAppId_,
$sel:backendEnvironmentName:DeleteBackendAPI' :: Text
backendEnvironmentName = Text
pBackendEnvironmentName_,
$sel:resourceName:DeleteBackendAPI' :: Text
resourceName = Text
pResourceName_
}
deleteBackendAPI_resourceConfig :: Lens.Lens' DeleteBackendAPI (Prelude.Maybe BackendAPIResourceConfig)
deleteBackendAPI_resourceConfig :: (Maybe BackendAPIResourceConfig
-> f (Maybe BackendAPIResourceConfig))
-> DeleteBackendAPI -> f DeleteBackendAPI
deleteBackendAPI_resourceConfig = (DeleteBackendAPI -> Maybe BackendAPIResourceConfig)
-> (DeleteBackendAPI
-> Maybe BackendAPIResourceConfig -> DeleteBackendAPI)
-> Lens
DeleteBackendAPI
DeleteBackendAPI
(Maybe BackendAPIResourceConfig)
(Maybe BackendAPIResourceConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendAPI' {Maybe BackendAPIResourceConfig
resourceConfig :: Maybe BackendAPIResourceConfig
$sel:resourceConfig:DeleteBackendAPI' :: DeleteBackendAPI -> Maybe BackendAPIResourceConfig
resourceConfig} -> Maybe BackendAPIResourceConfig
resourceConfig) (\s :: DeleteBackendAPI
s@DeleteBackendAPI' {} Maybe BackendAPIResourceConfig
a -> DeleteBackendAPI
s {$sel:resourceConfig:DeleteBackendAPI' :: Maybe BackendAPIResourceConfig
resourceConfig = Maybe BackendAPIResourceConfig
a} :: DeleteBackendAPI)
deleteBackendAPI_appId :: Lens.Lens' DeleteBackendAPI Prelude.Text
deleteBackendAPI_appId :: (Text -> f Text) -> DeleteBackendAPI -> f DeleteBackendAPI
deleteBackendAPI_appId = (DeleteBackendAPI -> Text)
-> (DeleteBackendAPI -> Text -> DeleteBackendAPI)
-> Lens DeleteBackendAPI DeleteBackendAPI Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendAPI' {Text
appId :: Text
$sel:appId:DeleteBackendAPI' :: DeleteBackendAPI -> Text
appId} -> Text
appId) (\s :: DeleteBackendAPI
s@DeleteBackendAPI' {} Text
a -> DeleteBackendAPI
s {$sel:appId:DeleteBackendAPI' :: Text
appId = Text
a} :: DeleteBackendAPI)
deleteBackendAPI_backendEnvironmentName :: Lens.Lens' DeleteBackendAPI Prelude.Text
deleteBackendAPI_backendEnvironmentName :: (Text -> f Text) -> DeleteBackendAPI -> f DeleteBackendAPI
deleteBackendAPI_backendEnvironmentName = (DeleteBackendAPI -> Text)
-> (DeleteBackendAPI -> Text -> DeleteBackendAPI)
-> Lens DeleteBackendAPI DeleteBackendAPI Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendAPI' {Text
backendEnvironmentName :: Text
$sel:backendEnvironmentName:DeleteBackendAPI' :: DeleteBackendAPI -> Text
backendEnvironmentName} -> Text
backendEnvironmentName) (\s :: DeleteBackendAPI
s@DeleteBackendAPI' {} Text
a -> DeleteBackendAPI
s {$sel:backendEnvironmentName:DeleteBackendAPI' :: Text
backendEnvironmentName = Text
a} :: DeleteBackendAPI)
deleteBackendAPI_resourceName :: Lens.Lens' DeleteBackendAPI Prelude.Text
deleteBackendAPI_resourceName :: (Text -> f Text) -> DeleteBackendAPI -> f DeleteBackendAPI
deleteBackendAPI_resourceName = (DeleteBackendAPI -> Text)
-> (DeleteBackendAPI -> Text -> DeleteBackendAPI)
-> Lens DeleteBackendAPI DeleteBackendAPI Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendAPI' {Text
resourceName :: Text
$sel:resourceName:DeleteBackendAPI' :: DeleteBackendAPI -> Text
resourceName} -> Text
resourceName) (\s :: DeleteBackendAPI
s@DeleteBackendAPI' {} Text
a -> DeleteBackendAPI
s {$sel:resourceName:DeleteBackendAPI' :: Text
resourceName = Text
a} :: DeleteBackendAPI)
instance Core.AWSRequest DeleteBackendAPI where
type
AWSResponse DeleteBackendAPI =
DeleteBackendAPIResponse
request :: DeleteBackendAPI -> Request DeleteBackendAPI
request = Service -> DeleteBackendAPI -> Request DeleteBackendAPI
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteBackendAPI
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DeleteBackendAPI)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DeleteBackendAPI))
-> Logger
-> Service
-> Proxy DeleteBackendAPI
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DeleteBackendAPI)))
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
-> DeleteBackendAPIResponse
DeleteBackendAPIResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DeleteBackendAPIResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DeleteBackendAPIResponse)
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
-> DeleteBackendAPIResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DeleteBackendAPIResponse)
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
-> DeleteBackendAPIResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> DeleteBackendAPIResponse)
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 -> DeleteBackendAPIResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> DeleteBackendAPIResponse)
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 -> DeleteBackendAPIResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> DeleteBackendAPIResponse)
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 -> DeleteBackendAPIResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DeleteBackendAPIResponse)
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 -> DeleteBackendAPIResponse)
-> Either String Int -> Either String DeleteBackendAPIResponse
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 DeleteBackendAPI
instance Prelude.NFData DeleteBackendAPI
instance Core.ToHeaders DeleteBackendAPI where
toHeaders :: DeleteBackendAPI -> ResponseHeaders
toHeaders =
ResponseHeaders -> DeleteBackendAPI -> 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 DeleteBackendAPI where
toJSON :: DeleteBackendAPI -> Value
toJSON DeleteBackendAPI' {Maybe BackendAPIResourceConfig
Text
resourceName :: Text
backendEnvironmentName :: Text
appId :: Text
resourceConfig :: Maybe BackendAPIResourceConfig
$sel:resourceName:DeleteBackendAPI' :: DeleteBackendAPI -> Text
$sel:backendEnvironmentName:DeleteBackendAPI' :: DeleteBackendAPI -> Text
$sel:appId:DeleteBackendAPI' :: DeleteBackendAPI -> Text
$sel:resourceConfig:DeleteBackendAPI' :: DeleteBackendAPI -> Maybe BackendAPIResourceConfig
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"resourceConfig" Text -> BackendAPIResourceConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(BackendAPIResourceConfig -> Pair)
-> Maybe BackendAPIResourceConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BackendAPIResourceConfig
resourceConfig,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"resourceName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resourceName)
]
)
instance Core.ToPath DeleteBackendAPI where
toPath :: DeleteBackendAPI -> ByteString
toPath DeleteBackendAPI' {Maybe BackendAPIResourceConfig
Text
resourceName :: Text
backendEnvironmentName :: Text
appId :: Text
resourceConfig :: Maybe BackendAPIResourceConfig
$sel:resourceName:DeleteBackendAPI' :: DeleteBackendAPI -> Text
$sel:backendEnvironmentName:DeleteBackendAPI' :: DeleteBackendAPI -> Text
$sel:appId:DeleteBackendAPI' :: DeleteBackendAPI -> Text
$sel:resourceConfig:DeleteBackendAPI' :: DeleteBackendAPI -> Maybe BackendAPIResourceConfig
..} =
[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
"/api/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
backendEnvironmentName,
ByteString
"/remove"
]
instance Core.ToQuery DeleteBackendAPI where
toQuery :: DeleteBackendAPI -> QueryString
toQuery = QueryString -> DeleteBackendAPI -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeleteBackendAPIResponse = DeleteBackendAPIResponse'
{
DeleteBackendAPIResponse -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
DeleteBackendAPIResponse -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
DeleteBackendAPIResponse -> Maybe Text
operation :: Prelude.Maybe Prelude.Text,
DeleteBackendAPIResponse -> Maybe Text
error :: Prelude.Maybe Prelude.Text,
DeleteBackendAPIResponse -> Maybe Text
appId :: Prelude.Maybe Prelude.Text,
DeleteBackendAPIResponse -> Maybe Text
backendEnvironmentName :: Prelude.Maybe Prelude.Text,
DeleteBackendAPIResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DeleteBackendAPIResponse -> DeleteBackendAPIResponse -> Bool
(DeleteBackendAPIResponse -> DeleteBackendAPIResponse -> Bool)
-> (DeleteBackendAPIResponse -> DeleteBackendAPIResponse -> Bool)
-> Eq DeleteBackendAPIResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteBackendAPIResponse -> DeleteBackendAPIResponse -> Bool
$c/= :: DeleteBackendAPIResponse -> DeleteBackendAPIResponse -> Bool
== :: DeleteBackendAPIResponse -> DeleteBackendAPIResponse -> Bool
$c== :: DeleteBackendAPIResponse -> DeleteBackendAPIResponse -> Bool
Prelude.Eq, ReadPrec [DeleteBackendAPIResponse]
ReadPrec DeleteBackendAPIResponse
Int -> ReadS DeleteBackendAPIResponse
ReadS [DeleteBackendAPIResponse]
(Int -> ReadS DeleteBackendAPIResponse)
-> ReadS [DeleteBackendAPIResponse]
-> ReadPrec DeleteBackendAPIResponse
-> ReadPrec [DeleteBackendAPIResponse]
-> Read DeleteBackendAPIResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteBackendAPIResponse]
$creadListPrec :: ReadPrec [DeleteBackendAPIResponse]
readPrec :: ReadPrec DeleteBackendAPIResponse
$creadPrec :: ReadPrec DeleteBackendAPIResponse
readList :: ReadS [DeleteBackendAPIResponse]
$creadList :: ReadS [DeleteBackendAPIResponse]
readsPrec :: Int -> ReadS DeleteBackendAPIResponse
$creadsPrec :: Int -> ReadS DeleteBackendAPIResponse
Prelude.Read, Int -> DeleteBackendAPIResponse -> ShowS
[DeleteBackendAPIResponse] -> ShowS
DeleteBackendAPIResponse -> String
(Int -> DeleteBackendAPIResponse -> ShowS)
-> (DeleteBackendAPIResponse -> String)
-> ([DeleteBackendAPIResponse] -> ShowS)
-> Show DeleteBackendAPIResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteBackendAPIResponse] -> ShowS
$cshowList :: [DeleteBackendAPIResponse] -> ShowS
show :: DeleteBackendAPIResponse -> String
$cshow :: DeleteBackendAPIResponse -> String
showsPrec :: Int -> DeleteBackendAPIResponse -> ShowS
$cshowsPrec :: Int -> DeleteBackendAPIResponse -> ShowS
Prelude.Show, (forall x.
DeleteBackendAPIResponse -> Rep DeleteBackendAPIResponse x)
-> (forall x.
Rep DeleteBackendAPIResponse x -> DeleteBackendAPIResponse)
-> Generic DeleteBackendAPIResponse
forall x.
Rep DeleteBackendAPIResponse x -> DeleteBackendAPIResponse
forall x.
DeleteBackendAPIResponse -> Rep DeleteBackendAPIResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteBackendAPIResponse x -> DeleteBackendAPIResponse
$cfrom :: forall x.
DeleteBackendAPIResponse -> Rep DeleteBackendAPIResponse x
Prelude.Generic)
newDeleteBackendAPIResponse ::
Prelude.Int ->
DeleteBackendAPIResponse
newDeleteBackendAPIResponse :: Int -> DeleteBackendAPIResponse
newDeleteBackendAPIResponse Int
pHttpStatus_ =
DeleteBackendAPIResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DeleteBackendAPIResponse
DeleteBackendAPIResponse'
{ $sel:status:DeleteBackendAPIResponse' :: Maybe Text
status = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobId:DeleteBackendAPIResponse' :: Maybe Text
jobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:operation:DeleteBackendAPIResponse' :: Maybe Text
operation = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:error:DeleteBackendAPIResponse' :: Maybe Text
error = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:appId:DeleteBackendAPIResponse' :: Maybe Text
appId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:backendEnvironmentName:DeleteBackendAPIResponse' :: Maybe Text
backendEnvironmentName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DeleteBackendAPIResponse' :: Int
httpStatus = Int
pHttpStatus_
}
deleteBackendAPIResponse_status :: Lens.Lens' DeleteBackendAPIResponse (Prelude.Maybe Prelude.Text)
deleteBackendAPIResponse_status :: (Maybe Text -> f (Maybe Text))
-> DeleteBackendAPIResponse -> f DeleteBackendAPIResponse
deleteBackendAPIResponse_status = (DeleteBackendAPIResponse -> Maybe Text)
-> (DeleteBackendAPIResponse
-> Maybe Text -> DeleteBackendAPIResponse)
-> Lens
DeleteBackendAPIResponse
DeleteBackendAPIResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendAPIResponse' {Maybe Text
status :: Maybe Text
$sel:status:DeleteBackendAPIResponse' :: DeleteBackendAPIResponse -> Maybe Text
status} -> Maybe Text
status) (\s :: DeleteBackendAPIResponse
s@DeleteBackendAPIResponse' {} Maybe Text
a -> DeleteBackendAPIResponse
s {$sel:status:DeleteBackendAPIResponse' :: Maybe Text
status = Maybe Text
a} :: DeleteBackendAPIResponse)
deleteBackendAPIResponse_jobId :: Lens.Lens' DeleteBackendAPIResponse (Prelude.Maybe Prelude.Text)
deleteBackendAPIResponse_jobId :: (Maybe Text -> f (Maybe Text))
-> DeleteBackendAPIResponse -> f DeleteBackendAPIResponse
deleteBackendAPIResponse_jobId = (DeleteBackendAPIResponse -> Maybe Text)
-> (DeleteBackendAPIResponse
-> Maybe Text -> DeleteBackendAPIResponse)
-> Lens
DeleteBackendAPIResponse
DeleteBackendAPIResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendAPIResponse' {Maybe Text
jobId :: Maybe Text
$sel:jobId:DeleteBackendAPIResponse' :: DeleteBackendAPIResponse -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: DeleteBackendAPIResponse
s@DeleteBackendAPIResponse' {} Maybe Text
a -> DeleteBackendAPIResponse
s {$sel:jobId:DeleteBackendAPIResponse' :: Maybe Text
jobId = Maybe Text
a} :: DeleteBackendAPIResponse)
deleteBackendAPIResponse_operation :: Lens.Lens' DeleteBackendAPIResponse (Prelude.Maybe Prelude.Text)
deleteBackendAPIResponse_operation :: (Maybe Text -> f (Maybe Text))
-> DeleteBackendAPIResponse -> f DeleteBackendAPIResponse
deleteBackendAPIResponse_operation = (DeleteBackendAPIResponse -> Maybe Text)
-> (DeleteBackendAPIResponse
-> Maybe Text -> DeleteBackendAPIResponse)
-> Lens
DeleteBackendAPIResponse
DeleteBackendAPIResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendAPIResponse' {Maybe Text
operation :: Maybe Text
$sel:operation:DeleteBackendAPIResponse' :: DeleteBackendAPIResponse -> Maybe Text
operation} -> Maybe Text
operation) (\s :: DeleteBackendAPIResponse
s@DeleteBackendAPIResponse' {} Maybe Text
a -> DeleteBackendAPIResponse
s {$sel:operation:DeleteBackendAPIResponse' :: Maybe Text
operation = Maybe Text
a} :: DeleteBackendAPIResponse)
deleteBackendAPIResponse_error :: Lens.Lens' DeleteBackendAPIResponse (Prelude.Maybe Prelude.Text)
deleteBackendAPIResponse_error :: (Maybe Text -> f (Maybe Text))
-> DeleteBackendAPIResponse -> f DeleteBackendAPIResponse
deleteBackendAPIResponse_error = (DeleteBackendAPIResponse -> Maybe Text)
-> (DeleteBackendAPIResponse
-> Maybe Text -> DeleteBackendAPIResponse)
-> Lens
DeleteBackendAPIResponse
DeleteBackendAPIResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendAPIResponse' {Maybe Text
error :: Maybe Text
$sel:error:DeleteBackendAPIResponse' :: DeleteBackendAPIResponse -> Maybe Text
error} -> Maybe Text
error) (\s :: DeleteBackendAPIResponse
s@DeleteBackendAPIResponse' {} Maybe Text
a -> DeleteBackendAPIResponse
s {$sel:error:DeleteBackendAPIResponse' :: Maybe Text
error = Maybe Text
a} :: DeleteBackendAPIResponse)
deleteBackendAPIResponse_appId :: Lens.Lens' DeleteBackendAPIResponse (Prelude.Maybe Prelude.Text)
deleteBackendAPIResponse_appId :: (Maybe Text -> f (Maybe Text))
-> DeleteBackendAPIResponse -> f DeleteBackendAPIResponse
deleteBackendAPIResponse_appId = (DeleteBackendAPIResponse -> Maybe Text)
-> (DeleteBackendAPIResponse
-> Maybe Text -> DeleteBackendAPIResponse)
-> Lens
DeleteBackendAPIResponse
DeleteBackendAPIResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendAPIResponse' {Maybe Text
appId :: Maybe Text
$sel:appId:DeleteBackendAPIResponse' :: DeleteBackendAPIResponse -> Maybe Text
appId} -> Maybe Text
appId) (\s :: DeleteBackendAPIResponse
s@DeleteBackendAPIResponse' {} Maybe Text
a -> DeleteBackendAPIResponse
s {$sel:appId:DeleteBackendAPIResponse' :: Maybe Text
appId = Maybe Text
a} :: DeleteBackendAPIResponse)
deleteBackendAPIResponse_backendEnvironmentName :: Lens.Lens' DeleteBackendAPIResponse (Prelude.Maybe Prelude.Text)
deleteBackendAPIResponse_backendEnvironmentName :: (Maybe Text -> f (Maybe Text))
-> DeleteBackendAPIResponse -> f DeleteBackendAPIResponse
deleteBackendAPIResponse_backendEnvironmentName = (DeleteBackendAPIResponse -> Maybe Text)
-> (DeleteBackendAPIResponse
-> Maybe Text -> DeleteBackendAPIResponse)
-> Lens
DeleteBackendAPIResponse
DeleteBackendAPIResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendAPIResponse' {Maybe Text
backendEnvironmentName :: Maybe Text
$sel:backendEnvironmentName:DeleteBackendAPIResponse' :: DeleteBackendAPIResponse -> Maybe Text
backendEnvironmentName} -> Maybe Text
backendEnvironmentName) (\s :: DeleteBackendAPIResponse
s@DeleteBackendAPIResponse' {} Maybe Text
a -> DeleteBackendAPIResponse
s {$sel:backendEnvironmentName:DeleteBackendAPIResponse' :: Maybe Text
backendEnvironmentName = Maybe Text
a} :: DeleteBackendAPIResponse)
deleteBackendAPIResponse_httpStatus :: Lens.Lens' DeleteBackendAPIResponse Prelude.Int
deleteBackendAPIResponse_httpStatus :: (Int -> f Int)
-> DeleteBackendAPIResponse -> f DeleteBackendAPIResponse
deleteBackendAPIResponse_httpStatus = (DeleteBackendAPIResponse -> Int)
-> (DeleteBackendAPIResponse -> Int -> DeleteBackendAPIResponse)
-> Lens DeleteBackendAPIResponse DeleteBackendAPIResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBackendAPIResponse' {Int
httpStatus :: Int
$sel:httpStatus:DeleteBackendAPIResponse' :: DeleteBackendAPIResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DeleteBackendAPIResponse
s@DeleteBackendAPIResponse' {} Int
a -> DeleteBackendAPIResponse
s {$sel:httpStatus:DeleteBackendAPIResponse' :: Int
httpStatus = Int
a} :: DeleteBackendAPIResponse)
instance Prelude.NFData DeleteBackendAPIResponse