{-# 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.MediaConnect.RemoveFlowVpcInterface
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Removes a VPC Interface from an existing flow. This request can be made
-- only on a VPC interface that does not have a Source or Output associated
-- with it. If the VPC interface is referenced by a Source or Output, you
-- must first delete or update the Source or Output to no longer reference
-- the VPC interface.
module Amazonka.MediaConnect.RemoveFlowVpcInterface
  ( -- * Creating a Request
    RemoveFlowVpcInterface (..),
    newRemoveFlowVpcInterface,

    -- * Request Lenses
    removeFlowVpcInterface_flowArn,
    removeFlowVpcInterface_vpcInterfaceName,

    -- * Destructuring the Response
    RemoveFlowVpcInterfaceResponse (..),
    newRemoveFlowVpcInterfaceResponse,

    -- * Response Lenses
    removeFlowVpcInterfaceResponse_flowArn,
    removeFlowVpcInterfaceResponse_nonDeletedNetworkInterfaceIds,
    removeFlowVpcInterfaceResponse_vpcInterfaceName,
    removeFlowVpcInterfaceResponse_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

-- | /See:/ 'newRemoveFlowVpcInterface' smart constructor.
data RemoveFlowVpcInterface = RemoveFlowVpcInterface'
  { -- | The flow that you want to remove a VPC interface from.
    RemoveFlowVpcInterface -> Text
flowArn :: Prelude.Text,
    -- | The name of the VPC interface that you want to remove.
    RemoveFlowVpcInterface -> Text
vpcInterfaceName :: Prelude.Text
  }
  deriving (RemoveFlowVpcInterface -> RemoveFlowVpcInterface -> Bool
(RemoveFlowVpcInterface -> RemoveFlowVpcInterface -> Bool)
-> (RemoveFlowVpcInterface -> RemoveFlowVpcInterface -> Bool)
-> Eq RemoveFlowVpcInterface
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RemoveFlowVpcInterface -> RemoveFlowVpcInterface -> Bool
$c/= :: RemoveFlowVpcInterface -> RemoveFlowVpcInterface -> Bool
== :: RemoveFlowVpcInterface -> RemoveFlowVpcInterface -> Bool
$c== :: RemoveFlowVpcInterface -> RemoveFlowVpcInterface -> Bool
Prelude.Eq, ReadPrec [RemoveFlowVpcInterface]
ReadPrec RemoveFlowVpcInterface
Int -> ReadS RemoveFlowVpcInterface
ReadS [RemoveFlowVpcInterface]
(Int -> ReadS RemoveFlowVpcInterface)
-> ReadS [RemoveFlowVpcInterface]
-> ReadPrec RemoveFlowVpcInterface
-> ReadPrec [RemoveFlowVpcInterface]
-> Read RemoveFlowVpcInterface
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RemoveFlowVpcInterface]
$creadListPrec :: ReadPrec [RemoveFlowVpcInterface]
readPrec :: ReadPrec RemoveFlowVpcInterface
$creadPrec :: ReadPrec RemoveFlowVpcInterface
readList :: ReadS [RemoveFlowVpcInterface]
$creadList :: ReadS [RemoveFlowVpcInterface]
readsPrec :: Int -> ReadS RemoveFlowVpcInterface
$creadsPrec :: Int -> ReadS RemoveFlowVpcInterface
Prelude.Read, Int -> RemoveFlowVpcInterface -> ShowS
[RemoveFlowVpcInterface] -> ShowS
RemoveFlowVpcInterface -> String
(Int -> RemoveFlowVpcInterface -> ShowS)
-> (RemoveFlowVpcInterface -> String)
-> ([RemoveFlowVpcInterface] -> ShowS)
-> Show RemoveFlowVpcInterface
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RemoveFlowVpcInterface] -> ShowS
$cshowList :: [RemoveFlowVpcInterface] -> ShowS
show :: RemoveFlowVpcInterface -> String
$cshow :: RemoveFlowVpcInterface -> String
showsPrec :: Int -> RemoveFlowVpcInterface -> ShowS
$cshowsPrec :: Int -> RemoveFlowVpcInterface -> ShowS
Prelude.Show, (forall x. RemoveFlowVpcInterface -> Rep RemoveFlowVpcInterface x)
-> (forall x.
    Rep RemoveFlowVpcInterface x -> RemoveFlowVpcInterface)
-> Generic RemoveFlowVpcInterface
forall x. Rep RemoveFlowVpcInterface x -> RemoveFlowVpcInterface
forall x. RemoveFlowVpcInterface -> Rep RemoveFlowVpcInterface x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RemoveFlowVpcInterface x -> RemoveFlowVpcInterface
$cfrom :: forall x. RemoveFlowVpcInterface -> Rep RemoveFlowVpcInterface x
Prelude.Generic)

-- |
-- Create a value of 'RemoveFlowVpcInterface' 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:
--
-- 'flowArn', 'removeFlowVpcInterface_flowArn' - The flow that you want to remove a VPC interface from.
--
-- 'vpcInterfaceName', 'removeFlowVpcInterface_vpcInterfaceName' - The name of the VPC interface that you want to remove.
newRemoveFlowVpcInterface ::
  -- | 'flowArn'
  Prelude.Text ->
  -- | 'vpcInterfaceName'
  Prelude.Text ->
  RemoveFlowVpcInterface
newRemoveFlowVpcInterface :: Text -> Text -> RemoveFlowVpcInterface
newRemoveFlowVpcInterface
  Text
pFlowArn_
  Text
pVpcInterfaceName_ =
    RemoveFlowVpcInterface' :: Text -> Text -> RemoveFlowVpcInterface
RemoveFlowVpcInterface'
      { $sel:flowArn:RemoveFlowVpcInterface' :: Text
flowArn = Text
pFlowArn_,
        $sel:vpcInterfaceName:RemoveFlowVpcInterface' :: Text
vpcInterfaceName = Text
pVpcInterfaceName_
      }

-- | The flow that you want to remove a VPC interface from.
removeFlowVpcInterface_flowArn :: Lens.Lens' RemoveFlowVpcInterface Prelude.Text
removeFlowVpcInterface_flowArn :: (Text -> f Text)
-> RemoveFlowVpcInterface -> f RemoveFlowVpcInterface
removeFlowVpcInterface_flowArn = (RemoveFlowVpcInterface -> Text)
-> (RemoveFlowVpcInterface -> Text -> RemoveFlowVpcInterface)
-> Lens RemoveFlowVpcInterface RemoveFlowVpcInterface Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RemoveFlowVpcInterface' {Text
flowArn :: Text
$sel:flowArn:RemoveFlowVpcInterface' :: RemoveFlowVpcInterface -> Text
flowArn} -> Text
flowArn) (\s :: RemoveFlowVpcInterface
s@RemoveFlowVpcInterface' {} Text
a -> RemoveFlowVpcInterface
s {$sel:flowArn:RemoveFlowVpcInterface' :: Text
flowArn = Text
a} :: RemoveFlowVpcInterface)

-- | The name of the VPC interface that you want to remove.
removeFlowVpcInterface_vpcInterfaceName :: Lens.Lens' RemoveFlowVpcInterface Prelude.Text
removeFlowVpcInterface_vpcInterfaceName :: (Text -> f Text)
-> RemoveFlowVpcInterface -> f RemoveFlowVpcInterface
removeFlowVpcInterface_vpcInterfaceName = (RemoveFlowVpcInterface -> Text)
-> (RemoveFlowVpcInterface -> Text -> RemoveFlowVpcInterface)
-> Lens RemoveFlowVpcInterface RemoveFlowVpcInterface Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RemoveFlowVpcInterface' {Text
vpcInterfaceName :: Text
$sel:vpcInterfaceName:RemoveFlowVpcInterface' :: RemoveFlowVpcInterface -> Text
vpcInterfaceName} -> Text
vpcInterfaceName) (\s :: RemoveFlowVpcInterface
s@RemoveFlowVpcInterface' {} Text
a -> RemoveFlowVpcInterface
s {$sel:vpcInterfaceName:RemoveFlowVpcInterface' :: Text
vpcInterfaceName = Text
a} :: RemoveFlowVpcInterface)

instance Core.AWSRequest RemoveFlowVpcInterface where
  type
    AWSResponse RemoveFlowVpcInterface =
      RemoveFlowVpcInterfaceResponse
  request :: RemoveFlowVpcInterface -> Request RemoveFlowVpcInterface
request = Service -> RemoveFlowVpcInterface -> Request RemoveFlowVpcInterface
forall a. ToRequest a => Service -> a -> Request a
Request.delete Service
defaultService
  response :: Logger
-> Service
-> Proxy RemoveFlowVpcInterface
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse RemoveFlowVpcInterface)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse RemoveFlowVpcInterface))
-> Logger
-> Service
-> Proxy RemoveFlowVpcInterface
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse RemoveFlowVpcInterface)))
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 [Text]
-> Maybe Text
-> Int
-> RemoveFlowVpcInterfaceResponse
RemoveFlowVpcInterfaceResponse'
            (Maybe Text
 -> Maybe [Text]
 -> Maybe Text
 -> Int
 -> RemoveFlowVpcInterfaceResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [Text]
      -> Maybe Text -> Int -> RemoveFlowVpcInterfaceResponse)
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 [Text]
   -> Maybe Text -> Int -> RemoveFlowVpcInterfaceResponse)
-> Either String (Maybe [Text])
-> Either
     String (Maybe Text -> Int -> RemoveFlowVpcInterfaceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"nonDeletedNetworkInterfaceIds"
                            Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Maybe Text -> Int -> RemoveFlowVpcInterfaceResponse)
-> Either String (Maybe Text)
-> Either String (Int -> RemoveFlowVpcInterfaceResponse)
forall (f :: * -> *) a b. Applicative f => 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
"vpcInterfaceName")
            Either String (Int -> RemoveFlowVpcInterfaceResponse)
-> Either String Int
-> Either String RemoveFlowVpcInterfaceResponse
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 RemoveFlowVpcInterface

instance Prelude.NFData RemoveFlowVpcInterface

instance Core.ToHeaders RemoveFlowVpcInterface where
  toHeaders :: RemoveFlowVpcInterface -> ResponseHeaders
toHeaders =
    ResponseHeaders -> RemoveFlowVpcInterface -> 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.ToPath RemoveFlowVpcInterface where
  toPath :: RemoveFlowVpcInterface -> ByteString
toPath RemoveFlowVpcInterface' {Text
vpcInterfaceName :: Text
flowArn :: Text
$sel:vpcInterfaceName:RemoveFlowVpcInterface' :: RemoveFlowVpcInterface -> Text
$sel:flowArn:RemoveFlowVpcInterface' :: RemoveFlowVpcInterface -> 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/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
vpcInterfaceName
      ]

instance Core.ToQuery RemoveFlowVpcInterface where
  toQuery :: RemoveFlowVpcInterface -> QueryString
toQuery = QueryString -> RemoveFlowVpcInterface -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newRemoveFlowVpcInterfaceResponse' smart constructor.
data RemoveFlowVpcInterfaceResponse = RemoveFlowVpcInterfaceResponse'
  { -- | The ARN of the flow that is associated with the VPC interface you
    -- removed.
    RemoveFlowVpcInterfaceResponse -> Maybe Text
flowArn :: Prelude.Maybe Prelude.Text,
    -- | IDs of network interfaces associated with the removed VPC interface that
    -- Media Connect was unable to remove.
    RemoveFlowVpcInterfaceResponse -> Maybe [Text]
nonDeletedNetworkInterfaceIds :: Prelude.Maybe [Prelude.Text],
    -- | The name of the VPC interface that was removed.
    RemoveFlowVpcInterfaceResponse -> Maybe Text
vpcInterfaceName :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    RemoveFlowVpcInterfaceResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (RemoveFlowVpcInterfaceResponse
-> RemoveFlowVpcInterfaceResponse -> Bool
(RemoveFlowVpcInterfaceResponse
 -> RemoveFlowVpcInterfaceResponse -> Bool)
-> (RemoveFlowVpcInterfaceResponse
    -> RemoveFlowVpcInterfaceResponse -> Bool)
-> Eq RemoveFlowVpcInterfaceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RemoveFlowVpcInterfaceResponse
-> RemoveFlowVpcInterfaceResponse -> Bool
$c/= :: RemoveFlowVpcInterfaceResponse
-> RemoveFlowVpcInterfaceResponse -> Bool
== :: RemoveFlowVpcInterfaceResponse
-> RemoveFlowVpcInterfaceResponse -> Bool
$c== :: RemoveFlowVpcInterfaceResponse
-> RemoveFlowVpcInterfaceResponse -> Bool
Prelude.Eq, ReadPrec [RemoveFlowVpcInterfaceResponse]
ReadPrec RemoveFlowVpcInterfaceResponse
Int -> ReadS RemoveFlowVpcInterfaceResponse
ReadS [RemoveFlowVpcInterfaceResponse]
(Int -> ReadS RemoveFlowVpcInterfaceResponse)
-> ReadS [RemoveFlowVpcInterfaceResponse]
-> ReadPrec RemoveFlowVpcInterfaceResponse
-> ReadPrec [RemoveFlowVpcInterfaceResponse]
-> Read RemoveFlowVpcInterfaceResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RemoveFlowVpcInterfaceResponse]
$creadListPrec :: ReadPrec [RemoveFlowVpcInterfaceResponse]
readPrec :: ReadPrec RemoveFlowVpcInterfaceResponse
$creadPrec :: ReadPrec RemoveFlowVpcInterfaceResponse
readList :: ReadS [RemoveFlowVpcInterfaceResponse]
$creadList :: ReadS [RemoveFlowVpcInterfaceResponse]
readsPrec :: Int -> ReadS RemoveFlowVpcInterfaceResponse
$creadsPrec :: Int -> ReadS RemoveFlowVpcInterfaceResponse
Prelude.Read, Int -> RemoveFlowVpcInterfaceResponse -> ShowS
[RemoveFlowVpcInterfaceResponse] -> ShowS
RemoveFlowVpcInterfaceResponse -> String
(Int -> RemoveFlowVpcInterfaceResponse -> ShowS)
-> (RemoveFlowVpcInterfaceResponse -> String)
-> ([RemoveFlowVpcInterfaceResponse] -> ShowS)
-> Show RemoveFlowVpcInterfaceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RemoveFlowVpcInterfaceResponse] -> ShowS
$cshowList :: [RemoveFlowVpcInterfaceResponse] -> ShowS
show :: RemoveFlowVpcInterfaceResponse -> String
$cshow :: RemoveFlowVpcInterfaceResponse -> String
showsPrec :: Int -> RemoveFlowVpcInterfaceResponse -> ShowS
$cshowsPrec :: Int -> RemoveFlowVpcInterfaceResponse -> ShowS
Prelude.Show, (forall x.
 RemoveFlowVpcInterfaceResponse
 -> Rep RemoveFlowVpcInterfaceResponse x)
-> (forall x.
    Rep RemoveFlowVpcInterfaceResponse x
    -> RemoveFlowVpcInterfaceResponse)
-> Generic RemoveFlowVpcInterfaceResponse
forall x.
Rep RemoveFlowVpcInterfaceResponse x
-> RemoveFlowVpcInterfaceResponse
forall x.
RemoveFlowVpcInterfaceResponse
-> Rep RemoveFlowVpcInterfaceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RemoveFlowVpcInterfaceResponse x
-> RemoveFlowVpcInterfaceResponse
$cfrom :: forall x.
RemoveFlowVpcInterfaceResponse
-> Rep RemoveFlowVpcInterfaceResponse x
Prelude.Generic)

-- |
-- Create a value of 'RemoveFlowVpcInterfaceResponse' 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:
--
-- 'flowArn', 'removeFlowVpcInterfaceResponse_flowArn' - The ARN of the flow that is associated with the VPC interface you
-- removed.
--
-- 'nonDeletedNetworkInterfaceIds', 'removeFlowVpcInterfaceResponse_nonDeletedNetworkInterfaceIds' - IDs of network interfaces associated with the removed VPC interface that
-- Media Connect was unable to remove.
--
-- 'vpcInterfaceName', 'removeFlowVpcInterfaceResponse_vpcInterfaceName' - The name of the VPC interface that was removed.
--
-- 'httpStatus', 'removeFlowVpcInterfaceResponse_httpStatus' - The response's http status code.
newRemoveFlowVpcInterfaceResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  RemoveFlowVpcInterfaceResponse
newRemoveFlowVpcInterfaceResponse :: Int -> RemoveFlowVpcInterfaceResponse
newRemoveFlowVpcInterfaceResponse Int
pHttpStatus_ =
  RemoveFlowVpcInterfaceResponse' :: Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Int
-> RemoveFlowVpcInterfaceResponse
RemoveFlowVpcInterfaceResponse'
    { $sel:flowArn:RemoveFlowVpcInterfaceResponse' :: Maybe Text
flowArn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:nonDeletedNetworkInterfaceIds:RemoveFlowVpcInterfaceResponse' :: Maybe [Text]
nonDeletedNetworkInterfaceIds =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:vpcInterfaceName:RemoveFlowVpcInterfaceResponse' :: Maybe Text
vpcInterfaceName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:RemoveFlowVpcInterfaceResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The ARN of the flow that is associated with the VPC interface you
-- removed.
removeFlowVpcInterfaceResponse_flowArn :: Lens.Lens' RemoveFlowVpcInterfaceResponse (Prelude.Maybe Prelude.Text)
removeFlowVpcInterfaceResponse_flowArn :: (Maybe Text -> f (Maybe Text))
-> RemoveFlowVpcInterfaceResponse
-> f RemoveFlowVpcInterfaceResponse
removeFlowVpcInterfaceResponse_flowArn = (RemoveFlowVpcInterfaceResponse -> Maybe Text)
-> (RemoveFlowVpcInterfaceResponse
    -> Maybe Text -> RemoveFlowVpcInterfaceResponse)
-> Lens
     RemoveFlowVpcInterfaceResponse
     RemoveFlowVpcInterfaceResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RemoveFlowVpcInterfaceResponse' {Maybe Text
flowArn :: Maybe Text
$sel:flowArn:RemoveFlowVpcInterfaceResponse' :: RemoveFlowVpcInterfaceResponse -> Maybe Text
flowArn} -> Maybe Text
flowArn) (\s :: RemoveFlowVpcInterfaceResponse
s@RemoveFlowVpcInterfaceResponse' {} Maybe Text
a -> RemoveFlowVpcInterfaceResponse
s {$sel:flowArn:RemoveFlowVpcInterfaceResponse' :: Maybe Text
flowArn = Maybe Text
a} :: RemoveFlowVpcInterfaceResponse)

-- | IDs of network interfaces associated with the removed VPC interface that
-- Media Connect was unable to remove.
removeFlowVpcInterfaceResponse_nonDeletedNetworkInterfaceIds :: Lens.Lens' RemoveFlowVpcInterfaceResponse (Prelude.Maybe [Prelude.Text])
removeFlowVpcInterfaceResponse_nonDeletedNetworkInterfaceIds :: (Maybe [Text] -> f (Maybe [Text]))
-> RemoveFlowVpcInterfaceResponse
-> f RemoveFlowVpcInterfaceResponse
removeFlowVpcInterfaceResponse_nonDeletedNetworkInterfaceIds = (RemoveFlowVpcInterfaceResponse -> Maybe [Text])
-> (RemoveFlowVpcInterfaceResponse
    -> Maybe [Text] -> RemoveFlowVpcInterfaceResponse)
-> Lens
     RemoveFlowVpcInterfaceResponse
     RemoveFlowVpcInterfaceResponse
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RemoveFlowVpcInterfaceResponse' {Maybe [Text]
nonDeletedNetworkInterfaceIds :: Maybe [Text]
$sel:nonDeletedNetworkInterfaceIds:RemoveFlowVpcInterfaceResponse' :: RemoveFlowVpcInterfaceResponse -> Maybe [Text]
nonDeletedNetworkInterfaceIds} -> Maybe [Text]
nonDeletedNetworkInterfaceIds) (\s :: RemoveFlowVpcInterfaceResponse
s@RemoveFlowVpcInterfaceResponse' {} Maybe [Text]
a -> RemoveFlowVpcInterfaceResponse
s {$sel:nonDeletedNetworkInterfaceIds:RemoveFlowVpcInterfaceResponse' :: Maybe [Text]
nonDeletedNetworkInterfaceIds = Maybe [Text]
a} :: RemoveFlowVpcInterfaceResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> RemoveFlowVpcInterfaceResponse
 -> f RemoveFlowVpcInterfaceResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> RemoveFlowVpcInterfaceResponse
-> f RemoveFlowVpcInterfaceResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the VPC interface that was removed.
removeFlowVpcInterfaceResponse_vpcInterfaceName :: Lens.Lens' RemoveFlowVpcInterfaceResponse (Prelude.Maybe Prelude.Text)
removeFlowVpcInterfaceResponse_vpcInterfaceName :: (Maybe Text -> f (Maybe Text))
-> RemoveFlowVpcInterfaceResponse
-> f RemoveFlowVpcInterfaceResponse
removeFlowVpcInterfaceResponse_vpcInterfaceName = (RemoveFlowVpcInterfaceResponse -> Maybe Text)
-> (RemoveFlowVpcInterfaceResponse
    -> Maybe Text -> RemoveFlowVpcInterfaceResponse)
-> Lens
     RemoveFlowVpcInterfaceResponse
     RemoveFlowVpcInterfaceResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RemoveFlowVpcInterfaceResponse' {Maybe Text
vpcInterfaceName :: Maybe Text
$sel:vpcInterfaceName:RemoveFlowVpcInterfaceResponse' :: RemoveFlowVpcInterfaceResponse -> Maybe Text
vpcInterfaceName} -> Maybe Text
vpcInterfaceName) (\s :: RemoveFlowVpcInterfaceResponse
s@RemoveFlowVpcInterfaceResponse' {} Maybe Text
a -> RemoveFlowVpcInterfaceResponse
s {$sel:vpcInterfaceName:RemoveFlowVpcInterfaceResponse' :: Maybe Text
vpcInterfaceName = Maybe Text
a} :: RemoveFlowVpcInterfaceResponse)

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

instance
  Prelude.NFData
    RemoveFlowVpcInterfaceResponse