{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.AppMesh.DeleteGatewayRoute
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Deletes an existing gateway route.
module Amazonka.AppMesh.DeleteGatewayRoute
  ( -- * Creating a Request
    DeleteGatewayRoute (..),
    newDeleteGatewayRoute,

    -- * Request Lenses
    deleteGatewayRoute_meshOwner,
    deleteGatewayRoute_gatewayRouteName,
    deleteGatewayRoute_meshName,
    deleteGatewayRoute_virtualGatewayName,

    -- * Destructuring the Response
    DeleteGatewayRouteResponse (..),
    newDeleteGatewayRouteResponse,

    -- * Response Lenses
    deleteGatewayRouteResponse_httpStatus,
    deleteGatewayRouteResponse_gatewayRoute,
  )
where

import Amazonka.AppMesh.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

-- | /See:/ 'newDeleteGatewayRoute' smart constructor.
data DeleteGatewayRoute = DeleteGatewayRoute'
  { -- | The AWS IAM account ID of the service mesh owner. If the account ID is
    -- not your own, then it\'s the ID of the account that shared the mesh with
    -- your account. For more information about mesh sharing, see
    -- <https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html Working with shared meshes>.
    DeleteGatewayRoute -> Maybe Text
meshOwner :: Prelude.Maybe Prelude.Text,
    -- | The name of the gateway route to delete.
    DeleteGatewayRoute -> Text
gatewayRouteName :: Prelude.Text,
    -- | The name of the service mesh to delete the gateway route from.
    DeleteGatewayRoute -> Text
meshName :: Prelude.Text,
    -- | The name of the virtual gateway to delete the route from.
    DeleteGatewayRoute -> Text
virtualGatewayName :: Prelude.Text
  }
  deriving (DeleteGatewayRoute -> DeleteGatewayRoute -> Bool
(DeleteGatewayRoute -> DeleteGatewayRoute -> Bool)
-> (DeleteGatewayRoute -> DeleteGatewayRoute -> Bool)
-> Eq DeleteGatewayRoute
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteGatewayRoute -> DeleteGatewayRoute -> Bool
$c/= :: DeleteGatewayRoute -> DeleteGatewayRoute -> Bool
== :: DeleteGatewayRoute -> DeleteGatewayRoute -> Bool
$c== :: DeleteGatewayRoute -> DeleteGatewayRoute -> Bool
Prelude.Eq, ReadPrec [DeleteGatewayRoute]
ReadPrec DeleteGatewayRoute
Int -> ReadS DeleteGatewayRoute
ReadS [DeleteGatewayRoute]
(Int -> ReadS DeleteGatewayRoute)
-> ReadS [DeleteGatewayRoute]
-> ReadPrec DeleteGatewayRoute
-> ReadPrec [DeleteGatewayRoute]
-> Read DeleteGatewayRoute
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteGatewayRoute]
$creadListPrec :: ReadPrec [DeleteGatewayRoute]
readPrec :: ReadPrec DeleteGatewayRoute
$creadPrec :: ReadPrec DeleteGatewayRoute
readList :: ReadS [DeleteGatewayRoute]
$creadList :: ReadS [DeleteGatewayRoute]
readsPrec :: Int -> ReadS DeleteGatewayRoute
$creadsPrec :: Int -> ReadS DeleteGatewayRoute
Prelude.Read, Int -> DeleteGatewayRoute -> ShowS
[DeleteGatewayRoute] -> ShowS
DeleteGatewayRoute -> String
(Int -> DeleteGatewayRoute -> ShowS)
-> (DeleteGatewayRoute -> String)
-> ([DeleteGatewayRoute] -> ShowS)
-> Show DeleteGatewayRoute
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteGatewayRoute] -> ShowS
$cshowList :: [DeleteGatewayRoute] -> ShowS
show :: DeleteGatewayRoute -> String
$cshow :: DeleteGatewayRoute -> String
showsPrec :: Int -> DeleteGatewayRoute -> ShowS
$cshowsPrec :: Int -> DeleteGatewayRoute -> ShowS
Prelude.Show, (forall x. DeleteGatewayRoute -> Rep DeleteGatewayRoute x)
-> (forall x. Rep DeleteGatewayRoute x -> DeleteGatewayRoute)
-> Generic DeleteGatewayRoute
forall x. Rep DeleteGatewayRoute x -> DeleteGatewayRoute
forall x. DeleteGatewayRoute -> Rep DeleteGatewayRoute x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteGatewayRoute x -> DeleteGatewayRoute
$cfrom :: forall x. DeleteGatewayRoute -> Rep DeleteGatewayRoute x
Prelude.Generic)

-- |
-- Create a value of 'DeleteGatewayRoute' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'meshOwner', 'deleteGatewayRoute_meshOwner' - The AWS IAM account ID of the service mesh owner. If the account ID is
-- not your own, then it\'s the ID of the account that shared the mesh with
-- your account. For more information about mesh sharing, see
-- <https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html Working with shared meshes>.
--
-- 'gatewayRouteName', 'deleteGatewayRoute_gatewayRouteName' - The name of the gateway route to delete.
--
-- 'meshName', 'deleteGatewayRoute_meshName' - The name of the service mesh to delete the gateway route from.
--
-- 'virtualGatewayName', 'deleteGatewayRoute_virtualGatewayName' - The name of the virtual gateway to delete the route from.
newDeleteGatewayRoute ::
  -- | 'gatewayRouteName'
  Prelude.Text ->
  -- | 'meshName'
  Prelude.Text ->
  -- | 'virtualGatewayName'
  Prelude.Text ->
  DeleteGatewayRoute
newDeleteGatewayRoute :: Text -> Text -> Text -> DeleteGatewayRoute
newDeleteGatewayRoute
  Text
pGatewayRouteName_
  Text
pMeshName_
  Text
pVirtualGatewayName_ =
    DeleteGatewayRoute' :: Maybe Text -> Text -> Text -> Text -> DeleteGatewayRoute
DeleteGatewayRoute'
      { $sel:meshOwner:DeleteGatewayRoute' :: Maybe Text
meshOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:gatewayRouteName:DeleteGatewayRoute' :: Text
gatewayRouteName = Text
pGatewayRouteName_,
        $sel:meshName:DeleteGatewayRoute' :: Text
meshName = Text
pMeshName_,
        $sel:virtualGatewayName:DeleteGatewayRoute' :: Text
virtualGatewayName = Text
pVirtualGatewayName_
      }

-- | The AWS IAM account ID of the service mesh owner. If the account ID is
-- not your own, then it\'s the ID of the account that shared the mesh with
-- your account. For more information about mesh sharing, see
-- <https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html Working with shared meshes>.
deleteGatewayRoute_meshOwner :: Lens.Lens' DeleteGatewayRoute (Prelude.Maybe Prelude.Text)
deleteGatewayRoute_meshOwner :: (Maybe Text -> f (Maybe Text))
-> DeleteGatewayRoute -> f DeleteGatewayRoute
deleteGatewayRoute_meshOwner = (DeleteGatewayRoute -> Maybe Text)
-> (DeleteGatewayRoute -> Maybe Text -> DeleteGatewayRoute)
-> Lens
     DeleteGatewayRoute DeleteGatewayRoute (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteGatewayRoute' {Maybe Text
meshOwner :: Maybe Text
$sel:meshOwner:DeleteGatewayRoute' :: DeleteGatewayRoute -> Maybe Text
meshOwner} -> Maybe Text
meshOwner) (\s :: DeleteGatewayRoute
s@DeleteGatewayRoute' {} Maybe Text
a -> DeleteGatewayRoute
s {$sel:meshOwner:DeleteGatewayRoute' :: Maybe Text
meshOwner = Maybe Text
a} :: DeleteGatewayRoute)

-- | The name of the gateway route to delete.
deleteGatewayRoute_gatewayRouteName :: Lens.Lens' DeleteGatewayRoute Prelude.Text
deleteGatewayRoute_gatewayRouteName :: (Text -> f Text) -> DeleteGatewayRoute -> f DeleteGatewayRoute
deleteGatewayRoute_gatewayRouteName = (DeleteGatewayRoute -> Text)
-> (DeleteGatewayRoute -> Text -> DeleteGatewayRoute)
-> Lens DeleteGatewayRoute DeleteGatewayRoute Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteGatewayRoute' {Text
gatewayRouteName :: Text
$sel:gatewayRouteName:DeleteGatewayRoute' :: DeleteGatewayRoute -> Text
gatewayRouteName} -> Text
gatewayRouteName) (\s :: DeleteGatewayRoute
s@DeleteGatewayRoute' {} Text
a -> DeleteGatewayRoute
s {$sel:gatewayRouteName:DeleteGatewayRoute' :: Text
gatewayRouteName = Text
a} :: DeleteGatewayRoute)

-- | The name of the service mesh to delete the gateway route from.
deleteGatewayRoute_meshName :: Lens.Lens' DeleteGatewayRoute Prelude.Text
deleteGatewayRoute_meshName :: (Text -> f Text) -> DeleteGatewayRoute -> f DeleteGatewayRoute
deleteGatewayRoute_meshName = (DeleteGatewayRoute -> Text)
-> (DeleteGatewayRoute -> Text -> DeleteGatewayRoute)
-> Lens DeleteGatewayRoute DeleteGatewayRoute Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteGatewayRoute' {Text
meshName :: Text
$sel:meshName:DeleteGatewayRoute' :: DeleteGatewayRoute -> Text
meshName} -> Text
meshName) (\s :: DeleteGatewayRoute
s@DeleteGatewayRoute' {} Text
a -> DeleteGatewayRoute
s {$sel:meshName:DeleteGatewayRoute' :: Text
meshName = Text
a} :: DeleteGatewayRoute)

-- | The name of the virtual gateway to delete the route from.
deleteGatewayRoute_virtualGatewayName :: Lens.Lens' DeleteGatewayRoute Prelude.Text
deleteGatewayRoute_virtualGatewayName :: (Text -> f Text) -> DeleteGatewayRoute -> f DeleteGatewayRoute
deleteGatewayRoute_virtualGatewayName = (DeleteGatewayRoute -> Text)
-> (DeleteGatewayRoute -> Text -> DeleteGatewayRoute)
-> Lens DeleteGatewayRoute DeleteGatewayRoute Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteGatewayRoute' {Text
virtualGatewayName :: Text
$sel:virtualGatewayName:DeleteGatewayRoute' :: DeleteGatewayRoute -> Text
virtualGatewayName} -> Text
virtualGatewayName) (\s :: DeleteGatewayRoute
s@DeleteGatewayRoute' {} Text
a -> DeleteGatewayRoute
s {$sel:virtualGatewayName:DeleteGatewayRoute' :: Text
virtualGatewayName = Text
a} :: DeleteGatewayRoute)

instance Core.AWSRequest DeleteGatewayRoute where
  type
    AWSResponse DeleteGatewayRoute =
      DeleteGatewayRouteResponse
  request :: DeleteGatewayRoute -> Request DeleteGatewayRoute
request = Service -> DeleteGatewayRoute -> Request DeleteGatewayRoute
forall a. ToRequest a => Service -> a -> Request a
Request.delete Service
defaultService
  response :: Logger
-> Service
-> Proxy DeleteGatewayRoute
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DeleteGatewayRoute)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DeleteGatewayRoute))
-> Logger
-> Service
-> Proxy DeleteGatewayRoute
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DeleteGatewayRoute)))
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 ->
          Int -> GatewayRouteData -> DeleteGatewayRouteResponse
DeleteGatewayRouteResponse'
            (Int -> GatewayRouteData -> DeleteGatewayRouteResponse)
-> Either String Int
-> Either String (GatewayRouteData -> DeleteGatewayRouteResponse)
forall (f :: * -> *) a b. Functor 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))
            Either String (GatewayRouteData -> DeleteGatewayRouteResponse)
-> Either String GatewayRouteData
-> Either String DeleteGatewayRouteResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object -> Either String GatewayRouteData
forall a. FromJSON a => Object -> Either String a
Core.eitherParseJSON Object
x)
      )

instance Prelude.Hashable DeleteGatewayRoute

instance Prelude.NFData DeleteGatewayRoute

instance Core.ToHeaders DeleteGatewayRoute where
  toHeaders :: DeleteGatewayRoute -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DeleteGatewayRoute -> 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.ToPath DeleteGatewayRoute where
  toPath :: DeleteGatewayRoute -> ByteString
toPath DeleteGatewayRoute' {Maybe Text
Text
virtualGatewayName :: Text
meshName :: Text
gatewayRouteName :: Text
meshOwner :: Maybe Text
$sel:virtualGatewayName:DeleteGatewayRoute' :: DeleteGatewayRoute -> Text
$sel:meshName:DeleteGatewayRoute' :: DeleteGatewayRoute -> Text
$sel:gatewayRouteName:DeleteGatewayRoute' :: DeleteGatewayRoute -> Text
$sel:meshOwner:DeleteGatewayRoute' :: DeleteGatewayRoute -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/v20190125/meshes/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
meshName,
        ByteString
"/virtualGateway/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
virtualGatewayName,
        ByteString
"/gatewayRoutes/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
gatewayRouteName
      ]

instance Core.ToQuery DeleteGatewayRoute where
  toQuery :: DeleteGatewayRoute -> QueryString
toQuery DeleteGatewayRoute' {Maybe Text
Text
virtualGatewayName :: Text
meshName :: Text
gatewayRouteName :: Text
meshOwner :: Maybe Text
$sel:virtualGatewayName:DeleteGatewayRoute' :: DeleteGatewayRoute -> Text
$sel:meshName:DeleteGatewayRoute' :: DeleteGatewayRoute -> Text
$sel:gatewayRouteName:DeleteGatewayRoute' :: DeleteGatewayRoute -> Text
$sel:meshOwner:DeleteGatewayRoute' :: DeleteGatewayRoute -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"meshOwner" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
meshOwner]

-- | /See:/ 'newDeleteGatewayRouteResponse' smart constructor.
data DeleteGatewayRouteResponse = DeleteGatewayRouteResponse'
  { -- | The response's http status code.
    DeleteGatewayRouteResponse -> Int
httpStatus :: Prelude.Int,
    -- | The gateway route that was deleted.
    DeleteGatewayRouteResponse -> GatewayRouteData
gatewayRoute :: GatewayRouteData
  }
  deriving (DeleteGatewayRouteResponse -> DeleteGatewayRouteResponse -> Bool
(DeleteGatewayRouteResponse -> DeleteGatewayRouteResponse -> Bool)
-> (DeleteGatewayRouteResponse
    -> DeleteGatewayRouteResponse -> Bool)
-> Eq DeleteGatewayRouteResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteGatewayRouteResponse -> DeleteGatewayRouteResponse -> Bool
$c/= :: DeleteGatewayRouteResponse -> DeleteGatewayRouteResponse -> Bool
== :: DeleteGatewayRouteResponse -> DeleteGatewayRouteResponse -> Bool
$c== :: DeleteGatewayRouteResponse -> DeleteGatewayRouteResponse -> Bool
Prelude.Eq, ReadPrec [DeleteGatewayRouteResponse]
ReadPrec DeleteGatewayRouteResponse
Int -> ReadS DeleteGatewayRouteResponse
ReadS [DeleteGatewayRouteResponse]
(Int -> ReadS DeleteGatewayRouteResponse)
-> ReadS [DeleteGatewayRouteResponse]
-> ReadPrec DeleteGatewayRouteResponse
-> ReadPrec [DeleteGatewayRouteResponse]
-> Read DeleteGatewayRouteResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteGatewayRouteResponse]
$creadListPrec :: ReadPrec [DeleteGatewayRouteResponse]
readPrec :: ReadPrec DeleteGatewayRouteResponse
$creadPrec :: ReadPrec DeleteGatewayRouteResponse
readList :: ReadS [DeleteGatewayRouteResponse]
$creadList :: ReadS [DeleteGatewayRouteResponse]
readsPrec :: Int -> ReadS DeleteGatewayRouteResponse
$creadsPrec :: Int -> ReadS DeleteGatewayRouteResponse
Prelude.Read, Int -> DeleteGatewayRouteResponse -> ShowS
[DeleteGatewayRouteResponse] -> ShowS
DeleteGatewayRouteResponse -> String
(Int -> DeleteGatewayRouteResponse -> ShowS)
-> (DeleteGatewayRouteResponse -> String)
-> ([DeleteGatewayRouteResponse] -> ShowS)
-> Show DeleteGatewayRouteResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteGatewayRouteResponse] -> ShowS
$cshowList :: [DeleteGatewayRouteResponse] -> ShowS
show :: DeleteGatewayRouteResponse -> String
$cshow :: DeleteGatewayRouteResponse -> String
showsPrec :: Int -> DeleteGatewayRouteResponse -> ShowS
$cshowsPrec :: Int -> DeleteGatewayRouteResponse -> ShowS
Prelude.Show, (forall x.
 DeleteGatewayRouteResponse -> Rep DeleteGatewayRouteResponse x)
-> (forall x.
    Rep DeleteGatewayRouteResponse x -> DeleteGatewayRouteResponse)
-> Generic DeleteGatewayRouteResponse
forall x.
Rep DeleteGatewayRouteResponse x -> DeleteGatewayRouteResponse
forall x.
DeleteGatewayRouteResponse -> Rep DeleteGatewayRouteResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteGatewayRouteResponse x -> DeleteGatewayRouteResponse
$cfrom :: forall x.
DeleteGatewayRouteResponse -> Rep DeleteGatewayRouteResponse x
Prelude.Generic)

-- |
-- Create a value of 'DeleteGatewayRouteResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'httpStatus', 'deleteGatewayRouteResponse_httpStatus' - The response's http status code.
--
-- 'gatewayRoute', 'deleteGatewayRouteResponse_gatewayRoute' - The gateway route that was deleted.
newDeleteGatewayRouteResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'gatewayRoute'
  GatewayRouteData ->
  DeleteGatewayRouteResponse
newDeleteGatewayRouteResponse :: Int -> GatewayRouteData -> DeleteGatewayRouteResponse
newDeleteGatewayRouteResponse
  Int
pHttpStatus_
  GatewayRouteData
pGatewayRoute_ =
    DeleteGatewayRouteResponse' :: Int -> GatewayRouteData -> DeleteGatewayRouteResponse
DeleteGatewayRouteResponse'
      { $sel:httpStatus:DeleteGatewayRouteResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:gatewayRoute:DeleteGatewayRouteResponse' :: GatewayRouteData
gatewayRoute = GatewayRouteData
pGatewayRoute_
      }

-- | The response's http status code.
deleteGatewayRouteResponse_httpStatus :: Lens.Lens' DeleteGatewayRouteResponse Prelude.Int
deleteGatewayRouteResponse_httpStatus :: (Int -> f Int)
-> DeleteGatewayRouteResponse -> f DeleteGatewayRouteResponse
deleteGatewayRouteResponse_httpStatus = (DeleteGatewayRouteResponse -> Int)
-> (DeleteGatewayRouteResponse
    -> Int -> DeleteGatewayRouteResponse)
-> Lens
     DeleteGatewayRouteResponse DeleteGatewayRouteResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteGatewayRouteResponse' {Int
httpStatus :: Int
$sel:httpStatus:DeleteGatewayRouteResponse' :: DeleteGatewayRouteResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DeleteGatewayRouteResponse
s@DeleteGatewayRouteResponse' {} Int
a -> DeleteGatewayRouteResponse
s {$sel:httpStatus:DeleteGatewayRouteResponse' :: Int
httpStatus = Int
a} :: DeleteGatewayRouteResponse)

-- | The gateway route that was deleted.
deleteGatewayRouteResponse_gatewayRoute :: Lens.Lens' DeleteGatewayRouteResponse GatewayRouteData
deleteGatewayRouteResponse_gatewayRoute :: (GatewayRouteData -> f GatewayRouteData)
-> DeleteGatewayRouteResponse -> f DeleteGatewayRouteResponse
deleteGatewayRouteResponse_gatewayRoute = (DeleteGatewayRouteResponse -> GatewayRouteData)
-> (DeleteGatewayRouteResponse
    -> GatewayRouteData -> DeleteGatewayRouteResponse)
-> Lens
     DeleteGatewayRouteResponse
     DeleteGatewayRouteResponse
     GatewayRouteData
     GatewayRouteData
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteGatewayRouteResponse' {GatewayRouteData
gatewayRoute :: GatewayRouteData
$sel:gatewayRoute:DeleteGatewayRouteResponse' :: DeleteGatewayRouteResponse -> GatewayRouteData
gatewayRoute} -> GatewayRouteData
gatewayRoute) (\s :: DeleteGatewayRouteResponse
s@DeleteGatewayRouteResponse' {} GatewayRouteData
a -> DeleteGatewayRouteResponse
s {$sel:gatewayRoute:DeleteGatewayRouteResponse' :: GatewayRouteData
gatewayRoute = GatewayRouteData
a} :: DeleteGatewayRouteResponse)

instance Prelude.NFData DeleteGatewayRouteResponse