{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Chime.Types.MediaCapturePipeline
-- 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)
module Amazonka.Chime.Types.MediaCapturePipeline where

import Amazonka.Chime.Types.ChimeSdkMeetingConfiguration
import Amazonka.Chime.Types.MediaPipelineSinkType
import Amazonka.Chime.Types.MediaPipelineSourceType
import Amazonka.Chime.Types.MediaPipelineStatus
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | A media capture pipeline object consisting of an ID, source type, source
-- ARN, a sink type, a sink ARN, and a configuration object.
--
-- /See:/ 'newMediaCapturePipeline' smart constructor.
data MediaCapturePipeline = MediaCapturePipeline'
  { -- | The status of the media capture pipeline.
    MediaCapturePipeline -> Maybe MediaPipelineStatus
status :: Prelude.Maybe MediaPipelineStatus,
    -- | Source type from which media artifacts are saved. You must use
    -- @ChimeMeeting@.
    MediaCapturePipeline -> Maybe MediaPipelineSourceType
sourceType :: Prelude.Maybe MediaPipelineSourceType,
    -- | ARN of the source from which the media artifacts will be saved.
    MediaCapturePipeline -> Maybe (Sensitive Text)
sourceArn :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The time at which the capture pipeline was updated, in ISO 8601 format.
    MediaCapturePipeline -> Maybe POSIX
updatedTimestamp :: Prelude.Maybe Core.POSIX,
    -- | Destination type to which the media artifacts are saved. You must use an
    -- S3 Bucket.
    MediaCapturePipeline -> Maybe MediaPipelineSinkType
sinkType :: Prelude.Maybe MediaPipelineSinkType,
    -- | The configuration for a specified media capture pipeline. @SourceType@
    -- must be @ChimeSdkMeeting@.
    MediaCapturePipeline -> Maybe ChimeSdkMeetingConfiguration
chimeSdkMeetingConfiguration :: Prelude.Maybe ChimeSdkMeetingConfiguration,
    -- | ARN of the destination to which the media artifacts are saved.
    MediaCapturePipeline -> Maybe (Sensitive Text)
sinkArn :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The ID of a media capture pipeline.
    MediaCapturePipeline -> Maybe Text
mediaPipelineId :: Prelude.Maybe Prelude.Text,
    -- | The time at which the capture pipeline was created, in ISO 8601 format.
    MediaCapturePipeline -> Maybe POSIX
createdTimestamp :: Prelude.Maybe Core.POSIX
  }
  deriving (MediaCapturePipeline -> MediaCapturePipeline -> Bool
(MediaCapturePipeline -> MediaCapturePipeline -> Bool)
-> (MediaCapturePipeline -> MediaCapturePipeline -> Bool)
-> Eq MediaCapturePipeline
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MediaCapturePipeline -> MediaCapturePipeline -> Bool
$c/= :: MediaCapturePipeline -> MediaCapturePipeline -> Bool
== :: MediaCapturePipeline -> MediaCapturePipeline -> Bool
$c== :: MediaCapturePipeline -> MediaCapturePipeline -> Bool
Prelude.Eq, Int -> MediaCapturePipeline -> ShowS
[MediaCapturePipeline] -> ShowS
MediaCapturePipeline -> String
(Int -> MediaCapturePipeline -> ShowS)
-> (MediaCapturePipeline -> String)
-> ([MediaCapturePipeline] -> ShowS)
-> Show MediaCapturePipeline
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MediaCapturePipeline] -> ShowS
$cshowList :: [MediaCapturePipeline] -> ShowS
show :: MediaCapturePipeline -> String
$cshow :: MediaCapturePipeline -> String
showsPrec :: Int -> MediaCapturePipeline -> ShowS
$cshowsPrec :: Int -> MediaCapturePipeline -> ShowS
Prelude.Show, (forall x. MediaCapturePipeline -> Rep MediaCapturePipeline x)
-> (forall x. Rep MediaCapturePipeline x -> MediaCapturePipeline)
-> Generic MediaCapturePipeline
forall x. Rep MediaCapturePipeline x -> MediaCapturePipeline
forall x. MediaCapturePipeline -> Rep MediaCapturePipeline x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MediaCapturePipeline x -> MediaCapturePipeline
$cfrom :: forall x. MediaCapturePipeline -> Rep MediaCapturePipeline x
Prelude.Generic)

-- |
-- Create a value of 'MediaCapturePipeline' 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:
--
-- 'status', 'mediaCapturePipeline_status' - The status of the media capture pipeline.
--
-- 'sourceType', 'mediaCapturePipeline_sourceType' - Source type from which media artifacts are saved. You must use
-- @ChimeMeeting@.
--
-- 'sourceArn', 'mediaCapturePipeline_sourceArn' - ARN of the source from which the media artifacts will be saved.
--
-- 'updatedTimestamp', 'mediaCapturePipeline_updatedTimestamp' - The time at which the capture pipeline was updated, in ISO 8601 format.
--
-- 'sinkType', 'mediaCapturePipeline_sinkType' - Destination type to which the media artifacts are saved. You must use an
-- S3 Bucket.
--
-- 'chimeSdkMeetingConfiguration', 'mediaCapturePipeline_chimeSdkMeetingConfiguration' - The configuration for a specified media capture pipeline. @SourceType@
-- must be @ChimeSdkMeeting@.
--
-- 'sinkArn', 'mediaCapturePipeline_sinkArn' - ARN of the destination to which the media artifacts are saved.
--
-- 'mediaPipelineId', 'mediaCapturePipeline_mediaPipelineId' - The ID of a media capture pipeline.
--
-- 'createdTimestamp', 'mediaCapturePipeline_createdTimestamp' - The time at which the capture pipeline was created, in ISO 8601 format.
newMediaCapturePipeline ::
  MediaCapturePipeline
newMediaCapturePipeline :: MediaCapturePipeline
newMediaCapturePipeline =
  MediaCapturePipeline' :: Maybe MediaPipelineStatus
-> Maybe MediaPipelineSourceType
-> Maybe (Sensitive Text)
-> Maybe POSIX
-> Maybe MediaPipelineSinkType
-> Maybe ChimeSdkMeetingConfiguration
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe POSIX
-> MediaCapturePipeline
MediaCapturePipeline'
    { $sel:status:MediaCapturePipeline' :: Maybe MediaPipelineStatus
status = Maybe MediaPipelineStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceType:MediaCapturePipeline' :: Maybe MediaPipelineSourceType
sourceType = Maybe MediaPipelineSourceType
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceArn:MediaCapturePipeline' :: Maybe (Sensitive Text)
sourceArn = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:updatedTimestamp:MediaCapturePipeline' :: Maybe POSIX
updatedTimestamp = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:sinkType:MediaCapturePipeline' :: Maybe MediaPipelineSinkType
sinkType = Maybe MediaPipelineSinkType
forall a. Maybe a
Prelude.Nothing,
      $sel:chimeSdkMeetingConfiguration:MediaCapturePipeline' :: Maybe ChimeSdkMeetingConfiguration
chimeSdkMeetingConfiguration = Maybe ChimeSdkMeetingConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:sinkArn:MediaCapturePipeline' :: Maybe (Sensitive Text)
sinkArn = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:mediaPipelineId:MediaCapturePipeline' :: Maybe Text
mediaPipelineId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdTimestamp:MediaCapturePipeline' :: Maybe POSIX
createdTimestamp = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
    }

-- | The status of the media capture pipeline.
mediaCapturePipeline_status :: Lens.Lens' MediaCapturePipeline (Prelude.Maybe MediaPipelineStatus)
mediaCapturePipeline_status :: (Maybe MediaPipelineStatus -> f (Maybe MediaPipelineStatus))
-> MediaCapturePipeline -> f MediaCapturePipeline
mediaCapturePipeline_status = (MediaCapturePipeline -> Maybe MediaPipelineStatus)
-> (MediaCapturePipeline
    -> Maybe MediaPipelineStatus -> MediaCapturePipeline)
-> Lens
     MediaCapturePipeline
     MediaCapturePipeline
     (Maybe MediaPipelineStatus)
     (Maybe MediaPipelineStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MediaCapturePipeline' {Maybe MediaPipelineStatus
status :: Maybe MediaPipelineStatus
$sel:status:MediaCapturePipeline' :: MediaCapturePipeline -> Maybe MediaPipelineStatus
status} -> Maybe MediaPipelineStatus
status) (\s :: MediaCapturePipeline
s@MediaCapturePipeline' {} Maybe MediaPipelineStatus
a -> MediaCapturePipeline
s {$sel:status:MediaCapturePipeline' :: Maybe MediaPipelineStatus
status = Maybe MediaPipelineStatus
a} :: MediaCapturePipeline)

-- | Source type from which media artifacts are saved. You must use
-- @ChimeMeeting@.
mediaCapturePipeline_sourceType :: Lens.Lens' MediaCapturePipeline (Prelude.Maybe MediaPipelineSourceType)
mediaCapturePipeline_sourceType :: (Maybe MediaPipelineSourceType
 -> f (Maybe MediaPipelineSourceType))
-> MediaCapturePipeline -> f MediaCapturePipeline
mediaCapturePipeline_sourceType = (MediaCapturePipeline -> Maybe MediaPipelineSourceType)
-> (MediaCapturePipeline
    -> Maybe MediaPipelineSourceType -> MediaCapturePipeline)
-> Lens
     MediaCapturePipeline
     MediaCapturePipeline
     (Maybe MediaPipelineSourceType)
     (Maybe MediaPipelineSourceType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MediaCapturePipeline' {Maybe MediaPipelineSourceType
sourceType :: Maybe MediaPipelineSourceType
$sel:sourceType:MediaCapturePipeline' :: MediaCapturePipeline -> Maybe MediaPipelineSourceType
sourceType} -> Maybe MediaPipelineSourceType
sourceType) (\s :: MediaCapturePipeline
s@MediaCapturePipeline' {} Maybe MediaPipelineSourceType
a -> MediaCapturePipeline
s {$sel:sourceType:MediaCapturePipeline' :: Maybe MediaPipelineSourceType
sourceType = Maybe MediaPipelineSourceType
a} :: MediaCapturePipeline)

-- | ARN of the source from which the media artifacts will be saved.
mediaCapturePipeline_sourceArn :: Lens.Lens' MediaCapturePipeline (Prelude.Maybe Prelude.Text)
mediaCapturePipeline_sourceArn :: (Maybe Text -> f (Maybe Text))
-> MediaCapturePipeline -> f MediaCapturePipeline
mediaCapturePipeline_sourceArn = (MediaCapturePipeline -> Maybe (Sensitive Text))
-> (MediaCapturePipeline
    -> Maybe (Sensitive Text) -> MediaCapturePipeline)
-> Lens
     MediaCapturePipeline
     MediaCapturePipeline
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MediaCapturePipeline' {Maybe (Sensitive Text)
sourceArn :: Maybe (Sensitive Text)
$sel:sourceArn:MediaCapturePipeline' :: MediaCapturePipeline -> Maybe (Sensitive Text)
sourceArn} -> Maybe (Sensitive Text)
sourceArn) (\s :: MediaCapturePipeline
s@MediaCapturePipeline' {} Maybe (Sensitive Text)
a -> MediaCapturePipeline
s {$sel:sourceArn:MediaCapturePipeline' :: Maybe (Sensitive Text)
sourceArn = Maybe (Sensitive Text)
a} :: MediaCapturePipeline) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> MediaCapturePipeline -> f MediaCapturePipeline)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> MediaCapturePipeline
-> f MediaCapturePipeline
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
     (Maybe Text)
     (Maybe Text)
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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive

-- | The time at which the capture pipeline was updated, in ISO 8601 format.
mediaCapturePipeline_updatedTimestamp :: Lens.Lens' MediaCapturePipeline (Prelude.Maybe Prelude.UTCTime)
mediaCapturePipeline_updatedTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> MediaCapturePipeline -> f MediaCapturePipeline
mediaCapturePipeline_updatedTimestamp = (MediaCapturePipeline -> Maybe POSIX)
-> (MediaCapturePipeline -> Maybe POSIX -> MediaCapturePipeline)
-> Lens
     MediaCapturePipeline
     MediaCapturePipeline
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MediaCapturePipeline' {Maybe POSIX
updatedTimestamp :: Maybe POSIX
$sel:updatedTimestamp:MediaCapturePipeline' :: MediaCapturePipeline -> Maybe POSIX
updatedTimestamp} -> Maybe POSIX
updatedTimestamp) (\s :: MediaCapturePipeline
s@MediaCapturePipeline' {} Maybe POSIX
a -> MediaCapturePipeline
s {$sel:updatedTimestamp:MediaCapturePipeline' :: Maybe POSIX
updatedTimestamp = Maybe POSIX
a} :: MediaCapturePipeline) ((Maybe POSIX -> f (Maybe POSIX))
 -> MediaCapturePipeline -> f MediaCapturePipeline)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> MediaCapturePipeline
-> f MediaCapturePipeline
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | Destination type to which the media artifacts are saved. You must use an
-- S3 Bucket.
mediaCapturePipeline_sinkType :: Lens.Lens' MediaCapturePipeline (Prelude.Maybe MediaPipelineSinkType)
mediaCapturePipeline_sinkType :: (Maybe MediaPipelineSinkType -> f (Maybe MediaPipelineSinkType))
-> MediaCapturePipeline -> f MediaCapturePipeline
mediaCapturePipeline_sinkType = (MediaCapturePipeline -> Maybe MediaPipelineSinkType)
-> (MediaCapturePipeline
    -> Maybe MediaPipelineSinkType -> MediaCapturePipeline)
-> Lens
     MediaCapturePipeline
     MediaCapturePipeline
     (Maybe MediaPipelineSinkType)
     (Maybe MediaPipelineSinkType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MediaCapturePipeline' {Maybe MediaPipelineSinkType
sinkType :: Maybe MediaPipelineSinkType
$sel:sinkType:MediaCapturePipeline' :: MediaCapturePipeline -> Maybe MediaPipelineSinkType
sinkType} -> Maybe MediaPipelineSinkType
sinkType) (\s :: MediaCapturePipeline
s@MediaCapturePipeline' {} Maybe MediaPipelineSinkType
a -> MediaCapturePipeline
s {$sel:sinkType:MediaCapturePipeline' :: Maybe MediaPipelineSinkType
sinkType = Maybe MediaPipelineSinkType
a} :: MediaCapturePipeline)

-- | The configuration for a specified media capture pipeline. @SourceType@
-- must be @ChimeSdkMeeting@.
mediaCapturePipeline_chimeSdkMeetingConfiguration :: Lens.Lens' MediaCapturePipeline (Prelude.Maybe ChimeSdkMeetingConfiguration)
mediaCapturePipeline_chimeSdkMeetingConfiguration :: (Maybe ChimeSdkMeetingConfiguration
 -> f (Maybe ChimeSdkMeetingConfiguration))
-> MediaCapturePipeline -> f MediaCapturePipeline
mediaCapturePipeline_chimeSdkMeetingConfiguration = (MediaCapturePipeline -> Maybe ChimeSdkMeetingConfiguration)
-> (MediaCapturePipeline
    -> Maybe ChimeSdkMeetingConfiguration -> MediaCapturePipeline)
-> Lens
     MediaCapturePipeline
     MediaCapturePipeline
     (Maybe ChimeSdkMeetingConfiguration)
     (Maybe ChimeSdkMeetingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MediaCapturePipeline' {Maybe ChimeSdkMeetingConfiguration
chimeSdkMeetingConfiguration :: Maybe ChimeSdkMeetingConfiguration
$sel:chimeSdkMeetingConfiguration:MediaCapturePipeline' :: MediaCapturePipeline -> Maybe ChimeSdkMeetingConfiguration
chimeSdkMeetingConfiguration} -> Maybe ChimeSdkMeetingConfiguration
chimeSdkMeetingConfiguration) (\s :: MediaCapturePipeline
s@MediaCapturePipeline' {} Maybe ChimeSdkMeetingConfiguration
a -> MediaCapturePipeline
s {$sel:chimeSdkMeetingConfiguration:MediaCapturePipeline' :: Maybe ChimeSdkMeetingConfiguration
chimeSdkMeetingConfiguration = Maybe ChimeSdkMeetingConfiguration
a} :: MediaCapturePipeline)

-- | ARN of the destination to which the media artifacts are saved.
mediaCapturePipeline_sinkArn :: Lens.Lens' MediaCapturePipeline (Prelude.Maybe Prelude.Text)
mediaCapturePipeline_sinkArn :: (Maybe Text -> f (Maybe Text))
-> MediaCapturePipeline -> f MediaCapturePipeline
mediaCapturePipeline_sinkArn = (MediaCapturePipeline -> Maybe (Sensitive Text))
-> (MediaCapturePipeline
    -> Maybe (Sensitive Text) -> MediaCapturePipeline)
-> Lens
     MediaCapturePipeline
     MediaCapturePipeline
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MediaCapturePipeline' {Maybe (Sensitive Text)
sinkArn :: Maybe (Sensitive Text)
$sel:sinkArn:MediaCapturePipeline' :: MediaCapturePipeline -> Maybe (Sensitive Text)
sinkArn} -> Maybe (Sensitive Text)
sinkArn) (\s :: MediaCapturePipeline
s@MediaCapturePipeline' {} Maybe (Sensitive Text)
a -> MediaCapturePipeline
s {$sel:sinkArn:MediaCapturePipeline' :: Maybe (Sensitive Text)
sinkArn = Maybe (Sensitive Text)
a} :: MediaCapturePipeline) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> MediaCapturePipeline -> f MediaCapturePipeline)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> MediaCapturePipeline
-> f MediaCapturePipeline
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
     (Maybe Text)
     (Maybe Text)
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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive

-- | The ID of a media capture pipeline.
mediaCapturePipeline_mediaPipelineId :: Lens.Lens' MediaCapturePipeline (Prelude.Maybe Prelude.Text)
mediaCapturePipeline_mediaPipelineId :: (Maybe Text -> f (Maybe Text))
-> MediaCapturePipeline -> f MediaCapturePipeline
mediaCapturePipeline_mediaPipelineId = (MediaCapturePipeline -> Maybe Text)
-> (MediaCapturePipeline -> Maybe Text -> MediaCapturePipeline)
-> Lens
     MediaCapturePipeline MediaCapturePipeline (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MediaCapturePipeline' {Maybe Text
mediaPipelineId :: Maybe Text
$sel:mediaPipelineId:MediaCapturePipeline' :: MediaCapturePipeline -> Maybe Text
mediaPipelineId} -> Maybe Text
mediaPipelineId) (\s :: MediaCapturePipeline
s@MediaCapturePipeline' {} Maybe Text
a -> MediaCapturePipeline
s {$sel:mediaPipelineId:MediaCapturePipeline' :: Maybe Text
mediaPipelineId = Maybe Text
a} :: MediaCapturePipeline)

-- | The time at which the capture pipeline was created, in ISO 8601 format.
mediaCapturePipeline_createdTimestamp :: Lens.Lens' MediaCapturePipeline (Prelude.Maybe Prelude.UTCTime)
mediaCapturePipeline_createdTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> MediaCapturePipeline -> f MediaCapturePipeline
mediaCapturePipeline_createdTimestamp = (MediaCapturePipeline -> Maybe POSIX)
-> (MediaCapturePipeline -> Maybe POSIX -> MediaCapturePipeline)
-> Lens
     MediaCapturePipeline
     MediaCapturePipeline
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MediaCapturePipeline' {Maybe POSIX
createdTimestamp :: Maybe POSIX
$sel:createdTimestamp:MediaCapturePipeline' :: MediaCapturePipeline -> Maybe POSIX
createdTimestamp} -> Maybe POSIX
createdTimestamp) (\s :: MediaCapturePipeline
s@MediaCapturePipeline' {} Maybe POSIX
a -> MediaCapturePipeline
s {$sel:createdTimestamp:MediaCapturePipeline' :: Maybe POSIX
createdTimestamp = Maybe POSIX
a} :: MediaCapturePipeline) ((Maybe POSIX -> f (Maybe POSIX))
 -> MediaCapturePipeline -> f MediaCapturePipeline)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> MediaCapturePipeline
-> f MediaCapturePipeline
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

instance Core.FromJSON MediaCapturePipeline where
  parseJSON :: Value -> Parser MediaCapturePipeline
parseJSON =
    String
-> (Object -> Parser MediaCapturePipeline)
-> Value
-> Parser MediaCapturePipeline
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"MediaCapturePipeline"
      ( \Object
x ->
          Maybe MediaPipelineStatus
-> Maybe MediaPipelineSourceType
-> Maybe (Sensitive Text)
-> Maybe POSIX
-> Maybe MediaPipelineSinkType
-> Maybe ChimeSdkMeetingConfiguration
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe POSIX
-> MediaCapturePipeline
MediaCapturePipeline'
            (Maybe MediaPipelineStatus
 -> Maybe MediaPipelineSourceType
 -> Maybe (Sensitive Text)
 -> Maybe POSIX
 -> Maybe MediaPipelineSinkType
 -> Maybe ChimeSdkMeetingConfiguration
 -> Maybe (Sensitive Text)
 -> Maybe Text
 -> Maybe POSIX
 -> MediaCapturePipeline)
-> Parser (Maybe MediaPipelineStatus)
-> Parser
     (Maybe MediaPipelineSourceType
      -> Maybe (Sensitive Text)
      -> Maybe POSIX
      -> Maybe MediaPipelineSinkType
      -> Maybe ChimeSdkMeetingConfiguration
      -> Maybe (Sensitive Text)
      -> Maybe Text
      -> Maybe POSIX
      -> MediaCapturePipeline)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe MediaPipelineStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
            Parser
  (Maybe MediaPipelineSourceType
   -> Maybe (Sensitive Text)
   -> Maybe POSIX
   -> Maybe MediaPipelineSinkType
   -> Maybe ChimeSdkMeetingConfiguration
   -> Maybe (Sensitive Text)
   -> Maybe Text
   -> Maybe POSIX
   -> MediaCapturePipeline)
-> Parser (Maybe MediaPipelineSourceType)
-> Parser
     (Maybe (Sensitive Text)
      -> Maybe POSIX
      -> Maybe MediaPipelineSinkType
      -> Maybe ChimeSdkMeetingConfiguration
      -> Maybe (Sensitive Text)
      -> Maybe Text
      -> Maybe POSIX
      -> MediaCapturePipeline)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe MediaPipelineSourceType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SourceType")
            Parser
  (Maybe (Sensitive Text)
   -> Maybe POSIX
   -> Maybe MediaPipelineSinkType
   -> Maybe ChimeSdkMeetingConfiguration
   -> Maybe (Sensitive Text)
   -> Maybe Text
   -> Maybe POSIX
   -> MediaCapturePipeline)
-> Parser (Maybe (Sensitive Text))
-> Parser
     (Maybe POSIX
      -> Maybe MediaPipelineSinkType
      -> Maybe ChimeSdkMeetingConfiguration
      -> Maybe (Sensitive Text)
      -> Maybe Text
      -> Maybe POSIX
      -> MediaCapturePipeline)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SourceArn")
            Parser
  (Maybe POSIX
   -> Maybe MediaPipelineSinkType
   -> Maybe ChimeSdkMeetingConfiguration
   -> Maybe (Sensitive Text)
   -> Maybe Text
   -> Maybe POSIX
   -> MediaCapturePipeline)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe MediaPipelineSinkType
      -> Maybe ChimeSdkMeetingConfiguration
      -> Maybe (Sensitive Text)
      -> Maybe Text
      -> Maybe POSIX
      -> MediaCapturePipeline)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"UpdatedTimestamp")
            Parser
  (Maybe MediaPipelineSinkType
   -> Maybe ChimeSdkMeetingConfiguration
   -> Maybe (Sensitive Text)
   -> Maybe Text
   -> Maybe POSIX
   -> MediaCapturePipeline)
-> Parser (Maybe MediaPipelineSinkType)
-> Parser
     (Maybe ChimeSdkMeetingConfiguration
      -> Maybe (Sensitive Text)
      -> Maybe Text
      -> Maybe POSIX
      -> MediaCapturePipeline)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe MediaPipelineSinkType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SinkType")
            Parser
  (Maybe ChimeSdkMeetingConfiguration
   -> Maybe (Sensitive Text)
   -> Maybe Text
   -> Maybe POSIX
   -> MediaCapturePipeline)
-> Parser (Maybe ChimeSdkMeetingConfiguration)
-> Parser
     (Maybe (Sensitive Text)
      -> Maybe Text -> Maybe POSIX -> MediaCapturePipeline)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ChimeSdkMeetingConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ChimeSdkMeetingConfiguration")
            Parser
  (Maybe (Sensitive Text)
   -> Maybe Text -> Maybe POSIX -> MediaCapturePipeline)
-> Parser (Maybe (Sensitive Text))
-> Parser (Maybe Text -> Maybe POSIX -> MediaCapturePipeline)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SinkArn")
            Parser (Maybe Text -> Maybe POSIX -> MediaCapturePipeline)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> MediaCapturePipeline)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"MediaPipelineId")
            Parser (Maybe POSIX -> MediaCapturePipeline)
-> Parser (Maybe POSIX) -> Parser MediaCapturePipeline
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreatedTimestamp")
      )

instance Prelude.Hashable MediaCapturePipeline

instance Prelude.NFData MediaCapturePipeline