{-# 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.MediaLive.StartMultiplex
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Start (run) the multiplex. Starting the multiplex does not start the
-- channels. You must explicitly start each channel.
module Amazonka.MediaLive.StartMultiplex
  ( -- * Creating a Request
    StartMultiplex (..),
    newStartMultiplex,

    -- * Request Lenses
    startMultiplex_multiplexId,

    -- * Destructuring the Response
    StartMultiplexResponse (..),
    newStartMultiplexResponse,

    -- * Response Lenses
    startMultiplexResponse_arn,
    startMultiplexResponse_availabilityZones,
    startMultiplexResponse_destinations,
    startMultiplexResponse_id,
    startMultiplexResponse_multiplexSettings,
    startMultiplexResponse_name,
    startMultiplexResponse_pipelinesRunningCount,
    startMultiplexResponse_programCount,
    startMultiplexResponse_state,
    startMultiplexResponse_tags,
    startMultiplexResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MediaLive.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | Placeholder documentation for StartMultiplexRequest
--
-- /See:/ 'newStartMultiplex' smart constructor.
data StartMultiplex = StartMultiplex'
  { -- | The ID of the multiplex.
    StartMultiplex -> Text
multiplexId :: Prelude.Text
  }
  deriving (StartMultiplex -> StartMultiplex -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartMultiplex -> StartMultiplex -> Bool
$c/= :: StartMultiplex -> StartMultiplex -> Bool
== :: StartMultiplex -> StartMultiplex -> Bool
$c== :: StartMultiplex -> StartMultiplex -> Bool
Prelude.Eq, ReadPrec [StartMultiplex]
ReadPrec StartMultiplex
Int -> ReadS StartMultiplex
ReadS [StartMultiplex]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartMultiplex]
$creadListPrec :: ReadPrec [StartMultiplex]
readPrec :: ReadPrec StartMultiplex
$creadPrec :: ReadPrec StartMultiplex
readList :: ReadS [StartMultiplex]
$creadList :: ReadS [StartMultiplex]
readsPrec :: Int -> ReadS StartMultiplex
$creadsPrec :: Int -> ReadS StartMultiplex
Prelude.Read, Int -> StartMultiplex -> ShowS
[StartMultiplex] -> ShowS
StartMultiplex -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartMultiplex] -> ShowS
$cshowList :: [StartMultiplex] -> ShowS
show :: StartMultiplex -> String
$cshow :: StartMultiplex -> String
showsPrec :: Int -> StartMultiplex -> ShowS
$cshowsPrec :: Int -> StartMultiplex -> ShowS
Prelude.Show, forall x. Rep StartMultiplex x -> StartMultiplex
forall x. StartMultiplex -> Rep StartMultiplex x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StartMultiplex x -> StartMultiplex
$cfrom :: forall x. StartMultiplex -> Rep StartMultiplex x
Prelude.Generic)

-- |
-- Create a value of 'StartMultiplex' 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:
--
-- 'multiplexId', 'startMultiplex_multiplexId' - The ID of the multiplex.
newStartMultiplex ::
  -- | 'multiplexId'
  Prelude.Text ->
  StartMultiplex
newStartMultiplex :: Text -> StartMultiplex
newStartMultiplex Text
pMultiplexId_ =
  StartMultiplex' {$sel:multiplexId:StartMultiplex' :: Text
multiplexId = Text
pMultiplexId_}

-- | The ID of the multiplex.
startMultiplex_multiplexId :: Lens.Lens' StartMultiplex Prelude.Text
startMultiplex_multiplexId :: Lens' StartMultiplex Text
startMultiplex_multiplexId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMultiplex' {Text
multiplexId :: Text
$sel:multiplexId:StartMultiplex' :: StartMultiplex -> Text
multiplexId} -> Text
multiplexId) (\s :: StartMultiplex
s@StartMultiplex' {} Text
a -> StartMultiplex
s {$sel:multiplexId:StartMultiplex' :: Text
multiplexId = Text
a} :: StartMultiplex)

instance Core.AWSRequest StartMultiplex where
  type
    AWSResponse StartMultiplex =
      StartMultiplexResponse
  request :: (Service -> Service) -> StartMultiplex -> Request StartMultiplex
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy StartMultiplex
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse StartMultiplex)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe [Text]
-> Maybe [MultiplexOutputDestination]
-> Maybe Text
-> Maybe MultiplexSettings
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe MultiplexState
-> Maybe (HashMap Text Text)
-> Int
-> StartMultiplexResponse
StartMultiplexResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"arn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"availabilityZones"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"destinations" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"id")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"multiplexSettings")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"name")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"pipelinesRunningCount")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"programCount")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"state")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"tags" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable StartMultiplex where
  hashWithSalt :: Int -> StartMultiplex -> Int
hashWithSalt Int
_salt StartMultiplex' {Text
multiplexId :: Text
$sel:multiplexId:StartMultiplex' :: StartMultiplex -> Text
..} =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
multiplexId

instance Prelude.NFData StartMultiplex where
  rnf :: StartMultiplex -> ()
rnf StartMultiplex' {Text
multiplexId :: Text
$sel:multiplexId:StartMultiplex' :: StartMultiplex -> Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Text
multiplexId

instance Data.ToHeaders StartMultiplex where
  toHeaders :: StartMultiplex -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON StartMultiplex where
  toJSON :: StartMultiplex -> Value
toJSON = forall a b. a -> b -> a
Prelude.const (Object -> Value
Data.Object forall a. Monoid a => a
Prelude.mempty)

instance Data.ToPath StartMultiplex where
  toPath :: StartMultiplex -> ByteString
toPath StartMultiplex' {Text
multiplexId :: Text
$sel:multiplexId:StartMultiplex' :: StartMultiplex -> Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/prod/multiplexes/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
multiplexId,
        ByteString
"/start"
      ]

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

-- | Placeholder documentation for StartMultiplexResponse
--
-- /See:/ 'newStartMultiplexResponse' smart constructor.
data StartMultiplexResponse = StartMultiplexResponse'
  { -- | The unique arn of the multiplex.
    StartMultiplexResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | A list of availability zones for the multiplex.
    StartMultiplexResponse -> Maybe [Text]
availabilityZones :: Prelude.Maybe [Prelude.Text],
    -- | A list of the multiplex output destinations.
    StartMultiplexResponse -> Maybe [MultiplexOutputDestination]
destinations :: Prelude.Maybe [MultiplexOutputDestination],
    -- | The unique id of the multiplex.
    StartMultiplexResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | Configuration for a multiplex event.
    StartMultiplexResponse -> Maybe MultiplexSettings
multiplexSettings :: Prelude.Maybe MultiplexSettings,
    -- | The name of the multiplex.
    StartMultiplexResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The number of currently healthy pipelines.
    StartMultiplexResponse -> Maybe Int
pipelinesRunningCount :: Prelude.Maybe Prelude.Int,
    -- | The number of programs in the multiplex.
    StartMultiplexResponse -> Maybe Int
programCount :: Prelude.Maybe Prelude.Int,
    -- | The current state of the multiplex.
    StartMultiplexResponse -> Maybe MultiplexState
state :: Prelude.Maybe MultiplexState,
    -- | A collection of key-value pairs.
    StartMultiplexResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    StartMultiplexResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (StartMultiplexResponse -> StartMultiplexResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartMultiplexResponse -> StartMultiplexResponse -> Bool
$c/= :: StartMultiplexResponse -> StartMultiplexResponse -> Bool
== :: StartMultiplexResponse -> StartMultiplexResponse -> Bool
$c== :: StartMultiplexResponse -> StartMultiplexResponse -> Bool
Prelude.Eq, ReadPrec [StartMultiplexResponse]
ReadPrec StartMultiplexResponse
Int -> ReadS StartMultiplexResponse
ReadS [StartMultiplexResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartMultiplexResponse]
$creadListPrec :: ReadPrec [StartMultiplexResponse]
readPrec :: ReadPrec StartMultiplexResponse
$creadPrec :: ReadPrec StartMultiplexResponse
readList :: ReadS [StartMultiplexResponse]
$creadList :: ReadS [StartMultiplexResponse]
readsPrec :: Int -> ReadS StartMultiplexResponse
$creadsPrec :: Int -> ReadS StartMultiplexResponse
Prelude.Read, Int -> StartMultiplexResponse -> ShowS
[StartMultiplexResponse] -> ShowS
StartMultiplexResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartMultiplexResponse] -> ShowS
$cshowList :: [StartMultiplexResponse] -> ShowS
show :: StartMultiplexResponse -> String
$cshow :: StartMultiplexResponse -> String
showsPrec :: Int -> StartMultiplexResponse -> ShowS
$cshowsPrec :: Int -> StartMultiplexResponse -> ShowS
Prelude.Show, forall x. Rep StartMultiplexResponse x -> StartMultiplexResponse
forall x. StartMultiplexResponse -> Rep StartMultiplexResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StartMultiplexResponse x -> StartMultiplexResponse
$cfrom :: forall x. StartMultiplexResponse -> Rep StartMultiplexResponse x
Prelude.Generic)

-- |
-- Create a value of 'StartMultiplexResponse' 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:
--
-- 'arn', 'startMultiplexResponse_arn' - The unique arn of the multiplex.
--
-- 'availabilityZones', 'startMultiplexResponse_availabilityZones' - A list of availability zones for the multiplex.
--
-- 'destinations', 'startMultiplexResponse_destinations' - A list of the multiplex output destinations.
--
-- 'id', 'startMultiplexResponse_id' - The unique id of the multiplex.
--
-- 'multiplexSettings', 'startMultiplexResponse_multiplexSettings' - Configuration for a multiplex event.
--
-- 'name', 'startMultiplexResponse_name' - The name of the multiplex.
--
-- 'pipelinesRunningCount', 'startMultiplexResponse_pipelinesRunningCount' - The number of currently healthy pipelines.
--
-- 'programCount', 'startMultiplexResponse_programCount' - The number of programs in the multiplex.
--
-- 'state', 'startMultiplexResponse_state' - The current state of the multiplex.
--
-- 'tags', 'startMultiplexResponse_tags' - A collection of key-value pairs.
--
-- 'httpStatus', 'startMultiplexResponse_httpStatus' - The response's http status code.
newStartMultiplexResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  StartMultiplexResponse
newStartMultiplexResponse :: Int -> StartMultiplexResponse
newStartMultiplexResponse Int
pHttpStatus_ =
  StartMultiplexResponse'
    { $sel:arn:StartMultiplexResponse' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:availabilityZones:StartMultiplexResponse' :: Maybe [Text]
availabilityZones = forall a. Maybe a
Prelude.Nothing,
      $sel:destinations:StartMultiplexResponse' :: Maybe [MultiplexOutputDestination]
destinations = forall a. Maybe a
Prelude.Nothing,
      $sel:id:StartMultiplexResponse' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
      $sel:multiplexSettings:StartMultiplexResponse' :: Maybe MultiplexSettings
multiplexSettings = forall a. Maybe a
Prelude.Nothing,
      $sel:name:StartMultiplexResponse' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:pipelinesRunningCount:StartMultiplexResponse' :: Maybe Int
pipelinesRunningCount = forall a. Maybe a
Prelude.Nothing,
      $sel:programCount:StartMultiplexResponse' :: Maybe Int
programCount = forall a. Maybe a
Prelude.Nothing,
      $sel:state:StartMultiplexResponse' :: Maybe MultiplexState
state = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:StartMultiplexResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:StartMultiplexResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The unique arn of the multiplex.
startMultiplexResponse_arn :: Lens.Lens' StartMultiplexResponse (Prelude.Maybe Prelude.Text)
startMultiplexResponse_arn :: Lens' StartMultiplexResponse (Maybe Text)
startMultiplexResponse_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMultiplexResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: StartMultiplexResponse
s@StartMultiplexResponse' {} Maybe Text
a -> StartMultiplexResponse
s {$sel:arn:StartMultiplexResponse' :: Maybe Text
arn = Maybe Text
a} :: StartMultiplexResponse)

-- | A list of availability zones for the multiplex.
startMultiplexResponse_availabilityZones :: Lens.Lens' StartMultiplexResponse (Prelude.Maybe [Prelude.Text])
startMultiplexResponse_availabilityZones :: Lens' StartMultiplexResponse (Maybe [Text])
startMultiplexResponse_availabilityZones = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMultiplexResponse' {Maybe [Text]
availabilityZones :: Maybe [Text]
$sel:availabilityZones:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe [Text]
availabilityZones} -> Maybe [Text]
availabilityZones) (\s :: StartMultiplexResponse
s@StartMultiplexResponse' {} Maybe [Text]
a -> StartMultiplexResponse
s {$sel:availabilityZones:StartMultiplexResponse' :: Maybe [Text]
availabilityZones = Maybe [Text]
a} :: StartMultiplexResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A list of the multiplex output destinations.
startMultiplexResponse_destinations :: Lens.Lens' StartMultiplexResponse (Prelude.Maybe [MultiplexOutputDestination])
startMultiplexResponse_destinations :: Lens' StartMultiplexResponse (Maybe [MultiplexOutputDestination])
startMultiplexResponse_destinations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMultiplexResponse' {Maybe [MultiplexOutputDestination]
destinations :: Maybe [MultiplexOutputDestination]
$sel:destinations:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe [MultiplexOutputDestination]
destinations} -> Maybe [MultiplexOutputDestination]
destinations) (\s :: StartMultiplexResponse
s@StartMultiplexResponse' {} Maybe [MultiplexOutputDestination]
a -> StartMultiplexResponse
s {$sel:destinations:StartMultiplexResponse' :: Maybe [MultiplexOutputDestination]
destinations = Maybe [MultiplexOutputDestination]
a} :: StartMultiplexResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The unique id of the multiplex.
startMultiplexResponse_id :: Lens.Lens' StartMultiplexResponse (Prelude.Maybe Prelude.Text)
startMultiplexResponse_id :: Lens' StartMultiplexResponse (Maybe Text)
startMultiplexResponse_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMultiplexResponse' {Maybe Text
id :: Maybe Text
$sel:id:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: StartMultiplexResponse
s@StartMultiplexResponse' {} Maybe Text
a -> StartMultiplexResponse
s {$sel:id:StartMultiplexResponse' :: Maybe Text
id = Maybe Text
a} :: StartMultiplexResponse)

-- | Configuration for a multiplex event.
startMultiplexResponse_multiplexSettings :: Lens.Lens' StartMultiplexResponse (Prelude.Maybe MultiplexSettings)
startMultiplexResponse_multiplexSettings :: Lens' StartMultiplexResponse (Maybe MultiplexSettings)
startMultiplexResponse_multiplexSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMultiplexResponse' {Maybe MultiplexSettings
multiplexSettings :: Maybe MultiplexSettings
$sel:multiplexSettings:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe MultiplexSettings
multiplexSettings} -> Maybe MultiplexSettings
multiplexSettings) (\s :: StartMultiplexResponse
s@StartMultiplexResponse' {} Maybe MultiplexSettings
a -> StartMultiplexResponse
s {$sel:multiplexSettings:StartMultiplexResponse' :: Maybe MultiplexSettings
multiplexSettings = Maybe MultiplexSettings
a} :: StartMultiplexResponse)

-- | The name of the multiplex.
startMultiplexResponse_name :: Lens.Lens' StartMultiplexResponse (Prelude.Maybe Prelude.Text)
startMultiplexResponse_name :: Lens' StartMultiplexResponse (Maybe Text)
startMultiplexResponse_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMultiplexResponse' {Maybe Text
name :: Maybe Text
$sel:name:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: StartMultiplexResponse
s@StartMultiplexResponse' {} Maybe Text
a -> StartMultiplexResponse
s {$sel:name:StartMultiplexResponse' :: Maybe Text
name = Maybe Text
a} :: StartMultiplexResponse)

-- | The number of currently healthy pipelines.
startMultiplexResponse_pipelinesRunningCount :: Lens.Lens' StartMultiplexResponse (Prelude.Maybe Prelude.Int)
startMultiplexResponse_pipelinesRunningCount :: Lens' StartMultiplexResponse (Maybe Int)
startMultiplexResponse_pipelinesRunningCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMultiplexResponse' {Maybe Int
pipelinesRunningCount :: Maybe Int
$sel:pipelinesRunningCount:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe Int
pipelinesRunningCount} -> Maybe Int
pipelinesRunningCount) (\s :: StartMultiplexResponse
s@StartMultiplexResponse' {} Maybe Int
a -> StartMultiplexResponse
s {$sel:pipelinesRunningCount:StartMultiplexResponse' :: Maybe Int
pipelinesRunningCount = Maybe Int
a} :: StartMultiplexResponse)

-- | The number of programs in the multiplex.
startMultiplexResponse_programCount :: Lens.Lens' StartMultiplexResponse (Prelude.Maybe Prelude.Int)
startMultiplexResponse_programCount :: Lens' StartMultiplexResponse (Maybe Int)
startMultiplexResponse_programCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMultiplexResponse' {Maybe Int
programCount :: Maybe Int
$sel:programCount:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe Int
programCount} -> Maybe Int
programCount) (\s :: StartMultiplexResponse
s@StartMultiplexResponse' {} Maybe Int
a -> StartMultiplexResponse
s {$sel:programCount:StartMultiplexResponse' :: Maybe Int
programCount = Maybe Int
a} :: StartMultiplexResponse)

-- | The current state of the multiplex.
startMultiplexResponse_state :: Lens.Lens' StartMultiplexResponse (Prelude.Maybe MultiplexState)
startMultiplexResponse_state :: Lens' StartMultiplexResponse (Maybe MultiplexState)
startMultiplexResponse_state = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMultiplexResponse' {Maybe MultiplexState
state :: Maybe MultiplexState
$sel:state:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe MultiplexState
state} -> Maybe MultiplexState
state) (\s :: StartMultiplexResponse
s@StartMultiplexResponse' {} Maybe MultiplexState
a -> StartMultiplexResponse
s {$sel:state:StartMultiplexResponse' :: Maybe MultiplexState
state = Maybe MultiplexState
a} :: StartMultiplexResponse)

-- | A collection of key-value pairs.
startMultiplexResponse_tags :: Lens.Lens' StartMultiplexResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
startMultiplexResponse_tags :: Lens' StartMultiplexResponse (Maybe (HashMap Text Text))
startMultiplexResponse_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMultiplexResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: StartMultiplexResponse
s@StartMultiplexResponse' {} Maybe (HashMap Text Text)
a -> StartMultiplexResponse
s {$sel:tags:StartMultiplexResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: StartMultiplexResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData StartMultiplexResponse where
  rnf :: StartMultiplexResponse -> ()
rnf StartMultiplexResponse' {Int
Maybe Int
Maybe [Text]
Maybe [MultiplexOutputDestination]
Maybe Text
Maybe (HashMap Text Text)
Maybe MultiplexSettings
Maybe MultiplexState
httpStatus :: Int
tags :: Maybe (HashMap Text Text)
state :: Maybe MultiplexState
programCount :: Maybe Int
pipelinesRunningCount :: Maybe Int
name :: Maybe Text
multiplexSettings :: Maybe MultiplexSettings
id :: Maybe Text
destinations :: Maybe [MultiplexOutputDestination]
availabilityZones :: Maybe [Text]
arn :: Maybe Text
$sel:httpStatus:StartMultiplexResponse' :: StartMultiplexResponse -> Int
$sel:tags:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe (HashMap Text Text)
$sel:state:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe MultiplexState
$sel:programCount:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe Int
$sel:pipelinesRunningCount:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe Int
$sel:name:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe Text
$sel:multiplexSettings:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe MultiplexSettings
$sel:id:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe Text
$sel:destinations:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe [MultiplexOutputDestination]
$sel:availabilityZones:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe [Text]
$sel:arn:StartMultiplexResponse' :: StartMultiplexResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
availabilityZones
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [MultiplexOutputDestination]
destinations
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MultiplexSettings
multiplexSettings
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
pipelinesRunningCount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
programCount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MultiplexState
state
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus