{-# 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 #-}
module Amazonka.DirectConnect.AcceptDirectConnectGatewayAssociationProposal
(
AcceptDirectConnectGatewayAssociationProposal (..),
newAcceptDirectConnectGatewayAssociationProposal,
acceptDirectConnectGatewayAssociationProposal_overrideAllowedPrefixesToDirectConnectGateway,
acceptDirectConnectGatewayAssociationProposal_directConnectGatewayId,
acceptDirectConnectGatewayAssociationProposal_proposalId,
acceptDirectConnectGatewayAssociationProposal_associatedGatewayOwnerAccount,
AcceptDirectConnectGatewayAssociationProposalResponse (..),
newAcceptDirectConnectGatewayAssociationProposalResponse,
acceptDirectConnectGatewayAssociationProposalResponse_directConnectGatewayAssociation,
acceptDirectConnectGatewayAssociationProposalResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DirectConnect.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data AcceptDirectConnectGatewayAssociationProposal = AcceptDirectConnectGatewayAssociationProposal'
{
AcceptDirectConnectGatewayAssociationProposal
-> Maybe [RouteFilterPrefix]
overrideAllowedPrefixesToDirectConnectGateway :: Prelude.Maybe [RouteFilterPrefix],
AcceptDirectConnectGatewayAssociationProposal -> Text
directConnectGatewayId :: Prelude.Text,
AcceptDirectConnectGatewayAssociationProposal -> Text
proposalId :: Prelude.Text,
AcceptDirectConnectGatewayAssociationProposal -> Text
associatedGatewayOwnerAccount :: Prelude.Text
}
deriving (AcceptDirectConnectGatewayAssociationProposal
-> AcceptDirectConnectGatewayAssociationProposal -> Bool
(AcceptDirectConnectGatewayAssociationProposal
-> AcceptDirectConnectGatewayAssociationProposal -> Bool)
-> (AcceptDirectConnectGatewayAssociationProposal
-> AcceptDirectConnectGatewayAssociationProposal -> Bool)
-> Eq AcceptDirectConnectGatewayAssociationProposal
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AcceptDirectConnectGatewayAssociationProposal
-> AcceptDirectConnectGatewayAssociationProposal -> Bool
$c/= :: AcceptDirectConnectGatewayAssociationProposal
-> AcceptDirectConnectGatewayAssociationProposal -> Bool
== :: AcceptDirectConnectGatewayAssociationProposal
-> AcceptDirectConnectGatewayAssociationProposal -> Bool
$c== :: AcceptDirectConnectGatewayAssociationProposal
-> AcceptDirectConnectGatewayAssociationProposal -> Bool
Prelude.Eq, ReadPrec [AcceptDirectConnectGatewayAssociationProposal]
ReadPrec AcceptDirectConnectGatewayAssociationProposal
Int -> ReadS AcceptDirectConnectGatewayAssociationProposal
ReadS [AcceptDirectConnectGatewayAssociationProposal]
(Int -> ReadS AcceptDirectConnectGatewayAssociationProposal)
-> ReadS [AcceptDirectConnectGatewayAssociationProposal]
-> ReadPrec AcceptDirectConnectGatewayAssociationProposal
-> ReadPrec [AcceptDirectConnectGatewayAssociationProposal]
-> Read AcceptDirectConnectGatewayAssociationProposal
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AcceptDirectConnectGatewayAssociationProposal]
$creadListPrec :: ReadPrec [AcceptDirectConnectGatewayAssociationProposal]
readPrec :: ReadPrec AcceptDirectConnectGatewayAssociationProposal
$creadPrec :: ReadPrec AcceptDirectConnectGatewayAssociationProposal
readList :: ReadS [AcceptDirectConnectGatewayAssociationProposal]
$creadList :: ReadS [AcceptDirectConnectGatewayAssociationProposal]
readsPrec :: Int -> ReadS AcceptDirectConnectGatewayAssociationProposal
$creadsPrec :: Int -> ReadS AcceptDirectConnectGatewayAssociationProposal
Prelude.Read, Int -> AcceptDirectConnectGatewayAssociationProposal -> ShowS
[AcceptDirectConnectGatewayAssociationProposal] -> ShowS
AcceptDirectConnectGatewayAssociationProposal -> String
(Int -> AcceptDirectConnectGatewayAssociationProposal -> ShowS)
-> (AcceptDirectConnectGatewayAssociationProposal -> String)
-> ([AcceptDirectConnectGatewayAssociationProposal] -> ShowS)
-> Show AcceptDirectConnectGatewayAssociationProposal
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AcceptDirectConnectGatewayAssociationProposal] -> ShowS
$cshowList :: [AcceptDirectConnectGatewayAssociationProposal] -> ShowS
show :: AcceptDirectConnectGatewayAssociationProposal -> String
$cshow :: AcceptDirectConnectGatewayAssociationProposal -> String
showsPrec :: Int -> AcceptDirectConnectGatewayAssociationProposal -> ShowS
$cshowsPrec :: Int -> AcceptDirectConnectGatewayAssociationProposal -> ShowS
Prelude.Show, (forall x.
AcceptDirectConnectGatewayAssociationProposal
-> Rep AcceptDirectConnectGatewayAssociationProposal x)
-> (forall x.
Rep AcceptDirectConnectGatewayAssociationProposal x
-> AcceptDirectConnectGatewayAssociationProposal)
-> Generic AcceptDirectConnectGatewayAssociationProposal
forall x.
Rep AcceptDirectConnectGatewayAssociationProposal x
-> AcceptDirectConnectGatewayAssociationProposal
forall x.
AcceptDirectConnectGatewayAssociationProposal
-> Rep AcceptDirectConnectGatewayAssociationProposal x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AcceptDirectConnectGatewayAssociationProposal x
-> AcceptDirectConnectGatewayAssociationProposal
$cfrom :: forall x.
AcceptDirectConnectGatewayAssociationProposal
-> Rep AcceptDirectConnectGatewayAssociationProposal x
Prelude.Generic)
newAcceptDirectConnectGatewayAssociationProposal ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
AcceptDirectConnectGatewayAssociationProposal
newAcceptDirectConnectGatewayAssociationProposal :: Text
-> Text -> Text -> AcceptDirectConnectGatewayAssociationProposal
newAcceptDirectConnectGatewayAssociationProposal
Text
pDirectConnectGatewayId_
Text
pProposalId_
Text
pAssociatedGatewayOwnerAccount_ =
AcceptDirectConnectGatewayAssociationProposal' :: Maybe [RouteFilterPrefix]
-> Text
-> Text
-> Text
-> AcceptDirectConnectGatewayAssociationProposal
AcceptDirectConnectGatewayAssociationProposal'
{ $sel:overrideAllowedPrefixesToDirectConnectGateway:AcceptDirectConnectGatewayAssociationProposal' :: Maybe [RouteFilterPrefix]
overrideAllowedPrefixesToDirectConnectGateway =
Maybe [RouteFilterPrefix]
forall a. Maybe a
Prelude.Nothing,
$sel:directConnectGatewayId:AcceptDirectConnectGatewayAssociationProposal' :: Text
directConnectGatewayId =
Text
pDirectConnectGatewayId_,
$sel:proposalId:AcceptDirectConnectGatewayAssociationProposal' :: Text
proposalId = Text
pProposalId_,
$sel:associatedGatewayOwnerAccount:AcceptDirectConnectGatewayAssociationProposal' :: Text
associatedGatewayOwnerAccount =
Text
pAssociatedGatewayOwnerAccount_
}
acceptDirectConnectGatewayAssociationProposal_overrideAllowedPrefixesToDirectConnectGateway :: Lens.Lens' AcceptDirectConnectGatewayAssociationProposal (Prelude.Maybe [RouteFilterPrefix])
acceptDirectConnectGatewayAssociationProposal_overrideAllowedPrefixesToDirectConnectGateway :: (Maybe [RouteFilterPrefix] -> f (Maybe [RouteFilterPrefix]))
-> AcceptDirectConnectGatewayAssociationProposal
-> f AcceptDirectConnectGatewayAssociationProposal
acceptDirectConnectGatewayAssociationProposal_overrideAllowedPrefixesToDirectConnectGateway = (AcceptDirectConnectGatewayAssociationProposal
-> Maybe [RouteFilterPrefix])
-> (AcceptDirectConnectGatewayAssociationProposal
-> Maybe [RouteFilterPrefix]
-> AcceptDirectConnectGatewayAssociationProposal)
-> Lens
AcceptDirectConnectGatewayAssociationProposal
AcceptDirectConnectGatewayAssociationProposal
(Maybe [RouteFilterPrefix])
(Maybe [RouteFilterPrefix])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AcceptDirectConnectGatewayAssociationProposal' {Maybe [RouteFilterPrefix]
overrideAllowedPrefixesToDirectConnectGateway :: Maybe [RouteFilterPrefix]
$sel:overrideAllowedPrefixesToDirectConnectGateway:AcceptDirectConnectGatewayAssociationProposal' :: AcceptDirectConnectGatewayAssociationProposal
-> Maybe [RouteFilterPrefix]
overrideAllowedPrefixesToDirectConnectGateway} -> Maybe [RouteFilterPrefix]
overrideAllowedPrefixesToDirectConnectGateway) (\s :: AcceptDirectConnectGatewayAssociationProposal
s@AcceptDirectConnectGatewayAssociationProposal' {} Maybe [RouteFilterPrefix]
a -> AcceptDirectConnectGatewayAssociationProposal
s {$sel:overrideAllowedPrefixesToDirectConnectGateway:AcceptDirectConnectGatewayAssociationProposal' :: Maybe [RouteFilterPrefix]
overrideAllowedPrefixesToDirectConnectGateway = Maybe [RouteFilterPrefix]
a} :: AcceptDirectConnectGatewayAssociationProposal) ((Maybe [RouteFilterPrefix] -> f (Maybe [RouteFilterPrefix]))
-> AcceptDirectConnectGatewayAssociationProposal
-> f AcceptDirectConnectGatewayAssociationProposal)
-> ((Maybe [RouteFilterPrefix] -> f (Maybe [RouteFilterPrefix]))
-> Maybe [RouteFilterPrefix] -> f (Maybe [RouteFilterPrefix]))
-> (Maybe [RouteFilterPrefix] -> f (Maybe [RouteFilterPrefix]))
-> AcceptDirectConnectGatewayAssociationProposal
-> f AcceptDirectConnectGatewayAssociationProposal
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[RouteFilterPrefix]
[RouteFilterPrefix]
[RouteFilterPrefix]
[RouteFilterPrefix]
-> Iso
(Maybe [RouteFilterPrefix])
(Maybe [RouteFilterPrefix])
(Maybe [RouteFilterPrefix])
(Maybe [RouteFilterPrefix])
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 AnIso
[RouteFilterPrefix]
[RouteFilterPrefix]
[RouteFilterPrefix]
[RouteFilterPrefix]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
acceptDirectConnectGatewayAssociationProposal_directConnectGatewayId :: Lens.Lens' AcceptDirectConnectGatewayAssociationProposal Prelude.Text
acceptDirectConnectGatewayAssociationProposal_directConnectGatewayId :: (Text -> f Text)
-> AcceptDirectConnectGatewayAssociationProposal
-> f AcceptDirectConnectGatewayAssociationProposal
acceptDirectConnectGatewayAssociationProposal_directConnectGatewayId = (AcceptDirectConnectGatewayAssociationProposal -> Text)
-> (AcceptDirectConnectGatewayAssociationProposal
-> Text -> AcceptDirectConnectGatewayAssociationProposal)
-> Lens
AcceptDirectConnectGatewayAssociationProposal
AcceptDirectConnectGatewayAssociationProposal
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AcceptDirectConnectGatewayAssociationProposal' {Text
directConnectGatewayId :: Text
$sel:directConnectGatewayId:AcceptDirectConnectGatewayAssociationProposal' :: AcceptDirectConnectGatewayAssociationProposal -> Text
directConnectGatewayId} -> Text
directConnectGatewayId) (\s :: AcceptDirectConnectGatewayAssociationProposal
s@AcceptDirectConnectGatewayAssociationProposal' {} Text
a -> AcceptDirectConnectGatewayAssociationProposal
s {$sel:directConnectGatewayId:AcceptDirectConnectGatewayAssociationProposal' :: Text
directConnectGatewayId = Text
a} :: AcceptDirectConnectGatewayAssociationProposal)
acceptDirectConnectGatewayAssociationProposal_proposalId :: Lens.Lens' AcceptDirectConnectGatewayAssociationProposal Prelude.Text
acceptDirectConnectGatewayAssociationProposal_proposalId :: (Text -> f Text)
-> AcceptDirectConnectGatewayAssociationProposal
-> f AcceptDirectConnectGatewayAssociationProposal
acceptDirectConnectGatewayAssociationProposal_proposalId = (AcceptDirectConnectGatewayAssociationProposal -> Text)
-> (AcceptDirectConnectGatewayAssociationProposal
-> Text -> AcceptDirectConnectGatewayAssociationProposal)
-> Lens
AcceptDirectConnectGatewayAssociationProposal
AcceptDirectConnectGatewayAssociationProposal
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AcceptDirectConnectGatewayAssociationProposal' {Text
proposalId :: Text
$sel:proposalId:AcceptDirectConnectGatewayAssociationProposal' :: AcceptDirectConnectGatewayAssociationProposal -> Text
proposalId} -> Text
proposalId) (\s :: AcceptDirectConnectGatewayAssociationProposal
s@AcceptDirectConnectGatewayAssociationProposal' {} Text
a -> AcceptDirectConnectGatewayAssociationProposal
s {$sel:proposalId:AcceptDirectConnectGatewayAssociationProposal' :: Text
proposalId = Text
a} :: AcceptDirectConnectGatewayAssociationProposal)
acceptDirectConnectGatewayAssociationProposal_associatedGatewayOwnerAccount :: Lens.Lens' AcceptDirectConnectGatewayAssociationProposal Prelude.Text
acceptDirectConnectGatewayAssociationProposal_associatedGatewayOwnerAccount :: (Text -> f Text)
-> AcceptDirectConnectGatewayAssociationProposal
-> f AcceptDirectConnectGatewayAssociationProposal
acceptDirectConnectGatewayAssociationProposal_associatedGatewayOwnerAccount = (AcceptDirectConnectGatewayAssociationProposal -> Text)
-> (AcceptDirectConnectGatewayAssociationProposal
-> Text -> AcceptDirectConnectGatewayAssociationProposal)
-> Lens
AcceptDirectConnectGatewayAssociationProposal
AcceptDirectConnectGatewayAssociationProposal
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AcceptDirectConnectGatewayAssociationProposal' {Text
associatedGatewayOwnerAccount :: Text
$sel:associatedGatewayOwnerAccount:AcceptDirectConnectGatewayAssociationProposal' :: AcceptDirectConnectGatewayAssociationProposal -> Text
associatedGatewayOwnerAccount} -> Text
associatedGatewayOwnerAccount) (\s :: AcceptDirectConnectGatewayAssociationProposal
s@AcceptDirectConnectGatewayAssociationProposal' {} Text
a -> AcceptDirectConnectGatewayAssociationProposal
s {$sel:associatedGatewayOwnerAccount:AcceptDirectConnectGatewayAssociationProposal' :: Text
associatedGatewayOwnerAccount = Text
a} :: AcceptDirectConnectGatewayAssociationProposal)
instance
Core.AWSRequest
AcceptDirectConnectGatewayAssociationProposal
where
type
AWSResponse
AcceptDirectConnectGatewayAssociationProposal =
AcceptDirectConnectGatewayAssociationProposalResponse
request :: AcceptDirectConnectGatewayAssociationProposal
-> Request AcceptDirectConnectGatewayAssociationProposal
request = Service
-> AcceptDirectConnectGatewayAssociationProposal
-> Request AcceptDirectConnectGatewayAssociationProposal
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy AcceptDirectConnectGatewayAssociationProposal
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse AcceptDirectConnectGatewayAssociationProposal)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either
String (AWSResponse AcceptDirectConnectGatewayAssociationProposal))
-> Logger
-> Service
-> Proxy AcceptDirectConnectGatewayAssociationProposal
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse AcceptDirectConnectGatewayAssociationProposal)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe DirectConnectGatewayAssociation
-> Int -> AcceptDirectConnectGatewayAssociationProposalResponse
AcceptDirectConnectGatewayAssociationProposalResponse'
(Maybe DirectConnectGatewayAssociation
-> Int -> AcceptDirectConnectGatewayAssociationProposalResponse)
-> Either String (Maybe DirectConnectGatewayAssociation)
-> Either
String
(Int -> AcceptDirectConnectGatewayAssociationProposalResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe DirectConnectGatewayAssociation)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"directConnectGatewayAssociation")
Either
String
(Int -> AcceptDirectConnectGatewayAssociationProposalResponse)
-> Either String Int
-> Either
String AcceptDirectConnectGatewayAssociationProposalResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
AcceptDirectConnectGatewayAssociationProposal
instance
Prelude.NFData
AcceptDirectConnectGatewayAssociationProposal
instance
Core.ToHeaders
AcceptDirectConnectGatewayAssociationProposal
where
toHeaders :: AcceptDirectConnectGatewayAssociationProposal -> ResponseHeaders
toHeaders =
ResponseHeaders
-> AcceptDirectConnectGatewayAssociationProposal -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"OvertureService.AcceptDirectConnectGatewayAssociationProposal" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance
Core.ToJSON
AcceptDirectConnectGatewayAssociationProposal
where
toJSON :: AcceptDirectConnectGatewayAssociationProposal -> Value
toJSON
AcceptDirectConnectGatewayAssociationProposal' {Maybe [RouteFilterPrefix]
Text
associatedGatewayOwnerAccount :: Text
proposalId :: Text
directConnectGatewayId :: Text
overrideAllowedPrefixesToDirectConnectGateway :: Maybe [RouteFilterPrefix]
$sel:associatedGatewayOwnerAccount:AcceptDirectConnectGatewayAssociationProposal' :: AcceptDirectConnectGatewayAssociationProposal -> Text
$sel:proposalId:AcceptDirectConnectGatewayAssociationProposal' :: AcceptDirectConnectGatewayAssociationProposal -> Text
$sel:directConnectGatewayId:AcceptDirectConnectGatewayAssociationProposal' :: AcceptDirectConnectGatewayAssociationProposal -> Text
$sel:overrideAllowedPrefixesToDirectConnectGateway:AcceptDirectConnectGatewayAssociationProposal' :: AcceptDirectConnectGatewayAssociationProposal
-> Maybe [RouteFilterPrefix]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ ( Text
"overrideAllowedPrefixesToDirectConnectGateway"
Text -> [RouteFilterPrefix] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=
)
([RouteFilterPrefix] -> Pair)
-> Maybe [RouteFilterPrefix] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [RouteFilterPrefix]
overrideAllowedPrefixesToDirectConnectGateway,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"directConnectGatewayId"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
directConnectGatewayId
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"proposalId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
proposalId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"associatedGatewayOwnerAccount"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
associatedGatewayOwnerAccount
)
]
)
instance
Core.ToPath
AcceptDirectConnectGatewayAssociationProposal
where
toPath :: AcceptDirectConnectGatewayAssociationProposal -> ByteString
toPath = ByteString
-> AcceptDirectConnectGatewayAssociationProposal -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
AcceptDirectConnectGatewayAssociationProposal
where
toQuery :: AcceptDirectConnectGatewayAssociationProposal -> QueryString
toQuery = QueryString
-> AcceptDirectConnectGatewayAssociationProposal -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data AcceptDirectConnectGatewayAssociationProposalResponse = AcceptDirectConnectGatewayAssociationProposalResponse'
{ AcceptDirectConnectGatewayAssociationProposalResponse
-> Maybe DirectConnectGatewayAssociation
directConnectGatewayAssociation :: Prelude.Maybe DirectConnectGatewayAssociation,
AcceptDirectConnectGatewayAssociationProposalResponse -> Int
httpStatus :: Prelude.Int
}
deriving (AcceptDirectConnectGatewayAssociationProposalResponse
-> AcceptDirectConnectGatewayAssociationProposalResponse -> Bool
(AcceptDirectConnectGatewayAssociationProposalResponse
-> AcceptDirectConnectGatewayAssociationProposalResponse -> Bool)
-> (AcceptDirectConnectGatewayAssociationProposalResponse
-> AcceptDirectConnectGatewayAssociationProposalResponse -> Bool)
-> Eq AcceptDirectConnectGatewayAssociationProposalResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AcceptDirectConnectGatewayAssociationProposalResponse
-> AcceptDirectConnectGatewayAssociationProposalResponse -> Bool
$c/= :: AcceptDirectConnectGatewayAssociationProposalResponse
-> AcceptDirectConnectGatewayAssociationProposalResponse -> Bool
== :: AcceptDirectConnectGatewayAssociationProposalResponse
-> AcceptDirectConnectGatewayAssociationProposalResponse -> Bool
$c== :: AcceptDirectConnectGatewayAssociationProposalResponse
-> AcceptDirectConnectGatewayAssociationProposalResponse -> Bool
Prelude.Eq, ReadPrec [AcceptDirectConnectGatewayAssociationProposalResponse]
ReadPrec AcceptDirectConnectGatewayAssociationProposalResponse
Int -> ReadS AcceptDirectConnectGatewayAssociationProposalResponse
ReadS [AcceptDirectConnectGatewayAssociationProposalResponse]
(Int
-> ReadS AcceptDirectConnectGatewayAssociationProposalResponse)
-> ReadS [AcceptDirectConnectGatewayAssociationProposalResponse]
-> ReadPrec AcceptDirectConnectGatewayAssociationProposalResponse
-> ReadPrec [AcceptDirectConnectGatewayAssociationProposalResponse]
-> Read AcceptDirectConnectGatewayAssociationProposalResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AcceptDirectConnectGatewayAssociationProposalResponse]
$creadListPrec :: ReadPrec [AcceptDirectConnectGatewayAssociationProposalResponse]
readPrec :: ReadPrec AcceptDirectConnectGatewayAssociationProposalResponse
$creadPrec :: ReadPrec AcceptDirectConnectGatewayAssociationProposalResponse
readList :: ReadS [AcceptDirectConnectGatewayAssociationProposalResponse]
$creadList :: ReadS [AcceptDirectConnectGatewayAssociationProposalResponse]
readsPrec :: Int -> ReadS AcceptDirectConnectGatewayAssociationProposalResponse
$creadsPrec :: Int -> ReadS AcceptDirectConnectGatewayAssociationProposalResponse
Prelude.Read, Int
-> AcceptDirectConnectGatewayAssociationProposalResponse -> ShowS
[AcceptDirectConnectGatewayAssociationProposalResponse] -> ShowS
AcceptDirectConnectGatewayAssociationProposalResponse -> String
(Int
-> AcceptDirectConnectGatewayAssociationProposalResponse -> ShowS)
-> (AcceptDirectConnectGatewayAssociationProposalResponse
-> String)
-> ([AcceptDirectConnectGatewayAssociationProposalResponse]
-> ShowS)
-> Show AcceptDirectConnectGatewayAssociationProposalResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AcceptDirectConnectGatewayAssociationProposalResponse] -> ShowS
$cshowList :: [AcceptDirectConnectGatewayAssociationProposalResponse] -> ShowS
show :: AcceptDirectConnectGatewayAssociationProposalResponse -> String
$cshow :: AcceptDirectConnectGatewayAssociationProposalResponse -> String
showsPrec :: Int
-> AcceptDirectConnectGatewayAssociationProposalResponse -> ShowS
$cshowsPrec :: Int
-> AcceptDirectConnectGatewayAssociationProposalResponse -> ShowS
Prelude.Show, (forall x.
AcceptDirectConnectGatewayAssociationProposalResponse
-> Rep AcceptDirectConnectGatewayAssociationProposalResponse x)
-> (forall x.
Rep AcceptDirectConnectGatewayAssociationProposalResponse x
-> AcceptDirectConnectGatewayAssociationProposalResponse)
-> Generic AcceptDirectConnectGatewayAssociationProposalResponse
forall x.
Rep AcceptDirectConnectGatewayAssociationProposalResponse x
-> AcceptDirectConnectGatewayAssociationProposalResponse
forall x.
AcceptDirectConnectGatewayAssociationProposalResponse
-> Rep AcceptDirectConnectGatewayAssociationProposalResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AcceptDirectConnectGatewayAssociationProposalResponse x
-> AcceptDirectConnectGatewayAssociationProposalResponse
$cfrom :: forall x.
AcceptDirectConnectGatewayAssociationProposalResponse
-> Rep AcceptDirectConnectGatewayAssociationProposalResponse x
Prelude.Generic)
newAcceptDirectConnectGatewayAssociationProposalResponse ::
Prelude.Int ->
AcceptDirectConnectGatewayAssociationProposalResponse
newAcceptDirectConnectGatewayAssociationProposalResponse :: Int -> AcceptDirectConnectGatewayAssociationProposalResponse
newAcceptDirectConnectGatewayAssociationProposalResponse
Int
pHttpStatus_ =
AcceptDirectConnectGatewayAssociationProposalResponse' :: Maybe DirectConnectGatewayAssociation
-> Int -> AcceptDirectConnectGatewayAssociationProposalResponse
AcceptDirectConnectGatewayAssociationProposalResponse'
{ $sel:directConnectGatewayAssociation:AcceptDirectConnectGatewayAssociationProposalResponse' :: Maybe DirectConnectGatewayAssociation
directConnectGatewayAssociation =
Maybe DirectConnectGatewayAssociation
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:AcceptDirectConnectGatewayAssociationProposalResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
acceptDirectConnectGatewayAssociationProposalResponse_directConnectGatewayAssociation :: Lens.Lens' AcceptDirectConnectGatewayAssociationProposalResponse (Prelude.Maybe DirectConnectGatewayAssociation)
acceptDirectConnectGatewayAssociationProposalResponse_directConnectGatewayAssociation :: (Maybe DirectConnectGatewayAssociation
-> f (Maybe DirectConnectGatewayAssociation))
-> AcceptDirectConnectGatewayAssociationProposalResponse
-> f AcceptDirectConnectGatewayAssociationProposalResponse
acceptDirectConnectGatewayAssociationProposalResponse_directConnectGatewayAssociation = (AcceptDirectConnectGatewayAssociationProposalResponse
-> Maybe DirectConnectGatewayAssociation)
-> (AcceptDirectConnectGatewayAssociationProposalResponse
-> Maybe DirectConnectGatewayAssociation
-> AcceptDirectConnectGatewayAssociationProposalResponse)
-> Lens
AcceptDirectConnectGatewayAssociationProposalResponse
AcceptDirectConnectGatewayAssociationProposalResponse
(Maybe DirectConnectGatewayAssociation)
(Maybe DirectConnectGatewayAssociation)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AcceptDirectConnectGatewayAssociationProposalResponse' {Maybe DirectConnectGatewayAssociation
directConnectGatewayAssociation :: Maybe DirectConnectGatewayAssociation
$sel:directConnectGatewayAssociation:AcceptDirectConnectGatewayAssociationProposalResponse' :: AcceptDirectConnectGatewayAssociationProposalResponse
-> Maybe DirectConnectGatewayAssociation
directConnectGatewayAssociation} -> Maybe DirectConnectGatewayAssociation
directConnectGatewayAssociation) (\s :: AcceptDirectConnectGatewayAssociationProposalResponse
s@AcceptDirectConnectGatewayAssociationProposalResponse' {} Maybe DirectConnectGatewayAssociation
a -> AcceptDirectConnectGatewayAssociationProposalResponse
s {$sel:directConnectGatewayAssociation:AcceptDirectConnectGatewayAssociationProposalResponse' :: Maybe DirectConnectGatewayAssociation
directConnectGatewayAssociation = Maybe DirectConnectGatewayAssociation
a} :: AcceptDirectConnectGatewayAssociationProposalResponse)
acceptDirectConnectGatewayAssociationProposalResponse_httpStatus :: Lens.Lens' AcceptDirectConnectGatewayAssociationProposalResponse Prelude.Int
acceptDirectConnectGatewayAssociationProposalResponse_httpStatus :: (Int -> f Int)
-> AcceptDirectConnectGatewayAssociationProposalResponse
-> f AcceptDirectConnectGatewayAssociationProposalResponse
acceptDirectConnectGatewayAssociationProposalResponse_httpStatus = (AcceptDirectConnectGatewayAssociationProposalResponse -> Int)
-> (AcceptDirectConnectGatewayAssociationProposalResponse
-> Int -> AcceptDirectConnectGatewayAssociationProposalResponse)
-> Lens
AcceptDirectConnectGatewayAssociationProposalResponse
AcceptDirectConnectGatewayAssociationProposalResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AcceptDirectConnectGatewayAssociationProposalResponse' {Int
httpStatus :: Int
$sel:httpStatus:AcceptDirectConnectGatewayAssociationProposalResponse' :: AcceptDirectConnectGatewayAssociationProposalResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: AcceptDirectConnectGatewayAssociationProposalResponse
s@AcceptDirectConnectGatewayAssociationProposalResponse' {} Int
a -> AcceptDirectConnectGatewayAssociationProposalResponse
s {$sel:httpStatus:AcceptDirectConnectGatewayAssociationProposalResponse' :: Int
httpStatus = Int
a} :: AcceptDirectConnectGatewayAssociationProposalResponse)
instance
Prelude.NFData
AcceptDirectConnectGatewayAssociationProposalResponse