{-# 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.DeviceFarm.UpdateVPCEConfiguration
-- 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)
--
-- Updates information about an Amazon Virtual Private Cloud (VPC) endpoint
-- configuration.
module Amazonka.DeviceFarm.UpdateVPCEConfiguration
  ( -- * Creating a Request
    UpdateVPCEConfiguration (..),
    newUpdateVPCEConfiguration,

    -- * Request Lenses
    updateVPCEConfiguration_vpceServiceName,
    updateVPCEConfiguration_vpceConfigurationName,
    updateVPCEConfiguration_serviceDnsName,
    updateVPCEConfiguration_vpceConfigurationDescription,
    updateVPCEConfiguration_arn,

    -- * Destructuring the Response
    UpdateVPCEConfigurationResponse (..),
    newUpdateVPCEConfigurationResponse,

    -- * Response Lenses
    updateVPCEConfigurationResponse_vpceConfiguration,
    updateVPCEConfigurationResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.DeviceFarm.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

-- | /See:/ 'newUpdateVPCEConfiguration' smart constructor.
data UpdateVPCEConfiguration = UpdateVPCEConfiguration'
  { -- | The name of the VPC endpoint service running in your AWS account that
    -- you want Device Farm to test.
    UpdateVPCEConfiguration -> Maybe Text
vpceServiceName :: Prelude.Maybe Prelude.Text,
    -- | The friendly name you give to your VPC endpoint configuration to manage
    -- your configurations more easily.
    UpdateVPCEConfiguration -> Maybe Text
vpceConfigurationName :: Prelude.Maybe Prelude.Text,
    -- | The DNS (domain) name used to connect to your private service in your
    -- VPC. The DNS name must not already be in use on the internet.
    UpdateVPCEConfiguration -> Maybe Text
serviceDnsName :: Prelude.Maybe Prelude.Text,
    -- | An optional description that provides details about your VPC endpoint
    -- configuration.
    UpdateVPCEConfiguration -> Maybe Text
vpceConfigurationDescription :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the VPC endpoint configuration you
    -- want to update.
    UpdateVPCEConfiguration -> Text
arn :: Prelude.Text
  }
  deriving (UpdateVPCEConfiguration -> UpdateVPCEConfiguration -> Bool
(UpdateVPCEConfiguration -> UpdateVPCEConfiguration -> Bool)
-> (UpdateVPCEConfiguration -> UpdateVPCEConfiguration -> Bool)
-> Eq UpdateVPCEConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateVPCEConfiguration -> UpdateVPCEConfiguration -> Bool
$c/= :: UpdateVPCEConfiguration -> UpdateVPCEConfiguration -> Bool
== :: UpdateVPCEConfiguration -> UpdateVPCEConfiguration -> Bool
$c== :: UpdateVPCEConfiguration -> UpdateVPCEConfiguration -> Bool
Prelude.Eq, ReadPrec [UpdateVPCEConfiguration]
ReadPrec UpdateVPCEConfiguration
Int -> ReadS UpdateVPCEConfiguration
ReadS [UpdateVPCEConfiguration]
(Int -> ReadS UpdateVPCEConfiguration)
-> ReadS [UpdateVPCEConfiguration]
-> ReadPrec UpdateVPCEConfiguration
-> ReadPrec [UpdateVPCEConfiguration]
-> Read UpdateVPCEConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateVPCEConfiguration]
$creadListPrec :: ReadPrec [UpdateVPCEConfiguration]
readPrec :: ReadPrec UpdateVPCEConfiguration
$creadPrec :: ReadPrec UpdateVPCEConfiguration
readList :: ReadS [UpdateVPCEConfiguration]
$creadList :: ReadS [UpdateVPCEConfiguration]
readsPrec :: Int -> ReadS UpdateVPCEConfiguration
$creadsPrec :: Int -> ReadS UpdateVPCEConfiguration
Prelude.Read, Int -> UpdateVPCEConfiguration -> ShowS
[UpdateVPCEConfiguration] -> ShowS
UpdateVPCEConfiguration -> String
(Int -> UpdateVPCEConfiguration -> ShowS)
-> (UpdateVPCEConfiguration -> String)
-> ([UpdateVPCEConfiguration] -> ShowS)
-> Show UpdateVPCEConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateVPCEConfiguration] -> ShowS
$cshowList :: [UpdateVPCEConfiguration] -> ShowS
show :: UpdateVPCEConfiguration -> String
$cshow :: UpdateVPCEConfiguration -> String
showsPrec :: Int -> UpdateVPCEConfiguration -> ShowS
$cshowsPrec :: Int -> UpdateVPCEConfiguration -> ShowS
Prelude.Show, (forall x.
 UpdateVPCEConfiguration -> Rep UpdateVPCEConfiguration x)
-> (forall x.
    Rep UpdateVPCEConfiguration x -> UpdateVPCEConfiguration)
-> Generic UpdateVPCEConfiguration
forall x. Rep UpdateVPCEConfiguration x -> UpdateVPCEConfiguration
forall x. UpdateVPCEConfiguration -> Rep UpdateVPCEConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateVPCEConfiguration x -> UpdateVPCEConfiguration
$cfrom :: forall x. UpdateVPCEConfiguration -> Rep UpdateVPCEConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'UpdateVPCEConfiguration' 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:
--
-- 'vpceServiceName', 'updateVPCEConfiguration_vpceServiceName' - The name of the VPC endpoint service running in your AWS account that
-- you want Device Farm to test.
--
-- 'vpceConfigurationName', 'updateVPCEConfiguration_vpceConfigurationName' - The friendly name you give to your VPC endpoint configuration to manage
-- your configurations more easily.
--
-- 'serviceDnsName', 'updateVPCEConfiguration_serviceDnsName' - The DNS (domain) name used to connect to your private service in your
-- VPC. The DNS name must not already be in use on the internet.
--
-- 'vpceConfigurationDescription', 'updateVPCEConfiguration_vpceConfigurationDescription' - An optional description that provides details about your VPC endpoint
-- configuration.
--
-- 'arn', 'updateVPCEConfiguration_arn' - The Amazon Resource Name (ARN) of the VPC endpoint configuration you
-- want to update.
newUpdateVPCEConfiguration ::
  -- | 'arn'
  Prelude.Text ->
  UpdateVPCEConfiguration
newUpdateVPCEConfiguration :: Text -> UpdateVPCEConfiguration
newUpdateVPCEConfiguration Text
pArn_ =
  UpdateVPCEConfiguration' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> UpdateVPCEConfiguration
UpdateVPCEConfiguration'
    { $sel:vpceServiceName:UpdateVPCEConfiguration' :: Maybe Text
vpceServiceName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:vpceConfigurationName:UpdateVPCEConfiguration' :: Maybe Text
vpceConfigurationName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:serviceDnsName:UpdateVPCEConfiguration' :: Maybe Text
serviceDnsName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:vpceConfigurationDescription:UpdateVPCEConfiguration' :: Maybe Text
vpceConfigurationDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:UpdateVPCEConfiguration' :: Text
arn = Text
pArn_
    }

-- | The name of the VPC endpoint service running in your AWS account that
-- you want Device Farm to test.
updateVPCEConfiguration_vpceServiceName :: Lens.Lens' UpdateVPCEConfiguration (Prelude.Maybe Prelude.Text)
updateVPCEConfiguration_vpceServiceName :: (Maybe Text -> f (Maybe Text))
-> UpdateVPCEConfiguration -> f UpdateVPCEConfiguration
updateVPCEConfiguration_vpceServiceName = (UpdateVPCEConfiguration -> Maybe Text)
-> (UpdateVPCEConfiguration
    -> Maybe Text -> UpdateVPCEConfiguration)
-> Lens
     UpdateVPCEConfiguration
     UpdateVPCEConfiguration
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVPCEConfiguration' {Maybe Text
vpceServiceName :: Maybe Text
$sel:vpceServiceName:UpdateVPCEConfiguration' :: UpdateVPCEConfiguration -> Maybe Text
vpceServiceName} -> Maybe Text
vpceServiceName) (\s :: UpdateVPCEConfiguration
s@UpdateVPCEConfiguration' {} Maybe Text
a -> UpdateVPCEConfiguration
s {$sel:vpceServiceName:UpdateVPCEConfiguration' :: Maybe Text
vpceServiceName = Maybe Text
a} :: UpdateVPCEConfiguration)

-- | The friendly name you give to your VPC endpoint configuration to manage
-- your configurations more easily.
updateVPCEConfiguration_vpceConfigurationName :: Lens.Lens' UpdateVPCEConfiguration (Prelude.Maybe Prelude.Text)
updateVPCEConfiguration_vpceConfigurationName :: (Maybe Text -> f (Maybe Text))
-> UpdateVPCEConfiguration -> f UpdateVPCEConfiguration
updateVPCEConfiguration_vpceConfigurationName = (UpdateVPCEConfiguration -> Maybe Text)
-> (UpdateVPCEConfiguration
    -> Maybe Text -> UpdateVPCEConfiguration)
-> Lens
     UpdateVPCEConfiguration
     UpdateVPCEConfiguration
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVPCEConfiguration' {Maybe Text
vpceConfigurationName :: Maybe Text
$sel:vpceConfigurationName:UpdateVPCEConfiguration' :: UpdateVPCEConfiguration -> Maybe Text
vpceConfigurationName} -> Maybe Text
vpceConfigurationName) (\s :: UpdateVPCEConfiguration
s@UpdateVPCEConfiguration' {} Maybe Text
a -> UpdateVPCEConfiguration
s {$sel:vpceConfigurationName:UpdateVPCEConfiguration' :: Maybe Text
vpceConfigurationName = Maybe Text
a} :: UpdateVPCEConfiguration)

-- | The DNS (domain) name used to connect to your private service in your
-- VPC. The DNS name must not already be in use on the internet.
updateVPCEConfiguration_serviceDnsName :: Lens.Lens' UpdateVPCEConfiguration (Prelude.Maybe Prelude.Text)
updateVPCEConfiguration_serviceDnsName :: (Maybe Text -> f (Maybe Text))
-> UpdateVPCEConfiguration -> f UpdateVPCEConfiguration
updateVPCEConfiguration_serviceDnsName = (UpdateVPCEConfiguration -> Maybe Text)
-> (UpdateVPCEConfiguration
    -> Maybe Text -> UpdateVPCEConfiguration)
-> Lens
     UpdateVPCEConfiguration
     UpdateVPCEConfiguration
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVPCEConfiguration' {Maybe Text
serviceDnsName :: Maybe Text
$sel:serviceDnsName:UpdateVPCEConfiguration' :: UpdateVPCEConfiguration -> Maybe Text
serviceDnsName} -> Maybe Text
serviceDnsName) (\s :: UpdateVPCEConfiguration
s@UpdateVPCEConfiguration' {} Maybe Text
a -> UpdateVPCEConfiguration
s {$sel:serviceDnsName:UpdateVPCEConfiguration' :: Maybe Text
serviceDnsName = Maybe Text
a} :: UpdateVPCEConfiguration)

-- | An optional description that provides details about your VPC endpoint
-- configuration.
updateVPCEConfiguration_vpceConfigurationDescription :: Lens.Lens' UpdateVPCEConfiguration (Prelude.Maybe Prelude.Text)
updateVPCEConfiguration_vpceConfigurationDescription :: (Maybe Text -> f (Maybe Text))
-> UpdateVPCEConfiguration -> f UpdateVPCEConfiguration
updateVPCEConfiguration_vpceConfigurationDescription = (UpdateVPCEConfiguration -> Maybe Text)
-> (UpdateVPCEConfiguration
    -> Maybe Text -> UpdateVPCEConfiguration)
-> Lens
     UpdateVPCEConfiguration
     UpdateVPCEConfiguration
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVPCEConfiguration' {Maybe Text
vpceConfigurationDescription :: Maybe Text
$sel:vpceConfigurationDescription:UpdateVPCEConfiguration' :: UpdateVPCEConfiguration -> Maybe Text
vpceConfigurationDescription} -> Maybe Text
vpceConfigurationDescription) (\s :: UpdateVPCEConfiguration
s@UpdateVPCEConfiguration' {} Maybe Text
a -> UpdateVPCEConfiguration
s {$sel:vpceConfigurationDescription:UpdateVPCEConfiguration' :: Maybe Text
vpceConfigurationDescription = Maybe Text
a} :: UpdateVPCEConfiguration)

-- | The Amazon Resource Name (ARN) of the VPC endpoint configuration you
-- want to update.
updateVPCEConfiguration_arn :: Lens.Lens' UpdateVPCEConfiguration Prelude.Text
updateVPCEConfiguration_arn :: (Text -> f Text)
-> UpdateVPCEConfiguration -> f UpdateVPCEConfiguration
updateVPCEConfiguration_arn = (UpdateVPCEConfiguration -> Text)
-> (UpdateVPCEConfiguration -> Text -> UpdateVPCEConfiguration)
-> Lens UpdateVPCEConfiguration UpdateVPCEConfiguration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVPCEConfiguration' {Text
arn :: Text
$sel:arn:UpdateVPCEConfiguration' :: UpdateVPCEConfiguration -> Text
arn} -> Text
arn) (\s :: UpdateVPCEConfiguration
s@UpdateVPCEConfiguration' {} Text
a -> UpdateVPCEConfiguration
s {$sel:arn:UpdateVPCEConfiguration' :: Text
arn = Text
a} :: UpdateVPCEConfiguration)

instance Core.AWSRequest UpdateVPCEConfiguration where
  type
    AWSResponse UpdateVPCEConfiguration =
      UpdateVPCEConfigurationResponse
  request :: UpdateVPCEConfiguration -> Request UpdateVPCEConfiguration
request = Service
-> UpdateVPCEConfiguration -> Request UpdateVPCEConfiguration
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateVPCEConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateVPCEConfiguration)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdateVPCEConfiguration))
-> Logger
-> Service
-> Proxy UpdateVPCEConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateVPCEConfiguration)))
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 VPCEConfiguration -> Int -> UpdateVPCEConfigurationResponse
UpdateVPCEConfigurationResponse'
            (Maybe VPCEConfiguration -> Int -> UpdateVPCEConfigurationResponse)
-> Either String (Maybe VPCEConfiguration)
-> Either String (Int -> UpdateVPCEConfigurationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe VPCEConfiguration)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"vpceConfiguration")
            Either String (Int -> UpdateVPCEConfigurationResponse)
-> Either String Int
-> Either String UpdateVPCEConfigurationResponse
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 UpdateVPCEConfiguration

instance Prelude.NFData UpdateVPCEConfiguration

instance Core.ToHeaders UpdateVPCEConfiguration where
  toHeaders :: UpdateVPCEConfiguration -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdateVPCEConfiguration -> 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
"DeviceFarm_20150623.UpdateVPCEConfiguration" ::
                          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 UpdateVPCEConfiguration where
  toJSON :: UpdateVPCEConfiguration -> Value
toJSON UpdateVPCEConfiguration' {Maybe Text
Text
arn :: Text
vpceConfigurationDescription :: Maybe Text
serviceDnsName :: Maybe Text
vpceConfigurationName :: Maybe Text
vpceServiceName :: Maybe Text
$sel:arn:UpdateVPCEConfiguration' :: UpdateVPCEConfiguration -> Text
$sel:vpceConfigurationDescription:UpdateVPCEConfiguration' :: UpdateVPCEConfiguration -> Maybe Text
$sel:serviceDnsName:UpdateVPCEConfiguration' :: UpdateVPCEConfiguration -> Maybe Text
$sel:vpceConfigurationName:UpdateVPCEConfiguration' :: UpdateVPCEConfiguration -> Maybe Text
$sel:vpceServiceName:UpdateVPCEConfiguration' :: UpdateVPCEConfiguration -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"vpceServiceName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
vpceServiceName,
            (Text
"vpceConfigurationName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
vpceConfigurationName,
            (Text
"serviceDnsName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
serviceDnsName,
            (Text
"vpceConfigurationDescription" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
vpceConfigurationDescription,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"arn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
arn)
          ]
      )

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

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

-- | /See:/ 'newUpdateVPCEConfigurationResponse' smart constructor.
data UpdateVPCEConfigurationResponse = UpdateVPCEConfigurationResponse'
  { -- | An object that contains information about your VPC endpoint
    -- configuration.
    UpdateVPCEConfigurationResponse -> Maybe VPCEConfiguration
vpceConfiguration :: Prelude.Maybe VPCEConfiguration,
    -- | The response's http status code.
    UpdateVPCEConfigurationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdateVPCEConfigurationResponse
-> UpdateVPCEConfigurationResponse -> Bool
(UpdateVPCEConfigurationResponse
 -> UpdateVPCEConfigurationResponse -> Bool)
-> (UpdateVPCEConfigurationResponse
    -> UpdateVPCEConfigurationResponse -> Bool)
-> Eq UpdateVPCEConfigurationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateVPCEConfigurationResponse
-> UpdateVPCEConfigurationResponse -> Bool
$c/= :: UpdateVPCEConfigurationResponse
-> UpdateVPCEConfigurationResponse -> Bool
== :: UpdateVPCEConfigurationResponse
-> UpdateVPCEConfigurationResponse -> Bool
$c== :: UpdateVPCEConfigurationResponse
-> UpdateVPCEConfigurationResponse -> Bool
Prelude.Eq, ReadPrec [UpdateVPCEConfigurationResponse]
ReadPrec UpdateVPCEConfigurationResponse
Int -> ReadS UpdateVPCEConfigurationResponse
ReadS [UpdateVPCEConfigurationResponse]
(Int -> ReadS UpdateVPCEConfigurationResponse)
-> ReadS [UpdateVPCEConfigurationResponse]
-> ReadPrec UpdateVPCEConfigurationResponse
-> ReadPrec [UpdateVPCEConfigurationResponse]
-> Read UpdateVPCEConfigurationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateVPCEConfigurationResponse]
$creadListPrec :: ReadPrec [UpdateVPCEConfigurationResponse]
readPrec :: ReadPrec UpdateVPCEConfigurationResponse
$creadPrec :: ReadPrec UpdateVPCEConfigurationResponse
readList :: ReadS [UpdateVPCEConfigurationResponse]
$creadList :: ReadS [UpdateVPCEConfigurationResponse]
readsPrec :: Int -> ReadS UpdateVPCEConfigurationResponse
$creadsPrec :: Int -> ReadS UpdateVPCEConfigurationResponse
Prelude.Read, Int -> UpdateVPCEConfigurationResponse -> ShowS
[UpdateVPCEConfigurationResponse] -> ShowS
UpdateVPCEConfigurationResponse -> String
(Int -> UpdateVPCEConfigurationResponse -> ShowS)
-> (UpdateVPCEConfigurationResponse -> String)
-> ([UpdateVPCEConfigurationResponse] -> ShowS)
-> Show UpdateVPCEConfigurationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateVPCEConfigurationResponse] -> ShowS
$cshowList :: [UpdateVPCEConfigurationResponse] -> ShowS
show :: UpdateVPCEConfigurationResponse -> String
$cshow :: UpdateVPCEConfigurationResponse -> String
showsPrec :: Int -> UpdateVPCEConfigurationResponse -> ShowS
$cshowsPrec :: Int -> UpdateVPCEConfigurationResponse -> ShowS
Prelude.Show, (forall x.
 UpdateVPCEConfigurationResponse
 -> Rep UpdateVPCEConfigurationResponse x)
-> (forall x.
    Rep UpdateVPCEConfigurationResponse x
    -> UpdateVPCEConfigurationResponse)
-> Generic UpdateVPCEConfigurationResponse
forall x.
Rep UpdateVPCEConfigurationResponse x
-> UpdateVPCEConfigurationResponse
forall x.
UpdateVPCEConfigurationResponse
-> Rep UpdateVPCEConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateVPCEConfigurationResponse x
-> UpdateVPCEConfigurationResponse
$cfrom :: forall x.
UpdateVPCEConfigurationResponse
-> Rep UpdateVPCEConfigurationResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateVPCEConfigurationResponse' 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:
--
-- 'vpceConfiguration', 'updateVPCEConfigurationResponse_vpceConfiguration' - An object that contains information about your VPC endpoint
-- configuration.
--
-- 'httpStatus', 'updateVPCEConfigurationResponse_httpStatus' - The response's http status code.
newUpdateVPCEConfigurationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateVPCEConfigurationResponse
newUpdateVPCEConfigurationResponse :: Int -> UpdateVPCEConfigurationResponse
newUpdateVPCEConfigurationResponse Int
pHttpStatus_ =
  UpdateVPCEConfigurationResponse' :: Maybe VPCEConfiguration -> Int -> UpdateVPCEConfigurationResponse
UpdateVPCEConfigurationResponse'
    { $sel:vpceConfiguration:UpdateVPCEConfigurationResponse' :: Maybe VPCEConfiguration
vpceConfiguration =
        Maybe VPCEConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateVPCEConfigurationResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An object that contains information about your VPC endpoint
-- configuration.
updateVPCEConfigurationResponse_vpceConfiguration :: Lens.Lens' UpdateVPCEConfigurationResponse (Prelude.Maybe VPCEConfiguration)
updateVPCEConfigurationResponse_vpceConfiguration :: (Maybe VPCEConfiguration -> f (Maybe VPCEConfiguration))
-> UpdateVPCEConfigurationResponse
-> f UpdateVPCEConfigurationResponse
updateVPCEConfigurationResponse_vpceConfiguration = (UpdateVPCEConfigurationResponse -> Maybe VPCEConfiguration)
-> (UpdateVPCEConfigurationResponse
    -> Maybe VPCEConfiguration -> UpdateVPCEConfigurationResponse)
-> Lens
     UpdateVPCEConfigurationResponse
     UpdateVPCEConfigurationResponse
     (Maybe VPCEConfiguration)
     (Maybe VPCEConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVPCEConfigurationResponse' {Maybe VPCEConfiguration
vpceConfiguration :: Maybe VPCEConfiguration
$sel:vpceConfiguration:UpdateVPCEConfigurationResponse' :: UpdateVPCEConfigurationResponse -> Maybe VPCEConfiguration
vpceConfiguration} -> Maybe VPCEConfiguration
vpceConfiguration) (\s :: UpdateVPCEConfigurationResponse
s@UpdateVPCEConfigurationResponse' {} Maybe VPCEConfiguration
a -> UpdateVPCEConfigurationResponse
s {$sel:vpceConfiguration:UpdateVPCEConfigurationResponse' :: Maybe VPCEConfiguration
vpceConfiguration = Maybe VPCEConfiguration
a} :: UpdateVPCEConfigurationResponse)

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

instance
  Prelude.NFData
    UpdateVPCEConfigurationResponse