{-# 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.CreateVPCEConfiguration
-- 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)
--
-- Creates a configuration record in Device Farm for your Amazon Virtual
-- Private Cloud (VPC) endpoint.
module Amazonka.DeviceFarm.CreateVPCEConfiguration
  ( -- * Creating a Request
    CreateVPCEConfiguration (..),
    newCreateVPCEConfiguration,

    -- * Request Lenses
    createVPCEConfiguration_vpceConfigurationDescription,
    createVPCEConfiguration_vpceConfigurationName,
    createVPCEConfiguration_vpceServiceName,
    createVPCEConfiguration_serviceDnsName,

    -- * Destructuring the Response
    CreateVPCEConfigurationResponse (..),
    newCreateVPCEConfigurationResponse,

    -- * Response Lenses
    createVPCEConfigurationResponse_vpceConfiguration,
    createVPCEConfigurationResponse_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:/ 'newCreateVPCEConfiguration' smart constructor.
data CreateVPCEConfiguration = CreateVPCEConfiguration'
  { -- | An optional description that provides details about your VPC endpoint
    -- configuration.
    CreateVPCEConfiguration -> Maybe Text
vpceConfigurationDescription :: Prelude.Maybe Prelude.Text,
    -- | The friendly name you give to your VPC endpoint configuration, to manage
    -- your configurations more easily.
    CreateVPCEConfiguration -> Text
vpceConfigurationName :: Prelude.Text,
    -- | The name of the VPC endpoint service running in your AWS account that
    -- you want Device Farm to test.
    CreateVPCEConfiguration -> Text
vpceServiceName :: Prelude.Text,
    -- | The DNS name of the service running in your VPC that you want Device
    -- Farm to test.
    CreateVPCEConfiguration -> Text
serviceDnsName :: Prelude.Text
  }
  deriving (CreateVPCEConfiguration -> CreateVPCEConfiguration -> Bool
(CreateVPCEConfiguration -> CreateVPCEConfiguration -> Bool)
-> (CreateVPCEConfiguration -> CreateVPCEConfiguration -> Bool)
-> Eq CreateVPCEConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateVPCEConfiguration -> CreateVPCEConfiguration -> Bool
$c/= :: CreateVPCEConfiguration -> CreateVPCEConfiguration -> Bool
== :: CreateVPCEConfiguration -> CreateVPCEConfiguration -> Bool
$c== :: CreateVPCEConfiguration -> CreateVPCEConfiguration -> Bool
Prelude.Eq, ReadPrec [CreateVPCEConfiguration]
ReadPrec CreateVPCEConfiguration
Int -> ReadS CreateVPCEConfiguration
ReadS [CreateVPCEConfiguration]
(Int -> ReadS CreateVPCEConfiguration)
-> ReadS [CreateVPCEConfiguration]
-> ReadPrec CreateVPCEConfiguration
-> ReadPrec [CreateVPCEConfiguration]
-> Read CreateVPCEConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateVPCEConfiguration]
$creadListPrec :: ReadPrec [CreateVPCEConfiguration]
readPrec :: ReadPrec CreateVPCEConfiguration
$creadPrec :: ReadPrec CreateVPCEConfiguration
readList :: ReadS [CreateVPCEConfiguration]
$creadList :: ReadS [CreateVPCEConfiguration]
readsPrec :: Int -> ReadS CreateVPCEConfiguration
$creadsPrec :: Int -> ReadS CreateVPCEConfiguration
Prelude.Read, Int -> CreateVPCEConfiguration -> ShowS
[CreateVPCEConfiguration] -> ShowS
CreateVPCEConfiguration -> String
(Int -> CreateVPCEConfiguration -> ShowS)
-> (CreateVPCEConfiguration -> String)
-> ([CreateVPCEConfiguration] -> ShowS)
-> Show CreateVPCEConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateVPCEConfiguration] -> ShowS
$cshowList :: [CreateVPCEConfiguration] -> ShowS
show :: CreateVPCEConfiguration -> String
$cshow :: CreateVPCEConfiguration -> String
showsPrec :: Int -> CreateVPCEConfiguration -> ShowS
$cshowsPrec :: Int -> CreateVPCEConfiguration -> ShowS
Prelude.Show, (forall x.
 CreateVPCEConfiguration -> Rep CreateVPCEConfiguration x)
-> (forall x.
    Rep CreateVPCEConfiguration x -> CreateVPCEConfiguration)
-> Generic CreateVPCEConfiguration
forall x. Rep CreateVPCEConfiguration x -> CreateVPCEConfiguration
forall x. CreateVPCEConfiguration -> Rep CreateVPCEConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateVPCEConfiguration x -> CreateVPCEConfiguration
$cfrom :: forall x. CreateVPCEConfiguration -> Rep CreateVPCEConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'CreateVPCEConfiguration' 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:
--
-- 'vpceConfigurationDescription', 'createVPCEConfiguration_vpceConfigurationDescription' - An optional description that provides details about your VPC endpoint
-- configuration.
--
-- 'vpceConfigurationName', 'createVPCEConfiguration_vpceConfigurationName' - The friendly name you give to your VPC endpoint configuration, to manage
-- your configurations more easily.
--
-- 'vpceServiceName', 'createVPCEConfiguration_vpceServiceName' - The name of the VPC endpoint service running in your AWS account that
-- you want Device Farm to test.
--
-- 'serviceDnsName', 'createVPCEConfiguration_serviceDnsName' - The DNS name of the service running in your VPC that you want Device
-- Farm to test.
newCreateVPCEConfiguration ::
  -- | 'vpceConfigurationName'
  Prelude.Text ->
  -- | 'vpceServiceName'
  Prelude.Text ->
  -- | 'serviceDnsName'
  Prelude.Text ->
  CreateVPCEConfiguration
newCreateVPCEConfiguration :: Text -> Text -> Text -> CreateVPCEConfiguration
newCreateVPCEConfiguration
  Text
pVpceConfigurationName_
  Text
pVpceServiceName_
  Text
pServiceDnsName_ =
    CreateVPCEConfiguration' :: Maybe Text -> Text -> Text -> Text -> CreateVPCEConfiguration
CreateVPCEConfiguration'
      { $sel:vpceConfigurationDescription:CreateVPCEConfiguration' :: Maybe Text
vpceConfigurationDescription =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:vpceConfigurationName:CreateVPCEConfiguration' :: Text
vpceConfigurationName = Text
pVpceConfigurationName_,
        $sel:vpceServiceName:CreateVPCEConfiguration' :: Text
vpceServiceName = Text
pVpceServiceName_,
        $sel:serviceDnsName:CreateVPCEConfiguration' :: Text
serviceDnsName = Text
pServiceDnsName_
      }

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

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

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

-- | The DNS name of the service running in your VPC that you want Device
-- Farm to test.
createVPCEConfiguration_serviceDnsName :: Lens.Lens' CreateVPCEConfiguration Prelude.Text
createVPCEConfiguration_serviceDnsName :: (Text -> f Text)
-> CreateVPCEConfiguration -> f CreateVPCEConfiguration
createVPCEConfiguration_serviceDnsName = (CreateVPCEConfiguration -> Text)
-> (CreateVPCEConfiguration -> Text -> CreateVPCEConfiguration)
-> Lens CreateVPCEConfiguration CreateVPCEConfiguration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateVPCEConfiguration' {Text
serviceDnsName :: Text
$sel:serviceDnsName:CreateVPCEConfiguration' :: CreateVPCEConfiguration -> Text
serviceDnsName} -> Text
serviceDnsName) (\s :: CreateVPCEConfiguration
s@CreateVPCEConfiguration' {} Text
a -> CreateVPCEConfiguration
s {$sel:serviceDnsName:CreateVPCEConfiguration' :: Text
serviceDnsName = Text
a} :: CreateVPCEConfiguration)

instance Core.AWSRequest CreateVPCEConfiguration where
  type
    AWSResponse CreateVPCEConfiguration =
      CreateVPCEConfigurationResponse
  request :: CreateVPCEConfiguration -> Request CreateVPCEConfiguration
request = Service
-> CreateVPCEConfiguration -> Request CreateVPCEConfiguration
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CreateVPCEConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateVPCEConfiguration)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse CreateVPCEConfiguration))
-> Logger
-> Service
-> Proxy CreateVPCEConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateVPCEConfiguration)))
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 -> CreateVPCEConfigurationResponse
CreateVPCEConfigurationResponse'
            (Maybe VPCEConfiguration -> Int -> CreateVPCEConfigurationResponse)
-> Either String (Maybe VPCEConfiguration)
-> Either String (Int -> CreateVPCEConfigurationResponse)
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 -> CreateVPCEConfigurationResponse)
-> Either String Int
-> Either String CreateVPCEConfigurationResponse
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 CreateVPCEConfiguration

instance Prelude.NFData CreateVPCEConfiguration

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

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

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

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

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

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

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

instance
  Prelude.NFData
    CreateVPCEConfigurationResponse