{-# 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.TransitGatewayAttachment
-- 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.TransitGatewayAttachment 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 Amazonka.EC2.Types.TransitGatewayAttachmentAssociation
import Amazonka.EC2.Types.TransitGatewayAttachmentResourceType
import Amazonka.EC2.Types.TransitGatewayAttachmentState
import qualified Amazonka.Prelude as Prelude

-- | Describes an attachment between a resource and a transit gateway.
--
-- /See:/ 'newTransitGatewayAttachment' smart constructor.
data TransitGatewayAttachment = TransitGatewayAttachment'
  { -- | The association.
    TransitGatewayAttachment
-> Maybe TransitGatewayAttachmentAssociation
association :: Prelude.Maybe TransitGatewayAttachmentAssociation,
    -- | The creation time.
    TransitGatewayAttachment -> Maybe ISO8601
creationTime :: Prelude.Maybe Data.ISO8601,
    -- | The ID of the resource.
    TransitGatewayAttachment -> Maybe Text
resourceId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the Amazon Web Services account that owns the resource.
    TransitGatewayAttachment -> Maybe Text
resourceOwnerId :: Prelude.Maybe Prelude.Text,
    -- | The resource type. Note that the @tgw-peering@ resource type has been
    -- deprecated.
    TransitGatewayAttachment
-> Maybe TransitGatewayAttachmentResourceType
resourceType :: Prelude.Maybe TransitGatewayAttachmentResourceType,
    -- | The attachment state. Note that the @initiating@ state has been
    -- deprecated.
    TransitGatewayAttachment -> Maybe TransitGatewayAttachmentState
state :: Prelude.Maybe TransitGatewayAttachmentState,
    -- | The tags for the attachment.
    TransitGatewayAttachment -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | The ID of the attachment.
    TransitGatewayAttachment -> Maybe Text
transitGatewayAttachmentId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the transit gateway.
    TransitGatewayAttachment -> Maybe Text
transitGatewayId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the Amazon Web Services account that owns the transit gateway.
    TransitGatewayAttachment -> Maybe Text
transitGatewayOwnerId :: Prelude.Maybe Prelude.Text
  }
  deriving (TransitGatewayAttachment -> TransitGatewayAttachment -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TransitGatewayAttachment -> TransitGatewayAttachment -> Bool
$c/= :: TransitGatewayAttachment -> TransitGatewayAttachment -> Bool
== :: TransitGatewayAttachment -> TransitGatewayAttachment -> Bool
$c== :: TransitGatewayAttachment -> TransitGatewayAttachment -> Bool
Prelude.Eq, ReadPrec [TransitGatewayAttachment]
ReadPrec TransitGatewayAttachment
Int -> ReadS TransitGatewayAttachment
ReadS [TransitGatewayAttachment]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TransitGatewayAttachment]
$creadListPrec :: ReadPrec [TransitGatewayAttachment]
readPrec :: ReadPrec TransitGatewayAttachment
$creadPrec :: ReadPrec TransitGatewayAttachment
readList :: ReadS [TransitGatewayAttachment]
$creadList :: ReadS [TransitGatewayAttachment]
readsPrec :: Int -> ReadS TransitGatewayAttachment
$creadsPrec :: Int -> ReadS TransitGatewayAttachment
Prelude.Read, Int -> TransitGatewayAttachment -> ShowS
[TransitGatewayAttachment] -> ShowS
TransitGatewayAttachment -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TransitGatewayAttachment] -> ShowS
$cshowList :: [TransitGatewayAttachment] -> ShowS
show :: TransitGatewayAttachment -> String
$cshow :: TransitGatewayAttachment -> String
showsPrec :: Int -> TransitGatewayAttachment -> ShowS
$cshowsPrec :: Int -> TransitGatewayAttachment -> ShowS
Prelude.Show, forall x.
Rep TransitGatewayAttachment x -> TransitGatewayAttachment
forall x.
TransitGatewayAttachment -> Rep TransitGatewayAttachment x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TransitGatewayAttachment x -> TransitGatewayAttachment
$cfrom :: forall x.
TransitGatewayAttachment -> Rep TransitGatewayAttachment x
Prelude.Generic)

-- |
-- Create a value of 'TransitGatewayAttachment' 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:
--
-- 'association', 'transitGatewayAttachment_association' - The association.
--
-- 'creationTime', 'transitGatewayAttachment_creationTime' - The creation time.
--
-- 'resourceId', 'transitGatewayAttachment_resourceId' - The ID of the resource.
--
-- 'resourceOwnerId', 'transitGatewayAttachment_resourceOwnerId' - The ID of the Amazon Web Services account that owns the resource.
--
-- 'resourceType', 'transitGatewayAttachment_resourceType' - The resource type. Note that the @tgw-peering@ resource type has been
-- deprecated.
--
-- 'state', 'transitGatewayAttachment_state' - The attachment state. Note that the @initiating@ state has been
-- deprecated.
--
-- 'tags', 'transitGatewayAttachment_tags' - The tags for the attachment.
--
-- 'transitGatewayAttachmentId', 'transitGatewayAttachment_transitGatewayAttachmentId' - The ID of the attachment.
--
-- 'transitGatewayId', 'transitGatewayAttachment_transitGatewayId' - The ID of the transit gateway.
--
-- 'transitGatewayOwnerId', 'transitGatewayAttachment_transitGatewayOwnerId' - The ID of the Amazon Web Services account that owns the transit gateway.
newTransitGatewayAttachment ::
  TransitGatewayAttachment
newTransitGatewayAttachment :: TransitGatewayAttachment
newTransitGatewayAttachment =
  TransitGatewayAttachment'
    { $sel:association:TransitGatewayAttachment' :: Maybe TransitGatewayAttachmentAssociation
association =
        forall a. Maybe a
Prelude.Nothing,
      $sel:creationTime:TransitGatewayAttachment' :: Maybe ISO8601
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceId:TransitGatewayAttachment' :: Maybe Text
resourceId = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceOwnerId:TransitGatewayAttachment' :: Maybe Text
resourceOwnerId = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceType:TransitGatewayAttachment' :: Maybe TransitGatewayAttachmentResourceType
resourceType = forall a. Maybe a
Prelude.Nothing,
      $sel:state:TransitGatewayAttachment' :: Maybe TransitGatewayAttachmentState
state = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:TransitGatewayAttachment' :: Maybe [Tag]
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:transitGatewayAttachmentId:TransitGatewayAttachment' :: Maybe Text
transitGatewayAttachmentId = forall a. Maybe a
Prelude.Nothing,
      $sel:transitGatewayId:TransitGatewayAttachment' :: Maybe Text
transitGatewayId = forall a. Maybe a
Prelude.Nothing,
      $sel:transitGatewayOwnerId:TransitGatewayAttachment' :: Maybe Text
transitGatewayOwnerId = forall a. Maybe a
Prelude.Nothing
    }

-- | The association.
transitGatewayAttachment_association :: Lens.Lens' TransitGatewayAttachment (Prelude.Maybe TransitGatewayAttachmentAssociation)
transitGatewayAttachment_association :: Lens'
  TransitGatewayAttachment
  (Maybe TransitGatewayAttachmentAssociation)
transitGatewayAttachment_association = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransitGatewayAttachment' {Maybe TransitGatewayAttachmentAssociation
association :: Maybe TransitGatewayAttachmentAssociation
$sel:association:TransitGatewayAttachment' :: TransitGatewayAttachment
-> Maybe TransitGatewayAttachmentAssociation
association} -> Maybe TransitGatewayAttachmentAssociation
association) (\s :: TransitGatewayAttachment
s@TransitGatewayAttachment' {} Maybe TransitGatewayAttachmentAssociation
a -> TransitGatewayAttachment
s {$sel:association:TransitGatewayAttachment' :: Maybe TransitGatewayAttachmentAssociation
association = Maybe TransitGatewayAttachmentAssociation
a} :: TransitGatewayAttachment)

-- | The creation time.
transitGatewayAttachment_creationTime :: Lens.Lens' TransitGatewayAttachment (Prelude.Maybe Prelude.UTCTime)
transitGatewayAttachment_creationTime :: Lens' TransitGatewayAttachment (Maybe UTCTime)
transitGatewayAttachment_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransitGatewayAttachment' {Maybe ISO8601
creationTime :: Maybe ISO8601
$sel:creationTime:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe ISO8601
creationTime} -> Maybe ISO8601
creationTime) (\s :: TransitGatewayAttachment
s@TransitGatewayAttachment' {} Maybe ISO8601
a -> TransitGatewayAttachment
s {$sel:creationTime:TransitGatewayAttachment' :: Maybe ISO8601
creationTime = Maybe ISO8601
a} :: TransitGatewayAttachment) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The ID of the resource.
transitGatewayAttachment_resourceId :: Lens.Lens' TransitGatewayAttachment (Prelude.Maybe Prelude.Text)
transitGatewayAttachment_resourceId :: Lens' TransitGatewayAttachment (Maybe Text)
transitGatewayAttachment_resourceId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransitGatewayAttachment' {Maybe Text
resourceId :: Maybe Text
$sel:resourceId:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe Text
resourceId} -> Maybe Text
resourceId) (\s :: TransitGatewayAttachment
s@TransitGatewayAttachment' {} Maybe Text
a -> TransitGatewayAttachment
s {$sel:resourceId:TransitGatewayAttachment' :: Maybe Text
resourceId = Maybe Text
a} :: TransitGatewayAttachment)

-- | The ID of the Amazon Web Services account that owns the resource.
transitGatewayAttachment_resourceOwnerId :: Lens.Lens' TransitGatewayAttachment (Prelude.Maybe Prelude.Text)
transitGatewayAttachment_resourceOwnerId :: Lens' TransitGatewayAttachment (Maybe Text)
transitGatewayAttachment_resourceOwnerId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransitGatewayAttachment' {Maybe Text
resourceOwnerId :: Maybe Text
$sel:resourceOwnerId:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe Text
resourceOwnerId} -> Maybe Text
resourceOwnerId) (\s :: TransitGatewayAttachment
s@TransitGatewayAttachment' {} Maybe Text
a -> TransitGatewayAttachment
s {$sel:resourceOwnerId:TransitGatewayAttachment' :: Maybe Text
resourceOwnerId = Maybe Text
a} :: TransitGatewayAttachment)

-- | The resource type. Note that the @tgw-peering@ resource type has been
-- deprecated.
transitGatewayAttachment_resourceType :: Lens.Lens' TransitGatewayAttachment (Prelude.Maybe TransitGatewayAttachmentResourceType)
transitGatewayAttachment_resourceType :: Lens'
  TransitGatewayAttachment
  (Maybe TransitGatewayAttachmentResourceType)
transitGatewayAttachment_resourceType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransitGatewayAttachment' {Maybe TransitGatewayAttachmentResourceType
resourceType :: Maybe TransitGatewayAttachmentResourceType
$sel:resourceType:TransitGatewayAttachment' :: TransitGatewayAttachment
-> Maybe TransitGatewayAttachmentResourceType
resourceType} -> Maybe TransitGatewayAttachmentResourceType
resourceType) (\s :: TransitGatewayAttachment
s@TransitGatewayAttachment' {} Maybe TransitGatewayAttachmentResourceType
a -> TransitGatewayAttachment
s {$sel:resourceType:TransitGatewayAttachment' :: Maybe TransitGatewayAttachmentResourceType
resourceType = Maybe TransitGatewayAttachmentResourceType
a} :: TransitGatewayAttachment)

-- | The attachment state. Note that the @initiating@ state has been
-- deprecated.
transitGatewayAttachment_state :: Lens.Lens' TransitGatewayAttachment (Prelude.Maybe TransitGatewayAttachmentState)
transitGatewayAttachment_state :: Lens'
  TransitGatewayAttachment (Maybe TransitGatewayAttachmentState)
transitGatewayAttachment_state = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransitGatewayAttachment' {Maybe TransitGatewayAttachmentState
state :: Maybe TransitGatewayAttachmentState
$sel:state:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe TransitGatewayAttachmentState
state} -> Maybe TransitGatewayAttachmentState
state) (\s :: TransitGatewayAttachment
s@TransitGatewayAttachment' {} Maybe TransitGatewayAttachmentState
a -> TransitGatewayAttachment
s {$sel:state:TransitGatewayAttachment' :: Maybe TransitGatewayAttachmentState
state = Maybe TransitGatewayAttachmentState
a} :: TransitGatewayAttachment)

-- | The tags for the attachment.
transitGatewayAttachment_tags :: Lens.Lens' TransitGatewayAttachment (Prelude.Maybe [Tag])
transitGatewayAttachment_tags :: Lens' TransitGatewayAttachment (Maybe [Tag])
transitGatewayAttachment_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransitGatewayAttachment' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: TransitGatewayAttachment
s@TransitGatewayAttachment' {} Maybe [Tag]
a -> TransitGatewayAttachment
s {$sel:tags:TransitGatewayAttachment' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: TransitGatewayAttachment) 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

-- | The ID of the attachment.
transitGatewayAttachment_transitGatewayAttachmentId :: Lens.Lens' TransitGatewayAttachment (Prelude.Maybe Prelude.Text)
transitGatewayAttachment_transitGatewayAttachmentId :: Lens' TransitGatewayAttachment (Maybe Text)
transitGatewayAttachment_transitGatewayAttachmentId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransitGatewayAttachment' {Maybe Text
transitGatewayAttachmentId :: Maybe Text
$sel:transitGatewayAttachmentId:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe Text
transitGatewayAttachmentId} -> Maybe Text
transitGatewayAttachmentId) (\s :: TransitGatewayAttachment
s@TransitGatewayAttachment' {} Maybe Text
a -> TransitGatewayAttachment
s {$sel:transitGatewayAttachmentId:TransitGatewayAttachment' :: Maybe Text
transitGatewayAttachmentId = Maybe Text
a} :: TransitGatewayAttachment)

-- | The ID of the transit gateway.
transitGatewayAttachment_transitGatewayId :: Lens.Lens' TransitGatewayAttachment (Prelude.Maybe Prelude.Text)
transitGatewayAttachment_transitGatewayId :: Lens' TransitGatewayAttachment (Maybe Text)
transitGatewayAttachment_transitGatewayId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransitGatewayAttachment' {Maybe Text
transitGatewayId :: Maybe Text
$sel:transitGatewayId:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe Text
transitGatewayId} -> Maybe Text
transitGatewayId) (\s :: TransitGatewayAttachment
s@TransitGatewayAttachment' {} Maybe Text
a -> TransitGatewayAttachment
s {$sel:transitGatewayId:TransitGatewayAttachment' :: Maybe Text
transitGatewayId = Maybe Text
a} :: TransitGatewayAttachment)

-- | The ID of the Amazon Web Services account that owns the transit gateway.
transitGatewayAttachment_transitGatewayOwnerId :: Lens.Lens' TransitGatewayAttachment (Prelude.Maybe Prelude.Text)
transitGatewayAttachment_transitGatewayOwnerId :: Lens' TransitGatewayAttachment (Maybe Text)
transitGatewayAttachment_transitGatewayOwnerId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransitGatewayAttachment' {Maybe Text
transitGatewayOwnerId :: Maybe Text
$sel:transitGatewayOwnerId:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe Text
transitGatewayOwnerId} -> Maybe Text
transitGatewayOwnerId) (\s :: TransitGatewayAttachment
s@TransitGatewayAttachment' {} Maybe Text
a -> TransitGatewayAttachment
s {$sel:transitGatewayOwnerId:TransitGatewayAttachment' :: Maybe Text
transitGatewayOwnerId = Maybe Text
a} :: TransitGatewayAttachment)

instance Data.FromXML TransitGatewayAttachment where
  parseXML :: [Node] -> Either String TransitGatewayAttachment
parseXML [Node]
x =
    Maybe TransitGatewayAttachmentAssociation
-> Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe TransitGatewayAttachmentResourceType
-> Maybe TransitGatewayAttachmentState
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> TransitGatewayAttachment
TransitGatewayAttachment'
      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
"association")
      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
"creationTime")
      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
"resourceId")
      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
"resourceOwnerId")
      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
"resourceType")
      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")
                  )
      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
"transitGatewayAttachmentId")
      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
"transitGatewayId")
      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
"transitGatewayOwnerId")

instance Prelude.Hashable TransitGatewayAttachment where
  hashWithSalt :: Int -> TransitGatewayAttachment -> Int
hashWithSalt Int
_salt TransitGatewayAttachment' {Maybe [Tag]
Maybe Text
Maybe ISO8601
Maybe TransitGatewayAttachmentAssociation
Maybe TransitGatewayAttachmentResourceType
Maybe TransitGatewayAttachmentState
transitGatewayOwnerId :: Maybe Text
transitGatewayId :: Maybe Text
transitGatewayAttachmentId :: Maybe Text
tags :: Maybe [Tag]
state :: Maybe TransitGatewayAttachmentState
resourceType :: Maybe TransitGatewayAttachmentResourceType
resourceOwnerId :: Maybe Text
resourceId :: Maybe Text
creationTime :: Maybe ISO8601
association :: Maybe TransitGatewayAttachmentAssociation
$sel:transitGatewayOwnerId:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe Text
$sel:transitGatewayId:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe Text
$sel:transitGatewayAttachmentId:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe Text
$sel:tags:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe [Tag]
$sel:state:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe TransitGatewayAttachmentState
$sel:resourceType:TransitGatewayAttachment' :: TransitGatewayAttachment
-> Maybe TransitGatewayAttachmentResourceType
$sel:resourceOwnerId:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe Text
$sel:resourceId:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe Text
$sel:creationTime:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe ISO8601
$sel:association:TransitGatewayAttachment' :: TransitGatewayAttachment
-> Maybe TransitGatewayAttachmentAssociation
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TransitGatewayAttachmentAssociation
association
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
creationTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resourceId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resourceOwnerId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TransitGatewayAttachmentResourceType
resourceType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TransitGatewayAttachmentState
state
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Tag]
tags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
transitGatewayAttachmentId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
transitGatewayId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
transitGatewayOwnerId

instance Prelude.NFData TransitGatewayAttachment where
  rnf :: TransitGatewayAttachment -> ()
rnf TransitGatewayAttachment' {Maybe [Tag]
Maybe Text
Maybe ISO8601
Maybe TransitGatewayAttachmentAssociation
Maybe TransitGatewayAttachmentResourceType
Maybe TransitGatewayAttachmentState
transitGatewayOwnerId :: Maybe Text
transitGatewayId :: Maybe Text
transitGatewayAttachmentId :: Maybe Text
tags :: Maybe [Tag]
state :: Maybe TransitGatewayAttachmentState
resourceType :: Maybe TransitGatewayAttachmentResourceType
resourceOwnerId :: Maybe Text
resourceId :: Maybe Text
creationTime :: Maybe ISO8601
association :: Maybe TransitGatewayAttachmentAssociation
$sel:transitGatewayOwnerId:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe Text
$sel:transitGatewayId:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe Text
$sel:transitGatewayAttachmentId:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe Text
$sel:tags:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe [Tag]
$sel:state:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe TransitGatewayAttachmentState
$sel:resourceType:TransitGatewayAttachment' :: TransitGatewayAttachment
-> Maybe TransitGatewayAttachmentResourceType
$sel:resourceOwnerId:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe Text
$sel:resourceId:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe Text
$sel:creationTime:TransitGatewayAttachment' :: TransitGatewayAttachment -> Maybe ISO8601
$sel:association:TransitGatewayAttachment' :: TransitGatewayAttachment
-> Maybe TransitGatewayAttachmentAssociation
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe TransitGatewayAttachmentAssociation
association
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
creationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resourceId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resourceOwnerId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TransitGatewayAttachmentResourceType
resourceType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TransitGatewayAttachmentState
state
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Tag]
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
transitGatewayAttachmentId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
transitGatewayId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
transitGatewayOwnerId