{-# 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.EC2.AcceptTransitGatewayVpcAttachment
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Accepts a request to attach a VPC to a transit gateway.
--
-- The VPC attachment must be in the @pendingAcceptance@ state. Use
-- DescribeTransitGatewayVpcAttachments to view your pending VPC attachment
-- requests. Use RejectTransitGatewayVpcAttachment to reject a VPC
-- attachment request.
module Amazonka.EC2.AcceptTransitGatewayVpcAttachment
  ( -- * Creating a Request
    AcceptTransitGatewayVpcAttachment (..),
    newAcceptTransitGatewayVpcAttachment,

    -- * Request Lenses
    acceptTransitGatewayVpcAttachment_dryRun,
    acceptTransitGatewayVpcAttachment_transitGatewayAttachmentId,

    -- * Destructuring the Response
    AcceptTransitGatewayVpcAttachmentResponse (..),
    newAcceptTransitGatewayVpcAttachmentResponse,

    -- * Response Lenses
    acceptTransitGatewayVpcAttachmentResponse_transitGatewayVpcAttachment,
    acceptTransitGatewayVpcAttachmentResponse_httpStatus,
  )
where

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

-- | /See:/ 'newAcceptTransitGatewayVpcAttachment' smart constructor.
data AcceptTransitGatewayVpcAttachment = AcceptTransitGatewayVpcAttachment'
  { -- | Checks whether you have the required permissions for the action, without
    -- actually making the request, and provides an error response. If you have
    -- the required permissions, the error response is @DryRunOperation@.
    -- Otherwise, it is @UnauthorizedOperation@.
    AcceptTransitGatewayVpcAttachment -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
    -- | The ID of the attachment.
    AcceptTransitGatewayVpcAttachment -> Text
transitGatewayAttachmentId :: Prelude.Text
  }
  deriving (AcceptTransitGatewayVpcAttachment
-> AcceptTransitGatewayVpcAttachment -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AcceptTransitGatewayVpcAttachment
-> AcceptTransitGatewayVpcAttachment -> Bool
$c/= :: AcceptTransitGatewayVpcAttachment
-> AcceptTransitGatewayVpcAttachment -> Bool
== :: AcceptTransitGatewayVpcAttachment
-> AcceptTransitGatewayVpcAttachment -> Bool
$c== :: AcceptTransitGatewayVpcAttachment
-> AcceptTransitGatewayVpcAttachment -> Bool
Prelude.Eq, ReadPrec [AcceptTransitGatewayVpcAttachment]
ReadPrec AcceptTransitGatewayVpcAttachment
Int -> ReadS AcceptTransitGatewayVpcAttachment
ReadS [AcceptTransitGatewayVpcAttachment]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AcceptTransitGatewayVpcAttachment]
$creadListPrec :: ReadPrec [AcceptTransitGatewayVpcAttachment]
readPrec :: ReadPrec AcceptTransitGatewayVpcAttachment
$creadPrec :: ReadPrec AcceptTransitGatewayVpcAttachment
readList :: ReadS [AcceptTransitGatewayVpcAttachment]
$creadList :: ReadS [AcceptTransitGatewayVpcAttachment]
readsPrec :: Int -> ReadS AcceptTransitGatewayVpcAttachment
$creadsPrec :: Int -> ReadS AcceptTransitGatewayVpcAttachment
Prelude.Read, Int -> AcceptTransitGatewayVpcAttachment -> ShowS
[AcceptTransitGatewayVpcAttachment] -> ShowS
AcceptTransitGatewayVpcAttachment -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AcceptTransitGatewayVpcAttachment] -> ShowS
$cshowList :: [AcceptTransitGatewayVpcAttachment] -> ShowS
show :: AcceptTransitGatewayVpcAttachment -> String
$cshow :: AcceptTransitGatewayVpcAttachment -> String
showsPrec :: Int -> AcceptTransitGatewayVpcAttachment -> ShowS
$cshowsPrec :: Int -> AcceptTransitGatewayVpcAttachment -> ShowS
Prelude.Show, forall x.
Rep AcceptTransitGatewayVpcAttachment x
-> AcceptTransitGatewayVpcAttachment
forall x.
AcceptTransitGatewayVpcAttachment
-> Rep AcceptTransitGatewayVpcAttachment x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AcceptTransitGatewayVpcAttachment x
-> AcceptTransitGatewayVpcAttachment
$cfrom :: forall x.
AcceptTransitGatewayVpcAttachment
-> Rep AcceptTransitGatewayVpcAttachment x
Prelude.Generic)

-- |
-- Create a value of 'AcceptTransitGatewayVpcAttachment' 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:
--
-- 'dryRun', 'acceptTransitGatewayVpcAttachment_dryRun' - Checks whether you have the required permissions for the action, without
-- actually making the request, and provides an error response. If you have
-- the required permissions, the error response is @DryRunOperation@.
-- Otherwise, it is @UnauthorizedOperation@.
--
-- 'transitGatewayAttachmentId', 'acceptTransitGatewayVpcAttachment_transitGatewayAttachmentId' - The ID of the attachment.
newAcceptTransitGatewayVpcAttachment ::
  -- | 'transitGatewayAttachmentId'
  Prelude.Text ->
  AcceptTransitGatewayVpcAttachment
newAcceptTransitGatewayVpcAttachment :: Text -> AcceptTransitGatewayVpcAttachment
newAcceptTransitGatewayVpcAttachment
  Text
pTransitGatewayAttachmentId_ =
    AcceptTransitGatewayVpcAttachment'
      { $sel:dryRun:AcceptTransitGatewayVpcAttachment' :: Maybe Bool
dryRun =
          forall a. Maybe a
Prelude.Nothing,
        $sel:transitGatewayAttachmentId:AcceptTransitGatewayVpcAttachment' :: Text
transitGatewayAttachmentId =
          Text
pTransitGatewayAttachmentId_
      }

-- | Checks whether you have the required permissions for the action, without
-- actually making the request, and provides an error response. If you have
-- the required permissions, the error response is @DryRunOperation@.
-- Otherwise, it is @UnauthorizedOperation@.
acceptTransitGatewayVpcAttachment_dryRun :: Lens.Lens' AcceptTransitGatewayVpcAttachment (Prelude.Maybe Prelude.Bool)
acceptTransitGatewayVpcAttachment_dryRun :: Lens' AcceptTransitGatewayVpcAttachment (Maybe Bool)
acceptTransitGatewayVpcAttachment_dryRun = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AcceptTransitGatewayVpcAttachment' {Maybe Bool
dryRun :: Maybe Bool
$sel:dryRun:AcceptTransitGatewayVpcAttachment' :: AcceptTransitGatewayVpcAttachment -> Maybe Bool
dryRun} -> Maybe Bool
dryRun) (\s :: AcceptTransitGatewayVpcAttachment
s@AcceptTransitGatewayVpcAttachment' {} Maybe Bool
a -> AcceptTransitGatewayVpcAttachment
s {$sel:dryRun:AcceptTransitGatewayVpcAttachment' :: Maybe Bool
dryRun = Maybe Bool
a} :: AcceptTransitGatewayVpcAttachment)

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

instance
  Core.AWSRequest
    AcceptTransitGatewayVpcAttachment
  where
  type
    AWSResponse AcceptTransitGatewayVpcAttachment =
      AcceptTransitGatewayVpcAttachmentResponse
  request :: (Service -> Service)
-> AcceptTransitGatewayVpcAttachment
-> Request AcceptTransitGatewayVpcAttachment
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.postQuery (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy AcceptTransitGatewayVpcAttachment
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse AcceptTransitGatewayVpcAttachment)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe TransitGatewayVpcAttachment
-> Int -> AcceptTransitGatewayVpcAttachmentResponse
AcceptTransitGatewayVpcAttachmentResponse'
            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
"transitGatewayVpcAttachment")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    AcceptTransitGatewayVpcAttachment
  where
  hashWithSalt :: Int -> AcceptTransitGatewayVpcAttachment -> Int
hashWithSalt
    Int
_salt
    AcceptTransitGatewayVpcAttachment' {Maybe Bool
Text
transitGatewayAttachmentId :: Text
dryRun :: Maybe Bool
$sel:transitGatewayAttachmentId:AcceptTransitGatewayVpcAttachment' :: AcceptTransitGatewayVpcAttachment -> Text
$sel:dryRun:AcceptTransitGatewayVpcAttachment' :: AcceptTransitGatewayVpcAttachment -> Maybe Bool
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
dryRun
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
transitGatewayAttachmentId

instance
  Prelude.NFData
    AcceptTransitGatewayVpcAttachment
  where
  rnf :: AcceptTransitGatewayVpcAttachment -> ()
rnf AcceptTransitGatewayVpcAttachment' {Maybe Bool
Text
transitGatewayAttachmentId :: Text
dryRun :: Maybe Bool
$sel:transitGatewayAttachmentId:AcceptTransitGatewayVpcAttachment' :: AcceptTransitGatewayVpcAttachment -> Text
$sel:dryRun:AcceptTransitGatewayVpcAttachment' :: AcceptTransitGatewayVpcAttachment -> Maybe Bool
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
dryRun
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
transitGatewayAttachmentId

instance
  Data.ToHeaders
    AcceptTransitGatewayVpcAttachment
  where
  toHeaders :: AcceptTransitGatewayVpcAttachment -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

instance
  Data.ToPath
    AcceptTransitGatewayVpcAttachment
  where
  toPath :: AcceptTransitGatewayVpcAttachment -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance
  Data.ToQuery
    AcceptTransitGatewayVpcAttachment
  where
  toQuery :: AcceptTransitGatewayVpcAttachment -> QueryString
toQuery AcceptTransitGatewayVpcAttachment' {Maybe Bool
Text
transitGatewayAttachmentId :: Text
dryRun :: Maybe Bool
$sel:transitGatewayAttachmentId:AcceptTransitGatewayVpcAttachment' :: AcceptTransitGatewayVpcAttachment -> Text
$sel:dryRun:AcceptTransitGatewayVpcAttachment' :: AcceptTransitGatewayVpcAttachment -> Maybe Bool
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: ( ByteString
"AcceptTransitGatewayVpcAttachment" ::
                      Prelude.ByteString
                  ),
        ByteString
"Version"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2016-11-15" :: Prelude.ByteString),
        ByteString
"DryRun" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Bool
dryRun,
        ByteString
"TransitGatewayAttachmentId"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
transitGatewayAttachmentId
      ]

-- | /See:/ 'newAcceptTransitGatewayVpcAttachmentResponse' smart constructor.
data AcceptTransitGatewayVpcAttachmentResponse = AcceptTransitGatewayVpcAttachmentResponse'
  { -- | The VPC attachment.
    AcceptTransitGatewayVpcAttachmentResponse
-> Maybe TransitGatewayVpcAttachment
transitGatewayVpcAttachment :: Prelude.Maybe TransitGatewayVpcAttachment,
    -- | The response's http status code.
    AcceptTransitGatewayVpcAttachmentResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (AcceptTransitGatewayVpcAttachmentResponse
-> AcceptTransitGatewayVpcAttachmentResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AcceptTransitGatewayVpcAttachmentResponse
-> AcceptTransitGatewayVpcAttachmentResponse -> Bool
$c/= :: AcceptTransitGatewayVpcAttachmentResponse
-> AcceptTransitGatewayVpcAttachmentResponse -> Bool
== :: AcceptTransitGatewayVpcAttachmentResponse
-> AcceptTransitGatewayVpcAttachmentResponse -> Bool
$c== :: AcceptTransitGatewayVpcAttachmentResponse
-> AcceptTransitGatewayVpcAttachmentResponse -> Bool
Prelude.Eq, ReadPrec [AcceptTransitGatewayVpcAttachmentResponse]
ReadPrec AcceptTransitGatewayVpcAttachmentResponse
Int -> ReadS AcceptTransitGatewayVpcAttachmentResponse
ReadS [AcceptTransitGatewayVpcAttachmentResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AcceptTransitGatewayVpcAttachmentResponse]
$creadListPrec :: ReadPrec [AcceptTransitGatewayVpcAttachmentResponse]
readPrec :: ReadPrec AcceptTransitGatewayVpcAttachmentResponse
$creadPrec :: ReadPrec AcceptTransitGatewayVpcAttachmentResponse
readList :: ReadS [AcceptTransitGatewayVpcAttachmentResponse]
$creadList :: ReadS [AcceptTransitGatewayVpcAttachmentResponse]
readsPrec :: Int -> ReadS AcceptTransitGatewayVpcAttachmentResponse
$creadsPrec :: Int -> ReadS AcceptTransitGatewayVpcAttachmentResponse
Prelude.Read, Int -> AcceptTransitGatewayVpcAttachmentResponse -> ShowS
[AcceptTransitGatewayVpcAttachmentResponse] -> ShowS
AcceptTransitGatewayVpcAttachmentResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AcceptTransitGatewayVpcAttachmentResponse] -> ShowS
$cshowList :: [AcceptTransitGatewayVpcAttachmentResponse] -> ShowS
show :: AcceptTransitGatewayVpcAttachmentResponse -> String
$cshow :: AcceptTransitGatewayVpcAttachmentResponse -> String
showsPrec :: Int -> AcceptTransitGatewayVpcAttachmentResponse -> ShowS
$cshowsPrec :: Int -> AcceptTransitGatewayVpcAttachmentResponse -> ShowS
Prelude.Show, forall x.
Rep AcceptTransitGatewayVpcAttachmentResponse x
-> AcceptTransitGatewayVpcAttachmentResponse
forall x.
AcceptTransitGatewayVpcAttachmentResponse
-> Rep AcceptTransitGatewayVpcAttachmentResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AcceptTransitGatewayVpcAttachmentResponse x
-> AcceptTransitGatewayVpcAttachmentResponse
$cfrom :: forall x.
AcceptTransitGatewayVpcAttachmentResponse
-> Rep AcceptTransitGatewayVpcAttachmentResponse x
Prelude.Generic)

-- |
-- Create a value of 'AcceptTransitGatewayVpcAttachmentResponse' 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:
--
-- 'transitGatewayVpcAttachment', 'acceptTransitGatewayVpcAttachmentResponse_transitGatewayVpcAttachment' - The VPC attachment.
--
-- 'httpStatus', 'acceptTransitGatewayVpcAttachmentResponse_httpStatus' - The response's http status code.
newAcceptTransitGatewayVpcAttachmentResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  AcceptTransitGatewayVpcAttachmentResponse
newAcceptTransitGatewayVpcAttachmentResponse :: Int -> AcceptTransitGatewayVpcAttachmentResponse
newAcceptTransitGatewayVpcAttachmentResponse
  Int
pHttpStatus_ =
    AcceptTransitGatewayVpcAttachmentResponse'
      { $sel:transitGatewayVpcAttachment:AcceptTransitGatewayVpcAttachmentResponse' :: Maybe TransitGatewayVpcAttachment
transitGatewayVpcAttachment =
          forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:AcceptTransitGatewayVpcAttachmentResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The VPC attachment.
acceptTransitGatewayVpcAttachmentResponse_transitGatewayVpcAttachment :: Lens.Lens' AcceptTransitGatewayVpcAttachmentResponse (Prelude.Maybe TransitGatewayVpcAttachment)
acceptTransitGatewayVpcAttachmentResponse_transitGatewayVpcAttachment :: Lens'
  AcceptTransitGatewayVpcAttachmentResponse
  (Maybe TransitGatewayVpcAttachment)
acceptTransitGatewayVpcAttachmentResponse_transitGatewayVpcAttachment = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AcceptTransitGatewayVpcAttachmentResponse' {Maybe TransitGatewayVpcAttachment
transitGatewayVpcAttachment :: Maybe TransitGatewayVpcAttachment
$sel:transitGatewayVpcAttachment:AcceptTransitGatewayVpcAttachmentResponse' :: AcceptTransitGatewayVpcAttachmentResponse
-> Maybe TransitGatewayVpcAttachment
transitGatewayVpcAttachment} -> Maybe TransitGatewayVpcAttachment
transitGatewayVpcAttachment) (\s :: AcceptTransitGatewayVpcAttachmentResponse
s@AcceptTransitGatewayVpcAttachmentResponse' {} Maybe TransitGatewayVpcAttachment
a -> AcceptTransitGatewayVpcAttachmentResponse
s {$sel:transitGatewayVpcAttachment:AcceptTransitGatewayVpcAttachmentResponse' :: Maybe TransitGatewayVpcAttachment
transitGatewayVpcAttachment = Maybe TransitGatewayVpcAttachment
a} :: AcceptTransitGatewayVpcAttachmentResponse)

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

instance
  Prelude.NFData
    AcceptTransitGatewayVpcAttachmentResponse
  where
  rnf :: AcceptTransitGatewayVpcAttachmentResponse -> ()
rnf AcceptTransitGatewayVpcAttachmentResponse' {Int
Maybe TransitGatewayVpcAttachment
httpStatus :: Int
transitGatewayVpcAttachment :: Maybe TransitGatewayVpcAttachment
$sel:httpStatus:AcceptTransitGatewayVpcAttachmentResponse' :: AcceptTransitGatewayVpcAttachmentResponse -> Int
$sel:transitGatewayVpcAttachment:AcceptTransitGatewayVpcAttachmentResponse' :: AcceptTransitGatewayVpcAttachmentResponse
-> Maybe TransitGatewayVpcAttachment
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe TransitGatewayVpcAttachment
transitGatewayVpcAttachment
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus