{-# 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.MediaConnect.AddFlowVpcInterfaces
(
AddFlowVpcInterfaces (..),
newAddFlowVpcInterfaces,
addFlowVpcInterfaces_flowArn,
addFlowVpcInterfaces_vpcInterfaces,
AddFlowVpcInterfacesResponse (..),
newAddFlowVpcInterfacesResponse,
addFlowVpcInterfacesResponse_flowArn,
addFlowVpcInterfacesResponse_vpcInterfaces,
addFlowVpcInterfacesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaConnect.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data AddFlowVpcInterfaces = AddFlowVpcInterfaces'
{
AddFlowVpcInterfaces -> Text
flowArn :: Prelude.Text,
AddFlowVpcInterfaces -> [VpcInterfaceRequest]
vpcInterfaces :: [VpcInterfaceRequest]
}
deriving (AddFlowVpcInterfaces -> AddFlowVpcInterfaces -> Bool
(AddFlowVpcInterfaces -> AddFlowVpcInterfaces -> Bool)
-> (AddFlowVpcInterfaces -> AddFlowVpcInterfaces -> Bool)
-> Eq AddFlowVpcInterfaces
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AddFlowVpcInterfaces -> AddFlowVpcInterfaces -> Bool
$c/= :: AddFlowVpcInterfaces -> AddFlowVpcInterfaces -> Bool
== :: AddFlowVpcInterfaces -> AddFlowVpcInterfaces -> Bool
$c== :: AddFlowVpcInterfaces -> AddFlowVpcInterfaces -> Bool
Prelude.Eq, ReadPrec [AddFlowVpcInterfaces]
ReadPrec AddFlowVpcInterfaces
Int -> ReadS AddFlowVpcInterfaces
ReadS [AddFlowVpcInterfaces]
(Int -> ReadS AddFlowVpcInterfaces)
-> ReadS [AddFlowVpcInterfaces]
-> ReadPrec AddFlowVpcInterfaces
-> ReadPrec [AddFlowVpcInterfaces]
-> Read AddFlowVpcInterfaces
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AddFlowVpcInterfaces]
$creadListPrec :: ReadPrec [AddFlowVpcInterfaces]
readPrec :: ReadPrec AddFlowVpcInterfaces
$creadPrec :: ReadPrec AddFlowVpcInterfaces
readList :: ReadS [AddFlowVpcInterfaces]
$creadList :: ReadS [AddFlowVpcInterfaces]
readsPrec :: Int -> ReadS AddFlowVpcInterfaces
$creadsPrec :: Int -> ReadS AddFlowVpcInterfaces
Prelude.Read, Int -> AddFlowVpcInterfaces -> ShowS
[AddFlowVpcInterfaces] -> ShowS
AddFlowVpcInterfaces -> String
(Int -> AddFlowVpcInterfaces -> ShowS)
-> (AddFlowVpcInterfaces -> String)
-> ([AddFlowVpcInterfaces] -> ShowS)
-> Show AddFlowVpcInterfaces
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AddFlowVpcInterfaces] -> ShowS
$cshowList :: [AddFlowVpcInterfaces] -> ShowS
show :: AddFlowVpcInterfaces -> String
$cshow :: AddFlowVpcInterfaces -> String
showsPrec :: Int -> AddFlowVpcInterfaces -> ShowS
$cshowsPrec :: Int -> AddFlowVpcInterfaces -> ShowS
Prelude.Show, (forall x. AddFlowVpcInterfaces -> Rep AddFlowVpcInterfaces x)
-> (forall x. Rep AddFlowVpcInterfaces x -> AddFlowVpcInterfaces)
-> Generic AddFlowVpcInterfaces
forall x. Rep AddFlowVpcInterfaces x -> AddFlowVpcInterfaces
forall x. AddFlowVpcInterfaces -> Rep AddFlowVpcInterfaces x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AddFlowVpcInterfaces x -> AddFlowVpcInterfaces
$cfrom :: forall x. AddFlowVpcInterfaces -> Rep AddFlowVpcInterfaces x
Prelude.Generic)
newAddFlowVpcInterfaces ::
Prelude.Text ->
AddFlowVpcInterfaces
newAddFlowVpcInterfaces :: Text -> AddFlowVpcInterfaces
newAddFlowVpcInterfaces Text
pFlowArn_ =
AddFlowVpcInterfaces' :: Text -> [VpcInterfaceRequest] -> AddFlowVpcInterfaces
AddFlowVpcInterfaces'
{ $sel:flowArn:AddFlowVpcInterfaces' :: Text
flowArn = Text
pFlowArn_,
$sel:vpcInterfaces:AddFlowVpcInterfaces' :: [VpcInterfaceRequest]
vpcInterfaces = [VpcInterfaceRequest]
forall a. Monoid a => a
Prelude.mempty
}
addFlowVpcInterfaces_flowArn :: Lens.Lens' AddFlowVpcInterfaces Prelude.Text
addFlowVpcInterfaces_flowArn :: (Text -> f Text) -> AddFlowVpcInterfaces -> f AddFlowVpcInterfaces
addFlowVpcInterfaces_flowArn = (AddFlowVpcInterfaces -> Text)
-> (AddFlowVpcInterfaces -> Text -> AddFlowVpcInterfaces)
-> Lens AddFlowVpcInterfaces AddFlowVpcInterfaces Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AddFlowVpcInterfaces' {Text
flowArn :: Text
$sel:flowArn:AddFlowVpcInterfaces' :: AddFlowVpcInterfaces -> Text
flowArn} -> Text
flowArn) (\s :: AddFlowVpcInterfaces
s@AddFlowVpcInterfaces' {} Text
a -> AddFlowVpcInterfaces
s {$sel:flowArn:AddFlowVpcInterfaces' :: Text
flowArn = Text
a} :: AddFlowVpcInterfaces)
addFlowVpcInterfaces_vpcInterfaces :: Lens.Lens' AddFlowVpcInterfaces [VpcInterfaceRequest]
addFlowVpcInterfaces_vpcInterfaces :: ([VpcInterfaceRequest] -> f [VpcInterfaceRequest])
-> AddFlowVpcInterfaces -> f AddFlowVpcInterfaces
addFlowVpcInterfaces_vpcInterfaces = (AddFlowVpcInterfaces -> [VpcInterfaceRequest])
-> (AddFlowVpcInterfaces
-> [VpcInterfaceRequest] -> AddFlowVpcInterfaces)
-> Lens
AddFlowVpcInterfaces
AddFlowVpcInterfaces
[VpcInterfaceRequest]
[VpcInterfaceRequest]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AddFlowVpcInterfaces' {[VpcInterfaceRequest]
vpcInterfaces :: [VpcInterfaceRequest]
$sel:vpcInterfaces:AddFlowVpcInterfaces' :: AddFlowVpcInterfaces -> [VpcInterfaceRequest]
vpcInterfaces} -> [VpcInterfaceRequest]
vpcInterfaces) (\s :: AddFlowVpcInterfaces
s@AddFlowVpcInterfaces' {} [VpcInterfaceRequest]
a -> AddFlowVpcInterfaces
s {$sel:vpcInterfaces:AddFlowVpcInterfaces' :: [VpcInterfaceRequest]
vpcInterfaces = [VpcInterfaceRequest]
a} :: AddFlowVpcInterfaces) (([VpcInterfaceRequest] -> f [VpcInterfaceRequest])
-> AddFlowVpcInterfaces -> f AddFlowVpcInterfaces)
-> (([VpcInterfaceRequest] -> f [VpcInterfaceRequest])
-> [VpcInterfaceRequest] -> f [VpcInterfaceRequest])
-> ([VpcInterfaceRequest] -> f [VpcInterfaceRequest])
-> AddFlowVpcInterfaces
-> f AddFlowVpcInterfaces
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([VpcInterfaceRequest] -> f [VpcInterfaceRequest])
-> [VpcInterfaceRequest] -> f [VpcInterfaceRequest]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest AddFlowVpcInterfaces where
type
AWSResponse AddFlowVpcInterfaces =
AddFlowVpcInterfacesResponse
request :: AddFlowVpcInterfaces -> Request AddFlowVpcInterfaces
request = Service -> AddFlowVpcInterfaces -> Request AddFlowVpcInterfaces
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy AddFlowVpcInterfaces
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse AddFlowVpcInterfaces)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse AddFlowVpcInterfaces))
-> Logger
-> Service
-> Proxy AddFlowVpcInterfaces
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse AddFlowVpcInterfaces)))
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 Text
-> Maybe [VpcInterface] -> Int -> AddFlowVpcInterfacesResponse
AddFlowVpcInterfacesResponse'
(Maybe Text
-> Maybe [VpcInterface] -> Int -> AddFlowVpcInterfacesResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [VpcInterface] -> Int -> AddFlowVpcInterfacesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"flowArn")
Either
String
(Maybe [VpcInterface] -> Int -> AddFlowVpcInterfacesResponse)
-> Either String (Maybe [VpcInterface])
-> Either String (Int -> AddFlowVpcInterfacesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [VpcInterface]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"vpcInterfaces" Either String (Maybe (Maybe [VpcInterface]))
-> Maybe [VpcInterface] -> Either String (Maybe [VpcInterface])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [VpcInterface]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> AddFlowVpcInterfacesResponse)
-> Either String Int -> Either String AddFlowVpcInterfacesResponse
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 AddFlowVpcInterfaces
instance Prelude.NFData AddFlowVpcInterfaces
instance Core.ToHeaders AddFlowVpcInterfaces where
toHeaders :: AddFlowVpcInterfaces -> ResponseHeaders
toHeaders =
ResponseHeaders -> AddFlowVpcInterfaces -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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 AddFlowVpcInterfaces where
toJSON :: AddFlowVpcInterfaces -> Value
toJSON AddFlowVpcInterfaces' {[VpcInterfaceRequest]
Text
vpcInterfaces :: [VpcInterfaceRequest]
flowArn :: Text
$sel:vpcInterfaces:AddFlowVpcInterfaces' :: AddFlowVpcInterfaces -> [VpcInterfaceRequest]
$sel:flowArn:AddFlowVpcInterfaces' :: AddFlowVpcInterfaces -> 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
"vpcInterfaces" Text -> [VpcInterfaceRequest] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [VpcInterfaceRequest]
vpcInterfaces)
]
)
instance Core.ToPath AddFlowVpcInterfaces where
toPath :: AddFlowVpcInterfaces -> ByteString
toPath AddFlowVpcInterfaces' {[VpcInterfaceRequest]
Text
vpcInterfaces :: [VpcInterfaceRequest]
flowArn :: Text
$sel:vpcInterfaces:AddFlowVpcInterfaces' :: AddFlowVpcInterfaces -> [VpcInterfaceRequest]
$sel:flowArn:AddFlowVpcInterfaces' :: AddFlowVpcInterfaces -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/v1/flows/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
flowArn, ByteString
"/vpcInterfaces"]
instance Core.ToQuery AddFlowVpcInterfaces where
toQuery :: AddFlowVpcInterfaces -> QueryString
toQuery = QueryString -> AddFlowVpcInterfaces -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data AddFlowVpcInterfacesResponse = AddFlowVpcInterfacesResponse'
{
AddFlowVpcInterfacesResponse -> Maybe Text
flowArn :: Prelude.Maybe Prelude.Text,
AddFlowVpcInterfacesResponse -> Maybe [VpcInterface]
vpcInterfaces :: Prelude.Maybe [VpcInterface],
AddFlowVpcInterfacesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (AddFlowVpcInterfacesResponse
-> AddFlowVpcInterfacesResponse -> Bool
(AddFlowVpcInterfacesResponse
-> AddFlowVpcInterfacesResponse -> Bool)
-> (AddFlowVpcInterfacesResponse
-> AddFlowVpcInterfacesResponse -> Bool)
-> Eq AddFlowVpcInterfacesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AddFlowVpcInterfacesResponse
-> AddFlowVpcInterfacesResponse -> Bool
$c/= :: AddFlowVpcInterfacesResponse
-> AddFlowVpcInterfacesResponse -> Bool
== :: AddFlowVpcInterfacesResponse
-> AddFlowVpcInterfacesResponse -> Bool
$c== :: AddFlowVpcInterfacesResponse
-> AddFlowVpcInterfacesResponse -> Bool
Prelude.Eq, ReadPrec [AddFlowVpcInterfacesResponse]
ReadPrec AddFlowVpcInterfacesResponse
Int -> ReadS AddFlowVpcInterfacesResponse
ReadS [AddFlowVpcInterfacesResponse]
(Int -> ReadS AddFlowVpcInterfacesResponse)
-> ReadS [AddFlowVpcInterfacesResponse]
-> ReadPrec AddFlowVpcInterfacesResponse
-> ReadPrec [AddFlowVpcInterfacesResponse]
-> Read AddFlowVpcInterfacesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AddFlowVpcInterfacesResponse]
$creadListPrec :: ReadPrec [AddFlowVpcInterfacesResponse]
readPrec :: ReadPrec AddFlowVpcInterfacesResponse
$creadPrec :: ReadPrec AddFlowVpcInterfacesResponse
readList :: ReadS [AddFlowVpcInterfacesResponse]
$creadList :: ReadS [AddFlowVpcInterfacesResponse]
readsPrec :: Int -> ReadS AddFlowVpcInterfacesResponse
$creadsPrec :: Int -> ReadS AddFlowVpcInterfacesResponse
Prelude.Read, Int -> AddFlowVpcInterfacesResponse -> ShowS
[AddFlowVpcInterfacesResponse] -> ShowS
AddFlowVpcInterfacesResponse -> String
(Int -> AddFlowVpcInterfacesResponse -> ShowS)
-> (AddFlowVpcInterfacesResponse -> String)
-> ([AddFlowVpcInterfacesResponse] -> ShowS)
-> Show AddFlowVpcInterfacesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AddFlowVpcInterfacesResponse] -> ShowS
$cshowList :: [AddFlowVpcInterfacesResponse] -> ShowS
show :: AddFlowVpcInterfacesResponse -> String
$cshow :: AddFlowVpcInterfacesResponse -> String
showsPrec :: Int -> AddFlowVpcInterfacesResponse -> ShowS
$cshowsPrec :: Int -> AddFlowVpcInterfacesResponse -> ShowS
Prelude.Show, (forall x.
AddFlowVpcInterfacesResponse -> Rep AddFlowVpcInterfacesResponse x)
-> (forall x.
Rep AddFlowVpcInterfacesResponse x -> AddFlowVpcInterfacesResponse)
-> Generic AddFlowVpcInterfacesResponse
forall x.
Rep AddFlowVpcInterfacesResponse x -> AddFlowVpcInterfacesResponse
forall x.
AddFlowVpcInterfacesResponse -> Rep AddFlowVpcInterfacesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AddFlowVpcInterfacesResponse x -> AddFlowVpcInterfacesResponse
$cfrom :: forall x.
AddFlowVpcInterfacesResponse -> Rep AddFlowVpcInterfacesResponse x
Prelude.Generic)
newAddFlowVpcInterfacesResponse ::
Prelude.Int ->
AddFlowVpcInterfacesResponse
newAddFlowVpcInterfacesResponse :: Int -> AddFlowVpcInterfacesResponse
newAddFlowVpcInterfacesResponse Int
pHttpStatus_ =
AddFlowVpcInterfacesResponse' :: Maybe Text
-> Maybe [VpcInterface] -> Int -> AddFlowVpcInterfacesResponse
AddFlowVpcInterfacesResponse'
{ $sel:flowArn:AddFlowVpcInterfacesResponse' :: Maybe Text
flowArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:vpcInterfaces:AddFlowVpcInterfacesResponse' :: Maybe [VpcInterface]
vpcInterfaces = Maybe [VpcInterface]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:AddFlowVpcInterfacesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
addFlowVpcInterfacesResponse_flowArn :: Lens.Lens' AddFlowVpcInterfacesResponse (Prelude.Maybe Prelude.Text)
addFlowVpcInterfacesResponse_flowArn :: (Maybe Text -> f (Maybe Text))
-> AddFlowVpcInterfacesResponse -> f AddFlowVpcInterfacesResponse
addFlowVpcInterfacesResponse_flowArn = (AddFlowVpcInterfacesResponse -> Maybe Text)
-> (AddFlowVpcInterfacesResponse
-> Maybe Text -> AddFlowVpcInterfacesResponse)
-> Lens
AddFlowVpcInterfacesResponse
AddFlowVpcInterfacesResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AddFlowVpcInterfacesResponse' {Maybe Text
flowArn :: Maybe Text
$sel:flowArn:AddFlowVpcInterfacesResponse' :: AddFlowVpcInterfacesResponse -> Maybe Text
flowArn} -> Maybe Text
flowArn) (\s :: AddFlowVpcInterfacesResponse
s@AddFlowVpcInterfacesResponse' {} Maybe Text
a -> AddFlowVpcInterfacesResponse
s {$sel:flowArn:AddFlowVpcInterfacesResponse' :: Maybe Text
flowArn = Maybe Text
a} :: AddFlowVpcInterfacesResponse)
addFlowVpcInterfacesResponse_vpcInterfaces :: Lens.Lens' AddFlowVpcInterfacesResponse (Prelude.Maybe [VpcInterface])
addFlowVpcInterfacesResponse_vpcInterfaces :: (Maybe [VpcInterface] -> f (Maybe [VpcInterface]))
-> AddFlowVpcInterfacesResponse -> f AddFlowVpcInterfacesResponse
addFlowVpcInterfacesResponse_vpcInterfaces = (AddFlowVpcInterfacesResponse -> Maybe [VpcInterface])
-> (AddFlowVpcInterfacesResponse
-> Maybe [VpcInterface] -> AddFlowVpcInterfacesResponse)
-> Lens
AddFlowVpcInterfacesResponse
AddFlowVpcInterfacesResponse
(Maybe [VpcInterface])
(Maybe [VpcInterface])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AddFlowVpcInterfacesResponse' {Maybe [VpcInterface]
vpcInterfaces :: Maybe [VpcInterface]
$sel:vpcInterfaces:AddFlowVpcInterfacesResponse' :: AddFlowVpcInterfacesResponse -> Maybe [VpcInterface]
vpcInterfaces} -> Maybe [VpcInterface]
vpcInterfaces) (\s :: AddFlowVpcInterfacesResponse
s@AddFlowVpcInterfacesResponse' {} Maybe [VpcInterface]
a -> AddFlowVpcInterfacesResponse
s {$sel:vpcInterfaces:AddFlowVpcInterfacesResponse' :: Maybe [VpcInterface]
vpcInterfaces = Maybe [VpcInterface]
a} :: AddFlowVpcInterfacesResponse) ((Maybe [VpcInterface] -> f (Maybe [VpcInterface]))
-> AddFlowVpcInterfacesResponse -> f AddFlowVpcInterfacesResponse)
-> ((Maybe [VpcInterface] -> f (Maybe [VpcInterface]))
-> Maybe [VpcInterface] -> f (Maybe [VpcInterface]))
-> (Maybe [VpcInterface] -> f (Maybe [VpcInterface]))
-> AddFlowVpcInterfacesResponse
-> f AddFlowVpcInterfacesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [VpcInterface] [VpcInterface] [VpcInterface] [VpcInterface]
-> Iso
(Maybe [VpcInterface])
(Maybe [VpcInterface])
(Maybe [VpcInterface])
(Maybe [VpcInterface])
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 [VpcInterface] [VpcInterface] [VpcInterface] [VpcInterface]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
addFlowVpcInterfacesResponse_httpStatus :: Lens.Lens' AddFlowVpcInterfacesResponse Prelude.Int
addFlowVpcInterfacesResponse_httpStatus :: (Int -> f Int)
-> AddFlowVpcInterfacesResponse -> f AddFlowVpcInterfacesResponse
addFlowVpcInterfacesResponse_httpStatus = (AddFlowVpcInterfacesResponse -> Int)
-> (AddFlowVpcInterfacesResponse
-> Int -> AddFlowVpcInterfacesResponse)
-> Lens
AddFlowVpcInterfacesResponse AddFlowVpcInterfacesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AddFlowVpcInterfacesResponse' {Int
httpStatus :: Int
$sel:httpStatus:AddFlowVpcInterfacesResponse' :: AddFlowVpcInterfacesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: AddFlowVpcInterfacesResponse
s@AddFlowVpcInterfacesResponse' {} Int
a -> AddFlowVpcInterfacesResponse
s {$sel:httpStatus:AddFlowVpcInterfacesResponse' :: Int
httpStatus = Int
a} :: AddFlowVpcInterfacesResponse)
instance Prelude.NFData AddFlowVpcInterfacesResponse