{-# 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.PinpointSMSVoice.CreateConfigurationSetEventDestination
-- 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)
--
-- Create a new event destination in a configuration set.
module Amazonka.PinpointSMSVoice.CreateConfigurationSetEventDestination
  ( -- * Creating a Request
    CreateConfigurationSetEventDestination (..),
    newCreateConfigurationSetEventDestination,

    -- * Request Lenses
    createConfigurationSetEventDestination_eventDestination,
    createConfigurationSetEventDestination_eventDestinationName,
    createConfigurationSetEventDestination_configurationSetName,

    -- * Destructuring the Response
    CreateConfigurationSetEventDestinationResponse (..),
    newCreateConfigurationSetEventDestinationResponse,

    -- * Response Lenses
    createConfigurationSetEventDestinationResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.PinpointSMSVoice.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | Create a new event destination in a configuration set.
--
-- /See:/ 'newCreateConfigurationSetEventDestination' smart constructor.
data CreateConfigurationSetEventDestination = CreateConfigurationSetEventDestination'
  { CreateConfigurationSetEventDestination
-> Maybe EventDestinationDefinition
eventDestination :: Prelude.Maybe EventDestinationDefinition,
    -- | A name that identifies the event destination.
    CreateConfigurationSetEventDestination -> Maybe Text
eventDestinationName :: Prelude.Maybe Prelude.Text,
    -- | ConfigurationSetName
    CreateConfigurationSetEventDestination -> Text
configurationSetName :: Prelude.Text
  }
  deriving (CreateConfigurationSetEventDestination
-> CreateConfigurationSetEventDestination -> Bool
(CreateConfigurationSetEventDestination
 -> CreateConfigurationSetEventDestination -> Bool)
-> (CreateConfigurationSetEventDestination
    -> CreateConfigurationSetEventDestination -> Bool)
-> Eq CreateConfigurationSetEventDestination
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateConfigurationSetEventDestination
-> CreateConfigurationSetEventDestination -> Bool
$c/= :: CreateConfigurationSetEventDestination
-> CreateConfigurationSetEventDestination -> Bool
== :: CreateConfigurationSetEventDestination
-> CreateConfigurationSetEventDestination -> Bool
$c== :: CreateConfigurationSetEventDestination
-> CreateConfigurationSetEventDestination -> Bool
Prelude.Eq, ReadPrec [CreateConfigurationSetEventDestination]
ReadPrec CreateConfigurationSetEventDestination
Int -> ReadS CreateConfigurationSetEventDestination
ReadS [CreateConfigurationSetEventDestination]
(Int -> ReadS CreateConfigurationSetEventDestination)
-> ReadS [CreateConfigurationSetEventDestination]
-> ReadPrec CreateConfigurationSetEventDestination
-> ReadPrec [CreateConfigurationSetEventDestination]
-> Read CreateConfigurationSetEventDestination
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateConfigurationSetEventDestination]
$creadListPrec :: ReadPrec [CreateConfigurationSetEventDestination]
readPrec :: ReadPrec CreateConfigurationSetEventDestination
$creadPrec :: ReadPrec CreateConfigurationSetEventDestination
readList :: ReadS [CreateConfigurationSetEventDestination]
$creadList :: ReadS [CreateConfigurationSetEventDestination]
readsPrec :: Int -> ReadS CreateConfigurationSetEventDestination
$creadsPrec :: Int -> ReadS CreateConfigurationSetEventDestination
Prelude.Read, Int -> CreateConfigurationSetEventDestination -> ShowS
[CreateConfigurationSetEventDestination] -> ShowS
CreateConfigurationSetEventDestination -> String
(Int -> CreateConfigurationSetEventDestination -> ShowS)
-> (CreateConfigurationSetEventDestination -> String)
-> ([CreateConfigurationSetEventDestination] -> ShowS)
-> Show CreateConfigurationSetEventDestination
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateConfigurationSetEventDestination] -> ShowS
$cshowList :: [CreateConfigurationSetEventDestination] -> ShowS
show :: CreateConfigurationSetEventDestination -> String
$cshow :: CreateConfigurationSetEventDestination -> String
showsPrec :: Int -> CreateConfigurationSetEventDestination -> ShowS
$cshowsPrec :: Int -> CreateConfigurationSetEventDestination -> ShowS
Prelude.Show, (forall x.
 CreateConfigurationSetEventDestination
 -> Rep CreateConfigurationSetEventDestination x)
-> (forall x.
    Rep CreateConfigurationSetEventDestination x
    -> CreateConfigurationSetEventDestination)
-> Generic CreateConfigurationSetEventDestination
forall x.
Rep CreateConfigurationSetEventDestination x
-> CreateConfigurationSetEventDestination
forall x.
CreateConfigurationSetEventDestination
-> Rep CreateConfigurationSetEventDestination x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateConfigurationSetEventDestination x
-> CreateConfigurationSetEventDestination
$cfrom :: forall x.
CreateConfigurationSetEventDestination
-> Rep CreateConfigurationSetEventDestination x
Prelude.Generic)

-- |
-- Create a value of 'CreateConfigurationSetEventDestination' 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:
--
-- 'eventDestination', 'createConfigurationSetEventDestination_eventDestination' - Undocumented member.
--
-- 'eventDestinationName', 'createConfigurationSetEventDestination_eventDestinationName' - A name that identifies the event destination.
--
-- 'configurationSetName', 'createConfigurationSetEventDestination_configurationSetName' - ConfigurationSetName
newCreateConfigurationSetEventDestination ::
  -- | 'configurationSetName'
  Prelude.Text ->
  CreateConfigurationSetEventDestination
newCreateConfigurationSetEventDestination :: Text -> CreateConfigurationSetEventDestination
newCreateConfigurationSetEventDestination
  Text
pConfigurationSetName_ =
    CreateConfigurationSetEventDestination' :: Maybe EventDestinationDefinition
-> Maybe Text -> Text -> CreateConfigurationSetEventDestination
CreateConfigurationSetEventDestination'
      { $sel:eventDestination:CreateConfigurationSetEventDestination' :: Maybe EventDestinationDefinition
eventDestination =
          Maybe EventDestinationDefinition
forall a. Maybe a
Prelude.Nothing,
        $sel:eventDestinationName:CreateConfigurationSetEventDestination' :: Maybe Text
eventDestinationName =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:configurationSetName:CreateConfigurationSetEventDestination' :: Text
configurationSetName =
          Text
pConfigurationSetName_
      }

-- | Undocumented member.
createConfigurationSetEventDestination_eventDestination :: Lens.Lens' CreateConfigurationSetEventDestination (Prelude.Maybe EventDestinationDefinition)
createConfigurationSetEventDestination_eventDestination :: (Maybe EventDestinationDefinition
 -> f (Maybe EventDestinationDefinition))
-> CreateConfigurationSetEventDestination
-> f CreateConfigurationSetEventDestination
createConfigurationSetEventDestination_eventDestination = (CreateConfigurationSetEventDestination
 -> Maybe EventDestinationDefinition)
-> (CreateConfigurationSetEventDestination
    -> Maybe EventDestinationDefinition
    -> CreateConfigurationSetEventDestination)
-> Lens
     CreateConfigurationSetEventDestination
     CreateConfigurationSetEventDestination
     (Maybe EventDestinationDefinition)
     (Maybe EventDestinationDefinition)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSetEventDestination' {Maybe EventDestinationDefinition
eventDestination :: Maybe EventDestinationDefinition
$sel:eventDestination:CreateConfigurationSetEventDestination' :: CreateConfigurationSetEventDestination
-> Maybe EventDestinationDefinition
eventDestination} -> Maybe EventDestinationDefinition
eventDestination) (\s :: CreateConfigurationSetEventDestination
s@CreateConfigurationSetEventDestination' {} Maybe EventDestinationDefinition
a -> CreateConfigurationSetEventDestination
s {$sel:eventDestination:CreateConfigurationSetEventDestination' :: Maybe EventDestinationDefinition
eventDestination = Maybe EventDestinationDefinition
a} :: CreateConfigurationSetEventDestination)

-- | A name that identifies the event destination.
createConfigurationSetEventDestination_eventDestinationName :: Lens.Lens' CreateConfigurationSetEventDestination (Prelude.Maybe Prelude.Text)
createConfigurationSetEventDestination_eventDestinationName :: (Maybe Text -> f (Maybe Text))
-> CreateConfigurationSetEventDestination
-> f CreateConfigurationSetEventDestination
createConfigurationSetEventDestination_eventDestinationName = (CreateConfigurationSetEventDestination -> Maybe Text)
-> (CreateConfigurationSetEventDestination
    -> Maybe Text -> CreateConfigurationSetEventDestination)
-> Lens
     CreateConfigurationSetEventDestination
     CreateConfigurationSetEventDestination
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSetEventDestination' {Maybe Text
eventDestinationName :: Maybe Text
$sel:eventDestinationName:CreateConfigurationSetEventDestination' :: CreateConfigurationSetEventDestination -> Maybe Text
eventDestinationName} -> Maybe Text
eventDestinationName) (\s :: CreateConfigurationSetEventDestination
s@CreateConfigurationSetEventDestination' {} Maybe Text
a -> CreateConfigurationSetEventDestination
s {$sel:eventDestinationName:CreateConfigurationSetEventDestination' :: Maybe Text
eventDestinationName = Maybe Text
a} :: CreateConfigurationSetEventDestination)

-- | ConfigurationSetName
createConfigurationSetEventDestination_configurationSetName :: Lens.Lens' CreateConfigurationSetEventDestination Prelude.Text
createConfigurationSetEventDestination_configurationSetName :: (Text -> f Text)
-> CreateConfigurationSetEventDestination
-> f CreateConfigurationSetEventDestination
createConfigurationSetEventDestination_configurationSetName = (CreateConfigurationSetEventDestination -> Text)
-> (CreateConfigurationSetEventDestination
    -> Text -> CreateConfigurationSetEventDestination)
-> Lens
     CreateConfigurationSetEventDestination
     CreateConfigurationSetEventDestination
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSetEventDestination' {Text
configurationSetName :: Text
$sel:configurationSetName:CreateConfigurationSetEventDestination' :: CreateConfigurationSetEventDestination -> Text
configurationSetName} -> Text
configurationSetName) (\s :: CreateConfigurationSetEventDestination
s@CreateConfigurationSetEventDestination' {} Text
a -> CreateConfigurationSetEventDestination
s {$sel:configurationSetName:CreateConfigurationSetEventDestination' :: Text
configurationSetName = Text
a} :: CreateConfigurationSetEventDestination)

instance
  Core.AWSRequest
    CreateConfigurationSetEventDestination
  where
  type
    AWSResponse
      CreateConfigurationSetEventDestination =
      CreateConfigurationSetEventDestinationResponse
  request :: CreateConfigurationSetEventDestination
-> Request CreateConfigurationSetEventDestination
request = Service
-> CreateConfigurationSetEventDestination
-> Request CreateConfigurationSetEventDestination
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CreateConfigurationSetEventDestination
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse CreateConfigurationSetEventDestination)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either
      String (AWSResponse CreateConfigurationSetEventDestination))
-> Logger
-> Service
-> Proxy CreateConfigurationSetEventDestination
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse CreateConfigurationSetEventDestination)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
      ( \Int
s ResponseHeaders
h ()
x ->
          Int -> CreateConfigurationSetEventDestinationResponse
CreateConfigurationSetEventDestinationResponse'
            (Int -> CreateConfigurationSetEventDestinationResponse)
-> Either String Int
-> Either String CreateConfigurationSetEventDestinationResponse
forall (f :: * -> *) a b. Functor 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
    CreateConfigurationSetEventDestination

instance
  Prelude.NFData
    CreateConfigurationSetEventDestination

instance
  Core.ToHeaders
    CreateConfigurationSetEventDestination
  where
  toHeaders :: CreateConfigurationSetEventDestination -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> CreateConfigurationSetEventDestination -> 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
    CreateConfigurationSetEventDestination
  where
  toJSON :: CreateConfigurationSetEventDestination -> Value
toJSON CreateConfigurationSetEventDestination' {Maybe Text
Maybe EventDestinationDefinition
Text
configurationSetName :: Text
eventDestinationName :: Maybe Text
eventDestination :: Maybe EventDestinationDefinition
$sel:configurationSetName:CreateConfigurationSetEventDestination' :: CreateConfigurationSetEventDestination -> Text
$sel:eventDestinationName:CreateConfigurationSetEventDestination' :: CreateConfigurationSetEventDestination -> Maybe Text
$sel:eventDestination:CreateConfigurationSetEventDestination' :: CreateConfigurationSetEventDestination
-> Maybe EventDestinationDefinition
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"EventDestination" Text -> EventDestinationDefinition -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (EventDestinationDefinition -> Pair)
-> Maybe EventDestinationDefinition -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EventDestinationDefinition
eventDestination,
            (Text
"EventDestinationName" 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
eventDestinationName
          ]
      )

instance
  Core.ToPath
    CreateConfigurationSetEventDestination
  where
  toPath :: CreateConfigurationSetEventDestination -> ByteString
toPath CreateConfigurationSetEventDestination' {Maybe Text
Maybe EventDestinationDefinition
Text
configurationSetName :: Text
eventDestinationName :: Maybe Text
eventDestination :: Maybe EventDestinationDefinition
$sel:configurationSetName:CreateConfigurationSetEventDestination' :: CreateConfigurationSetEventDestination -> Text
$sel:eventDestinationName:CreateConfigurationSetEventDestination' :: CreateConfigurationSetEventDestination -> Maybe Text
$sel:eventDestination:CreateConfigurationSetEventDestination' :: CreateConfigurationSetEventDestination
-> Maybe EventDestinationDefinition
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/v1/sms-voice/configuration-sets/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
configurationSetName,
        ByteString
"/event-destinations"
      ]

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

-- | An empty object that indicates that the event destination was created
-- successfully.
--
-- /See:/ 'newCreateConfigurationSetEventDestinationResponse' smart constructor.
data CreateConfigurationSetEventDestinationResponse = CreateConfigurationSetEventDestinationResponse'
  { -- | The response's http status code.
    CreateConfigurationSetEventDestinationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (CreateConfigurationSetEventDestinationResponse
-> CreateConfigurationSetEventDestinationResponse -> Bool
(CreateConfigurationSetEventDestinationResponse
 -> CreateConfigurationSetEventDestinationResponse -> Bool)
-> (CreateConfigurationSetEventDestinationResponse
    -> CreateConfigurationSetEventDestinationResponse -> Bool)
-> Eq CreateConfigurationSetEventDestinationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateConfigurationSetEventDestinationResponse
-> CreateConfigurationSetEventDestinationResponse -> Bool
$c/= :: CreateConfigurationSetEventDestinationResponse
-> CreateConfigurationSetEventDestinationResponse -> Bool
== :: CreateConfigurationSetEventDestinationResponse
-> CreateConfigurationSetEventDestinationResponse -> Bool
$c== :: CreateConfigurationSetEventDestinationResponse
-> CreateConfigurationSetEventDestinationResponse -> Bool
Prelude.Eq, ReadPrec [CreateConfigurationSetEventDestinationResponse]
ReadPrec CreateConfigurationSetEventDestinationResponse
Int -> ReadS CreateConfigurationSetEventDestinationResponse
ReadS [CreateConfigurationSetEventDestinationResponse]
(Int -> ReadS CreateConfigurationSetEventDestinationResponse)
-> ReadS [CreateConfigurationSetEventDestinationResponse]
-> ReadPrec CreateConfigurationSetEventDestinationResponse
-> ReadPrec [CreateConfigurationSetEventDestinationResponse]
-> Read CreateConfigurationSetEventDestinationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateConfigurationSetEventDestinationResponse]
$creadListPrec :: ReadPrec [CreateConfigurationSetEventDestinationResponse]
readPrec :: ReadPrec CreateConfigurationSetEventDestinationResponse
$creadPrec :: ReadPrec CreateConfigurationSetEventDestinationResponse
readList :: ReadS [CreateConfigurationSetEventDestinationResponse]
$creadList :: ReadS [CreateConfigurationSetEventDestinationResponse]
readsPrec :: Int -> ReadS CreateConfigurationSetEventDestinationResponse
$creadsPrec :: Int -> ReadS CreateConfigurationSetEventDestinationResponse
Prelude.Read, Int -> CreateConfigurationSetEventDestinationResponse -> ShowS
[CreateConfigurationSetEventDestinationResponse] -> ShowS
CreateConfigurationSetEventDestinationResponse -> String
(Int -> CreateConfigurationSetEventDestinationResponse -> ShowS)
-> (CreateConfigurationSetEventDestinationResponse -> String)
-> ([CreateConfigurationSetEventDestinationResponse] -> ShowS)
-> Show CreateConfigurationSetEventDestinationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateConfigurationSetEventDestinationResponse] -> ShowS
$cshowList :: [CreateConfigurationSetEventDestinationResponse] -> ShowS
show :: CreateConfigurationSetEventDestinationResponse -> String
$cshow :: CreateConfigurationSetEventDestinationResponse -> String
showsPrec :: Int -> CreateConfigurationSetEventDestinationResponse -> ShowS
$cshowsPrec :: Int -> CreateConfigurationSetEventDestinationResponse -> ShowS
Prelude.Show, (forall x.
 CreateConfigurationSetEventDestinationResponse
 -> Rep CreateConfigurationSetEventDestinationResponse x)
-> (forall x.
    Rep CreateConfigurationSetEventDestinationResponse x
    -> CreateConfigurationSetEventDestinationResponse)
-> Generic CreateConfigurationSetEventDestinationResponse
forall x.
Rep CreateConfigurationSetEventDestinationResponse x
-> CreateConfigurationSetEventDestinationResponse
forall x.
CreateConfigurationSetEventDestinationResponse
-> Rep CreateConfigurationSetEventDestinationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateConfigurationSetEventDestinationResponse x
-> CreateConfigurationSetEventDestinationResponse
$cfrom :: forall x.
CreateConfigurationSetEventDestinationResponse
-> Rep CreateConfigurationSetEventDestinationResponse x
Prelude.Generic)

-- |
-- Create a value of 'CreateConfigurationSetEventDestinationResponse' 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:
--
-- 'httpStatus', 'createConfigurationSetEventDestinationResponse_httpStatus' - The response's http status code.
newCreateConfigurationSetEventDestinationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateConfigurationSetEventDestinationResponse
newCreateConfigurationSetEventDestinationResponse :: Int -> CreateConfigurationSetEventDestinationResponse
newCreateConfigurationSetEventDestinationResponse
  Int
pHttpStatus_ =
    CreateConfigurationSetEventDestinationResponse' :: Int -> CreateConfigurationSetEventDestinationResponse
CreateConfigurationSetEventDestinationResponse'
      { $sel:httpStatus:CreateConfigurationSetEventDestinationResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

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

instance
  Prelude.NFData
    CreateConfigurationSetEventDestinationResponse