{-# 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.KinesisVideo.CreateSignalingChannel
-- 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 signaling channel.
--
-- @CreateSignalingChannel@ is an asynchronous operation.
module Amazonka.KinesisVideo.CreateSignalingChannel
  ( -- * Creating a Request
    CreateSignalingChannel (..),
    newCreateSignalingChannel,

    -- * Request Lenses
    createSignalingChannel_singleMasterConfiguration,
    createSignalingChannel_channelType,
    createSignalingChannel_tags,
    createSignalingChannel_channelName,

    -- * Destructuring the Response
    CreateSignalingChannelResponse (..),
    newCreateSignalingChannelResponse,

    -- * Response Lenses
    createSignalingChannelResponse_channelARN,
    createSignalingChannelResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.KinesisVideo.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:/ 'newCreateSignalingChannel' smart constructor.
data CreateSignalingChannel = CreateSignalingChannel'
  { -- | A structure containing the configuration for the @SINGLE_MASTER@ channel
    -- type.
    CreateSignalingChannel -> Maybe SingleMasterConfiguration
singleMasterConfiguration :: Prelude.Maybe SingleMasterConfiguration,
    -- | A type of the signaling channel that you are creating. Currently,
    -- @SINGLE_MASTER@ is the only supported channel type.
    CreateSignalingChannel -> Maybe ChannelType
channelType :: Prelude.Maybe ChannelType,
    -- | A set of tags (key-value pairs) that you want to associate with this
    -- channel.
    CreateSignalingChannel -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | A name for the signaling channel that you are creating. It must be
    -- unique for each AWS account and AWS Region.
    CreateSignalingChannel -> Text
channelName :: Prelude.Text
  }
  deriving (CreateSignalingChannel -> CreateSignalingChannel -> Bool
(CreateSignalingChannel -> CreateSignalingChannel -> Bool)
-> (CreateSignalingChannel -> CreateSignalingChannel -> Bool)
-> Eq CreateSignalingChannel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateSignalingChannel -> CreateSignalingChannel -> Bool
$c/= :: CreateSignalingChannel -> CreateSignalingChannel -> Bool
== :: CreateSignalingChannel -> CreateSignalingChannel -> Bool
$c== :: CreateSignalingChannel -> CreateSignalingChannel -> Bool
Prelude.Eq, ReadPrec [CreateSignalingChannel]
ReadPrec CreateSignalingChannel
Int -> ReadS CreateSignalingChannel
ReadS [CreateSignalingChannel]
(Int -> ReadS CreateSignalingChannel)
-> ReadS [CreateSignalingChannel]
-> ReadPrec CreateSignalingChannel
-> ReadPrec [CreateSignalingChannel]
-> Read CreateSignalingChannel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateSignalingChannel]
$creadListPrec :: ReadPrec [CreateSignalingChannel]
readPrec :: ReadPrec CreateSignalingChannel
$creadPrec :: ReadPrec CreateSignalingChannel
readList :: ReadS [CreateSignalingChannel]
$creadList :: ReadS [CreateSignalingChannel]
readsPrec :: Int -> ReadS CreateSignalingChannel
$creadsPrec :: Int -> ReadS CreateSignalingChannel
Prelude.Read, Int -> CreateSignalingChannel -> ShowS
[CreateSignalingChannel] -> ShowS
CreateSignalingChannel -> String
(Int -> CreateSignalingChannel -> ShowS)
-> (CreateSignalingChannel -> String)
-> ([CreateSignalingChannel] -> ShowS)
-> Show CreateSignalingChannel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateSignalingChannel] -> ShowS
$cshowList :: [CreateSignalingChannel] -> ShowS
show :: CreateSignalingChannel -> String
$cshow :: CreateSignalingChannel -> String
showsPrec :: Int -> CreateSignalingChannel -> ShowS
$cshowsPrec :: Int -> CreateSignalingChannel -> ShowS
Prelude.Show, (forall x. CreateSignalingChannel -> Rep CreateSignalingChannel x)
-> (forall x.
    Rep CreateSignalingChannel x -> CreateSignalingChannel)
-> Generic CreateSignalingChannel
forall x. Rep CreateSignalingChannel x -> CreateSignalingChannel
forall x. CreateSignalingChannel -> Rep CreateSignalingChannel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateSignalingChannel x -> CreateSignalingChannel
$cfrom :: forall x. CreateSignalingChannel -> Rep CreateSignalingChannel x
Prelude.Generic)

-- |
-- Create a value of 'CreateSignalingChannel' 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:
--
-- 'singleMasterConfiguration', 'createSignalingChannel_singleMasterConfiguration' - A structure containing the configuration for the @SINGLE_MASTER@ channel
-- type.
--
-- 'channelType', 'createSignalingChannel_channelType' - A type of the signaling channel that you are creating. Currently,
-- @SINGLE_MASTER@ is the only supported channel type.
--
-- 'tags', 'createSignalingChannel_tags' - A set of tags (key-value pairs) that you want to associate with this
-- channel.
--
-- 'channelName', 'createSignalingChannel_channelName' - A name for the signaling channel that you are creating. It must be
-- unique for each AWS account and AWS Region.
newCreateSignalingChannel ::
  -- | 'channelName'
  Prelude.Text ->
  CreateSignalingChannel
newCreateSignalingChannel :: Text -> CreateSignalingChannel
newCreateSignalingChannel Text
pChannelName_ =
  CreateSignalingChannel' :: Maybe SingleMasterConfiguration
-> Maybe ChannelType
-> Maybe [Tag]
-> Text
-> CreateSignalingChannel
CreateSignalingChannel'
    { $sel:singleMasterConfiguration:CreateSignalingChannel' :: Maybe SingleMasterConfiguration
singleMasterConfiguration =
        Maybe SingleMasterConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:channelType:CreateSignalingChannel' :: Maybe ChannelType
channelType = Maybe ChannelType
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:CreateSignalingChannel' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
      $sel:channelName:CreateSignalingChannel' :: Text
channelName = Text
pChannelName_
    }

-- | A structure containing the configuration for the @SINGLE_MASTER@ channel
-- type.
createSignalingChannel_singleMasterConfiguration :: Lens.Lens' CreateSignalingChannel (Prelude.Maybe SingleMasterConfiguration)
createSignalingChannel_singleMasterConfiguration :: (Maybe SingleMasterConfiguration
 -> f (Maybe SingleMasterConfiguration))
-> CreateSignalingChannel -> f CreateSignalingChannel
createSignalingChannel_singleMasterConfiguration = (CreateSignalingChannel -> Maybe SingleMasterConfiguration)
-> (CreateSignalingChannel
    -> Maybe SingleMasterConfiguration -> CreateSignalingChannel)
-> Lens
     CreateSignalingChannel
     CreateSignalingChannel
     (Maybe SingleMasterConfiguration)
     (Maybe SingleMasterConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSignalingChannel' {Maybe SingleMasterConfiguration
singleMasterConfiguration :: Maybe SingleMasterConfiguration
$sel:singleMasterConfiguration:CreateSignalingChannel' :: CreateSignalingChannel -> Maybe SingleMasterConfiguration
singleMasterConfiguration} -> Maybe SingleMasterConfiguration
singleMasterConfiguration) (\s :: CreateSignalingChannel
s@CreateSignalingChannel' {} Maybe SingleMasterConfiguration
a -> CreateSignalingChannel
s {$sel:singleMasterConfiguration:CreateSignalingChannel' :: Maybe SingleMasterConfiguration
singleMasterConfiguration = Maybe SingleMasterConfiguration
a} :: CreateSignalingChannel)

-- | A type of the signaling channel that you are creating. Currently,
-- @SINGLE_MASTER@ is the only supported channel type.
createSignalingChannel_channelType :: Lens.Lens' CreateSignalingChannel (Prelude.Maybe ChannelType)
createSignalingChannel_channelType :: (Maybe ChannelType -> f (Maybe ChannelType))
-> CreateSignalingChannel -> f CreateSignalingChannel
createSignalingChannel_channelType = (CreateSignalingChannel -> Maybe ChannelType)
-> (CreateSignalingChannel
    -> Maybe ChannelType -> CreateSignalingChannel)
-> Lens
     CreateSignalingChannel
     CreateSignalingChannel
     (Maybe ChannelType)
     (Maybe ChannelType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSignalingChannel' {Maybe ChannelType
channelType :: Maybe ChannelType
$sel:channelType:CreateSignalingChannel' :: CreateSignalingChannel -> Maybe ChannelType
channelType} -> Maybe ChannelType
channelType) (\s :: CreateSignalingChannel
s@CreateSignalingChannel' {} Maybe ChannelType
a -> CreateSignalingChannel
s {$sel:channelType:CreateSignalingChannel' :: Maybe ChannelType
channelType = Maybe ChannelType
a} :: CreateSignalingChannel)

-- | A set of tags (key-value pairs) that you want to associate with this
-- channel.
createSignalingChannel_tags :: Lens.Lens' CreateSignalingChannel (Prelude.Maybe [Tag])
createSignalingChannel_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateSignalingChannel -> f CreateSignalingChannel
createSignalingChannel_tags = (CreateSignalingChannel -> Maybe [Tag])
-> (CreateSignalingChannel
    -> Maybe [Tag] -> CreateSignalingChannel)
-> Lens
     CreateSignalingChannel
     CreateSignalingChannel
     (Maybe [Tag])
     (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSignalingChannel' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateSignalingChannel' :: CreateSignalingChannel -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateSignalingChannel
s@CreateSignalingChannel' {} Maybe [Tag]
a -> CreateSignalingChannel
s {$sel:tags:CreateSignalingChannel' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateSignalingChannel) ((Maybe [Tag] -> f (Maybe [Tag]))
 -> CreateSignalingChannel -> f CreateSignalingChannel)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
    -> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateSignalingChannel
-> f CreateSignalingChannel
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A name for the signaling channel that you are creating. It must be
-- unique for each AWS account and AWS Region.
createSignalingChannel_channelName :: Lens.Lens' CreateSignalingChannel Prelude.Text
createSignalingChannel_channelName :: (Text -> f Text)
-> CreateSignalingChannel -> f CreateSignalingChannel
createSignalingChannel_channelName = (CreateSignalingChannel -> Text)
-> (CreateSignalingChannel -> Text -> CreateSignalingChannel)
-> Lens CreateSignalingChannel CreateSignalingChannel Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSignalingChannel' {Text
channelName :: Text
$sel:channelName:CreateSignalingChannel' :: CreateSignalingChannel -> Text
channelName} -> Text
channelName) (\s :: CreateSignalingChannel
s@CreateSignalingChannel' {} Text
a -> CreateSignalingChannel
s {$sel:channelName:CreateSignalingChannel' :: Text
channelName = Text
a} :: CreateSignalingChannel)

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

instance Prelude.NFData CreateSignalingChannel

instance Core.ToHeaders CreateSignalingChannel where
  toHeaders :: CreateSignalingChannel -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateSignalingChannel -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToJSON CreateSignalingChannel where
  toJSON :: CreateSignalingChannel -> Value
toJSON CreateSignalingChannel' {Maybe [Tag]
Maybe ChannelType
Maybe SingleMasterConfiguration
Text
channelName :: Text
tags :: Maybe [Tag]
channelType :: Maybe ChannelType
singleMasterConfiguration :: Maybe SingleMasterConfiguration
$sel:channelName:CreateSignalingChannel' :: CreateSignalingChannel -> Text
$sel:tags:CreateSignalingChannel' :: CreateSignalingChannel -> Maybe [Tag]
$sel:channelType:CreateSignalingChannel' :: CreateSignalingChannel -> Maybe ChannelType
$sel:singleMasterConfiguration:CreateSignalingChannel' :: CreateSignalingChannel -> Maybe SingleMasterConfiguration
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"SingleMasterConfiguration" Text -> SingleMasterConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (SingleMasterConfiguration -> Pair)
-> Maybe SingleMasterConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SingleMasterConfiguration
singleMasterConfiguration,
            (Text
"ChannelType" Text -> ChannelType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ChannelType -> Pair) -> Maybe ChannelType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ChannelType
channelType,
            (Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ChannelName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
channelName)
          ]
      )

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

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

-- | /See:/ 'newCreateSignalingChannelResponse' smart constructor.
data CreateSignalingChannelResponse = CreateSignalingChannelResponse'
  { -- | The Amazon Resource Name (ARN) of the created channel.
    CreateSignalingChannelResponse -> Maybe Text
channelARN :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    CreateSignalingChannelResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (CreateSignalingChannelResponse
-> CreateSignalingChannelResponse -> Bool
(CreateSignalingChannelResponse
 -> CreateSignalingChannelResponse -> Bool)
-> (CreateSignalingChannelResponse
    -> CreateSignalingChannelResponse -> Bool)
-> Eq CreateSignalingChannelResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateSignalingChannelResponse
-> CreateSignalingChannelResponse -> Bool
$c/= :: CreateSignalingChannelResponse
-> CreateSignalingChannelResponse -> Bool
== :: CreateSignalingChannelResponse
-> CreateSignalingChannelResponse -> Bool
$c== :: CreateSignalingChannelResponse
-> CreateSignalingChannelResponse -> Bool
Prelude.Eq, ReadPrec [CreateSignalingChannelResponse]
ReadPrec CreateSignalingChannelResponse
Int -> ReadS CreateSignalingChannelResponse
ReadS [CreateSignalingChannelResponse]
(Int -> ReadS CreateSignalingChannelResponse)
-> ReadS [CreateSignalingChannelResponse]
-> ReadPrec CreateSignalingChannelResponse
-> ReadPrec [CreateSignalingChannelResponse]
-> Read CreateSignalingChannelResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateSignalingChannelResponse]
$creadListPrec :: ReadPrec [CreateSignalingChannelResponse]
readPrec :: ReadPrec CreateSignalingChannelResponse
$creadPrec :: ReadPrec CreateSignalingChannelResponse
readList :: ReadS [CreateSignalingChannelResponse]
$creadList :: ReadS [CreateSignalingChannelResponse]
readsPrec :: Int -> ReadS CreateSignalingChannelResponse
$creadsPrec :: Int -> ReadS CreateSignalingChannelResponse
Prelude.Read, Int -> CreateSignalingChannelResponse -> ShowS
[CreateSignalingChannelResponse] -> ShowS
CreateSignalingChannelResponse -> String
(Int -> CreateSignalingChannelResponse -> ShowS)
-> (CreateSignalingChannelResponse -> String)
-> ([CreateSignalingChannelResponse] -> ShowS)
-> Show CreateSignalingChannelResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateSignalingChannelResponse] -> ShowS
$cshowList :: [CreateSignalingChannelResponse] -> ShowS
show :: CreateSignalingChannelResponse -> String
$cshow :: CreateSignalingChannelResponse -> String
showsPrec :: Int -> CreateSignalingChannelResponse -> ShowS
$cshowsPrec :: Int -> CreateSignalingChannelResponse -> ShowS
Prelude.Show, (forall x.
 CreateSignalingChannelResponse
 -> Rep CreateSignalingChannelResponse x)
-> (forall x.
    Rep CreateSignalingChannelResponse x
    -> CreateSignalingChannelResponse)
-> Generic CreateSignalingChannelResponse
forall x.
Rep CreateSignalingChannelResponse x
-> CreateSignalingChannelResponse
forall x.
CreateSignalingChannelResponse
-> Rep CreateSignalingChannelResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateSignalingChannelResponse x
-> CreateSignalingChannelResponse
$cfrom :: forall x.
CreateSignalingChannelResponse
-> Rep CreateSignalingChannelResponse x
Prelude.Generic)

-- |
-- Create a value of 'CreateSignalingChannelResponse' 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:
--
-- 'channelARN', 'createSignalingChannelResponse_channelARN' - The Amazon Resource Name (ARN) of the created channel.
--
-- 'httpStatus', 'createSignalingChannelResponse_httpStatus' - The response's http status code.
newCreateSignalingChannelResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateSignalingChannelResponse
newCreateSignalingChannelResponse :: Int -> CreateSignalingChannelResponse
newCreateSignalingChannelResponse Int
pHttpStatus_ =
  CreateSignalingChannelResponse' :: Maybe Text -> Int -> CreateSignalingChannelResponse
CreateSignalingChannelResponse'
    { $sel:channelARN:CreateSignalingChannelResponse' :: Maybe Text
channelARN =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:CreateSignalingChannelResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The Amazon Resource Name (ARN) of the created channel.
createSignalingChannelResponse_channelARN :: Lens.Lens' CreateSignalingChannelResponse (Prelude.Maybe Prelude.Text)
createSignalingChannelResponse_channelARN :: (Maybe Text -> f (Maybe Text))
-> CreateSignalingChannelResponse
-> f CreateSignalingChannelResponse
createSignalingChannelResponse_channelARN = (CreateSignalingChannelResponse -> Maybe Text)
-> (CreateSignalingChannelResponse
    -> Maybe Text -> CreateSignalingChannelResponse)
-> Lens
     CreateSignalingChannelResponse
     CreateSignalingChannelResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSignalingChannelResponse' {Maybe Text
channelARN :: Maybe Text
$sel:channelARN:CreateSignalingChannelResponse' :: CreateSignalingChannelResponse -> Maybe Text
channelARN} -> Maybe Text
channelARN) (\s :: CreateSignalingChannelResponse
s@CreateSignalingChannelResponse' {} Maybe Text
a -> CreateSignalingChannelResponse
s {$sel:channelARN:CreateSignalingChannelResponse' :: Maybe Text
channelARN = Maybe Text
a} :: CreateSignalingChannelResponse)

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

instance
  Prelude.NFData
    CreateSignalingChannelResponse