{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# 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.Types.VirtualGatewayRef
-- 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)
module Amazonka.AppMesh.Types.VirtualGatewayRef where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | An object that represents a virtual gateway returned by a list
-- operation.
--
-- /See:/ 'newVirtualGatewayRef' smart constructor.
data VirtualGatewayRef = VirtualGatewayRef'
  { -- | The full Amazon Resource Name (ARN) for the resource.
    VirtualGatewayRef -> Text
arn :: Prelude.Text,
    -- | The Unix epoch timestamp in seconds for when the resource was created.
    VirtualGatewayRef -> POSIX
createdAt :: Core.POSIX,
    -- | The Unix epoch timestamp in seconds for when the resource was last
    -- updated.
    VirtualGatewayRef -> POSIX
lastUpdatedAt :: Core.POSIX,
    -- | The name of the service mesh that the resource resides in.
    VirtualGatewayRef -> Text
meshName :: Prelude.Text,
    -- | 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>.
    VirtualGatewayRef -> Text
meshOwner :: Prelude.Text,
    -- | The AWS IAM account ID of the resource owner. If the account ID is not
    -- your own, then it\'s the ID of the mesh owner or of another account that
    -- the mesh is shared with. For more information about mesh sharing, see
    -- <https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html Working with shared meshes>.
    VirtualGatewayRef -> Text
resourceOwner :: Prelude.Text,
    -- | The version of the resource. Resources are created at version 1, and
    -- this version is incremented each time that they\'re updated.
    VirtualGatewayRef -> Integer
version :: Prelude.Integer,
    -- | The name of the resource.
    VirtualGatewayRef -> Text
virtualGatewayName :: Prelude.Text
  }
  deriving (VirtualGatewayRef -> VirtualGatewayRef -> Bool
(VirtualGatewayRef -> VirtualGatewayRef -> Bool)
-> (VirtualGatewayRef -> VirtualGatewayRef -> Bool)
-> Eq VirtualGatewayRef
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VirtualGatewayRef -> VirtualGatewayRef -> Bool
$c/= :: VirtualGatewayRef -> VirtualGatewayRef -> Bool
== :: VirtualGatewayRef -> VirtualGatewayRef -> Bool
$c== :: VirtualGatewayRef -> VirtualGatewayRef -> Bool
Prelude.Eq, ReadPrec [VirtualGatewayRef]
ReadPrec VirtualGatewayRef
Int -> ReadS VirtualGatewayRef
ReadS [VirtualGatewayRef]
(Int -> ReadS VirtualGatewayRef)
-> ReadS [VirtualGatewayRef]
-> ReadPrec VirtualGatewayRef
-> ReadPrec [VirtualGatewayRef]
-> Read VirtualGatewayRef
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VirtualGatewayRef]
$creadListPrec :: ReadPrec [VirtualGatewayRef]
readPrec :: ReadPrec VirtualGatewayRef
$creadPrec :: ReadPrec VirtualGatewayRef
readList :: ReadS [VirtualGatewayRef]
$creadList :: ReadS [VirtualGatewayRef]
readsPrec :: Int -> ReadS VirtualGatewayRef
$creadsPrec :: Int -> ReadS VirtualGatewayRef
Prelude.Read, Int -> VirtualGatewayRef -> ShowS
[VirtualGatewayRef] -> ShowS
VirtualGatewayRef -> String
(Int -> VirtualGatewayRef -> ShowS)
-> (VirtualGatewayRef -> String)
-> ([VirtualGatewayRef] -> ShowS)
-> Show VirtualGatewayRef
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VirtualGatewayRef] -> ShowS
$cshowList :: [VirtualGatewayRef] -> ShowS
show :: VirtualGatewayRef -> String
$cshow :: VirtualGatewayRef -> String
showsPrec :: Int -> VirtualGatewayRef -> ShowS
$cshowsPrec :: Int -> VirtualGatewayRef -> ShowS
Prelude.Show, (forall x. VirtualGatewayRef -> Rep VirtualGatewayRef x)
-> (forall x. Rep VirtualGatewayRef x -> VirtualGatewayRef)
-> Generic VirtualGatewayRef
forall x. Rep VirtualGatewayRef x -> VirtualGatewayRef
forall x. VirtualGatewayRef -> Rep VirtualGatewayRef x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep VirtualGatewayRef x -> VirtualGatewayRef
$cfrom :: forall x. VirtualGatewayRef -> Rep VirtualGatewayRef x
Prelude.Generic)

-- |
-- Create a value of 'VirtualGatewayRef' 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:
--
-- 'arn', 'virtualGatewayRef_arn' - The full Amazon Resource Name (ARN) for the resource.
--
-- 'createdAt', 'virtualGatewayRef_createdAt' - The Unix epoch timestamp in seconds for when the resource was created.
--
-- 'lastUpdatedAt', 'virtualGatewayRef_lastUpdatedAt' - The Unix epoch timestamp in seconds for when the resource was last
-- updated.
--
-- 'meshName', 'virtualGatewayRef_meshName' - The name of the service mesh that the resource resides in.
--
-- 'meshOwner', 'virtualGatewayRef_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>.
--
-- 'resourceOwner', 'virtualGatewayRef_resourceOwner' - The AWS IAM account ID of the resource owner. If the account ID is not
-- your own, then it\'s the ID of the mesh owner or of another account that
-- the mesh is shared with. For more information about mesh sharing, see
-- <https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html Working with shared meshes>.
--
-- 'version', 'virtualGatewayRef_version' - The version of the resource. Resources are created at version 1, and
-- this version is incremented each time that they\'re updated.
--
-- 'virtualGatewayName', 'virtualGatewayRef_virtualGatewayName' - The name of the resource.
newVirtualGatewayRef ::
  -- | 'arn'
  Prelude.Text ->
  -- | 'createdAt'
  Prelude.UTCTime ->
  -- | 'lastUpdatedAt'
  Prelude.UTCTime ->
  -- | 'meshName'
  Prelude.Text ->
  -- | 'meshOwner'
  Prelude.Text ->
  -- | 'resourceOwner'
  Prelude.Text ->
  -- | 'version'
  Prelude.Integer ->
  -- | 'virtualGatewayName'
  Prelude.Text ->
  VirtualGatewayRef
newVirtualGatewayRef :: Text
-> UTCTime
-> UTCTime
-> Text
-> Text
-> Text
-> Integer
-> Text
-> VirtualGatewayRef
newVirtualGatewayRef
  Text
pArn_
  UTCTime
pCreatedAt_
  UTCTime
pLastUpdatedAt_
  Text
pMeshName_
  Text
pMeshOwner_
  Text
pResourceOwner_
  Integer
pVersion_
  Text
pVirtualGatewayName_ =
    VirtualGatewayRef' :: Text
-> POSIX
-> POSIX
-> Text
-> Text
-> Text
-> Integer
-> Text
-> VirtualGatewayRef
VirtualGatewayRef'
      { $sel:arn:VirtualGatewayRef' :: Text
arn = Text
pArn_,
        $sel:createdAt:VirtualGatewayRef' :: POSIX
createdAt = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreatedAt_,
        $sel:lastUpdatedAt:VirtualGatewayRef' :: POSIX
lastUpdatedAt = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pLastUpdatedAt_,
        $sel:meshName:VirtualGatewayRef' :: Text
meshName = Text
pMeshName_,
        $sel:meshOwner:VirtualGatewayRef' :: Text
meshOwner = Text
pMeshOwner_,
        $sel:resourceOwner:VirtualGatewayRef' :: Text
resourceOwner = Text
pResourceOwner_,
        $sel:version:VirtualGatewayRef' :: Integer
version = Integer
pVersion_,
        $sel:virtualGatewayName:VirtualGatewayRef' :: Text
virtualGatewayName = Text
pVirtualGatewayName_
      }

-- | The full Amazon Resource Name (ARN) for the resource.
virtualGatewayRef_arn :: Lens.Lens' VirtualGatewayRef Prelude.Text
virtualGatewayRef_arn :: (Text -> f Text) -> VirtualGatewayRef -> f VirtualGatewayRef
virtualGatewayRef_arn = (VirtualGatewayRef -> Text)
-> (VirtualGatewayRef -> Text -> VirtualGatewayRef)
-> Lens VirtualGatewayRef VirtualGatewayRef Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VirtualGatewayRef' {Text
arn :: Text
$sel:arn:VirtualGatewayRef' :: VirtualGatewayRef -> Text
arn} -> Text
arn) (\s :: VirtualGatewayRef
s@VirtualGatewayRef' {} Text
a -> VirtualGatewayRef
s {$sel:arn:VirtualGatewayRef' :: Text
arn = Text
a} :: VirtualGatewayRef)

-- | The Unix epoch timestamp in seconds for when the resource was created.
virtualGatewayRef_createdAt :: Lens.Lens' VirtualGatewayRef Prelude.UTCTime
virtualGatewayRef_createdAt :: (UTCTime -> f UTCTime) -> VirtualGatewayRef -> f VirtualGatewayRef
virtualGatewayRef_createdAt = (VirtualGatewayRef -> POSIX)
-> (VirtualGatewayRef -> POSIX -> VirtualGatewayRef)
-> Lens VirtualGatewayRef VirtualGatewayRef POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VirtualGatewayRef' {POSIX
createdAt :: POSIX
$sel:createdAt:VirtualGatewayRef' :: VirtualGatewayRef -> POSIX
createdAt} -> POSIX
createdAt) (\s :: VirtualGatewayRef
s@VirtualGatewayRef' {} POSIX
a -> VirtualGatewayRef
s {$sel:createdAt:VirtualGatewayRef' :: POSIX
createdAt = POSIX
a} :: VirtualGatewayRef) ((POSIX -> f POSIX) -> VirtualGatewayRef -> f VirtualGatewayRef)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> VirtualGatewayRef
-> f VirtualGatewayRef
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The Unix epoch timestamp in seconds for when the resource was last
-- updated.
virtualGatewayRef_lastUpdatedAt :: Lens.Lens' VirtualGatewayRef Prelude.UTCTime
virtualGatewayRef_lastUpdatedAt :: (UTCTime -> f UTCTime) -> VirtualGatewayRef -> f VirtualGatewayRef
virtualGatewayRef_lastUpdatedAt = (VirtualGatewayRef -> POSIX)
-> (VirtualGatewayRef -> POSIX -> VirtualGatewayRef)
-> Lens VirtualGatewayRef VirtualGatewayRef POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VirtualGatewayRef' {POSIX
lastUpdatedAt :: POSIX
$sel:lastUpdatedAt:VirtualGatewayRef' :: VirtualGatewayRef -> POSIX
lastUpdatedAt} -> POSIX
lastUpdatedAt) (\s :: VirtualGatewayRef
s@VirtualGatewayRef' {} POSIX
a -> VirtualGatewayRef
s {$sel:lastUpdatedAt:VirtualGatewayRef' :: POSIX
lastUpdatedAt = POSIX
a} :: VirtualGatewayRef) ((POSIX -> f POSIX) -> VirtualGatewayRef -> f VirtualGatewayRef)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> VirtualGatewayRef
-> f VirtualGatewayRef
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The name of the service mesh that the resource resides in.
virtualGatewayRef_meshName :: Lens.Lens' VirtualGatewayRef Prelude.Text
virtualGatewayRef_meshName :: (Text -> f Text) -> VirtualGatewayRef -> f VirtualGatewayRef
virtualGatewayRef_meshName = (VirtualGatewayRef -> Text)
-> (VirtualGatewayRef -> Text -> VirtualGatewayRef)
-> Lens VirtualGatewayRef VirtualGatewayRef Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VirtualGatewayRef' {Text
meshName :: Text
$sel:meshName:VirtualGatewayRef' :: VirtualGatewayRef -> Text
meshName} -> Text
meshName) (\s :: VirtualGatewayRef
s@VirtualGatewayRef' {} Text
a -> VirtualGatewayRef
s {$sel:meshName:VirtualGatewayRef' :: Text
meshName = Text
a} :: VirtualGatewayRef)

-- | 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>.
virtualGatewayRef_meshOwner :: Lens.Lens' VirtualGatewayRef Prelude.Text
virtualGatewayRef_meshOwner :: (Text -> f Text) -> VirtualGatewayRef -> f VirtualGatewayRef
virtualGatewayRef_meshOwner = (VirtualGatewayRef -> Text)
-> (VirtualGatewayRef -> Text -> VirtualGatewayRef)
-> Lens VirtualGatewayRef VirtualGatewayRef Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VirtualGatewayRef' {Text
meshOwner :: Text
$sel:meshOwner:VirtualGatewayRef' :: VirtualGatewayRef -> Text
meshOwner} -> Text
meshOwner) (\s :: VirtualGatewayRef
s@VirtualGatewayRef' {} Text
a -> VirtualGatewayRef
s {$sel:meshOwner:VirtualGatewayRef' :: Text
meshOwner = Text
a} :: VirtualGatewayRef)

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

-- | The version of the resource. Resources are created at version 1, and
-- this version is incremented each time that they\'re updated.
virtualGatewayRef_version :: Lens.Lens' VirtualGatewayRef Prelude.Integer
virtualGatewayRef_version :: (Integer -> f Integer) -> VirtualGatewayRef -> f VirtualGatewayRef
virtualGatewayRef_version = (VirtualGatewayRef -> Integer)
-> (VirtualGatewayRef -> Integer -> VirtualGatewayRef)
-> Lens VirtualGatewayRef VirtualGatewayRef Integer Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VirtualGatewayRef' {Integer
version :: Integer
$sel:version:VirtualGatewayRef' :: VirtualGatewayRef -> Integer
version} -> Integer
version) (\s :: VirtualGatewayRef
s@VirtualGatewayRef' {} Integer
a -> VirtualGatewayRef
s {$sel:version:VirtualGatewayRef' :: Integer
version = Integer
a} :: VirtualGatewayRef)

-- | The name of the resource.
virtualGatewayRef_virtualGatewayName :: Lens.Lens' VirtualGatewayRef Prelude.Text
virtualGatewayRef_virtualGatewayName :: (Text -> f Text) -> VirtualGatewayRef -> f VirtualGatewayRef
virtualGatewayRef_virtualGatewayName = (VirtualGatewayRef -> Text)
-> (VirtualGatewayRef -> Text -> VirtualGatewayRef)
-> Lens VirtualGatewayRef VirtualGatewayRef Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VirtualGatewayRef' {Text
virtualGatewayName :: Text
$sel:virtualGatewayName:VirtualGatewayRef' :: VirtualGatewayRef -> Text
virtualGatewayName} -> Text
virtualGatewayName) (\s :: VirtualGatewayRef
s@VirtualGatewayRef' {} Text
a -> VirtualGatewayRef
s {$sel:virtualGatewayName:VirtualGatewayRef' :: Text
virtualGatewayName = Text
a} :: VirtualGatewayRef)

instance Core.FromJSON VirtualGatewayRef where
  parseJSON :: Value -> Parser VirtualGatewayRef
parseJSON =
    String
-> (Object -> Parser VirtualGatewayRef)
-> Value
-> Parser VirtualGatewayRef
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"VirtualGatewayRef"
      ( \Object
x ->
          Text
-> POSIX
-> POSIX
-> Text
-> Text
-> Text
-> Integer
-> Text
-> VirtualGatewayRef
VirtualGatewayRef'
            (Text
 -> POSIX
 -> POSIX
 -> Text
 -> Text
 -> Text
 -> Integer
 -> Text
 -> VirtualGatewayRef)
-> Parser Text
-> Parser
     (POSIX
      -> POSIX
      -> Text
      -> Text
      -> Text
      -> Integer
      -> Text
      -> VirtualGatewayRef)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"arn")
            Parser
  (POSIX
   -> POSIX
   -> Text
   -> Text
   -> Text
   -> Integer
   -> Text
   -> VirtualGatewayRef)
-> Parser POSIX
-> Parser
     (POSIX
      -> Text -> Text -> Text -> Integer -> Text -> VirtualGatewayRef)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"createdAt")
            Parser
  (POSIX
   -> Text -> Text -> Text -> Integer -> Text -> VirtualGatewayRef)
-> Parser POSIX
-> Parser
     (Text -> Text -> Text -> Integer -> Text -> VirtualGatewayRef)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"lastUpdatedAt")
            Parser
  (Text -> Text -> Text -> Integer -> Text -> VirtualGatewayRef)
-> Parser Text
-> Parser (Text -> Text -> Integer -> Text -> VirtualGatewayRef)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"meshName")
            Parser (Text -> Text -> Integer -> Text -> VirtualGatewayRef)
-> Parser Text
-> Parser (Text -> Integer -> Text -> VirtualGatewayRef)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"meshOwner")
            Parser (Text -> Integer -> Text -> VirtualGatewayRef)
-> Parser Text -> Parser (Integer -> Text -> VirtualGatewayRef)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"resourceOwner")
            Parser (Integer -> Text -> VirtualGatewayRef)
-> Parser Integer -> Parser (Text -> VirtualGatewayRef)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Integer
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"version")
            Parser (Text -> VirtualGatewayRef)
-> Parser Text -> Parser VirtualGatewayRef
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"virtualGatewayName")
      )

instance Prelude.Hashable VirtualGatewayRef

instance Prelude.NFData VirtualGatewayRef