{-# 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.EC2.Types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.EC2.Types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import Amazonka.EC2.Types.Tag
import qualified Amazonka.Prelude as Prelude

-- | Describes an association between a local gateway route table and a
-- virtual interface group.
--
-- /See:/ 'newLocalGatewayRouteTableVirtualInterfaceGroupAssociation' smart constructor.
data LocalGatewayRouteTableVirtualInterfaceGroupAssociation = LocalGatewayRouteTableVirtualInterfaceGroupAssociation'
  { -- | The ID of the local gateway.
    LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
localGatewayId :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the local gateway route table for the
    -- virtual interface group.
    LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
localGatewayRouteTableArn :: Prelude.Maybe Prelude.Text,
    -- | The ID of the local gateway route table.
    LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
localGatewayRouteTableId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the association.
    LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
localGatewayRouteTableVirtualInterfaceGroupAssociationId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the virtual interface group.
    LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
localGatewayVirtualInterfaceGroupId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the Amazon Web Services account that owns the local gateway
    -- virtual interface group association.
    LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
ownerId :: Prelude.Maybe Prelude.Text,
    -- | The state of the association.
    LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
state :: Prelude.Maybe Prelude.Text,
    -- | The tags assigned to the association.
    LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe [Tag]
tags :: Prelude.Maybe [Tag]
  }
  deriving (LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> Bool
$c/= :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> Bool
== :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> Bool
$c== :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> Bool
Prelude.Eq, ReadPrec [LocalGatewayRouteTableVirtualInterfaceGroupAssociation]
ReadPrec LocalGatewayRouteTableVirtualInterfaceGroupAssociation
Int -> ReadS LocalGatewayRouteTableVirtualInterfaceGroupAssociation
ReadS [LocalGatewayRouteTableVirtualInterfaceGroupAssociation]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LocalGatewayRouteTableVirtualInterfaceGroupAssociation]
$creadListPrec :: ReadPrec [LocalGatewayRouteTableVirtualInterfaceGroupAssociation]
readPrec :: ReadPrec LocalGatewayRouteTableVirtualInterfaceGroupAssociation
$creadPrec :: ReadPrec LocalGatewayRouteTableVirtualInterfaceGroupAssociation
readList :: ReadS [LocalGatewayRouteTableVirtualInterfaceGroupAssociation]
$creadList :: ReadS [LocalGatewayRouteTableVirtualInterfaceGroupAssociation]
readsPrec :: Int -> ReadS LocalGatewayRouteTableVirtualInterfaceGroupAssociation
$creadsPrec :: Int -> ReadS LocalGatewayRouteTableVirtualInterfaceGroupAssociation
Prelude.Read, Int
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> ShowS
[LocalGatewayRouteTableVirtualInterfaceGroupAssociation] -> ShowS
LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LocalGatewayRouteTableVirtualInterfaceGroupAssociation] -> ShowS
$cshowList :: [LocalGatewayRouteTableVirtualInterfaceGroupAssociation] -> ShowS
show :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> String
$cshow :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> String
showsPrec :: Int
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> ShowS
$cshowsPrec :: Int
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> ShowS
Prelude.Show, forall x.
Rep LocalGatewayRouteTableVirtualInterfaceGroupAssociation x
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
forall x.
LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Rep LocalGatewayRouteTableVirtualInterfaceGroupAssociation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep LocalGatewayRouteTableVirtualInterfaceGroupAssociation x
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
$cfrom :: forall x.
LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Rep LocalGatewayRouteTableVirtualInterfaceGroupAssociation x
Prelude.Generic)

-- |
-- Create a value of 'LocalGatewayRouteTableVirtualInterfaceGroupAssociation' 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:
--
-- 'localGatewayId', 'localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayId' - The ID of the local gateway.
--
-- 'localGatewayRouteTableArn', 'localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayRouteTableArn' - The Amazon Resource Name (ARN) of the local gateway route table for the
-- virtual interface group.
--
-- 'localGatewayRouteTableId', 'localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayRouteTableId' - The ID of the local gateway route table.
--
-- 'localGatewayRouteTableVirtualInterfaceGroupAssociationId', 'localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayRouteTableVirtualInterfaceGroupAssociationId' - The ID of the association.
--
-- 'localGatewayVirtualInterfaceGroupId', 'localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayVirtualInterfaceGroupId' - The ID of the virtual interface group.
--
-- 'ownerId', 'localGatewayRouteTableVirtualInterfaceGroupAssociation_ownerId' - The ID of the Amazon Web Services account that owns the local gateway
-- virtual interface group association.
--
-- 'state', 'localGatewayRouteTableVirtualInterfaceGroupAssociation_state' - The state of the association.
--
-- 'tags', 'localGatewayRouteTableVirtualInterfaceGroupAssociation_tags' - The tags assigned to the association.
newLocalGatewayRouteTableVirtualInterfaceGroupAssociation ::
  LocalGatewayRouteTableVirtualInterfaceGroupAssociation
newLocalGatewayRouteTableVirtualInterfaceGroupAssociation :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
newLocalGatewayRouteTableVirtualInterfaceGroupAssociation =
  LocalGatewayRouteTableVirtualInterfaceGroupAssociation'
    { $sel:localGatewayId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: Maybe Text
localGatewayId =
        forall a. Maybe a
Prelude.Nothing,
      $sel:localGatewayRouteTableArn:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: Maybe Text
localGatewayRouteTableArn =
        forall a. Maybe a
Prelude.Nothing,
      $sel:localGatewayRouteTableId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: Maybe Text
localGatewayRouteTableId =
        forall a. Maybe a
Prelude.Nothing,
      $sel:localGatewayRouteTableVirtualInterfaceGroupAssociationId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: Maybe Text
localGatewayRouteTableVirtualInterfaceGroupAssociationId =
        forall a. Maybe a
Prelude.Nothing,
      $sel:localGatewayVirtualInterfaceGroupId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: Maybe Text
localGatewayVirtualInterfaceGroupId =
        forall a. Maybe a
Prelude.Nothing,
      $sel:ownerId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: Maybe Text
ownerId =
        forall a. Maybe a
Prelude.Nothing,
      $sel:state:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: Maybe Text
state =
        forall a. Maybe a
Prelude.Nothing,
      $sel:tags:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: Maybe [Tag]
tags =
        forall a. Maybe a
Prelude.Nothing
    }

-- | The ID of the local gateway.
localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayId :: Lens.Lens' LocalGatewayRouteTableVirtualInterfaceGroupAssociation (Prelude.Maybe Prelude.Text)
localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayId :: Lens'
  LocalGatewayRouteTableVirtualInterfaceGroupAssociation (Maybe Text)
localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {Maybe Text
localGatewayId :: Maybe Text
$sel:localGatewayId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
localGatewayId} -> Maybe Text
localGatewayId) (\s :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
s@LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {} Maybe Text
a -> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
s {$sel:localGatewayId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: Maybe Text
localGatewayId = Maybe Text
a} :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation)

-- | The Amazon Resource Name (ARN) of the local gateway route table for the
-- virtual interface group.
localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayRouteTableArn :: Lens.Lens' LocalGatewayRouteTableVirtualInterfaceGroupAssociation (Prelude.Maybe Prelude.Text)
localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayRouteTableArn :: Lens'
  LocalGatewayRouteTableVirtualInterfaceGroupAssociation (Maybe Text)
localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayRouteTableArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {Maybe Text
localGatewayRouteTableArn :: Maybe Text
$sel:localGatewayRouteTableArn:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
localGatewayRouteTableArn} -> Maybe Text
localGatewayRouteTableArn) (\s :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
s@LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {} Maybe Text
a -> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
s {$sel:localGatewayRouteTableArn:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: Maybe Text
localGatewayRouteTableArn = Maybe Text
a} :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation)

-- | The ID of the local gateway route table.
localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayRouteTableId :: Lens.Lens' LocalGatewayRouteTableVirtualInterfaceGroupAssociation (Prelude.Maybe Prelude.Text)
localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayRouteTableId :: Lens'
  LocalGatewayRouteTableVirtualInterfaceGroupAssociation (Maybe Text)
localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayRouteTableId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {Maybe Text
localGatewayRouteTableId :: Maybe Text
$sel:localGatewayRouteTableId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
localGatewayRouteTableId} -> Maybe Text
localGatewayRouteTableId) (\s :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
s@LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {} Maybe Text
a -> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
s {$sel:localGatewayRouteTableId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: Maybe Text
localGatewayRouteTableId = Maybe Text
a} :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation)

-- | The ID of the association.
localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayRouteTableVirtualInterfaceGroupAssociationId :: Lens.Lens' LocalGatewayRouteTableVirtualInterfaceGroupAssociation (Prelude.Maybe Prelude.Text)
localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayRouteTableVirtualInterfaceGroupAssociationId :: Lens'
  LocalGatewayRouteTableVirtualInterfaceGroupAssociation (Maybe Text)
localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayRouteTableVirtualInterfaceGroupAssociationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {Maybe Text
localGatewayRouteTableVirtualInterfaceGroupAssociationId :: Maybe Text
$sel:localGatewayRouteTableVirtualInterfaceGroupAssociationId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
localGatewayRouteTableVirtualInterfaceGroupAssociationId} -> Maybe Text
localGatewayRouteTableVirtualInterfaceGroupAssociationId) (\s :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
s@LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {} Maybe Text
a -> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
s {$sel:localGatewayRouteTableVirtualInterfaceGroupAssociationId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: Maybe Text
localGatewayRouteTableVirtualInterfaceGroupAssociationId = Maybe Text
a} :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation)

-- | The ID of the virtual interface group.
localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayVirtualInterfaceGroupId :: Lens.Lens' LocalGatewayRouteTableVirtualInterfaceGroupAssociation (Prelude.Maybe Prelude.Text)
localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayVirtualInterfaceGroupId :: Lens'
  LocalGatewayRouteTableVirtualInterfaceGroupAssociation (Maybe Text)
localGatewayRouteTableVirtualInterfaceGroupAssociation_localGatewayVirtualInterfaceGroupId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {Maybe Text
localGatewayVirtualInterfaceGroupId :: Maybe Text
$sel:localGatewayVirtualInterfaceGroupId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
localGatewayVirtualInterfaceGroupId} -> Maybe Text
localGatewayVirtualInterfaceGroupId) (\s :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
s@LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {} Maybe Text
a -> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
s {$sel:localGatewayVirtualInterfaceGroupId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: Maybe Text
localGatewayVirtualInterfaceGroupId = Maybe Text
a} :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation)

-- | The ID of the Amazon Web Services account that owns the local gateway
-- virtual interface group association.
localGatewayRouteTableVirtualInterfaceGroupAssociation_ownerId :: Lens.Lens' LocalGatewayRouteTableVirtualInterfaceGroupAssociation (Prelude.Maybe Prelude.Text)
localGatewayRouteTableVirtualInterfaceGroupAssociation_ownerId :: Lens'
  LocalGatewayRouteTableVirtualInterfaceGroupAssociation (Maybe Text)
localGatewayRouteTableVirtualInterfaceGroupAssociation_ownerId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {Maybe Text
ownerId :: Maybe Text
$sel:ownerId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
ownerId} -> Maybe Text
ownerId) (\s :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
s@LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {} Maybe Text
a -> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
s {$sel:ownerId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: Maybe Text
ownerId = Maybe Text
a} :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation)

-- | The state of the association.
localGatewayRouteTableVirtualInterfaceGroupAssociation_state :: Lens.Lens' LocalGatewayRouteTableVirtualInterfaceGroupAssociation (Prelude.Maybe Prelude.Text)
localGatewayRouteTableVirtualInterfaceGroupAssociation_state :: Lens'
  LocalGatewayRouteTableVirtualInterfaceGroupAssociation (Maybe Text)
localGatewayRouteTableVirtualInterfaceGroupAssociation_state = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {Maybe Text
state :: Maybe Text
$sel:state:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
state} -> Maybe Text
state) (\s :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
s@LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {} Maybe Text
a -> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
s {$sel:state:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: Maybe Text
state = Maybe Text
a} :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation)

-- | The tags assigned to the association.
localGatewayRouteTableVirtualInterfaceGroupAssociation_tags :: Lens.Lens' LocalGatewayRouteTableVirtualInterfaceGroupAssociation (Prelude.Maybe [Tag])
localGatewayRouteTableVirtualInterfaceGroupAssociation_tags :: Lens'
  LocalGatewayRouteTableVirtualInterfaceGroupAssociation
  (Maybe [Tag])
localGatewayRouteTableVirtualInterfaceGroupAssociation_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
s@LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {} Maybe [Tag]
a -> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
s {$sel:tags:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Data.FromXML
    LocalGatewayRouteTableVirtualInterfaceGroupAssociation
  where
  parseXML :: [Node]
-> Either
     String LocalGatewayRouteTableVirtualInterfaceGroupAssociation
parseXML [Node]
x =
    Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
LocalGatewayRouteTableVirtualInterfaceGroupAssociation'
      forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"localGatewayId")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"localGatewayRouteTableArn")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"localGatewayRouteTableId")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x
                      forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"localGatewayRouteTableVirtualInterfaceGroupAssociationId"
                  )
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"localGatewayVirtualInterfaceGroupId")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"ownerId")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"state")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x
                      forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"tagSet"
                      forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                      forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"item")
                  )

instance
  Prelude.Hashable
    LocalGatewayRouteTableVirtualInterfaceGroupAssociation
  where
  hashWithSalt :: Int
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> Int
hashWithSalt
    Int
_salt
    LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {Maybe [Tag]
Maybe Text
tags :: Maybe [Tag]
state :: Maybe Text
ownerId :: Maybe Text
localGatewayVirtualInterfaceGroupId :: Maybe Text
localGatewayRouteTableVirtualInterfaceGroupAssociationId :: Maybe Text
localGatewayRouteTableId :: Maybe Text
localGatewayRouteTableArn :: Maybe Text
localGatewayId :: Maybe Text
$sel:tags:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe [Tag]
$sel:state:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
$sel:ownerId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
$sel:localGatewayVirtualInterfaceGroupId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
$sel:localGatewayRouteTableVirtualInterfaceGroupAssociationId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
$sel:localGatewayRouteTableId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
$sel:localGatewayRouteTableArn:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
$sel:localGatewayId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
localGatewayId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
localGatewayRouteTableArn
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
localGatewayRouteTableId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
localGatewayRouteTableVirtualInterfaceGroupAssociationId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
localGatewayVirtualInterfaceGroupId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
ownerId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
state
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Tag]
tags

instance
  Prelude.NFData
    LocalGatewayRouteTableVirtualInterfaceGroupAssociation
  where
  rnf :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> ()
rnf
    LocalGatewayRouteTableVirtualInterfaceGroupAssociation' {Maybe [Tag]
Maybe Text
tags :: Maybe [Tag]
state :: Maybe Text
ownerId :: Maybe Text
localGatewayVirtualInterfaceGroupId :: Maybe Text
localGatewayRouteTableVirtualInterfaceGroupAssociationId :: Maybe Text
localGatewayRouteTableId :: Maybe Text
localGatewayRouteTableArn :: Maybe Text
localGatewayId :: Maybe Text
$sel:tags:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe [Tag]
$sel:state:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
$sel:ownerId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
$sel:localGatewayVirtualInterfaceGroupId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
$sel:localGatewayRouteTableVirtualInterfaceGroupAssociationId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
$sel:localGatewayRouteTableId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
$sel:localGatewayRouteTableArn:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
$sel:localGatewayId:LocalGatewayRouteTableVirtualInterfaceGroupAssociation' :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe Text
..} =
      forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
localGatewayId
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
localGatewayRouteTableArn
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
localGatewayRouteTableId
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
          Maybe Text
localGatewayRouteTableVirtualInterfaceGroupAssociationId
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
localGatewayVirtualInterfaceGroupId
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
ownerId
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
state
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Tag]
tags