{-# 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.AllocateTransitVirtualInterface
(
AllocateTransitVirtualInterface (..),
newAllocateTransitVirtualInterface,
allocateTransitVirtualInterface_connectionId,
allocateTransitVirtualInterface_ownerAccount,
allocateTransitVirtualInterface_newTransitVirtualInterfaceAllocation,
AllocateTransitVirtualInterfaceResponse (..),
newAllocateTransitVirtualInterfaceResponse,
allocateTransitVirtualInterfaceResponse_virtualInterface,
allocateTransitVirtualInterfaceResponse_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 AllocateTransitVirtualInterface = AllocateTransitVirtualInterface'
{
AllocateTransitVirtualInterface -> Text
connectionId :: Prelude.Text,
AllocateTransitVirtualInterface -> Text
ownerAccount :: Prelude.Text,
AllocateTransitVirtualInterface
-> NewTransitVirtualInterfaceAllocation
newTransitVirtualInterfaceAllocation' :: NewTransitVirtualInterfaceAllocation
}
deriving (AllocateTransitVirtualInterface
-> AllocateTransitVirtualInterface -> Bool
(AllocateTransitVirtualInterface
-> AllocateTransitVirtualInterface -> Bool)
-> (AllocateTransitVirtualInterface
-> AllocateTransitVirtualInterface -> Bool)
-> Eq AllocateTransitVirtualInterface
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AllocateTransitVirtualInterface
-> AllocateTransitVirtualInterface -> Bool
$c/= :: AllocateTransitVirtualInterface
-> AllocateTransitVirtualInterface -> Bool
== :: AllocateTransitVirtualInterface
-> AllocateTransitVirtualInterface -> Bool
$c== :: AllocateTransitVirtualInterface
-> AllocateTransitVirtualInterface -> Bool
Prelude.Eq, ReadPrec [AllocateTransitVirtualInterface]
ReadPrec AllocateTransitVirtualInterface
Int -> ReadS AllocateTransitVirtualInterface
ReadS [AllocateTransitVirtualInterface]
(Int -> ReadS AllocateTransitVirtualInterface)
-> ReadS [AllocateTransitVirtualInterface]
-> ReadPrec AllocateTransitVirtualInterface
-> ReadPrec [AllocateTransitVirtualInterface]
-> Read AllocateTransitVirtualInterface
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AllocateTransitVirtualInterface]
$creadListPrec :: ReadPrec [AllocateTransitVirtualInterface]
readPrec :: ReadPrec AllocateTransitVirtualInterface
$creadPrec :: ReadPrec AllocateTransitVirtualInterface
readList :: ReadS [AllocateTransitVirtualInterface]
$creadList :: ReadS [AllocateTransitVirtualInterface]
readsPrec :: Int -> ReadS AllocateTransitVirtualInterface
$creadsPrec :: Int -> ReadS AllocateTransitVirtualInterface
Prelude.Read, Int -> AllocateTransitVirtualInterface -> ShowS
[AllocateTransitVirtualInterface] -> ShowS
AllocateTransitVirtualInterface -> String
(Int -> AllocateTransitVirtualInterface -> ShowS)
-> (AllocateTransitVirtualInterface -> String)
-> ([AllocateTransitVirtualInterface] -> ShowS)
-> Show AllocateTransitVirtualInterface
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AllocateTransitVirtualInterface] -> ShowS
$cshowList :: [AllocateTransitVirtualInterface] -> ShowS
show :: AllocateTransitVirtualInterface -> String
$cshow :: AllocateTransitVirtualInterface -> String
showsPrec :: Int -> AllocateTransitVirtualInterface -> ShowS
$cshowsPrec :: Int -> AllocateTransitVirtualInterface -> ShowS
Prelude.Show, (forall x.
AllocateTransitVirtualInterface
-> Rep AllocateTransitVirtualInterface x)
-> (forall x.
Rep AllocateTransitVirtualInterface x
-> AllocateTransitVirtualInterface)
-> Generic AllocateTransitVirtualInterface
forall x.
Rep AllocateTransitVirtualInterface x
-> AllocateTransitVirtualInterface
forall x.
AllocateTransitVirtualInterface
-> Rep AllocateTransitVirtualInterface x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AllocateTransitVirtualInterface x
-> AllocateTransitVirtualInterface
$cfrom :: forall x.
AllocateTransitVirtualInterface
-> Rep AllocateTransitVirtualInterface x
Prelude.Generic)
newAllocateTransitVirtualInterface ::
Prelude.Text ->
Prelude.Text ->
NewTransitVirtualInterfaceAllocation ->
AllocateTransitVirtualInterface
newAllocateTransitVirtualInterface :: Text
-> Text
-> NewTransitVirtualInterfaceAllocation
-> AllocateTransitVirtualInterface
newAllocateTransitVirtualInterface
Text
pConnectionId_
Text
pOwnerAccount_
NewTransitVirtualInterfaceAllocation
pNewTransitVirtualInterfaceAllocation_ =
AllocateTransitVirtualInterface' :: Text
-> Text
-> NewTransitVirtualInterfaceAllocation
-> AllocateTransitVirtualInterface
AllocateTransitVirtualInterface'
{ $sel:connectionId:AllocateTransitVirtualInterface' :: Text
connectionId =
Text
pConnectionId_,
$sel:ownerAccount:AllocateTransitVirtualInterface' :: Text
ownerAccount = Text
pOwnerAccount_,
$sel:newTransitVirtualInterfaceAllocation':AllocateTransitVirtualInterface' :: NewTransitVirtualInterfaceAllocation
newTransitVirtualInterfaceAllocation' =
NewTransitVirtualInterfaceAllocation
pNewTransitVirtualInterfaceAllocation_
}
allocateTransitVirtualInterface_connectionId :: Lens.Lens' AllocateTransitVirtualInterface Prelude.Text
allocateTransitVirtualInterface_connectionId :: (Text -> f Text)
-> AllocateTransitVirtualInterface
-> f AllocateTransitVirtualInterface
allocateTransitVirtualInterface_connectionId = (AllocateTransitVirtualInterface -> Text)
-> (AllocateTransitVirtualInterface
-> Text -> AllocateTransitVirtualInterface)
-> Lens
AllocateTransitVirtualInterface
AllocateTransitVirtualInterface
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateTransitVirtualInterface' {Text
connectionId :: Text
$sel:connectionId:AllocateTransitVirtualInterface' :: AllocateTransitVirtualInterface -> Text
connectionId} -> Text
connectionId) (\s :: AllocateTransitVirtualInterface
s@AllocateTransitVirtualInterface' {} Text
a -> AllocateTransitVirtualInterface
s {$sel:connectionId:AllocateTransitVirtualInterface' :: Text
connectionId = Text
a} :: AllocateTransitVirtualInterface)
allocateTransitVirtualInterface_ownerAccount :: Lens.Lens' AllocateTransitVirtualInterface Prelude.Text
allocateTransitVirtualInterface_ownerAccount :: (Text -> f Text)
-> AllocateTransitVirtualInterface
-> f AllocateTransitVirtualInterface
allocateTransitVirtualInterface_ownerAccount = (AllocateTransitVirtualInterface -> Text)
-> (AllocateTransitVirtualInterface
-> Text -> AllocateTransitVirtualInterface)
-> Lens
AllocateTransitVirtualInterface
AllocateTransitVirtualInterface
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateTransitVirtualInterface' {Text
ownerAccount :: Text
$sel:ownerAccount:AllocateTransitVirtualInterface' :: AllocateTransitVirtualInterface -> Text
ownerAccount} -> Text
ownerAccount) (\s :: AllocateTransitVirtualInterface
s@AllocateTransitVirtualInterface' {} Text
a -> AllocateTransitVirtualInterface
s {$sel:ownerAccount:AllocateTransitVirtualInterface' :: Text
ownerAccount = Text
a} :: AllocateTransitVirtualInterface)
allocateTransitVirtualInterface_newTransitVirtualInterfaceAllocation :: Lens.Lens' AllocateTransitVirtualInterface NewTransitVirtualInterfaceAllocation
allocateTransitVirtualInterface_newTransitVirtualInterfaceAllocation :: (NewTransitVirtualInterfaceAllocation
-> f NewTransitVirtualInterfaceAllocation)
-> AllocateTransitVirtualInterface
-> f AllocateTransitVirtualInterface
allocateTransitVirtualInterface_newTransitVirtualInterfaceAllocation = (AllocateTransitVirtualInterface
-> NewTransitVirtualInterfaceAllocation)
-> (AllocateTransitVirtualInterface
-> NewTransitVirtualInterfaceAllocation
-> AllocateTransitVirtualInterface)
-> Lens
AllocateTransitVirtualInterface
AllocateTransitVirtualInterface
NewTransitVirtualInterfaceAllocation
NewTransitVirtualInterfaceAllocation
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateTransitVirtualInterface' {NewTransitVirtualInterfaceAllocation
newTransitVirtualInterfaceAllocation' :: NewTransitVirtualInterfaceAllocation
$sel:newTransitVirtualInterfaceAllocation':AllocateTransitVirtualInterface' :: AllocateTransitVirtualInterface
-> NewTransitVirtualInterfaceAllocation
newTransitVirtualInterfaceAllocation'} -> NewTransitVirtualInterfaceAllocation
newTransitVirtualInterfaceAllocation') (\s :: AllocateTransitVirtualInterface
s@AllocateTransitVirtualInterface' {} NewTransitVirtualInterfaceAllocation
a -> AllocateTransitVirtualInterface
s {$sel:newTransitVirtualInterfaceAllocation':AllocateTransitVirtualInterface' :: NewTransitVirtualInterfaceAllocation
newTransitVirtualInterfaceAllocation' = NewTransitVirtualInterfaceAllocation
a} :: AllocateTransitVirtualInterface)
instance
Core.AWSRequest
AllocateTransitVirtualInterface
where
type
AWSResponse AllocateTransitVirtualInterface =
AllocateTransitVirtualInterfaceResponse
request :: AllocateTransitVirtualInterface
-> Request AllocateTransitVirtualInterface
request = Service
-> AllocateTransitVirtualInterface
-> Request AllocateTransitVirtualInterface
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy AllocateTransitVirtualInterface
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse AllocateTransitVirtualInterface)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse AllocateTransitVirtualInterface))
-> Logger
-> Service
-> Proxy AllocateTransitVirtualInterface
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse AllocateTransitVirtualInterface)))
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 VirtualInterface
-> Int -> AllocateTransitVirtualInterfaceResponse
AllocateTransitVirtualInterfaceResponse'
(Maybe VirtualInterface
-> Int -> AllocateTransitVirtualInterfaceResponse)
-> Either String (Maybe VirtualInterface)
-> Either String (Int -> AllocateTransitVirtualInterfaceResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe VirtualInterface)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"virtualInterface")
Either String (Int -> AllocateTransitVirtualInterfaceResponse)
-> Either String Int
-> Either String AllocateTransitVirtualInterfaceResponse
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
AllocateTransitVirtualInterface
instance
Prelude.NFData
AllocateTransitVirtualInterface
instance
Core.ToHeaders
AllocateTransitVirtualInterface
where
toHeaders :: AllocateTransitVirtualInterface -> ResponseHeaders
toHeaders =
ResponseHeaders
-> AllocateTransitVirtualInterface -> 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.AllocateTransitVirtualInterface" ::
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 AllocateTransitVirtualInterface where
toJSON :: AllocateTransitVirtualInterface -> Value
toJSON AllocateTransitVirtualInterface' {Text
NewTransitVirtualInterfaceAllocation
newTransitVirtualInterfaceAllocation' :: NewTransitVirtualInterfaceAllocation
ownerAccount :: Text
connectionId :: Text
$sel:newTransitVirtualInterfaceAllocation':AllocateTransitVirtualInterface' :: AllocateTransitVirtualInterface
-> NewTransitVirtualInterfaceAllocation
$sel:ownerAccount:AllocateTransitVirtualInterface' :: AllocateTransitVirtualInterface -> Text
$sel:connectionId:AllocateTransitVirtualInterface' :: AllocateTransitVirtualInterface -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"connectionId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
connectionId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ownerAccount" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
ownerAccount),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"newTransitVirtualInterfaceAllocation"
Text -> NewTransitVirtualInterfaceAllocation -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NewTransitVirtualInterfaceAllocation
newTransitVirtualInterfaceAllocation'
)
]
)
instance Core.ToPath AllocateTransitVirtualInterface where
toPath :: AllocateTransitVirtualInterface -> ByteString
toPath = ByteString -> AllocateTransitVirtualInterface -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery AllocateTransitVirtualInterface where
toQuery :: AllocateTransitVirtualInterface -> QueryString
toQuery = QueryString -> AllocateTransitVirtualInterface -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data AllocateTransitVirtualInterfaceResponse = AllocateTransitVirtualInterfaceResponse'
{ AllocateTransitVirtualInterfaceResponse -> Maybe VirtualInterface
virtualInterface :: Prelude.Maybe VirtualInterface,
AllocateTransitVirtualInterfaceResponse -> Int
httpStatus :: Prelude.Int
}
deriving (AllocateTransitVirtualInterfaceResponse
-> AllocateTransitVirtualInterfaceResponse -> Bool
(AllocateTransitVirtualInterfaceResponse
-> AllocateTransitVirtualInterfaceResponse -> Bool)
-> (AllocateTransitVirtualInterfaceResponse
-> AllocateTransitVirtualInterfaceResponse -> Bool)
-> Eq AllocateTransitVirtualInterfaceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AllocateTransitVirtualInterfaceResponse
-> AllocateTransitVirtualInterfaceResponse -> Bool
$c/= :: AllocateTransitVirtualInterfaceResponse
-> AllocateTransitVirtualInterfaceResponse -> Bool
== :: AllocateTransitVirtualInterfaceResponse
-> AllocateTransitVirtualInterfaceResponse -> Bool
$c== :: AllocateTransitVirtualInterfaceResponse
-> AllocateTransitVirtualInterfaceResponse -> Bool
Prelude.Eq, ReadPrec [AllocateTransitVirtualInterfaceResponse]
ReadPrec AllocateTransitVirtualInterfaceResponse
Int -> ReadS AllocateTransitVirtualInterfaceResponse
ReadS [AllocateTransitVirtualInterfaceResponse]
(Int -> ReadS AllocateTransitVirtualInterfaceResponse)
-> ReadS [AllocateTransitVirtualInterfaceResponse]
-> ReadPrec AllocateTransitVirtualInterfaceResponse
-> ReadPrec [AllocateTransitVirtualInterfaceResponse]
-> Read AllocateTransitVirtualInterfaceResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AllocateTransitVirtualInterfaceResponse]
$creadListPrec :: ReadPrec [AllocateTransitVirtualInterfaceResponse]
readPrec :: ReadPrec AllocateTransitVirtualInterfaceResponse
$creadPrec :: ReadPrec AllocateTransitVirtualInterfaceResponse
readList :: ReadS [AllocateTransitVirtualInterfaceResponse]
$creadList :: ReadS [AllocateTransitVirtualInterfaceResponse]
readsPrec :: Int -> ReadS AllocateTransitVirtualInterfaceResponse
$creadsPrec :: Int -> ReadS AllocateTransitVirtualInterfaceResponse
Prelude.Read, Int -> AllocateTransitVirtualInterfaceResponse -> ShowS
[AllocateTransitVirtualInterfaceResponse] -> ShowS
AllocateTransitVirtualInterfaceResponse -> String
(Int -> AllocateTransitVirtualInterfaceResponse -> ShowS)
-> (AllocateTransitVirtualInterfaceResponse -> String)
-> ([AllocateTransitVirtualInterfaceResponse] -> ShowS)
-> Show AllocateTransitVirtualInterfaceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AllocateTransitVirtualInterfaceResponse] -> ShowS
$cshowList :: [AllocateTransitVirtualInterfaceResponse] -> ShowS
show :: AllocateTransitVirtualInterfaceResponse -> String
$cshow :: AllocateTransitVirtualInterfaceResponse -> String
showsPrec :: Int -> AllocateTransitVirtualInterfaceResponse -> ShowS
$cshowsPrec :: Int -> AllocateTransitVirtualInterfaceResponse -> ShowS
Prelude.Show, (forall x.
AllocateTransitVirtualInterfaceResponse
-> Rep AllocateTransitVirtualInterfaceResponse x)
-> (forall x.
Rep AllocateTransitVirtualInterfaceResponse x
-> AllocateTransitVirtualInterfaceResponse)
-> Generic AllocateTransitVirtualInterfaceResponse
forall x.
Rep AllocateTransitVirtualInterfaceResponse x
-> AllocateTransitVirtualInterfaceResponse
forall x.
AllocateTransitVirtualInterfaceResponse
-> Rep AllocateTransitVirtualInterfaceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AllocateTransitVirtualInterfaceResponse x
-> AllocateTransitVirtualInterfaceResponse
$cfrom :: forall x.
AllocateTransitVirtualInterfaceResponse
-> Rep AllocateTransitVirtualInterfaceResponse x
Prelude.Generic)
newAllocateTransitVirtualInterfaceResponse ::
Prelude.Int ->
AllocateTransitVirtualInterfaceResponse
newAllocateTransitVirtualInterfaceResponse :: Int -> AllocateTransitVirtualInterfaceResponse
newAllocateTransitVirtualInterfaceResponse
Int
pHttpStatus_ =
AllocateTransitVirtualInterfaceResponse' :: Maybe VirtualInterface
-> Int -> AllocateTransitVirtualInterfaceResponse
AllocateTransitVirtualInterfaceResponse'
{ $sel:virtualInterface:AllocateTransitVirtualInterfaceResponse' :: Maybe VirtualInterface
virtualInterface =
Maybe VirtualInterface
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:AllocateTransitVirtualInterfaceResponse' :: Int
httpStatus = Int
pHttpStatus_
}
allocateTransitVirtualInterfaceResponse_virtualInterface :: Lens.Lens' AllocateTransitVirtualInterfaceResponse (Prelude.Maybe VirtualInterface)
allocateTransitVirtualInterfaceResponse_virtualInterface :: (Maybe VirtualInterface -> f (Maybe VirtualInterface))
-> AllocateTransitVirtualInterfaceResponse
-> f AllocateTransitVirtualInterfaceResponse
allocateTransitVirtualInterfaceResponse_virtualInterface = (AllocateTransitVirtualInterfaceResponse -> Maybe VirtualInterface)
-> (AllocateTransitVirtualInterfaceResponse
-> Maybe VirtualInterface
-> AllocateTransitVirtualInterfaceResponse)
-> Lens
AllocateTransitVirtualInterfaceResponse
AllocateTransitVirtualInterfaceResponse
(Maybe VirtualInterface)
(Maybe VirtualInterface)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateTransitVirtualInterfaceResponse' {Maybe VirtualInterface
virtualInterface :: Maybe VirtualInterface
$sel:virtualInterface:AllocateTransitVirtualInterfaceResponse' :: AllocateTransitVirtualInterfaceResponse -> Maybe VirtualInterface
virtualInterface} -> Maybe VirtualInterface
virtualInterface) (\s :: AllocateTransitVirtualInterfaceResponse
s@AllocateTransitVirtualInterfaceResponse' {} Maybe VirtualInterface
a -> AllocateTransitVirtualInterfaceResponse
s {$sel:virtualInterface:AllocateTransitVirtualInterfaceResponse' :: Maybe VirtualInterface
virtualInterface = Maybe VirtualInterface
a} :: AllocateTransitVirtualInterfaceResponse)
allocateTransitVirtualInterfaceResponse_httpStatus :: Lens.Lens' AllocateTransitVirtualInterfaceResponse Prelude.Int
allocateTransitVirtualInterfaceResponse_httpStatus :: (Int -> f Int)
-> AllocateTransitVirtualInterfaceResponse
-> f AllocateTransitVirtualInterfaceResponse
allocateTransitVirtualInterfaceResponse_httpStatus = (AllocateTransitVirtualInterfaceResponse -> Int)
-> (AllocateTransitVirtualInterfaceResponse
-> Int -> AllocateTransitVirtualInterfaceResponse)
-> Lens
AllocateTransitVirtualInterfaceResponse
AllocateTransitVirtualInterfaceResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateTransitVirtualInterfaceResponse' {Int
httpStatus :: Int
$sel:httpStatus:AllocateTransitVirtualInterfaceResponse' :: AllocateTransitVirtualInterfaceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: AllocateTransitVirtualInterfaceResponse
s@AllocateTransitVirtualInterfaceResponse' {} Int
a -> AllocateTransitVirtualInterfaceResponse
s {$sel:httpStatus:AllocateTransitVirtualInterfaceResponse' :: Int
httpStatus = Int
a} :: AllocateTransitVirtualInterfaceResponse)
instance
Prelude.NFData
AllocateTransitVirtualInterfaceResponse